/* ==========================================

   01. GENERAL STYLES

========================================== */

:root {

    --navy: #1c3d60;

    --dark: #29293d;

    --blue: #338de8;

    --light-blue: #d1e4f8;

    --gray: #9fa1a5;

}

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

    scroll-padding-top: 85px;

    scrollbar-gutter: stable;

}

body {

    width: 100%;

    overflow-x: hidden;

    font-family: 'Poppins', sans-serif;

    background-color: #f0f5fa;

    color: #202137;

}

/* ==========================================

   02. SHARED NAVIGATION BAR

========================================== */

.navbar {

    width: 100%;

    min-height: 75px;

    background-color: var(--navy);

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);

}

.navbar > .container,

.navbar > .container-fluid {

    width: 100%;

    max-width: 100%;

    padding-left: 32px;

    padding-right: 32px;

}

.navbar-brand {

    display: flex;

    align-items: center;

    gap: 15px;

    margin: 0;

    padding: 0;

}

.logo-icon {

    width: 75px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}

.logo-icon img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

}

.brand-text {

    display: flex;

    flex-direction: column;

    justify-content: center;

    line-height: 1.2;

}

.brand-text span {

    font-size: 19px;

    font-weight: 400;

    color: white;

}

.brand-text small {

    font-size: 13px;

    color: var(--blue);

}

.navbar-nav {

    gap: 80px;

}

.navbar-nav .nav-link {

    font-family: 'Poppins', sans-serif;

    font-size: 21px;

    font-weight: 400;

    line-height: 1.4;

    color: #3788d5;

    padding: 5px 20px !important;

    border-bottom: 2px solid transparent;

    text-decoration: none;

}

.navbar-nav .nav-link:hover,

.navbar-nav .nav-link.active {

    color: white;

}

.navbar-nav .nav-link.active {

    border-bottom-color: white;

}

/* ==========================================

   03. HOMEPAGE HERO SECTION

========================================== */

.hero-section {

    padding: 130px 32px 75px;

    min-height: 760px;

    background-color: #f0f5fa;

}

.hero-content {

    padding: 0 60px;

}

.hero-badge {

    display: inline-block;

    padding: 3px 20px;

    border-radius: 25px;

    background-color: var(--light-blue);

    font-size: 17px;

    margin-bottom: 25px;

}

.hero-left h1 {

    font-size: 31px;

    font-weight: 500;

    line-height: 1.55;

    margin-bottom: 15px;

}

.hero-left h1 span {

    color: #496b8f;

}

.hero-description {

    font-size: 18px;

    color: #587795;

    line-height: 1.5;

    max-width: 550px;

}

.hero-buttons {

    display: flex;

    gap: 28px;

    margin-top: 15px;

    flex-wrap: wrap;

}

.btn-scan {

    background-color: #cfe3f8;

    color: #2789e9;

    border: 1px solid #75b8fa;

    border-radius: 12px;

    padding: 15px 16px;

    font-size: 18px;

    font-weight: 500;

    box-shadow: 0 3px 3px #a9a9a9;

}

.btn-scan:hover {

    background-color: #b6d8fa;

    color: #1675d1;

}

.btn-browse {

    background-color: var(--dark);

    color: white;

    border-radius: 12px;

    padding: 15px 35px;

    font-size: 18px;

    box-shadow: 0 3px 3px #a9a9a9;

}

.btn-browse:hover {

    background-color: #41425b;

    color: white;

}

.hero-note {

    color: #879db5;

    margin-top: 28px;

    font-size: 17px;

}

/* ==========================================

   04. HERO FEATURE CARDS

========================================== */

.hero-right {

    display: flex;

    flex-direction: column;

    gap: 17px;

}

.feature-card {

    display: flex;

    align-items: center;

    gap: 18px;

    min-height: 90px;

    padding: 12px;

    background-color: white;

    border: 1px solid #c8c8c5;

    border-radius: 20px;

    box-shadow: 0 3px 2px #b5b5b5;

}

.feature-icon {

    width: 72px;

    height: 66px;

    min-width: 72px;

    display: flex;

    justify-content: center;

    align-items: center;

    background-color: #eff4f8;

    border: 1px solid #ccd0d5;

    border-radius: 13px;

    font-size: 37px;

    color: #70a9e7;

}

.feature-card h5 {

    font-size: 19px;

    font-weight: 600;

    margin-bottom: 2px;

}

.feature-card p {

    color: #6b6b6b;

    font-size: 13px;

    margin: 0;

}

/* ==========================================

   05. STEP PROCESS

========================================== */

.steps-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: 80px;

}

.step-card {

    flex: 1;

    min-height: 80px;

    padding: 10px;

    text-align: center;

    background-color: white;

    border: 1px solid #c5c5c5;

    border-radius: 15px;

    box-shadow: 0 3px 2px #b4b4b4;

}

.step-card h4 {

    color: var(--blue);

    font-size: 23px;

    margin-bottom: 2px;

}

.step-card p {

    font-size: 15px;

    margin: 0;

}

.step-arrow {

    font-size: 30px;

    color: var(--dark);

}

/* ==========================================

   06. BEST SELLERS CAROUSEL

========================================== */

.bestseller-section {

    position: relative;

    min-height: 680px;

    padding: 45px 55px 60px;

    overflow: hidden;

    background: radial-gradient(

        circle,

        #ffffff 0%,

        #f0f5fa 78%

    );

}

.section-title {

    text-align: center;

    color: #000;

    font-size: 27px;

    margin-bottom: 65px;

}

.bestseller-content {

    display: grid;

    grid-template-columns: 1fr 1.8fr 1fr;

    align-items: start;

    gap: 25px;

    min-height: 350px;

}

.product-info-left,

.product-info-right {

    padding-top: 10px;

    transition:

        opacity 0.35s ease,

        transform 0.45s ease;

}

.product-info-left h4,

.product-info-right h4 {

    font-size: 23px;

    font-weight: 500;

    margin-bottom: 10px;

    opacity: 1;

    transform: none;

}

.product-info-left p,

.product-info-right p {

    font-size: 15px;

    color: #a3a3a3;

    line-height: 1.6;

}

.product-center {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 350px;

    perspective: 1000px;

}

.product-image {

    width: 120%;

    max-width: 700px;

    height: 380px;

    object-fit: contain;

    transform-origin: center center;

    backface-visibility: hidden;

    transition: none;

}

.product-arrow {

    position: absolute;

    top: 53%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: var(--dark);

    font-size: 48px;

    cursor: pointer;

    z-index: 5;

    transition:

        color 0.3s ease,

        opacity 0.3s ease;

}

.product-arrow:hover {

    color: var(--blue);

}

.product-prev {

    left: 20px;

}

.product-next {

    right: 20px;

}

.product-bottom {

    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-top: 20px;

}

.product-name-container {

    transition:

        opacity 0.35s ease,

        transform 0.45s ease;

}

.product-name-container h3 {

    color: var(--blue);

    font-size: 27px;

    font-weight: 400;

}

.product-line {

    width: 320px;

    max-width: 100%;

    height: 1px;

    background: #79b6f5;

    margin: 15px 0 8px;

}

.product-name-container p {

    color: #a1a1a1;

    font-size: 15px;

}

.btn-see-more {

    background: var(--dark);

    color: white;

    padding: 12px 25px;

    border-radius: 12px;

    box-shadow: 0 3px 2px #aaa;

}

.btn-see-more:hover {

    background: #41425b;

    color: white;

}

/* Carousel spin animations */

.product-image.spin-out-next {

    animation: spinOutNext 0.5s ease-in forwards;

}

.product-image.spin-out-prev {

    animation: spinOutPrev 0.5s ease-in forwards;

}

.product-image.spin-in-next {

    animation: spinInNext 0.5s ease-out forwards;

}

.product-image.spin-in-prev {

    animation: spinInPrev 0.5s ease-out forwards;

}

@keyframes spinOutNext {

    from {

        opacity: 1;

        transform: rotateY(0deg) scale(1);

    }

    to {

        opacity: 0;

        transform: rotateY(90deg) scale(0.85);

    }

}

@keyframes spinInNext {

    from {

        opacity: 0;

        transform: rotateY(-90deg) scale(0.85);

    }

    to {

        opacity: 1;

        transform: rotateY(0deg) scale(1);

    }

}

@keyframes spinOutPrev {

    from {

        opacity: 1;

        transform: rotateY(0deg) scale(1);

    }

    to {

        opacity: 0;

        transform: rotateY(-90deg) scale(0.85);

    }

}

@keyframes spinInPrev {

    from {

        opacity: 0;

        transform: rotateY(90deg) scale(0.85);

    }

    to {

        opacity: 1;

        transform: rotateY(0deg) scale(1);

    }

}

#faceShape,

#targetPersonality,

#productName,

#productTagline {

    transition: opacity 0.3s ease;

}

.bestseller-section.changing #faceShape,

.bestseller-section.changing #targetPersonality,

.bestseller-section.changing #productName,

.bestseller-section.changing #productTagline {

    opacity: 0;

}

/* ==========================================

   07. CLINIC BRANCHES

========================================== */

.branches-section {

    padding: 40px 55px 0;

    background-color: #f0f5fa;

}

.branches-section h2 {

    font-size: 27px;

    text-align: center;

    font-weight: 500;

}

.branches-subtitle {

    color: #a6a6a6;

    text-align: center;

    font-size: 16px;

    margin: 15px 0 35px;

}

.branches-images {

    display: grid;

    grid-template-columns: 1fr 1fr;

    border-radius: 17px;

    overflow: hidden;

    border: 1px solid #c8c8c8;

    box-shadow: 0 3px 2px #b5b5b5;

}

.branch-image {

    position: relative;

    height: auto;

    overflow: hidden;

    border-radius: 5px;

}

.branch-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    filter: brightness(0.78);

    transition:

        transform 0.4s ease,

        filter 0.4s ease;

}

.branch-image:hover img {

    transform: scale(1.04);

    filter: brightness(0.95);

}

.branch-image .branch-overlay {

    position: absolute;

    inset: 0;

    z-index: 2;

    display: flex;

    align-items: flex-start;

    padding: 25px;

    background: rgba(0, 0, 0, 0.65);

    opacity: 0;

    visibility: hidden;

    transition:

        opacity 0.5s ease,

        visibility 0.5s ease;

}

.branch-image .branch-description {

    width: 100%;

    color: white;

    opacity: 0;

    transition:

        transform 0.6s ease,

        opacity 0.5s ease;

}

.branch-image.left-branch .branch-description {

    transform: translateX(-100%);

}

.branch-image.right-branch .branch-description {

    transform: translateX(100%);

}

.branch-image:hover .branch-overlay {

    opacity: 1;

    visibility: visible;

}

.branch-image:hover .branch-description {

    transform: translateX(0);

    opacity: 1;

}

.branch-description h3,

