:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #f97316;
    --secondary-dark: #ea580c;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-800: #1e293b;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-fast: 150ms ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    transition: var(--transition);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background: var(--white);
    padding-bottom: 100px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

.navbar {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    color: var(--gray);
    padding: 0.625rem 1.25rem !important;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Header alignment */
.main-header {
    min-height: 92px;
    padding: 0.65rem 0;
}

.main-header .header-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.header-logo img {
    display: block;
    width: auto;
    height: 54px;
    max-width: 260px;
    object-fit: contain;
}

.header-collapse {
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
}

.primary-nav {
    align-items: center;
    flex: 0 0 auto;
    gap: 0.35rem;
    margin-right: auto;
}

.main-header .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.65rem 1rem !important;
    line-height: 1;
    white-space: nowrap;
}

.main-header .nav-link.active {
    min-width: 82px;
}

.header-search {
    flex: 1 1 360px;
    max-width: 430px;
    min-width: 260px;
    margin: 0 clamp(0.5rem, 1.4vw, 1.5rem);
}

.header-search .input-group {
    height: 54px;
    flex-wrap: nowrap;
}

.header-search .input-group-text {
    width: 58px;
    justify-content: center;
    border-radius: 14px 0 0 14px;
}

.header-search .form-control {
    height: 54px;
    border-radius: 0 14px 14px 0;
    padding-top: 0;
    padding-bottom: 0;
}

.header-actions {
    align-items: center;
    flex: 0 0 auto;
    gap: 0.65rem;
}

.header-actions .nav-item {
    display: flex;
    align-items: center;
}

.header-icon-link {
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0 !important;
    color: var(--gray);
}

.header-icon-link:hover {
    background: var(--primary-light);
}

.header-icon-link .cart-count-badge {
    top: 0;
    right: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    line-height: 1;
}

.header-signup-btn {
    min-width: 150px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    padding: 0 1.75rem;
    font-size: 1.05rem;
    line-height: 1;
    white-space: nowrap;
}

.header-user-menu {
    margin-left: 0.25rem;
}

@media (max-width: 1399px) {
    .main-header .header-container {
        gap: 1.25rem;
    }

    .header-logo img {
        height: 48px;
        max-width: 230px;
    }

    .primary-nav {
        gap: 0.1rem;
    }

    .main-header .nav-link {
        padding-left: 0.8rem !important;
        padding-right: 0.8rem !important;
    }

    .header-search {
        max-width: 360px;
        min-width: 230px;
        margin-left: 0.35rem;
        margin-right: 0.35rem;
    }

    .header-actions {
        gap: 0.35rem;
    }

    .header-signup-btn {
        min-width: 128px;
        padding: 0 1.35rem;
    }
}

@media (max-width: 1199px) {
    .main-header {
        min-height: 82px;
    }

    .header-logo img {
        height: 42px;
        max-width: 205px;
    }

    .main-header .nav-link {
        font-size: 0.9rem;
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    .header-search {
        flex-basis: 280px;
        max-width: 300px;
        min-width: 210px;
    }
}

@media (max-width: 1199.98px) {
    .main-header {
        min-height: auto;
        padding: 0.75rem 0;
    }

    .main-header .header-container {
        gap: 1rem;
    }

    .header-logo img {
        height: 44px;
    }

    .header-collapse {
        gap: 1rem;
        padding-top: 1rem;
    }

    .primary-nav,
    .header-actions {
        align-items: stretch;
        width: 100%;
        gap: 0.4rem;
    }

    .main-header .nav-link {
        justify-content: flex-start;
        width: 100%;
        min-height: 44px;
    }

    .main-header .nav-link.active {
        min-width: 0;
    }

    .header-search {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        order: 2;
    }

    .header-actions {
        order: 3;
    }

    .header-icon-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.65rem 1rem !important;
    }

    .header-icon-link .cart-count-badge {
        left: 2rem;
        right: auto;
    }

    .header-signup-btn {
        width: 100%;
        min-width: 0;
        height: 48px;
        margin-top: 0.25rem;
    }
}

@media (max-width: 575px) {
    .header-logo img {
        height: 38px;
        max-width: 190px;
    }

    .header-search .input-group,
    .header-search .form-control {
        height: 50px;
    }

    .header-search .input-group-text {
        width: 52px;
    }
}



.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-weight: 700;
    padding: 0.875rem 2rem;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-section {
    background:
        linear-gradient(135deg, rgba(15,23,42,0.72) 0%, rgba(37,99,235,0.55) 60%, rgba(15,23,42,0.65) 100%),
        url('../images/hero-bg.webp') center center / cover no-repeat;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

/* Override text colours so they read on the dark photo */
.hero-section .text-gray { color: rgba(226,232,240,0.9) !important; }
.hero-section .text-gradient {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-section h1 { color: #fff; }
.hero-section .badge {
    background: rgba(255,255,255,0.15) !important;
    color: #bfdbfe !important;
    backdrop-filter: blur(8px);
}
.hero-section .border-top { border-color: rgba(255,255,255,0.15) !important; }
.hero-section .fw-bold.h3 { color: #93c5fd; }
.hero-section .text-gray.small,
.hero-section [style*="font-size: 0.9rem"] { color: rgba(203,213,225,0.85) !important; }

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.18) 0%, transparent 65%);
    pointer-events: none;
}

@keyframes float {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 3.5rem 0;
        min-height: auto;
        background-position: 70% center;
    }
}

/* Modern Optical Store UI Additions */
.transition-all { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-scale { transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease; }
.transition-translate { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease; }

.shadow-hover:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important; }
.group:hover .transition-scale { transform: scale(1.08); }
.group:hover .transition-translate { transform: translateY(0); opacity: 1 !important; }
.transition-translate { transform: translateY(10px); }

.aspect-ratio-1 { aspect-ratio: 1 / 1; }
.fw-black { font-weight: 900; }
.tracking-wider { letter-spacing: 0.05em; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.product-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .card-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 2.8em; /* Force exactly 2 lines height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .text-muted.small.line-clamp-1 {
    min-height: 1.5em; /* Force exactly 1 line height */
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .mt-auto {
    margin-top: auto;
}

.product-card .aspect-ratio-1 {
    aspect-ratio: 1 / 1;
    background-color: #f8f9fa;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
}

.product-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Ensure price and button are aligned at bottom */
.product-card .price-section {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-card .btn {
    width: 100%;
    border-radius: 50px;
    padding: 0.6rem 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-white { background: white; color: var(--dark); }
.btn-white:hover { background: #f8f9fa; transform: scale(1.1); }

.hover-text-primary:hover { color: var(--primary) !important; }

/* Filter Sidebar Modern Styles */
.filter-sidebar {
    border: none;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.filter-sidebar .card-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.5rem;
}

.filter-sidebar .card-body {
    padding: 1.5rem;
}

/* Custom Checkbox/Radio styling */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Range Slider Premium Look */
.dual-range-slider {
    position: relative;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 20px 0;
}

.slider-range {
    position: absolute;
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
}

.slider-input {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
}

.slider-input::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary);
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Shop Toolbar */
.shop-toolbar {
    background: white;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .filter-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .filter-sidebar.show {
        transform: translateY(0);
    }
}

.wishlist-btn:hover {
    background: #fef2f2;
    transform: scale(1.1);
}

.wishlist-btn i {
    color: #64748b;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}

.wishlist-btn:hover i {
    color: #ef4444;
}

.mobile-bottom-nav {
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav a {
    color: var(--gray);
    font-weight: 600;
    transition: var(--transition-fast);
}

.mobile-bottom-nav a:hover, .mobile-bottom-nav a.active {
    color: var(--primary);
}

.power-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.power-option {
    padding: 0.875rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    background: white;
}

.power-option:hover, .power-option.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.section-title {
    font-weight: 800;
    font-size: 2.25rem;
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.card {
    border: none;
    border-radius: var(--radius-lg);
}

.card-header {
    background: white;
    border-bottom: 1px solid #f1f5f9;
}

.benefit-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #fff;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #fff;
    position: relative;
}

.sticky-cart-btn {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #93c5fd;
    color: #fff;
    border: none;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: 1029;
    transition: var(--transition);
}

#newsletterBtn {
    background-color: #93c5fd;
    border-color: #93c5fd;
    color: #fff;
}

#newsletterBtn:hover {
    background-color: #60a5fa;
    border-color: #60a5fa;
}

.sticky-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.5);
}

@media (min-width: 768px) {
    .sticky-cart-btn {
        bottom: 40px;
        right: 40px;
    }
}

.price {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    color: #93c5fd;
}

.original-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 1.25rem;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 20px;
    font-weight: 800;
    padding: 1.1rem 2.5rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    font-size: 1.2rem;
    letter-spacing: 0.2px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 800;
    padding: 1.1rem 1.5rem;
}