.branch-description p {

    color: white;

}

/* ==========================================

   08. BENEFITS

========================================== */

.benefits-container {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    background-color: white;

    border: 1px solid #c8c8c8;

    border-radius: 15px;

    margin-top: 20px;

    overflow: hidden;

}

.benefit-item {

    padding: 18px 20px 25px;

    min-height: 185px;

}

.benefit-item:not(:last-child) {

    border-right: 1px solid #d0d0d0;

}

.benefit-item h4 {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 20px;

    font-weight: 500;

    white-space: nowrap;

}

.benefit-item h4 i {

    font-size: 24px;

}

.benefit-item p {

    margin: 20px 0 0 30px;

    color: #a5a5a5;

    font-size: 14px;

    line-height: 1.65;

}

/* ==========================================

   09. FOOTER

========================================== */

.footer-section {

    background-color: #f0f5fa;

    padding: 20px 43px 35px;

}

.footer-divider {

    height: 1px;

    background-color: #c7c7c7;

    margin: 20px 0;

}

.footer-section h4 {

    font-size: 21px;

    margin-bottom: 15px;

    font-weight: 500;

}

.footer-section p {

    color: #a3a3a3;

    font-size: 14px;

}

.footer-section ul {

    list-style: none;

    padding: 0;

}

.footer-section ul li {

    margin-bottom: 12px;

}

.footer-section ul li a {

    color: #a3a3a3;

    text-decoration: none;

    font-size: 14px;

}

.footer-section ul li a:hover {

    color: var(--blue);

}

.subscribe-input {

    background-color: #e7e7e7;

    border: 1px solid #b5b5b5;

    border-radius: 10px;

    padding: 12px;

    max-width: 330px;

    margin-bottom: 12px;

}

.btn-subscribe {

    display: block;

    background-color: var(--dark);

    color: white;

    border-radius: 10px;

    padding: 12px 30px;

    box-shadow: 0 3px 2px #aaa;

}

.btn-subscribe:hover {

    background-color: #41425b;

    color: white;

}

#subscribeMessage {

    margin-top: 10px;

}

.footer-bottom {

    margin-top: 20px;

}

.footer-bottom p {

    font-size: 12px;

    max-width: 600px;

    margin-bottom: 10px;

}

/* ==========================================

   10. FLOATING HELP BUTTON

========================================== */

.help-button {

    position: fixed;

    right: 25px;

    bottom: 30px;

    width: 62px;

    height: 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background-color: var(--navy);

    color: white;

    border: none;

    font-size: 32px;

    z-index: 1000;

}

.help-button:hover {

    background-color: #285580;

}

.help-popup.show {

    display: block;

}

.help-header h5 {

    margin: 0;

    font-size: 17px;

}

.help-header button {

    background: none;

    border: none;

    color: white;

}

.help-body p {

    font-size: 14px;

    color: #555;

}

/* ==========================================

   11. MESSAGE POPUP

========================================== */

.message-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.55);

    z-index: 1090;

    opacity: 0;

    visibility: hidden;

    transition:

        opacity 0.3s ease,

        visibility 0.3s ease;

}

.message-overlay.show {

    opacity: 1;

    visibility: visible;

}

.message-popup {

    position: fixed;

    top: 50%;

    left: 50%;

    right: auto;

    bottom: auto;

    width: 475px;

    max-width: calc(100vw - 32px);

    height: 630px;

    max-height: calc(100dvh - 32px);

    display: flex;

    flex-direction: column;

    background: white;

    border-radius: 15px;

    outline: none;

    overflow: hidden;

    z-index: 1100;

    opacity: 0;

    visibility: hidden;

    transform: translate(-50%, -45%) scale(0.97);

    transition:

        opacity 0.3s ease,

        transform 0.3s ease,

        visibility 0.3s ease;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);

}

.message-popup.show {

    opacity: 1;

    visibility: visible;

    transform: translate(-50%, -50%) scale(1);

}

.message-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    flex-shrink: 0;

    background: var(--navy);

    color: white;

    padding: 13px 20px;

}

.message-header-text h4 {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 17px;

    font-weight: 500;

    margin: 0 0 4px;

}

.message-header-text p {

    color: #3688d7;

    font-size: 13px;

    margin: 0;

}

.message-close {

    background: transparent;

    border: none;

    color: #3688d7;

    font-size: 20px;

    cursor: pointer;

}

.message-close:hover {

    color: white;

}

.message-content {

    padding: 14px;

    overflow-y: auto;

    flex: 1;

}

.message-notice {

    display: flex;

    gap: 10px;

    align-items: center;

    background: #cfe4f9;

    border-radius: 14px;

    padding: 12px 15px;

    margin-bottom: 32px;

    box-shadow: 0 3px 3px #b8b8b8;

}

.message-notice i {

    color: #597b9d;

    font-size: 17px;

    flex-shrink: 0;

}

.message-notice p {

    font-size: 12px;

    line-height: 1.5;

    color: #587594;

    margin: 0;

}

.message-notice a {

    color: #587594;

    font-weight: 600;

}

.message-field {

    margin-bottom: 15px;

}

.message-field label {

    display: flex;

    align-items: center;

    gap: 10px;

    color: #567696;

    font-size: 14px;

    font-weight: 500;

    margin-bottom: 5px;

}

.message-field label i {

    font-size: 17px;

}

.message-field input,

.message-field textarea {

    width: 100%;

    background: #d6e8fa;

    border: 1px solid #75b8ff;

    border-radius: 13px;

    padding: 9px 13px;

    font-size: 13px;

    color: #202137;

    outline: none;

    box-shadow: 0 3px 3px #b8b8b8;

    transition:

        border-color 0.3s ease,

        box-shadow 0.3s ease;

}

.message-field input {

    height: 37px;

}

.message-field textarea {

    min-height: 88px;

    resize: vertical;

}

.message-field input::placeholder,

.message-field textarea::placeholder {

    color: #a9b9c9;

}

.message-field input:focus,

.message-field textarea:focus {

    border-color: var(--blue);

    box-shadow: 0 0 0 3px rgba(51, 141, 232, 0.15);

}

.privacy-agreement {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    margin-top: 18px;

    margin-bottom: 8px;

}

.privacy-agreement input {

    width: 18px;

    height: 18px;

    flex-shrink: 0;

    accent-color: var(--blue);

    cursor: pointer;

}

.privacy-agreement label {

    color: #202137;

    font-size: 11px;

    line-height: 1.4;

    cursor: pointer;

}

.message-submit {

    width: 100%;

    height: 42px;

    border: none;

    border-radius: 11px;

    background: var(--dark);

    color: white;

    font-size: 17px;

    font-weight: 400;

    cursor: pointer;

    box-shadow: 0 3px 3px #b8b8b8;

    transition: background 0.3s ease;

}

.message-submit:hover {

    background: #41425b;

}

.contact-status {

    font-size: 12px;

    margin-top: 12px;

    text-align: center;

}

/* ==========================================

   19. TABLET RESPONSIVE

========================================== */

@media (max-width: 991px) {

    .navbar > .container,

    .navbar > .container-fluid {

        padding-left: 24px;

        padding-right: 24px;

    }

    .navbar-nav {

        gap: 10px;

        text-align: center;

    }

    .hero-section {

        padding: 115px 25px 50px;

    }

    .hero-content {

        padding: 0 15px;

    }

    .hero-right {

        margin-top: 35px;

    }

    .steps-container {

        flex-wrap: wrap;

        justify-content: center;

    }

    .step-card {

        flex: 1 1 40%;

    }

    .step-arrow {

        display: none;

    }

    .bestseller-content {

        grid-template-columns: 1fr 1.5fr 1fr;

        gap: 15px;

    }

    .product-info-left h4,

    .product-info-right h4 {

        font-size: 18px;

    }

    .benefits-container {

        grid-template-columns: 1fr;

    }

    .benefit-item:not(:last-child) {

        border-right: none;

        border-bottom: 1px solid #d0d0d0;

    }

}

/* ==========================================

   20. MOBILE RESPONSIVE

========================================== */

@media (max-width: 768px) {

    /* Navbar */

    .navbar {

        min-height: 70px;

    }

    .navbar > .container,

    .navbar > .container-fluid {

        padding-left: 18px;

        padding-right: 18px;

    }

    .logo-icon {

        width: 55px;

        height: 45px;

    }

    .brand-text span,

    .brand-text small,

    .navbar-nav .nav-link {

        font-size: 17px;

    }

    /* Hero */

    .hero-section {

        padding: 110px 18px 45px;

        min-height: auto;

    }

    .hero-content {

        padding: 0;

    }

    .hero-badge {

        font-size: 13px;

        margin-bottom: 20px;

    }

    .hero-left h1 {

        font-size: 25px;

        line-height: 1.5;

    }

    .hero-description {

        font-size: 15px;

    }

    .hero-buttons {

        gap: 12px;

    }

    .btn-scan,

    .btn-browse {

        font-size: 14px;

        padding: 12px 15px;

    }

    .hero-note {

        font-size: 12px;

        line-height: 1.8;

    }

    .feature-card {

        padding: 10px;

    }

    .feature-icon {

        width: 55px;

        min-width: 55px;

        height: 55px;

        font-size: 28px;

    }

    .feature-card h5 {

        font-size: 15px;

    }

    .feature-card p {

        font-size: 11px;

    }

    /* Step Process */

    .steps-container {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 15px;

        margin-top: 45px;

    }

    .step-card {

        min-height: 85px;

        padding: 15px 8px;

    }

    .step-card h4 {

        font-size: 19px;

    }

    .step-card p {

        font-size: 12px;

    }

    /* Best Sellers */

    .bestseller-section {

        padding: 40px 20px;

        min-height: auto;

    }

    .section-title {

        font-size: 24px;

        margin-bottom: 30px;

    }

    .bestseller-content {

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 15px;

    }

    .product-center {

        order: -1;

        width: 100%;

        min-height: 240px;

    }

    .product-image {

        width: 100%;

        max-width: 450px;

        height: 280px;

    }

    .product-info-left,

    .product-info-right {

        width: 100%;

    }

    .product-info-left h4,

    .product-info-right h4 {

        font-size: 18px;

    }

    .product-info-left p,

    .product-info-right p {

        font-size: 13px;

    }

    .product-arrow {

        top: 235px;

        font-size: 32px;

    }

    .product-prev {

        left: 5px;

    }

    .product-next {

        right: 5px;

    }

    .product-bottom {

        margin-top: 25px;

        gap: 15px;

    }

    .product-name-container h3 {

        font-size: 22px;

    }

    .product-name-container p {

        font-size: 12px;

    }

    .product-actions {

        gap: 20px;

    }

    .carousel-arrow {

        font-size: 35px;

    }

    .btn-see-more {

        font-size: 12px;

        padding: 10px 15px;

        flex-shrink: 0;

    }

    /* Branches */

    .branches-section {

        padding: 35px 20px 0;

    }

    .branches-section h2 {

        font-size: 21px;

    }

    .branches-subtitle {

        font-size: 13px;

    }

    .branches-images {

        grid-template-columns: 1fr;

    }

    .branch-image {

        height: 250px;

    }

    /* Benefits */

    .benefits-container {

        grid-template-columns: 1fr;

    }

    .benefit-item {

        padding: 20px;

        min-height: auto;

    }

    .benefit-item h4 {

        font-size: 16px;

        white-space: normal;

    }

    .benefit-item p {

        font-size: 13px;

        margin-left: 0;

    }

    /* Footer */

    .footer-section {

        padding: 20px;

    }

    .footer-section h4 {

        font-size: 17px;

    }

    .footer-section p,

    .footer-section ul li a {

        font-size: 12px;

    }

    /* Help Button */

    .help-button {

        width: 50px;

        height: 50px;

        font-size: 25px;

        right: 15px;

        bottom: 15px;

    }

    .help-popup {

        right: 15px;

        bottom: 75px;

    }

    /* Message Popup */

    .message-popup {

        left: 50%;

        right: auto;

        width: calc(100vw - 20px);

        max-width: none;

        height: min(630px, calc(100dvh - 20px));

        max-height: calc(100dvh - 20px);

    }

    .message-header {

        padding: 12px 15px;

    }

    .message-header-text h4 {

        font-size: 15px;

    }

    .message-content {

        padding: 12px;

    }

    .message-notice {

        margin-bottom: 20px;

    }

    .message-field {

        margin-bottom: 12px;

    }

}