.filter-sidebar {
    position: sticky;
    top: 100px;
}

/* Dual Range Slider Styles */
.dual-range-slider {
    position: relative;
    height: 6px;
    margin: 20px 0;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.slider-range {
    position: absolute;
    height: 6px;
    background: var(--primary);
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.slider-input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    top: 50%;
    transform: translateY(-50%);
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.slider-input::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.slider-input:focus {
    outline: none;
}

.slider-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.slider-input:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Product Gallery Styles */
.product-gallery .main-swiper {
    cursor: zoom-in;
}

.product-gallery .main-swiper .swiper-button-next,
.product-gallery .main-swiper .swiper-button-prev {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-gallery .main-swiper .swiper-button-next:after,
.product-gallery .main-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.product-gallery .thumb-swiper {
    padding: 10px 0;
}

.product-gallery .thumb-swiper .swiper-slide {
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1; /* Force equal-sized square boxes */
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-gallery .thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.product-gallery .thumb-swiper img {
    height: 100%;
    width: 100%;
    object-fit: contain; /* Keep product ratio clean inside the box */
    padding: 5px;
}

.product-gallery .main-swiper img {
    aspect-ratio: 1/1;
    object-fit: contain;
    background: #fff;
    padding: 20px;
}

@media (max-width: 768px) {
    .product-gallery .thumb-swiper img {
        padding: 3px;
    }
    .product-gallery .main-swiper img {
        padding: 10px;
    }
}

.gallery-main-link {
    display: block;
    width: 100%;
}

.related-products {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.review-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    background: white;
    box-shadow: var(--shadow-sm);
}

.rating-stars {
    color: #f59e0b;
}

.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 2px solid #e2e8f0;
    padding: 0.875rem 1.125rem;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.category-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.payment-option {
    transition: var(--transition);
    border: 2px solid #e2e8f0;
}

.payment-option:hover, .payment-option.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

.badge {
    font-weight: 700;
    padding: 0.5rem 0.875rem;
}

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-xl);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0f2fe 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-item {
    border-bottom: 1px solid #f1f5f9;
}

.cart-item:last-child {
    border-bottom: none;
}

.table-responsive {
    border-radius: var(--radius-lg);
}

.table {
    margin-bottom: 0;
}

.alert {
    border-radius: var(--radius-lg);
    border: none;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.progress {
    border-radius: 50px;
    height: 8px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--gray);
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 700;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-selector button {
    border: none;
    background: white;
    padding: 0.625rem 1.125rem;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quantity-selector button:hover {
    background: #f1f5f9;
}

.quantity-selector span {
    padding: 0.625rem 1.5rem;
    font-weight: 800;
    font-size: 1.125rem;
    border-left: 2px solid #e2e8f0;
    border-right: 2px solid #e2e8f0;
    min-width: 60px;
    text-align: center;
}

.upload-area {
    border: 3px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #f8fafc;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-area i {
    font-size: 3rem;
    color: var(--gray);
}

.upload-area:hover i {
    color: var(--primary);
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-xl);
    font-weight: 800;
    padding: 0.875rem 2rem;
}

/* ── Hero section — text on dark photo ──────────────────────────────────── */
.hero-section .lead { font-size: 1rem !important; }

@media (max-width: 575px) {
    .product-card .card-body { padding: 0.65rem 0.75rem; }
    .product-card .card-title { font-size: 0.78rem; }
    .product-card .price { font-size: 0.92rem; }
}

/* ═══════════════════════════════════════════════════════════
   LENSKART-INSPIRED HOMEPAGE STYLES
═══════════════════════════════════════════════════════════ */

/* ── Hero Banner ─────────────────────────────────────────── */
.lk-hero {
    position: relative;
    height: 520px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .lk-hero { height: 380px; }
}

.lk-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.lk-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10,15,40,0.78) 0%, rgba(10,15,40,0.45) 55%, rgba(10,15,40,0.1) 100%);
}

.lk-hero .container { position: relative; z-index: 2; height: 100%; }

.lk-hero__tag {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: #bfdbfe;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.lk-hero__title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.lk-hero__title span {
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lk-hero__sub {
    color: rgba(226,232,240,0.88);
    font-size: 1rem;
    margin-bottom: 1.75rem;
    max-width: 480px;
}

@media (max-width: 575px) {
    .lk-hero__title { font-size: 1.9rem; }
    .lk-hero__sub { font-size: 0.88rem; }
}

.lk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.lk-btn--white {
    background: #fff;
    color: #1d4ed8;
}

.lk-btn--white:hover {
    background: #dbeafe;
    color: #1d4ed8;
    transform: translateY(-2px);
}

.lk-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.lk-btn--outline:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: #fff;
}

/* ── Trust Bar ───────────────────────────────────────────── */
.lk-trust-bar {
    background: #1e293b;
    padding: 0.75rem 0;
}

.lk-trust-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.lk-trust-item:last-child { border-right: none; }

.lk-trust-item i {
    font-size: 1.4rem;
    color: #60a5fa;
    flex-shrink: 0;
}

.lk-trust-item strong {
    display: block;
    color: #f1f5f9;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.lk-trust-item span {
    color: #94a3b8;
    font-size: 0.72rem;
}

@media (max-width: 575px) {
    .lk-trust-item { padding: 0.4rem 0.5rem; gap: 0.4rem; }
    .lk-trust-item i { font-size: 1.1rem; }
    .lk-trust-item strong { font-size: 0.72rem; }
    .lk-trust-item span { font-size: 0.65rem; }
}

/* ── Section wrapper ─────────────────────────────────────── */
.lk-section {
    padding: 3rem 0;
}

.lk-section--gray {
    background: #f8fafc;
}

.lk-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.lk-section__head h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin: 0;
}