/* ==========================================

   21. REDUCED MOTION

========================================== */

@media (prefers-reduced-motion: reduce) {

    .product-image,

    .product-info-left,

    .product-info-right,

    .product-name-container {

        transition: none;

    }

    .product-image.spin-out-next,

    .product-image.spin-out-prev,

    .product-image.spin-in-next,

    .product-image.spin-in-prev {

        animation: none;

    }

}

/* ==========================================
   TRY-ON PAGE (scoped; shared navbar above)
========================================== */
.tryon-page{
    min-height:100vh;
    background:#eff4f9;
    color:#1d1d30
}
.tryon-page .tryon-account{
    font-size:29px;
    color:#348eea;
    text-decoration:none;
    line-height:1
}

.tryon-main{
    max-width:1450px;
    width:100%;
    margin:0 auto;
    padding:24px 28px 48px
}
.tryon-heading-row{
    display:grid;
    grid-template-columns:minmax(0,410px) 270px 1fr;
    align-items:start;gap:28px;margin-bottom:20px
}
.tryon-step-title{
    font-size:28px;
    color:#348eea;
    font-weight:400;
    margin:0 0 5px
}
.tryon-subtitle{
    font-size:15px;
    color:#999;
    margin:0
}
.tryon-progress{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:250px;
    margin-top:1px
}

.tryon-progress-line{
    position:absolute;
    height:2px;
    background:#29293c;
    left:12px;
    right:12px;
    top:15px
}
.tryon-progress-dot{
    z-index:1;
    display:grid;
    place-items:center;
    width:31px;
    height:31px;
    border:1px solid #29293c;
    border-radius:50%;
    background:#eff4f9;
    font-size:13px
}
.tryon-progress-dot.active{
    background:#348eea;
    color:#fff;
    border-color:#1d4672
}
.tryon-progress-dot.completed{
    background:#87dfa8;
    border-color:#143d2a;
    color:#143d2a
}
.tryon-step{
    display:none
}
.tryon-step.active{
    display:block
}
.tryon-camera-box{
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    background:#29293c;
    border:2px dashed #348eea;
    border-radius:14px;
    min-height:275px;
    overflow:hidden
}
.tryon-scan-placeholder{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:18px;
    padding:20px
}
.tryon-face-icon{
    font-size:92px;
    color:white;
    line-height:1
}
.tryon-camera-btn{
    padding:12px 20px;
    border:1px solid #777;
    border-radius:12px;
    background:#444453;
    color:#fff;
    font-size:15px
}
.tryon-camera-btn i{
    color:red;
    margin-right:12px;
    font-size:20px
}
.tryon-upload-label{
    font-size:12px;
    color:#aaa;
    margin:0
}
.tryon-upload-label label{
    color:red;
    cursor:pointer
}
.tryon-camera-box video,.tryon-camera-box img{
    max-width:100%;
    max-height:360px;
    object-fit:contain
}
.tryon-page [hidden]{
    display:none!important
}
.tryon-tips,.tryon-card,.tryon-notice{
    background:#fff;
    border:1px solid #ccc;
    border-radius:13px;
    box-shadow:0 3px 2px #00000025
}
.tryon-tips{
    padding:14px 22px;
    margin-top:45px
}
.tryon-tips h2,.tryon-card h2{
    font-size:17px;
    font-weight:500;
    margin:0 0 12px
}
.tryon-tips h2 i{
    color:red
}
.tryon-tips ul{
    font-size:13px;
    color:#899bb3;
    margin:0;
    padding-left:20px
}
.tryon-privacy{
    text-align:center;
    color:#999;
    font-size:11px;
    margin:14px 0
}
.tryon-actions{
    display:flex;
    justify-content:flex-end;
    gap:22px;
    margin-top:24px
}
.tryon-btn-back,.tryon-btn-next{
    min-width:130px;
    border-radius:12px;
    padding:10px 24px;
    font-size:19px;
    text-align:center;
    text-decoration:none;
    cursor:pointer
}
.tryon-btn-back{
    background:#b1d2f4;
    color:#348eea;
    border:1px solid #327dbb
}
.tryon-btn-next{
    background:#29293c;
    color:white;
    border:0
}.tryon-btn-next:disabled{
    opacity:.45;
    cursor:not-allowed
}
.tryon-section-heading{
    font-size:18px;
    font-weight:500;
    margin:0 0 8px
}
.tryon-muted{
    color:#999;
    font-size:14px;
    margin:0 0 20px
}
.tryon-blue{
    color:#348eea
}
.tryon-prescription-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12%;
    margin:20px 0 18px
}
.tryon-label{
    display:block;
    font-size:16px;
    margin-bottom:8px
}
.tryon-label i{
    color:#348eea;
    margin-right:8px
}
.tryon-label small{
    color:#999;
    font-size:12px
}
.tryon-input{
    width:100%;
    max-width:405px;
    background:white;
    border:1px solid #bbb;
    border-radius:5px;
    min-height:40px;
    padding:8px 14px;
    box-shadow:0 2px 2px #00000020
}
.tryon-eye-grades{
    display:flex;
    align-items:center;
    width:280px;
    max-width:100%;
    background:#fff;
    border:1px solid #ddd;
    border-radius:6px;
    box-shadow:0 2px 2px #00000025;
    padding:7px
}
.tryon-eye-grades label{
    flex:1;
    min-width:0;
    text-align:center;
    font-size:11px;
    color:#888
}
.tryon-eye-grades input{
    display:block;
    width:100%;
    text-align:center;
    border:0;
    outline:0;
    color:#222;
    font-weight:600;
    font-size:15px
}
.tryon-grade-divider{
    height:36px;
    width:1px;
    background:#ddd
}
.tryon-divider{
    border:0;
    border-top:1px solid #bbb;
    opacity:.65;
    margin:22px 0
}
.tryon-options{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
    margin-bottom:14px
}
.tryon-option{
    min-height:52px;
    border:1px solid #c6c6c6;
    border-radius:10px;
    background:#fff;
    color:#29293c;
    box-shadow:0 3px 2px #00000030;
    font-size:15px;
    transition:background .2s,border .2s
}
.tryon-option i{
    font-size:19px;
    margin-right:10px
}
.tryon-option:hover{
    border-color:#348eea
}
.tryon-option.selected{
    background:#dcecff;
    border:2px solid #348eea;
    color:#165da1
}
.tryon-validation{
    color:#ba2533;
    font-size:13px
}
.tryon-demo-note{
    font-size:12px;
    color:#666;
    margin:0 0 14px
}
.tryon-two-columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px
}
.tryon-card{
    padding:16px;
    min-width:0
}
.tryon-card h2 i{
    margin-right:7px
}
.tryon-data-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin:8px 0;
    font-size:15px
}
.tryon-data-row strong{
    color:#348eea;
    font-weight:400
}
.tryon-check{
    font-size:14px;
    margin:9px 0
}
.tryon-check i{
    color:#20c941;
    margin-right:10px
}
.tryon-recommendation{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    min-height:160px
}
.tryon-recommendation-product{
    text-align:center;
    flex:1;
    min-width:0
}
.tryon-recommendation-product h3{
    font-size:21px;
    color:#348eea;
    font-weight:400
}
.tryon-recommendation-product img{
    max-width:190px;
    width:100%;
    height:95px;
    object-fit:contain
}
.tryon-lens-demo{
    width:92px;
    height:92px;
    border:7px solid #d5e1ed;
    border-radius:50%;margin:auto;
    background:radial-gradient(
        circle,#fff 0 16%,#183e6e 19%,#1b8bcb 40%,#07548b 58%,#b3dafa 75%,#e6f1ff 100%)}
.tryon-choose-title{
    margin:22px 0 20px
}
.tryon-preview-panel{
    position:relative;
    min-height:345px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#444;
    border:2px dashed #348eea;
    border-radius:13px;
    overflow:hidden
}
.tryon-photo-wrap{
    position:relative;
    display:inline-block;
    max-width:100%;
    max-height:420px
}
.tryon-photo-wrap>img:first-child,.tryon-photo-wrap video{
    display:block;
    max-width:100%;
    max-height:420px;
    object-fit:contain
}
/* Approximate static overlay, NOT face-tracking */
#tryonGlassesOverlay{
    position:absolute;
    left:25%;
    top:35%;
    width:50%;
    height:auto;
    max-height:35%;
    object-fit:contain;
    pointer-events:none
}
.tryon-virtual-placeholder{
    text-align:center;
    color:#ddd;
    padding:25px
}
.tryon-virtual-placeholder i{
    font-size:70px
}
.tryon-frame-card{
    min-height:345px;
    display:flex;
    flex-direction:column
}
.tryon-frame-heading{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px
}
.tryon-frame-heading h3{
    font-size:25px;
    color:#348eea;
    margin:0
}
.tryon-frame-arrow{
    background:transparent;
    border:0;
    color:#29293c;
    font-size:30px
}
.tryon-frame-details{
    display:grid;
    grid-template-columns:45% 55%;
    align-items:center;
    gap:8px;
    flex:1
}
.tryon-frame-details img{
    width:100%;
    max-height:175px;
    object-fit:contain
}
.tryon-frame-details h4{
    font-size:17px;
    margin:10px 0 4px
}
.tryon-frame-details p{
    font-size:13px;
    color:#888;
    line-height:1.5;
    margin:0
}
.tryon-favorite{
    align-self:flex-start;
    background:#29293c;
    border:0;
    border-radius:50%;
    width:36px;height:36px;
    color:#fff
}
.tryon-favorite.selected{
    color:#ff5068
}
.tryon-notice{
    padding:13px;
    max-width:580px
}
.tryon-notice strong{
    color:#999;
    font-weight:500
}
.tryon-notice strong i{
    color:red
}
.tryon-notice p{
    color:#aaa;
    font-size:12px;
    margin:5px 0 0
}
@media(max-width:991px){
.tryon-heading-row{
        grid-template-columns:minmax(0,1fr) 250px
    }
.tryon-prescription-grid{
    gap:25px}
.tryon-main{
    padding:24px
}}
@media(max-width:768px){
.tryon-main{
    padding:20px 18px 35px
}
.tryon-heading-row{
    grid-template-columns:1fr;
    gap:10px
}
.tryon-step-title{
    font-size:23px
}
.tryon-progress{
    margin:5px 0 0
}
.tryon-camera-box{
    min-height:260px
}
.tryon-tips{
    margin-top:25px
}
.tryon-prescription-grid,.tryon-two-columns{
    grid-template-columns:1fr;
    gap:18px
}
.tryon-options{
    grid-template-columns:repeat(2,minmax(0,1fr))
}
.tryon-option{
    font-size:13px
}
.tryon-option i{
    font-size:16px;
    margin-right:5px
}
.tryon-recommendation{
    flex-wrap:wrap
}
.tryon-actions{
    gap:10px
}
.tryon-btn-back,.tryon-btn-next{
    min-width:105px;
    font-size:16px
}
.tryon-frame-details{
    grid-template-columns:1fr
}
.tryon-frame-card{
    gap:14px
}}


/* ==========================================
   S.O.E EYE CLINIC - PRODUCTS PAGE
   ========================================== */

.products-page {
    min-height: 100vh;
    background: #eff4f9;
    color: #191a2c;
    font-family: 'Poppins', sans-serif;
}


/* MAIN CONTAINER */

.products-page .products-main {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 24px 30px 35px;
}


/* PAGE HEADING */

.products-page .products-heading {
    margin-bottom: 20px;
}

.products-page .products-heading h1 {
    color: #348eea;
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 7px;
}

.products-page .products-heading p {
    color: #999;
    font-size: 15px;
    margin: 0;
}


/* ==========================================
   CATEGORY TABS
   ========================================== */

.products-page .products-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.products-page .products-tab {
    width: 250px;
    min-height: 47px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;

    background: #fff;
    color: #29283d;

    border: 1px solid #bcbcbc;
    border-radius: 12px;

    font-size: 16px;
    font-weight: 400;
    font-family: inherit;

    box-shadow: 0 2px 2px #00000035;
    cursor: pointer;
    transition: 0.2s ease;
}

.products-page .products-tab i {
    color: #348eea;
    font-size: 20px;
}

.products-page .products-tab:hover {
    border-color: #348eea;
}

.products-page .products-tab.active {
    background: #29283d;
    color: #fff;
}

.products-page .products-tab.active i {
    color: #fff;
}


/* ==========================================
   PRODUCT GRID
   ========================================== */

.products-page .products-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.products-page .product-card {
    grid-column: span 2;

    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #fff;
    border: 1px solid #bcbcbc;
    border-radius: 13px;

    box-shadow: 0 3px 2px #00000030;
    min-width: 0;
}

/* Last two products fill the second row */

.products-page .product-card:nth-child(4),
.products-page .product-card:nth-child(5) {
    grid-column: span 3;
}


/* ==========================================
   PRODUCT IMAGE
   ========================================== */

.products-page .product-image-area {
    height: 148px;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 15px;
    background: #fff;
}

.products-page .product-image {
    width: 72%;
    height: 105px;
    object-fit: contain;
}

.products-page .product-card[data-category="contacts"] .product-image {
    width: 105px;
    height: 105px;
}

.products-page .product-stock {
    position: absolute;
    top: 9px;
    right: 9px;

    padding: 3px 15px;
    border-radius: 20px;

    background: #91e3a6;
    color: #126b27;

    font-size: 11px;
    font-weight: 500;
}


/* ==========================================
   PRODUCT DETAILS
   ========================================== */

.products-page .product-details {
    background: #e6e6e6;
    padding: 11px 12px 12px;

    display: flex;
    flex-direction: column;
    flex: 1;
}

.products-page .product-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.products-page .product-name {
    color: #348eea;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
}

.products-page .product-price {
    color: #999;
    font-size: 12px;
    font-weight: 600;
}

.products-page .product-description {
    color: #999;
    font-size: 13px;
    margin: 0 0 5px;
}

.products-page .product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 7px;
}