.lk-section__desc {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.lk-link-all {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}

.lk-link-all:hover { text-decoration: underline; }

/* ── Category Tiles ──────────────────────────────────────── */
.lk-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 767px) {
    .lk-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

.lk-cat-tile {
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    background: #fff;
}

.lk-cat-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.lk-cat-tile__img {
    height: 160px;
    background-size: cover;
    background-position: center;
}

@media (max-width: 575px) {
    .lk-cat-tile__img { height: 110px; }
}

.lk-cat-tile__body {
    padding: 0.75rem 0.9rem;
    background: #fff;
}

.lk-cat-tile__name {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: #0f172a;
}

.lk-cat-tile__sub {
    display: block;
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 0.1rem;
}

/* ── Offer Banners ───────────────────────────────────────── */
.lk-offer-banner {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: transform 0.22s ease;
}

.lk-offer-banner:hover { transform: translateY(-3px); }

.lk-offer-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10,15,40,0.72) 0%, rgba(10,15,40,0.2) 100%);
    border-radius: 14px;
}

.lk-offer-banner__content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lk-offer-banner__tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #bfdbfe;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(4px);
}

.lk-offer-banner__content h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    letter-spacing: -0.3px;
}

.lk-offer-banner__content p {
    color: rgba(226,232,240,0.85);
    font-size: 0.82rem;
    margin: 0 0 0.75rem;
}

.lk-offer-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #fff;
    color: #1d4ed8;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    width: fit-content;
}