.products-page .product-tag {
    background: #cacaca;
    color: #111;
    padding: 2px 12px;
    border-radius: 15px;

    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
}


/* ==========================================
   PRODUCT BUTTONS
   ========================================== */

.products-page .product-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.products-page .product-tryon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    flex: 1;
    min-width: 0;
    min-height: 35px;

    background: #29283d;
    color: #fff;
    text-decoration: none;

    border: none;
    border-radius: 13px;

    font-size: 15px;
    transition: background 0.2s;
}

.products-page .product-tryon:hover {
    background: #348eea;
    color: #fff;
}

.products-page .product-favorite {
    width: 36px;
    height: 36px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 12px;

    background: #29283d;
    color: #fff;
    font-size: 17px;

    cursor: pointer;
}

.products-page .product-favorite.selected {
    color: #ff6275;
}

.products-page .product-favorite:hover {
    background: #3c3a57;
}


/* ==========================================
   BROWSE NOTICE
   ========================================== */

.products-page .products-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-top: 22px;
    padding: 15px 12px;

    background: #fff;
    border: 1px solid #bcbcbc;
    border-left: 5px solid #e52323;
    border-radius: 12px;
}

.products-page .products-notice i {
    color: #e52323;
    font-size: 15px;
}

.products-page .products-notice p {
    margin: 0;
    color: #111;
    font-size: 12px;
    line-height: 1.6;
}


/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */

@media (max-width: 991px) {

    .products-page .products-main {
        padding: 24px 20px;
    }

    .products-page .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-page .product-card,
    .products-page .product-card:nth-child(4),
    .products-page .product-card:nth-child(5) {
        grid-column: span 1;
    }

    .products-page .products-tab {
        width: 220px;
    }
}


/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 600px) {

    .products-page .products-main {
        padding: 20px 15px;
    }

    .products-page .products-heading h1 {
        font-size: 24px;
    }

    .products-page .products-heading p {
        font-size: 13px;
    }

    .products-page .products-tabs {
        gap: 10px;
    }

    .products-page .products-tab {
        width: calc(50% - 5px);
        min-height: 45px;
        font-size: 12px;
        gap: 5px;
    }

    .products-page .products-tab i {
        font-size: 16px;
    }

    .products-page .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .products-page .product-card,
    .products-page .product-card:nth-child(4),
    .products-page .product-card:nth-child(5) {
        grid-column: span 1;
    }

    .products-page .product-image-area {
        height: 165px;
    }

    .products-page .product-name {
        font-size: 17px;
    }

    .products-page .products-notice p {
        font-size: 11px;
    }
}

/* ==========================================
   S.O.E EYE CLINIC - PROFILE PAGE
   ========================================== */

.profile-page {
    min-height: 100vh;
    background: #eff4f9;
    color: #191a2c;
    font-family: 'Poppins', sans-serif;
}

/* MAIN */

.profile-page .profile-main {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 20px 30px 45px;
}

/* PROFILE SUMMARY */

.profile-page .profile-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 125px;
    padding: 15px 26px;
    margin-bottom: 20px;

    background: #fff;
    border: 1px solid #bcbcbc;
    border-radius: 13px;
}

.profile-page .profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 70px;
    height: 70px;

    background: #c7e1fb;
    border: 1px solid #348eea;
    border-radius: 50%;

    color: #348eea;
    font-size: 34px;
}

.profile-page .profile-summary-content {
    min-width: 0;
}

.profile-page .profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-page .profile-name-row h1 {
    font-size: 25px;
    font-weight: 500;
    margin: 0;
    color: #191a2c;
}

.profile-page .profile-edit-icon {
    background: transparent;
    border: 0;
    padding: 2px;
    color: #111;
    font-size: 19px;
    cursor: pointer;
}

.profile-page .profile-summary-content > p {
    margin: 4px 0 5px;
    color: #68809b;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.profile-page .profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-page .profile-badges > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    background: #c7e1fb;
    border-radius: 20px;
    padding: 4px 12px;

    color: #191a2c;
    font-size: 14px;
}

.profile-page .profile-badges i {
    color: #348eea;
    font-size: 17px;
}

/* TWO-COLUMN LAYOUT */

.profile-page .profile-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    align-items: start;
}

.profile-page .profile-left,
.profile-page .profile-right {
    min-width: 0;
}

.profile-page .profile-section {
    margin-bottom: 18px;
}

/* SECTION HEADING */

.profile-page .profile-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.profile-page .profile-section-heading h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;

    margin: 0;
    color: #348eea;
    font-size: 18px;
    font-weight: 400;
}

.profile-page .profile-section-heading h2 i {
    font-size: 20px;
}

.profile-page .profile-heading-line {
    flex: 1;
    height: 1px;
    background: #348eea;
}

.profile-page .profile-edit-text {
    border: 0;
    background: transparent;
    padding: 0 0 0 10px;
    color: #348eea;
    font-size: 16px;
    cursor: pointer;
}

/* RECOMMENDATIONS AND SAVED ITEMS */

.profile-page .profile-item-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.profile-page .profile-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 65px;
    padding: 9px 14px;

    background: #fff;
    border: 1px solid #bcbcbc;
    border-radius: 12px;
    box-shadow: 0 2px 2px #00000020;
}

.profile-page .profile-item-image {
    width: 64px;
    height: 44px;
    flex-shrink: 0;
    object-fit: contain;
}

.profile-page .profile-item-info {
    flex: 1;
    min-width: 0;
}

.profile-page .profile-item-info h3 {
    font-size: 17px;
    font-weight: 400;
    margin: 0 0 2px;
    color: #191a2c;
}

.profile-page .profile-item-info p {
    font-size: 10px;
    color: #68809b;
    margin: 0;
}

.profile-page .profile-stock {
    flex-shrink: 0;
    align-self: flex-start;
    padding: 3px 13px;
    border-radius: 20px;
    font-size: 10px;
}

.profile-page .profile-stock.in-stock {
    background: #91e3a6;
    color: #126b27;
}

.profile-page .profile-stock.low-stock {
    background: #e3e58b;
    color: #6e681b;
}

.profile-page .profile-empty {
    color: #7a8ca3;
    font-size: 13px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

/* MY DETAILS */

.profile-page .profile-details-card {
    background: #fff;
    border: 1px solid #bcbcbc;
    border-radius: 13px;
    overflow: hidden;
}

.profile-page .profile-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    min-height: 43px;
    padding: 11px 13px;
    border-bottom: 1px solid #e3e3e3;
    font-size: 13px;
}

.profile-page .profile-detail-row:last-child {
    border-bottom: 0;
}

.profile-page .profile-detail-row strong {
    color: #348eea;
    font-weight: 400;
    text-align: right;
}

/* LOGOUT */

.profile-page .profile-logout {
    width: 100%;
    min-height: 47px;
    margin-top: 2px;

    background: #29283d;
    border: 1px solid #348eea;
    border-radius: 12px;

    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.profile-page .profile-logout:hover {
    background: #383651;
}

/* EDIT MODAL */

.profile-page .modal-content {
    border-radius: 14px;
}

.profile-page .modal-title {
    color: #29283d;
}

.profile-page .modal .btn-primary {
    background: #348eea;
    border-color: #348eea;
}

/* RESPONSIVE */

@media (max-width: 767px) {

    .profile-page .profile-main {
        padding: 18px 15px 30px;
    }

    .profile-page .profile-summary {
        padding: 16px;
        gap: 12px;
        align-items: flex-start;
    }

    .profile-page .profile-avatar {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .profile-page .profile-name-row h1 {
        font-size: 20px;
    }

    .profile-page .profile-summary-content > p {
        font-size: 12px;
    }

    .profile-page .profile-badges {
        gap: 6px;
    }

    .profile-page .profile-badges > span {
        font-size: 11px;
        padding: 4px 8px;
    }

    .profile-page .profile-columns {
        grid-template-columns: 1fr;
    }

    .profile-page .profile-section-heading h2 {
        font-size: 16px;
    }

    .profile-page .profile-item-info h3 {
        font-size: 15px;
    }
}


/* ==========================================
   S.O.E EYE CLINIC - LOGIN / REGISTER PAGE
   ========================================== */

.login-page {
    min-height: 100vh;
    background: #eff4f9;
    color: #191a2c;
    font-family: 'Poppins', sans-serif;
}

/* GOOGLE SIGN IN BUTTON */

.login-page .login-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-page .login-google-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

/* MAIN */

.login-page .login-main {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 25px 30px 40px;
}

/* INFORMATION BANNER */

.login-page .login-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 12px 40px;
    margin-bottom: 20px;

    background: #bdd9f5;
    border: 1px solid #348eea;
    border-radius: 12px;

    color: #23496c;
    font-size: 13px;
}

.login-page .login-info-banner i {
    margin-top: 1px;
    font-size: 15px;
}

.login-page .login-info-banner strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
}

.login-page .login-info-banner p {
    margin: 3px 0 0;
    color: #526d8c;
    font-size: 12px;
}

/* TWO-COLUMN LAYOUT */

.login-page .login-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    align-items: stretch;
}

.login-page .login-card {
    min-width: 0;
    padding: 16px 26px 25px;

    background: #fff;
    border: 1px solid #bcbcbc;
    border-radius: 13px;
}

.login-page .login-card h1,
.login-page .login-card h2 {
    color: #111;
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 5px;
}

.login-page .login-card-subtitle {
    color: #999;
    font-size: 15px;
    margin: 0 0 20px;
}

/* INPUT FIELDS */

.login-page .login-field {
    margin-bottom: 13px;
}

.login-page .login-field label {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #68809b;
    font-size: 13px;
    margin-bottom: 5px;
}

.login-page .login-field label i {
    font-size: 15px;
}

.login-page .login-field > input,
.login-page .login-password-wrap input {
    width: 100%;
    height: 47px;

    padding: 0 13px;
    background: #c7dff7;

    border: 1px solid #348eea;
    border-radius: 13px;

    color: #191a2c;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.login-page .login-field input::placeholder {
    color: #8faac6;
}

.login-page .login-field input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px #348eea20;
}

/* PASSWORD INPUT */

.login-page .login-password-wrap {
    position: relative;
}

.login-page .login-password-wrap input {
    padding-right: 50px;
}

.login-page .login-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 0;
    color: #8faac6;
    font-size: 21px;
    cursor: pointer;
}

/* FORGOT PASSWORD */

.login-page .login-forgot {
    display: block;
    margin: -6px 0 18px 15px;
    padding: 0;

    border: 0;
    background: transparent;

    color: #f04444;
    font-size: 11px;
    cursor: pointer;
}

/* MAIN BUTTONS */

.login-page .login-submit {
    width: 100%;
    min-height: 47px;

    border: 1px solid #348eea;
    border-radius: 13px;

    background: #29283d;
    color: #fff;

    font-family: inherit;
    font-size: 21px;
    font-weight: 400;

    cursor: pointer;
    transition: background 0.2s ease;
}

.login-page .login-submit:hover {
    background: #3a3857;
}

/* DIVIDER */

.login-page .login-divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 21px 0 18px;
}

.login-page .login-divider span {
    height: 1px;
    background: #ccd4de;
    flex: 1;
}

.login-page .login-divider small {
    white-space: nowrap;
    color: #68809b;
    font-size: 10px;
}

/* GOOGLE BUTTON */

.login-page .login-google {
    width: 100%;
    min-height: 47px;

    border: 1px solid #348eea;
    border-radius: 13px;

    background: #c7dff7;
    color: #8faac6;

    font-family: inherit;
    font-size: 19px;
}

.login-page .login-google-g {
    display: inline-block;
    margin-right: 6px;
    font-weight: 700;
    color: #4285f4;
}

/* PASSWORD STRENGTH */

.login-page .login-strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 10px 12px 5px;
}

.login-page .login-strength-bars span {
    height: 3px;
    border-radius: 5px;
    background: #c7c7c7;
}

.login-page .login-strength-bars span.filled {
    background: #59db70;
}

.login-page .login-strength-text {
    display: block;
    margin-left: 12px;
    color: #68809b;
    font-size: 10px;
}

/* TERMS */

.login-page .login-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 17px;
}

.login-page .login-terms input {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    accent-color: #348eea;
    cursor: pointer;
}

.login-page .login-terms label {
    color: #68809b;
    font-size: 12px;
    line-height: 1.7;
}

.login-page .login-terms a {
    color: #348eea;
    text-decoration: none;
}

.login-page .login-terms a:hover {
    text-decoration: underline;
}

/* FORM MESSAGES */

.login-page .login-form-message {
    font-size: 12px;
    margin: 0 0 10px;
    min-height: 0;
}

.login-page .login-form-message:empty {
    display: none;
}

.login-page .login-form-message.error {
    color: #d62828;
}

.login-page .login-form-message.success {
    color: #188b43;
}

/* BROWSE WITHOUT ACCOUNT */

.login-page .login-browse {
    margin-top: 20px;
    text-align: center;
    color: #68809b;
    font-size: 13px;
}

.login-page .login-browse a {
    color: #348eea;
    text-decoration: none;
}

.login-page .login-browse a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 767px) {

    .login-page .login-main {
        padding: 20px 15px 30px;
    }

    .login-page .login-info-banner {
        padding: 12px 15px;
    }

    .login-page .login-grid {
        grid-template-columns: 1fr;
    }

    .login-page .login-card {
        padding: 20px 17px;
    }

    .login-page .login-card h1,
    .login-page .login-card h2 {
        font-size: 22px;
    }

    .login-page .login-submit {
        font-size: 18px;
    }
}

/* HIDE PROFILE ICON FOR GUESTS */

.tryon-account[hidden] {
    display: none !important;
}

/* ==========================================
   CUSTOMER LOGIN - CONNECTED TO DJANGO
   Red border on the field that needs fixing.
========================================== */

.login-page .login-field input.login-input-invalid,
.login-page .login-password-wrap input.login-input-invalid {
    border-color: #d62828;
    background: #fdecec;
}

.login-page .login-terms input.login-input-invalid {
    outline: 2px solid #d62828;
    outline-offset: 2px;
}

.login-page .login-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}


/* ==========================================
   CUSTOMER PROFILE - CHANGE PASSWORD (2026-10-20)
========================================== */

.profile-page .profile-change-password {
    width: 100%;
    min-height: 47px;
    margin: 14px 0 10px;

    background: #fff;
    border: 1px solid #348eea;
    border-radius: 12px;

    color: #29283d;
    font-size: 17px;
    cursor: pointer;
}

.profile-page .profile-change-password:hover {
    background: #eef6ff;
}

.profile-page .profile-change-password i {
    margin-right: 6px;
    color: #348eea;
}

.profile-page .profile-password-help {
    color: #5c6b7a;
    font-size: 13px;
}


/* ==========================================
   PRODUCTS PAGE - CONNECTED TO THE CLINIC CATALOG (2026-10-21)
   Same card design; these rules only add the "Few left" / "Out of stock"
   badges, the loading/empty message, and keep the original layout
   (3 cards, then 2 wider cards) for any number of products.
   ========================================== */

.products-page .product-stock.few-left {
    background: #e3e58b;
    color: #6e681b;
}

.products-page .product-stock.out-of-stock {
    background: #e1e4e8;
    color: #5b6570;
}

.products-page .products-message {
    grid-column: 1 / -1;
    margin: 0;
    padding: 30px 15px;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;

    color: #7a8ca3;
    font-size: 14px;
    text-align: center;
}

@media (min-width: 992px) {
    .products-page .catalog-grid .product-card,
    .products-page .catalog-grid .product-card:nth-child(4),
    .products-page .catalog-grid .product-card:nth-child(5) {
        grid-column: span 2;
    }

    .products-page .catalog-grid .product-card.product-card-wide {
        grid-column: span 3;
    }

    .products-page .catalog-grid .product-card.product-card-center {
        grid-column: 3 / span 2;
    }
}


/* ==========================================
   PROFILE - SAVED ITEMS FROM THE SERVER (2026-10-21)
   ========================================== */

.profile-page .profile-stock.out-of-stock {
    background: #e1e4e8;
    color: #5b6570;
}


/* ==========================================
   SHARED HEADER - SAME ON EVERY PAGE (2026-10-21)
   Same padding, same link spacing and the bigger profile icon
   (the Try-on page size) on Home, Products, Try on, Profile, Sign in.
   ========================================== */

.navbar .tryon-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;

    border-radius: 50%;
    color: #348eea;
    font-size: 29px;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar .tryon-account:hover,
.navbar .tryon-account:focus-visible {
    background-color: rgba(52, 142, 234, 0.15);
    color: #fff;
}

.navbar .tryon-account i {
    font-size: 29px;
    line-height: 1;
}

@media (max-width: 991px) {
    /* Inside the opened mobile menu: icon under the links, aligned with them */
    .navbar .navbar-collapse .tryon-account {
        margin: 6px 0 10px;
    }
}