/* ── Horizontal product scroll ───────────────────────────── */
.lk-product-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.lk-product-scroll::-webkit-scrollbar { height: 4px; }
.lk-product-scroll::-webkit-scrollbar-track { background: transparent; }
.lk-product-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.lk-product-scroll__item {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

@media (max-width: 575px) {
    .lk-product-scroll__item { flex: 0 0 155px; }
}

/* ── Coupon Strip ────────────────────────────────────────── */
.lk-coupon-strip {
    background: #93c5fd;
    padding: 0.65rem 0;
    overflow: hidden;
}

.lk-coupon-strip__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lk-coupon-strip__inner i {
    font-size: 1rem;
    flex-shrink: 0;
    color: #bfdbfe;
}

.lk-coupon-strip__inner strong { color: #fde68a; }

/* ── Why cards ───────────────────────────────────────────── */
.lk-why-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lk-why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.lk-why-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    color: #fff;
    font-size: 1.3rem;
}

.lk-why-card h6 {
    font-weight: 700;
    font-size: 0.88rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.lk-why-card p {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0;
}

/* ── Newsletter ──────────────────────────────────────────── */
.lk-newsletter {
    padding: 2.5rem 0;
    background: #93c5fd;
}

.lk-newsletter__box {
    background: #93c5fd;
    border-radius: 18px;
    padding: 2.5rem 2rem;
}

.lk-newsletter__box h3 {
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.lk-newsletter__box p {
    color: rgba(219,234,254,0.85);
    font-size: 0.88rem;
    margin: 0;
}

.lk-newsletter__form {
    display: flex;
    gap: 0.5rem;
}

.lk-newsletter__form input {
    flex: 1;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.2rem;
    font-size: 0.88rem;
    outline: none;
}

.lk-newsletter__form button {
    background: #fff;
    color: #1d4ed8;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.4rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.lk-newsletter__form button:hover { background: #dbeafe; }

@media (max-width: 575px) {
    .lk-newsletter__form { flex-direction: column; }
    .lk-newsletter__form input,
    .lk-newsletter__form button { border-radius: 12px; }
}

/* Public information pages */
.info-hero {
    background:
        linear-gradient(105deg, rgba(15,23,42,0.82) 0%, rgba(37,99,235,0.62) 58%, rgba(249,115,22,0.28) 100%),
        url('../images/hero-banner3.jpg') center center / cover no-repeat;
    color: #fff;
    padding: 5rem 0;
}

.info-hero__inner {
    max-width: 760px;
}

.info-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 0.8rem 0 1rem;
}

.info-hero p {
    color: rgba(226,232,240,0.9);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0;
}

.info-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.24);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.info-card,
.info-side-panel,
.info-policy {
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.info-card {
    padding: 1.5rem;
}

.info-card i,
.info-side-panel i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.info-card h2,
.info-side-panel h2,
.info-policy h2 {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
}

.info-card p,
.info-side-panel p,
.info-policy p,
.info-accordion .accordion-body {
    color: #64748b;
    font-size: 0.94rem;
}

.info-side-panel,
.info-policy {
    padding: 2rem;
}

.info-policy h2:not(:first-child) {
    margin-top: 1.75rem;
}

.info-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    box-shadow: 0 10px 24px rgba(15,23,42,0.04);
}

.info-accordion .accordion-button {
    padding: 1.2rem 1.4rem;
    font-weight: 900;
    color: #0f172a;
}

.info-accordion .accordion-button:not(.collapsed) {
    color: #2563eb;
    background: #eff6ff;
}

.info-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
}

.info-feature h2 {
    max-width: 700px;
    margin: 0.8rem 0 0.5rem;
    font-weight: 900;
}

.info-feature p {
    max-width: 760px;
    margin: 0;
    color: rgba(226,232,240,0.86);
}

@media (max-width: 767px) {
    .info-hero { padding: 3.25rem 0; }
    .info-feature { display: block; }
    .info-feature .btn { width: 100%; margin-top: 1.5rem; }
}

/* ── Hero Slider — multi-slide support ───────────────────── */
.lk-hero {
    position: relative;
    height: 520px;
    overflow: hidden;
}

@media (max-width: 767px) { .lk-hero { height: 380px; } }
@media (max-width: 575px) { .lk-hero { height: 320px; } }

.lk-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.lk-hero__slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Arrows */
.lk-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease;
}