/* ==========================================
   FOOTER INQUIRY BUTTON (2026-10-21)
   ========================================== */

.footer-inquiry-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 20px;

    border: none;
    border-radius: 10px;
    background-color: var(--dark);
    box-shadow: 0 3px 2px #aaa;

    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.footer-inquiry-button:hover {
    background-color: #41425b;
}


/* ==========================================
   PRODUCTS PAGE - FILTERS (2026-10-21)
   Same look as the page: white boxes, grey border, rounded corners.
   ========================================== */

.products-page .products-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;

    margin: 0 0 10px;
    padding: 14px 16px;

    background: #fff;
    border: 1px solid #bcbcbc;
    border-radius: 12px;
}

.products-page .products-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

.products-page .products-filter[hidden] {
    display: none;
}

.products-page .products-filter label {
    color: #68809b;
    font-size: 12px;
}

.products-page .products-filter-select {
    height: 38px;
    padding: 0 34px 0 12px;

    border: 1px solid #bcbcbc;
    border-radius: 10px;
    background-color: #fff;

    color: #29283d;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.products-page .products-filter-select:focus {
    outline: none;
    border-color: #348eea;
    box-shadow: 0 0 0 3px rgba(52, 142, 234, 0.2);
}

.products-page .products-filter-check {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;

    color: #29283d;
    font-size: 13px;
    cursor: pointer;
}

.products-page .products-filter-check input {
    width: 16px;
    height: 16px;
    accent-color: #29283d;
}

.products-page .products-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    margin-left: auto;
    padding: 0 16px;

    border: 1px solid #bcbcbc;
    border-radius: 10px;
    background: #fff;

    color: #29283d;
    font-size: 13px;
    cursor: pointer;
}

.products-page .products-filter-clear:hover {
    background: #f0f5fa;
}

.products-page .products-count {
    margin: 0 0 12px 4px;
    color: #68809b;
    font-size: 12px;
}

@media (max-width: 600px) {
    .products-page .products-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .products-page .products-filter {
        min-width: 0;
    }

    .products-page .products-filter-clear {
        margin-left: 0;
        justify-content: center;
    }
}


/* ==========================================
   PROFILE - REMOVE SAVED ITEM, MY INQUIRIES, DELETE ACCOUNT (2026-10-21)
   ========================================== */

.profile-page .profile-item-remove {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    align-self: center;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 9px;
    background: #29283d;
    color: #ff6275;
    font-size: 14px;
    cursor: pointer;
}

.profile-page .profile-item-remove:hover {
    background: #3c3a57;
}

.profile-page .profile-inquiry-card {
    cursor: pointer;
}

.profile-page .profile-inquiry-card:hover,
.profile-page .profile-inquiry-card:focus-visible {
    border-color: #348eea;
    outline: none;
}

.profile-page .profile-inquiry-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-page .profile-inquiry-message {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.profile-page .profile-inquiry-message.from-me {
    align-self: flex-end;
    background: #e5f0fc;
    border: 1px solid #c6ddf6;
}

.profile-page .profile-inquiry-message.from-clinic {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #bcbcbc;
}

.profile-page .profile-inquiry-meta {
    margin-bottom: 4px;
    color: #68809b;
    font-size: 11px;
}

.profile-page .profile-inquiry-body {
    color: #191a2c;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.profile-page #profileInquiryStatus {
    display: inline-block;
    margin-top: 4px;
}

.profile-page .profile-delete-account {
    display: block;
    margin: 12px auto 0;
    padding: 4px 8px;

    border: none;
    background: transparent;

    color: #d62828;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.profile-page .profile-delete-account:hover {
    color: #a51d1d;
}


/* ==========================================
   RESET PASSWORD PAGE (2026-10-21) - same look as Sign in
   ========================================== */

.login-page .login-grid.login-grid-single {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.login-page .login-submit-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Header + profile fixes (2026-10-21) */
.profile-page a.profile-edit-text {
    text-decoration: none;
}

@media (max-width: 991px) {
    .navbar .navbar-collapse .tryon-account {
        display: flex;
        margin: 6px auto 10px;
    }
}


/* ==========================================
   PRODUCT PAGE (2026-10-22) - same look as the Products cards
   ========================================== */

.products-page .product-name-link {
    color: inherit;
    text-decoration: none;
}

.products-page .product-name-link:hover,
.products-page .product-name-link:focus-visible {
    text-decoration: underline;
}

.products-page .product-image-link {
    cursor: pointer;
}

.product-detail-page .product-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    color: #348eea;
    font-size: 14px;
    text-decoration: none;
}

.product-detail-page .product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.product-detail-page .product-detail-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    padding: 24px;
    overflow: hidden;

    background: #fff;
    border: 1px solid #bcbcbc;
    border-radius: 12px;
    box-shadow: 0 2px 2px #00000020;
    cursor: zoom-in;
}

.product-detail-page .product-detail-image.zoomed {
    cursor: zoom-out;
}

.product-detail-page .product-detail-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.15s ease;
}

.product-detail-page .product-detail-image.zoomed img {
    transform: scale(2.3);
}

.product-detail-page .product-detail-hint {
    margin: 8px 0 0;
    color: #68809b;
    font-size: 12px;
    text-align: center;
}

.product-detail-page .product-detail-info {
    padding: 22px 22px 18px;
    background: #fff;
    border: 1px solid #bcbcbc;
    border-radius: 12px;
    box-shadow: 0 2px 2px #00000020;
}

.product-detail-page .product-detail-category {
    margin: 0 0 4px;
    color: #68809b;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-detail-page .product-detail-name {
    margin: 0;
    color: #348eea;
    font-size: 30px;
    font-weight: 400;
}

.product-detail-page .product-detail-meaning {
    margin: 4px 0 10px;
    color: #5c6b7a;
    font-size: 14px;
    font-style: italic;
}

.product-detail-page .product-detail-price {
    margin: 0 0 8px;
    color: #29283d;
    font-size: 22px;
    font-weight: 600;
}

.product-detail-page .product-detail-facts {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 8px 12px;
    margin: 16px 0 18px;
    padding-top: 14px;
    border-top: 1px solid #e3e8ee;
    font-size: 13px;
}

.product-detail-page .product-detail-facts dt {
    color: #68809b;
    font-weight: 500;
}

.product-detail-page .product-detail-facts dd {
    margin: 0;
    color: #191a2c;
}

@media (max-width: 900px) {
    .product-detail-page .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail-page .product-detail-image {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .product-detail-page .product-detail-facts {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .product-detail-page .product-detail-facts dd {
        margin-bottom: 8px;
    }

    .product-detail-page .product-detail-name {
        font-size: 24px;
    }
}


/* Best Sellers: "Best seller" / "New arrival" label above the name (2026-10-22) */
.bestseller-label {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 12px;
    border-radius: 20px;
    background: #91e3a6;
    color: #126b27;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bestseller-label.is-new {
    background: #cfe4fb;
    color: #1d5f9e;
}

/* ==========================================
   TRY-ON STEP 3-4 CONNECTED (2026-10-22)
   ========================================== */

.tryon-page .tryon-face-choice {
    margin-top: 12px;
}

.tryon-page .tryon-face-choice .tryon-input {
    width: 100%;
}

/* Frame photos with a white background blend into the face preview. */
.tryon-page #tryonGlassesOverlay {
    mix-blend-mode: multiply;
}

.tryon-page #recommendedContactImage {
    max-width: 140px;
    max-height: 100px;
    object-fit: contain;
}

.tryon-page .tryon-frame-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}


/* ==========================================
   FOOTER "SEND AN INQUIRY" AS A PLAIN LINK (2026-10-22)
   Same look as "Eye exam guide", "Contact us" and "FAQs".
   ========================================== */

.footer-section ul li .footer-link-button {
    padding: 0;
    border: none;
    background: none;
    color: #a3a3a3;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.footer-section ul li .footer-link-button:hover {
    color: var(--blue);
}

.footer-section ul li .footer-link-button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}


/* ==========================================
   TRY-ON STEP 2: "Choose one" + lighter placeholders (2026-10-22)
   ========================================== */

.tryon-page #prescriptionType.is-empty {
    color: #a7b1bc;
}

.tryon-page #prescriptionType option {
    color: #222;
}

.tryon-page #prescriptionType option[value=""] {
    color: #a7b1bc;
}

.tryon-page .tryon-eye-grades input {
    margin-top: 4px;
    padding: 4px 6px;
    border: 1px solid #e3e8ee;
    border-radius: 5px;
    background: #fafbfd;
}

.tryon-page .tryon-eye-grades input:focus {
    border-color: #348eea;
    background: #fff;
}

.tryon-page .tryon-eye-grades input::placeholder {
    color: #b3bcc6;
    font-weight: 400;
    font-size: 13px;
    opacity: 1;
}


/* ==========================================
   TRY-ON STEP 4: Frames <-> Contact lenses switch, previous arrow (2026-10-22)
   ========================================== */

.tryon-page .tryon-choose-title {
    margin-bottom: 4px;
}

.tryon-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    margin-left: -10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.tryon-mode-switch:hover {
    border-color: #cfe2f7;
    background: #fff;
}

.tryon-mode-switch:focus-visible {
    outline: 2px solid #348eea;
    outline-offset: 2px;
}

.tryon-mode-switch .bi-arrow-left-right {
    color: #348eea;
    font-size: 0.8em;
}

.tryon-mode-hint {
    margin: 0 0 18px;
    font-size: 13px;
}

.tryon-frame-count {
    margin: 2px 0 0;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.tryon-lens-note {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #29293c;
    font-size: 12px;
    text-align: center;
}

.tryon-virtual-placeholder .tryon-lens-note {
    position: static;
    margin-top: 10px;
}


/* ==========================================
   TRY-ON: AI FACE SHAPE + LIVE 3D TRY-ON (step 18, 2026-10-22)
   ========================================== */

/* Step 1: "No face detected" message and the skip button */
.tryon-page .tryon-scan-error {
    margin: 10px 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fdecea;
    color: #a12622;
    font-size: 14px;
}

.tryon-page .tryon-actions .tryon-btn-skip {
    margin-right: auto;
    padding: 10px 4px;
    border: none;
    background: none;
    color: #348eea;
    font-size: 15px;
    text-decoration: underline;
    cursor: pointer;
}

/* Step 3: "Which looks more like you?" buttons when the AI is not sure */
.tryon-ai-choices {
    margin: 10px 0 4px;
}

.tryon-ai-choice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tryon-ai-choice {
    padding: 6px 14px;
    border: 1px solid #348eea;
    border-radius: 20px;
    background: #fff;
    color: #348eea;
    font-size: 14px;
    cursor: pointer;
}

.tryon-ai-choice[aria-pressed="true"],
.tryon-ai-choice:hover {
    background: #348eea;
    color: #fff;
}

/* Step 4: live camera / photo buttons, stage, status and sliders */
.tryon3d-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.tryon3d-modes {
    display: flex;
    gap: 10px;
}

.tryon3d-modes .tryon3d-mode {
    flex: 1;
    min-height: 44px;
    margin: 0;
}

.tryon3d-modes .tryon3d-mode:disabled {
    opacity: 0.45;
    cursor: default;
}

.tryon-page .tryon-preview-panel {
    position: relative;
    padding: 8px;
}

.tryon3d-stage {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #222;
}

.tryon3d-stage > video,
.tryon3d-stage > img#virtualFaceImage,
.tryon3d-stage > canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.tryon3d-stage > canvas {
    pointer-events: none;
}

/* The camera is shown like a mirror (video and 3D frame together) */
.tryon3d-stage.mirrored {
    transform: scaleX(-1);
}

.tryon-page .tryon3d-stage #tryonGlassesOverlay {
    position: absolute;
    left: 25%;
    top: 35%;
    width: 50%;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.tryon3d-status {
    min-height: 20px;
    margin: 0;
    color: #555;
    font-size: 14px;
    text-align: center;
}

.tryon3d-adjust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
    font-size: 13px;
    color: #555;
}

.tryon3d-adjust[hidden] {
    display: none;
}

.tryon3d-adjust label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tryon3d-adjust input[type="range"] {
    width: 120px;
    accent-color: #348eea;
}


/* ==========================================
   PRODUCT PAGE: FRONT / SIDE PHOTOS (step 20, 2026-10-23)
   ========================================== */

.product-detail-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.product-detail-thumbs[hidden] {
    display: none;
}

.product-detail-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 96px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.product-detail-thumb img {
    width: 100%;
    height: 48px;
    object-fit: contain;
}

.product-detail-thumb.selected,
.product-detail-thumb:hover {
    border-color: #348eea;
    color: #348eea;
}

.tryon-side-hint {
    margin: 0;
    text-align: center;
    color: #348eea;
    font-size: 13px;
}


/* ==========================================
   STEP 21 (2026-10-25): consent, retake, mirror camera, step indicator,
   3D view, profile recommendations
   ========================================== */

/* ---------- Try-on Step 1: camera like a mirror + take / retake ---------- */
.tryon-page #faceVideo {
    transform: scaleX(-1);              /* like a phone's front camera */
}
.tryon-camera-box {
    flex-direction: column;
}
.tryon-capture-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px 14px;
}
.tryon-capture-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid #348eea;
    border-radius: 12px;
    background: #348eea;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}
.tryon-capture-btn:hover {
    background: #2a7bd0;
}
.tryon-capture-btn.is-light {
    background: #444453;
    border-color: #777;
}
.tryon-capture-btn.is-light:hover {
    background: #55556a;
}
.tryon-capture-btn i {
    font-size: 17px;
}
.tryon-no-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 520px;
    padding: 26px 20px;
    color: #fff;
    text-align: center;
}
.tryon-no-consent > i {
    font-size: 54px;
    color: #87b9ee;
}
.tryon-no-consent p {
    margin: 0;
    color: #d6d9e0;
    font-size: 14px;
}
.tryon-link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: #348eea;
    font-size: inherit;
    text-decoration: underline;
}
.tryon-consent-status {
    margin: 6px 0 0;
    text-align: center;
    color: #2f7d4f;
    font-size: 12px;
}
.tryon-consent-status a {
    color: #348eea;
}

/* ---------- Face scan notice ---------- */
.tryon-consent .modal-header,
.tryon-consent .modal-footer {
    border-color: #e3e7ee;
}
.tryon-consent .modal-title {
    color: #348eea;
    font-size: 20px;
    font-weight: 500;
}
.tryon-consent .modal-body {
    color: #444;
    font-size: 14px;
}
.tryon-consent h3 {
    margin: 16px 0 6px;
    color: #29293c;
    font-size: 15px;
    font-weight: 600;
}
.tryon-consent ul {
    margin: 0;
    padding-left: 20px;
}
.tryon-consent li {
    margin-bottom: 4px;
}
.tryon-consent-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #348eea;
    border-radius: 10px;
    background: #eef5fd;
    color: #29293c;
    font-weight: 500;
    cursor: pointer;
}
.tryon-consent-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #348eea;
}
.tryon-consent-error {
    margin: 8px 0 0;
    color: #c0392b;
    font-size: 13px;
}
.tryon-consent-version {
    margin: 10px 0 0;
    color: #999;
    font-size: 11px;
}
.tryon-consent .modal-footer {
    justify-content: space-between;
    gap: 10px;
}
.tryon-consent .modal-footer .tryon-btn-next:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.tryon-virtual-placeholder .tryon-camera-btn {
    margin-top: 6px;
}

/* ---------- Step indicator under the menu (computers) ---------- */
.tryon-heading-row {
    position: relative;
}
.tryon-progress.is-aligned {
    position: absolute;
    top: 6px;
    margin: 0;
}
.tryon-progress.is-aligned.is-below {
    position: relative;
    top: 0;
    grid-column: 1 / -1;
    margin-top: -12px;
}

/* ---------- Products: 3D button on frame cards ---------- */
.product-image-area {
    position: relative;
}
.product-3d-link {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #29293c;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
}
.product-3d-link:hover {
    background: #348eea;
    color: #fff;
}

/* ---------- Product page: 3D view ---------- */
.product-detail-page .product-detail-image.is-3d {
    cursor: grab;
    padding: 0;
    background: radial-gradient(circle at 50% 45%, #ffffff 0%, #eef3f8 75%);
}
.product-detail-page .product-detail-image.is-3d:active {
    cursor: grabbing;
}
.product-detail-3d {
    width: 100%;
    height: 100%;
    touch-action: none;                 /* swipe turns the frame instead of scrolling */
}
.product-detail-thumb[hidden] {
    display: none;
}
.product-detail-3d-icon {
    display: grid;
    place-items: center;
    width: 100%;
    height: 48px;
    font-size: 30px;
    color: #348eea;
}

/* ---------- Profile: saved recommendations ---------- */
.profile-reco-card {
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
}
.profile-reco-card.is-latest {
    border-color: #348eea;
}
.profile-reco-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.profile-reco-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #29293c;
}
.profile-reco-head p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #68809b;
}
.profile-reco-remove {
    position: static;
    flex: 0 0 auto;
}
.profile-reco-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin: 12px 0;
}
.profile-reco-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border: 1px solid #e3e7ee;
    border-radius: 10px;
    color: #29293c;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}
.profile-reco-item:hover {
    border-color: #348eea;
    color: #348eea;
}
.profile-reco-item img {
    width: 100%;
    height: 54px;
    object-fit: contain;
}
.profile-reco-item small {
    color: #68809b;
    font-size: 11px;
}
.profile-reco-tryon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    background: #29293c;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}
.profile-reco-tryon:hover {
    background: #348eea;
    color: #fff;
}
.profile-reco-more {
    padding: 0;
    border: 0;
    background: none;
    color: #348eea;
    font-size: 13px;
}
.profile-consent-actions {
    padding: 0 14px 12px;
    text-align: right;
}
.profile-consent-withdraw {
    padding: 0;
    border: 0;
    background: none;
    color: #c0392b;
    font-size: 12px;
    text-decoration: underline;
}


/* ==========================================================================
   STEP 22 (2026-10-25): UI POLISH - transitions, animations, phone navigation
   Same design as before (Figma); this only adds motion and a friendlier phone menu.
   Everything here is switched off for "reduce motion" (bottom of this section).
   ========================================================================== */

:root {
    --soe-ease: cubic-bezier(0.22, 0.7, 0.2, 1);
    --soe-fast: 0.18s;
    --soe-tabbar-h: 64px;
}

/* ---------- smooth page changes ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.28s; animation-timing-function: var(--soe-ease); }

html.soe-anim body { animation: soeFadeIn 0.45s var(--soe-ease) both; }
html { scroll-behavior: smooth; }

@keyframes soeFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes soeFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes soePop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes soePulse { 0% { box-shadow: 0 0 0 0 rgba(52, 142, 234, 0.45); } 100% { box-shadow: 0 0 0 10px rgba(52, 142, 234, 0); } }
@keyframes soeDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- fade in while scrolling (classes added by script.js) ---------- */
html.soe-anim .soe-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--soe-ease), transform 0.6s var(--soe-ease);
    transition-delay: var(--soe-d, 0ms);
}
html.soe-anim .soe-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- buttons and links react to the pointer / a tap ---------- */
.btn, .hero-buttons a, .product-tryon, .product-favorite, .products-tab, .products-filter-clear,
.tryon-btn-next, .tryon-btn-back, .tryon-btn-skip, .tryon-option, .tryon-camera-btn, .tryon-capture-btn,
.tryon-frame-arrow, .tryon-favorite, .profile-change-password, .profile-logout, .profile-reco-tryon,
.profile-item-remove, .product-detail-thumb, .help-button, .soe-filters-toggle, .login-card button {
    transition: transform var(--soe-fast) var(--soe-ease), box-shadow 0.25s var(--soe-ease),
                background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.btn:active, .hero-buttons a:active, .product-tryon:active, .product-favorite:active, .products-tab:active,
.tryon-btn-next:active, .tryon-btn-back:active, .tryon-option:active, .tryon-camera-btn:active,
.tryon-capture-btn:active, .tryon-frame-arrow:active, .tryon-favorite:active, .profile-change-password:active,
.profile-logout:active, .profile-reco-tryon:active, .product-detail-thumb:active, .help-button:active,
.soe-filters-toggle:active, .login-card button:active {
    transform: scale(0.97);
}
@media (hover: hover) {
    .hero-buttons a:hover, .product-tryon:hover, .tryon-btn-next:hover:not(:disabled),
    .profile-reco-tryon:hover, .help-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(28, 61, 96, 0.18);
    }
}
:where(a, button, select, input, [tabindex]):focus-visible {
    outline: 3px solid rgba(52, 142, 234, 0.45);
    outline-offset: 2px;
}

/* ---------- cards ---------- */
.product-card, .feature-card, .step-card, .profile-reco-card, .profile-item-card, .tryon-card {
    transition: transform 0.3s var(--soe-ease), box-shadow 0.3s var(--soe-ease);
}
.products-page .product-image, .bestseller-section img {
    transition: transform 0.45s var(--soe-ease);
}
@media (hover: hover) {
    .product-card:hover, .feature-card:hover, .step-card:hover, .profile-reco-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 26px rgba(28, 61, 96, 0.14);
    }
    .product-card:hover .product-image { transform: scale(1.05); }
}
/* product cards slide in one after another (also after changing a filter) */
html.soe-anim .catalog-grid > .product-card {
    animation: soeFadeUp 0.5s var(--soe-ease) both;
    animation-delay: calc(var(--soe-i, 0) * 55ms);
}
/* heart pops when a product is saved */
.product-favorite.selected i, .tryon-favorite[aria-pressed="true"] i, .profile-item-remove i {
    display: inline-block;
}
.product-favorite.selected i, .tryon-favorite[aria-pressed="true"] i { animation: soePop 0.4s var(--soe-ease); }
.products-message { animation: soeFadeIn 0.4s ease both; }