.lk-hero__arrow:hover { background: rgba(255,255,255,0.32); }
.lk-hero__arrow--prev { left: 16px; }
.lk-hero__arrow--next { right: 16px; }

@media (max-width: 575px) {
    .lk-hero__arrow { 
        display: none !important;
    }
}

/* Dots */
.lk-hero__dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.lk-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.lk-hero__dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* ── Wider container — less wasted side space ────────────── */
.container {
    max-width: 1500px !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

@media (min-width: 1200px) {
    .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }
}

/* Modern Auth Pages */
.auth-shell {
    position: relative;
    min-height: calc(100vh - 96px);
    padding: 4rem 0;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(248,250,252,0.96) 0%, rgba(224,242,254,0.9) 42%, rgba(255,247,237,0.88) 100%),
        url('../images/hero-banner2.jpg') center center / cover no-repeat;
}

.auth-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    align-items: stretch;
    gap: 1.25rem;
    max-width: 1180px;
    margin: 0 auto;
}

.auth-wrap--reverse {
    grid-template-columns: minmax(380px, 520px) minmax(0, 1fr);
}

.auth-wrap--reverse .auth-visual {
    order: 2;
}

.auth-panel,
.auth-visual {
    min-height: 620px;
}

.auth-visual {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    padding: 3.5rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(30,64,175,0.72) 58%, rgba(249,115,22,0.42) 100%),
        url('../images/hero-banner.jpg') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.auth-visual::after {
    content: '';
    position: absolute;
    inset: auto 2rem 2rem auto;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    box-shadow: inset 0 0 0 28px rgba(255,255,255,0.06);
}

.auth-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 800;
}

.auth-visual h1 {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin-bottom: 1rem;
    font-size: 3rem;
    line-height: 1.08;
    font-weight: 900;
}

.auth-visual p {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin-bottom: 2rem;
    color: rgba(226,232,240,0.9);
    font-size: 1rem;
}

.auth-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.auth-benefit {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
}

.auth-benefit i {
    display: block;
    margin-bottom: 0.55rem;
    color: #bfdbfe;
    font-size: 1.35rem;
}

.auth-benefit span {
    display: block;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
}

.auth-panel {
    display: flex;
    align-items: center;
}

.auth-card {
    width: 100%;
    border-radius: 8px;
    padding: 2.5rem;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(226,232,240,0.9);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
}

.auth-card__icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #0f172a 100%);
    color: #fff;
    font-size: 1.55rem;
    box-shadow: 0 14px 30px rgba(37,99,235,0.25);
}

.auth-card h2 {
    margin-bottom: 0.35rem;
    color: #0f172a;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 900;
}

.auth-subtitle {
    margin-bottom: 1.5rem;
    color: #64748b;
    font-size: 0.94rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-field .form-label {
    margin-bottom: 0.45rem;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 800;
}

.auth-input {
    position: relative;
}

.auth-input i {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    color: #94a3b8;
    transform: translateY(-50%);
}

.auth-input .form-control {
    min-height: 54px;
    padding-left: 2.9rem;
    border-radius: 8px;
    background: #fff;
}

.auth-form .btn-primary {
    margin-top: 0.35rem;
    border-radius: 8px;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
}

.auth-small-link,
.auth-switch a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.auth-small-link {
    font-size: 0.82rem;
    white-space: nowrap;
}

.auth-small-link:hover,
.auth-switch a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.auth-switch {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.92rem;
}

@media (max-width: 991px) {
    .auth-shell {
        padding: 2rem 0;
    }

    .auth-wrap,
    .auth-wrap--reverse {
        grid-template-columns: 1fr;
    }

    .auth-wrap--reverse .auth-visual {
        order: 0;
    }

    .auth-panel,
    .auth-visual {
        min-height: auto;
    }

    .auth-visual {
        padding: 2rem;
    }

    .auth-visual h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 575px) {
    .auth-shell {
        padding: 1rem 0 2rem;
    }

    .auth-visual {
        padding: 1.4rem;
    }

    .auth-visual h1 {
        font-size: 1.75rem;
    }

    .auth-benefits {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.35rem;
    }

    .auth-card h2 {
        font-size: 1.55rem;
    }
}