/* ---------- product page ---------- */
.product-detail-page .product-detail-image img { transition: transform 0.2s ease, opacity 0.25s ease; }
.product-detail-thumb.selected { box-shadow: 0 0 0 3px rgba(52, 142, 234, 0.18); }

/* ---------- try-on ---------- */
html.soe-anim .tryon-step.active { animation: soeFadeUp 0.45s var(--soe-ease) both; }
.tryon-progress-dot { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--soe-ease); }
.tryon-progress-dot.active { transform: scale(1.08); animation: soePulse 1.6s ease-out 0.3s 2; }
.tryon-progress-dot.completed { animation: soePop 0.4s var(--soe-ease); }
.tryon-option.selected { animation: soePop 0.35s var(--soe-ease); }
.tryon-camera-box video, .tryon-camera-box img { animation: soeFadeIn 0.4s ease both; }
.tryon-capture-bar { animation: soeDrop 0.3s var(--soe-ease) both; }

/* ---------- pop-ups (Bootstrap modals): rise in gently ---------- */
.modal.fade .modal-dialog { transform: translateY(18px) scale(0.98); transition: transform 0.32s var(--soe-ease); }
.modal.show .modal-dialog { transform: none; }
.modal-content { border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(28, 61, 96, 0.25); }

/* ---------- header: a stronger shadow once the page is scrolled ---------- */
.navbar { transition: box-shadow 0.3s ease, min-height 0.3s var(--soe-ease); }
.navbar.soe-scrolled { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); }
.navbar-nav .nav-link { transition: color 0.2s ease, border-color 0.25s ease; }
.soe-nav-icon, .soe-account-label { display: none; }

/* ==========================================================================
   FOLDED MENU (tablets, 768-991 px): opens as a small card with icons
   ========================================================================== */
@media (max-width: 991px) {
    .navbar .navbar-toggler {
        border: 0;
        padding: 8px;
        border-radius: 12px;
        box-shadow: none !important;
        transition: background-color 0.2s ease;
    }
    .navbar .navbar-toggler:hover { background: rgba(255, 255, 255, 0.08); }
    .navbar .navbar-toggler-icon { transition: transform 0.3s var(--soe-ease), background-image 0.2s; }
    .navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        transform: rotate(90deg);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-width='2.4' d='M8 8l14 14M22 8L8 22'/%3e%3c/svg%3e");
    }
    .navbar .navbar-collapse {
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        z-index: 1050;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(28, 61, 96, 0.25);
        padding: 0 10px;
    }
    .navbar .navbar-collapse.show, .navbar .navbar-collapse.collapsing { padding: 10px; }
    .navbar .navbar-collapse.show { animation: soeDrop 0.28s var(--soe-ease) both; }
    .navbar .navbar-collapse .navbar-nav { gap: 4px; margin: 0 !important; }
    .navbar .navbar-collapse .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px !important;
        border: 0 !important;
        border-radius: 12px;
        color: #2b3a4f;
        font-size: 16px;
        text-align: left;
    }
    .navbar .navbar-collapse .nav-link:hover { background: #f1f6fc; color: var(--navy); }
    .navbar .navbar-collapse .nav-link.active { background: #e7f1fc; color: var(--blue); font-weight: 500; }
    .navbar .navbar-collapse .soe-nav-icon { display: inline-block; width: 22px; font-size: 19px; text-align: center; }
    .navbar .navbar-collapse .tryon-account {
        display: flex !important;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        height: auto;
        margin: 6px 0 0 !important;
        padding: 12px 14px;
        border-top: 1px solid #edf1f6;
        border-radius: 0 0 12px 12px;
        color: #2b3a4f;
        font-size: 16px;
    }
    .navbar .navbar-collapse .tryon-account i { width: 22px; font-size: 20px; text-align: center; color: var(--blue); }
    .navbar .navbar-collapse .tryon-account:hover { background: #f1f6fc; color: var(--navy); }
    .navbar .navbar-collapse .soe-account-label { display: inline; }
    /* dim the page behind the opened menu */
    body.soe-nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1020;
        background: rgba(16, 30, 48, 0.35);
        animation: soeFadeIn 0.25s ease both;
    }
    body.soe-nav-open .navbar { z-index: 1040; }
}

/* ==========================================================================
   PHONES (up to 767 px): bottom tab bar instead of the folded menu
   ========================================================================== */
.soe-tabbar { display: none; }

@media (max-width: 767px) {
    .navbar .navbar-toggler, .navbar .navbar-collapse { display: none !important; }
    .navbar { min-height: 62px; }
    .navbar > .container-fluid { padding-left: 16px; padding-right: 16px; justify-content: center; }
    .navbar .logo-icon { width: 56px; height: 42px; }
    .navbar .brand-text span { font-size: 17px; }
    .navbar .brand-text small { font-size: 12px; }

    .soe-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        height: calc(var(--soe-tabbar-h) + env(safe-area-inset-bottom));
        padding: 6px 8px env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-top: 1px solid #e3e9f1;
        box-shadow: 0 -6px 20px rgba(28, 61, 96, 0.08);
        animation: soeFadeUp 0.4s var(--soe-ease) both;
    }
    .soe-tab {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border-radius: 14px;
        color: #7a879a;
        font-size: 11px;
        font-weight: 500;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.2s ease, background-color 0.2s ease, transform var(--soe-fast) var(--soe-ease);
    }
    .soe-tab i { font-size: 21px; line-height: 1; transition: transform 0.25s var(--soe-ease); }
    .soe-tab:active { transform: scale(0.94); }
    .soe-tab.is-active { color: var(--blue); }
    .soe-tab.is-active i { transform: translateY(-1px); }
    .soe-tab.is-active::before {
        content: "";
        position: absolute;
        top: 2px;
        width: 34px;
        height: 3px;
        border-radius: 3px;
        background: var(--blue);
        animation: soeDrop 0.3s var(--soe-ease) both;
    }
    body.has-tabbar { padding-bottom: calc(var(--soe-tabbar-h) + env(safe-area-inset-bottom) + 8px); }
    body.has-tabbar .help-button { bottom: calc(var(--soe-tabbar-h) + env(safe-area-inset-bottom) + 14px); }

    /* Products: filters fold into a "Filters" button */
    .soe-filters-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin: 4px 0 10px;
        padding: 12px 16px;
        background: #fff;
        border: 1px solid #d5dde7;
        border-radius: 12px;
        color: #2b3a4f;
        font-size: 14px;
        font-weight: 500;
        text-align: left;
    }
    .soe-filters-toggle .soe-filters-chevron { margin-left: auto; transition: transform 0.3s var(--soe-ease); }
    .soe-filters-toggle[aria-expanded="true"] .soe-filters-chevron { transform: rotate(180deg); }
    .soe-filters-count {
        display: inline-grid;
        place-items: center;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        border-radius: 10px;
        background: var(--blue);
        color: #fff;
        font-size: 11px;
    }
    .soe-filters-count[hidden] { display: none; }
    .products-filters.soe-foldable:not(.soe-open) { display: none !important; }
    .products-filters.soe-foldable.soe-open { animation: soeDrop 0.3s var(--soe-ease) both; }
}
@media (min-width: 768px) {
    .soe-filters-toggle { display: none; }
}

/* ---------- less motion when the device asks for it ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html.soe-anim .soe-reveal { opacity: 1; transform: none; }
}

/* ---------- Step 22b: recommendation cards (Try-on Step 3) fit on phones/tablets ---------- */
.tryon-recommendation > div:first-child { flex: 1 1 0; min-width: 0; }
.tryon-recommendation-product h3 { overflow-wrap: anywhere; }
@media (max-width: 991px) {
    .tryon-recommendation {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 10px;
        min-height: 0;
    }
    .tryon-recommendation-product { order: -1; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
    .tryon-recommendation-product h3 { margin: 0; font-size: 20px; }
    .tryon-recommendation-product img { height: 110px; max-width: 220px; }
    .tryon-recommendation .tryon-lens-demo { width: 84px; height: 84px; }
    .tryon-recommendation > div:first-child:not(.tryon-recommendation-product) { flex: none; }
}

/* ==========================================================================
   STEP 24 (2026-10-30): homepage Best Sellers on phones
   - the line under the product name had a fixed 320px width, so "See more" was
     pushed off the right side of the screen -> the line follows the text width
   - the frame picture box was much taller than the (wide) frame photo, leaving big
     empty gaps -> the box follows the screen width; arrows stay on the picture
   ========================================================================== */
@media (max-width: 991.98px) {
    .product-name-container { flex: 1 1 auto; min-width: 0; }
    .product-line { width: 100%; max-width: 320px; }
}
@media (max-width: 767.98px) {
    .bestseller-section { padding-bottom: 32px; }
    .product-center { min-height: 0; height: clamp(140px, 40vw, 240px); }
    /* arrows on the middle of the picture (98px = section padding + title above it) */
    .product-arrow { top: calc(98px + clamp(140px, 40vw, 240px) / 2); }
    .product-image { width: 100%; height: 100%; max-height: none; }
    .bestseller-content { gap: 10px; min-height: 0; }
    .product-info-left, .product-info-right { padding-top: 0; }
    .product-bottom { margin-top: 18px; }
}
@media (max-width: 575.98px) {
    /* name and "See more" one under the other: nothing can push the button out */
    .product-bottom { flex-direction: column; align-items: stretch; gap: 14px; }
    .product-line { max-width: none; }
    .btn-see-more { align-self: flex-start; }
}

/* STEP 24: "?" guides on Try-on Step 2 (same look and behaviour as the Admin product form) */
.tryon-help {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 20px; height: 20px; margin-left: 6px; padding: 0; vertical-align: middle;
    border: 1px solid #b8c4d0; border-radius: 50%; background: #fff;
    color: #5b6b7b; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1;
    cursor: pointer; position: relative;
}
.tryon-help:hover, .tryon-help[aria-expanded="true"] { border-color: #1d3d5e; background: #1d3d5e; color: #fff; }
.tryon-help:focus-visible { outline: 2px solid #4a90d9; outline-offset: 2px; }
.tryon-help::after { content: ""; position: absolute; inset: -10px; }   /* bigger tap area */
.tryon-help-popover { max-width: 300px; font-size: 13px; }
.tryon-help-popover .popover-header { color: #1d3d5e; font-size: 13px; font-weight: 600; }
.tryon-help-popover .popover-body { color: #44515e; line-height: 1.5; }
.tryon-label-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 0; margin-bottom: 8px; }
.tryon-label-row .tryon-label { margin-bottom: 0; }
