/* ============================================
   NIAKAA - Global Styles
   Design inspired by Clinikally.com
   ============================================ */

/* CSS Variables */
:root {
    --primary: #0B7BFF;
    --primary-dark: #0057D9;
    --primary-light: #E8F1FF;
    --secondary: #222222;
    --dark: #1a1a1a;
    --text: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --bg: #f7f8fc;
    --bg-white: #ffffff;
    --border: #e8e8e8;
    --border-light: #f0f0f0;
    --success: #00b86b;
    --warning: #ff9900;
    --danger: #ff3b3b;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --transition: all 0.25s ease;
    --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

/* Typography */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    color: var(--text-muted);
}

/* Container */
.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: var(--secondary);
    color: #fff;
    text-align: center;
    padding: 8px 20px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

    .announcement-bar a {
        color: var(--primary);
        text-decoration: underline;
    }

.announcement-slider {
    display: flex;
    gap: 50px;
    overflow: hidden;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

    .logo img {
        height: 42px;
    }

.logo-img {
    display: block;
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-img--dark {
    height: 42px;
}

.logo-img--white {
    height: 40px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -1px;
}

    .logo-text span {
        color: var(--primary);
    }

.header-search {
    flex: 1;
    max-width: 540px;
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

    .header-search:focus-within {
        border-color: var(--primary);
        background: #fff;
    }

    .header-search input {
        flex: 1;
        padding: 10px 18px;
        border: none;
        background: transparent;
        font-size: 0.9rem;
        color: var(--text);
    }

        .header-search input::placeholder {
            color: var(--text-light);
        }

    .header-search button {
        padding: 10px 20px;
        background: var(--primary);
        color: #fff;
        font-size: 1rem;
        border-radius: 50px;
        margin: 2px;
        transition: var(--transition);
    }

        .header-search button:hover {
            background: var(--primary-dark);
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    min-width: 52px;
}

    .header-action-btn:hover {
        background: var(--bg);
        color: var(--primary);
    }

    .header-action-btn svg {
        width: 22px;
        height: 22px;
    }

.badge {
    position: absolute;
    top: 4px;
    right: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
    background: #fff;
    border-top: 1px solid var(--border-light);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

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

    .nav-link svg {
        width: 14px;
        height: 14px;
        transition: var(--transition);
    }

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 600px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: none;
    z-index: 999;
    border-top: 3px solid var(--primary);
}

.nav-item:hover .mega-menu {
    display: flex;
    gap: 24px;
}

.mega-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 12px;
}

.mega-col a {
    display: block;
    padding: 5px 0;
    font-size: 0.88rem;
    color: var(--text);
    transition: var(--transition);
}

    .mega-col a:hover {
        color: var(--primary);
        padding-left: 6px;
    }

.mega-col {
    min-width: 140px;
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.hero-slide {
    min-width: 100%;
    min-height: 370px;
    height: 370px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slide-1 {
    background: linear-gradient(135deg, #E8F1FF 0%, #C5D8FF 50%, #A8C4FF 100%);
}

.hero-slide-2 {
    background: linear-gradient(135deg, #E8FFF5 0%, #C5FFE3 50%, #A8F5D0 100%);
}

.hero-slide-3 {
    background: linear-gradient(135deg, #FFF5E8 0%, #FFE0C5 50%, #FFD0A8 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 44px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.15;
}

    .hero h1 span {
        color: var(--primary);
    }

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 450px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-img {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-img-placeholder img, .hero-img-placeholder svg {
        max-height: 310px;
        width: auto;
        filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
        animation: heroFloat 3s ease-in-out infinite;
    }

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition);
}

    .hero-dot.active {
        background: var(--primary);
        width: 24px;
        border-radius: 4px;
    }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

    .btn-primary:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(11,123,255,0.3);
    }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

    .btn-outline:hover {
        background: var(--primary);
        color: #fff;
    }

.btn-dark {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

    .btn-dark:hover {
        background: #000;
    }

.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

    .btn-white:hover {
        background: var(--primary-light);
    }

.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 15px 34px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-bar {
    background: #fff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}

.trust-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 30px;
    border-right: 1px solid var(--border);
    flex: 1;
    min-width: 180px;
    justify-content: center;
}

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

.trust-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.trust-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
}

.trust-text span {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section {
    padding: 60px 0;
}

.section-sm {
    padding: 40px 0;
}

.section-header {
    margin-bottom: 36px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.section-header h2 {
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 500px;
}

.section-header.text-center p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   CATEGORY GRID
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.cat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 12px 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

    .cat-card:hover {
        border-color: var(--primary);
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

.cat-icon {
    /*font-size: 2.5rem;*/
    margin-bottom: 10px;
}

    .cat-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.cat-card h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.cat-card span {
    font-size: 0.72rem;
    color: var(--text-light);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.products-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

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

        .product-card:hover .card-actions {
            opacity: 1;
            transform: translateY(0);
        }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-discount {
    background: var(--danger);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.badge-new {
    background: var(--success);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.badge-sale {
    background: var(--warning);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.card-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 2;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

    .card-wishlist:hover {
        background: var(--primary);
        color: #fff;
    }

    .card-wishlist svg {
        width: 16px;
        height: 16px;
    }

.card-img {
    /*aspect-ratio: 1;*/
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    /*font-size: 4rem;*/
    overflow: hidden;
    position: relative;
}

    .card-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

    .card-actions .btn {
        font-size: 0.8rem;
        padding: 9px 0;
        border-radius: var(--radius);
    }

.card-body {
    padding: 14px;
}

.card-brand {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.stars {
    color: #FFBC00;
    font-size: 0.78rem;
}

.rating-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.price-original {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-save {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
}

/* ============================================
   BANNER STRIPS
   ============================================ */
.promo-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.promo-banner {
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    min-height: 160px;
}

.promo-banner-1 {
    background: linear-gradient(135deg, #E8F1FF, #C5D8FF);
}

.promo-banner-2 {
    background: linear-gradient(135deg, #E8FFF5, #C5FFE3);
}

.promo-banner h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--dark);
}

.promo-banner p {
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.promo-emoji {
    font-size: 4rem;
}

/* ============================================
   DEAL TIMER
   ============================================ */
.deals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 14px;
}

.deal-timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.timer-blocks {
    display: flex;
    align-items: center;
    gap: 6px;
}

.timer-block {
    background: var(--dark);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 48px;
}

    .timer-block span {
        display: block;
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 1;
    }

    .timer-block small {
        font-size: 0.62rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        opacity: 0.7;
    }

.timer-sep {
    font-weight: 700;
    color: var(--dark);
}

/* ============================================
   BRANDS SECTION
   ============================================ */
/*.brands-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;*/
    /*scrollbar-width: none;*/
    /*scrollbar-width: auto;
    padding-bottom: 4px;
}

    .brands-slider::-webkit-scrollbar {
        display: none;
    }

.brand-card {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    transition: var(--transition);
    cursor: pointer;
}

    .brand-card:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow);
    }

    .brand-card span {
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--text-muted);
    }*/

.brands-slider {
    width: 100%;
    overflow: hidden;
    padding-bottom: 4px;
}

.brands-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: none;
}

    .brands-track.auto-scroll {
        animation: brandScroll 25s linear infinite;
    }

    .brands-track:hover {
        animation-play-state: paused;
    }

.brand-card {
    flex: 0 0 140px;
    width: 140px;
    height: 100px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

    .brand-card a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .brand-card a img {
            width: 115px;
            height: 70px;
            object-fit: contain;
            object-position: center;
            display: block;
        }

    .brand-card:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow);
    }

@keyframes brandScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 10px));
    }
}

/* ============================================
   TESTIMONIALS CAROUSEL
   ============================================ */
.testimonial-carousel {
    position: relative;
    /* no overflow:hidden here — arrows must be visible */
}
/* inner viewport that clips the sliding track */
.testimonial-track-wrap {
    overflow: hidden;
    margin: 0;
}

.testimonial-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}

    .testimonial-track .testimonial-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: 0;
    }
/* legacy grid fallback (unused but kept) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
/* carousel nav buttons */
.tcarousel-btn {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 16px rgba(0,0,0,0.14);
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

    .tcarousel-btn:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        box-shadow: 0 4px 20px rgba(11,123,255,0.25);
    }

.tcarousel-prev {
    left: -22px;
}

.tcarousel-next {
    right: -22px;
}

.tcarousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.tcarousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

    .tcarousel-dot.active {
        background: var(--primary);
        width: 24px;
        border-radius: 4px;
    }

.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

    .testimonial-card:hover {
        box-shadow: var(--shadow-md);
    }

.test-stars {
    color: #FFBC00;
    font-size: 1rem;
    margin-bottom: 14px;
}

.test-text {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 18px;
    font-style: italic;
    line-height: 1.65;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.test-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.test-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
}

.test-date {
    font-size: 0.76rem;
    color: var(--text-light);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

    .newsletter-section h2 {
        color: #fff;
        margin-bottom: 10px;
    }

    .newsletter-section p {
        color: rgba(255,255,255,0.85);
        margin-bottom: 28px;
    }

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

    .newsletter-form input {
        flex: 1;
        padding: 13px 20px;
        border-radius: 50px;
        border: none;
        font-size: 0.9rem;
        background: rgba(255,255,255,0.15);
        color: #fff;
        backdrop-filter: blur(10px);
    }

        .newsletter-form input::placeholder {
            color: rgba(255,255,255,0.6);
        }

        .newsletter-form input:focus {
            background: rgba(255,255,255,0.25);
            outline: none;
        }

    .newsletter-form .btn {
        flex-shrink: 0;
        background: #fff;
        color: var(--primary);
    }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: #fff;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 260px;
}

.footer-logo {
    margin-bottom: 16px;
}

    .footer-logo .logo-img--white {
        height: 44px;
    }

    .footer-logo .logo-text {
        font-size: 1.5rem;
    }

.footer-desc {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    line-height: 1.65;
}

.footer-contact p {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
}

    .footer-contact p strong {
        color: #fff;
    }

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

    .social-btn:hover {
        background: var(--primary);
    }

.footer-col h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-col ul li {
    margin-bottom: 10px;
}

    .footer-col ul li a {
        font-size: 0.84rem;
        color: rgba(255,255,255,0.6);
        transition: var(--transition);
    }

        .footer-col ul li a:hover {
            color: var(--primary);
            padding-left: 4px;
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

    .footer-bottom p {
        font-size: 0.8rem;
        color: rgba(255,255,255,0.5);
    }

.footer-payments {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-icon {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

.footer-licenses {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.4);
    margin-top: 12px;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-light), #e0ecff);
    padding: 48px 0 40px;
    margin-bottom: 0;
}

    .page-hero h1 {
        font-size: 2rem;
        color: var(--dark);
        margin-bottom: 8px;
    }

    .page-hero p {
        color: var(--text-muted);
        font-size: 1rem;
    }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

    .breadcrumb a {
        color: var(--primary);
    }

    .breadcrumb span {
        color: var(--text-light);
    }

/* ============================================
   SIDEBAR + CONTENT LAYOUT
   ============================================ */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--border-light);
    margin-bottom: 16px;
}

    .sidebar-card h4 {
        font-size: 0.9rem;
        font-weight: 700;
        margin-bottom: 16px;
        color: var(--dark);
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-light);
    }

.filter-group {
    margin-bottom: 12px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
}

    .filter-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: var(--primary);
    }

    .filter-item label {
        font-size: 0.86rem;
        color: var(--text);
        cursor: pointer;
        flex: 1;
    }

    .filter-item span {
        font-size: 0.76rem;
        color: var(--text-muted);
    }

.price-range input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

.price-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============================================
   PRODUCT DETAIL
   ============================================ */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    background: var(--bg);
    border-radius: var(--radius-lg);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    background: var(--bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

    .gallery-thumb.active, .gallery-thumb:hover {
        border-color: var(--primary);
    }

.product-info h1 {
    font-size: 1.65rem;
    margin-bottom: 10px;
}

.product-info .card-rating {
    margin-bottom: 14px;
}

.product-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.info-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 600;
    background: var(--bg);
    color: var(--text);
}

    .info-badge.green {
        background: #e8fff5;
        color: var(--success);
    }

    .info-badge.red {
        background: #e8fff5;
        color: var(--danger);
    }

.product-price-box {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 22px;
}

.big-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.big-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.big-save {
    font-size: 0.88rem;
    color: var(--success);
    font-weight: 600;
}
/* Variant / Attribute Selector */
.variant-wrapper {
    margin-bottom: 18px;
}

.variant-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.variant-selected {
    font-weight: 400;
    color: var(--primary);
}

.variant-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-btn {
    padding: 8px 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #fff;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

    .variant-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: var(--primary-light);
    }

    .variant-btn.active {
        border-color: var(--primary);
        color: var(--primary);
        background: var(--primary-light);
        box-shadow: 0 0 0 1px var(--primary);
    }

    .variant-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        text-decoration: line-through;
    }

/* Qty Selector */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    width: fit-content;
    margin-bottom: 18px;
}

.qty-btn {
    width: 40px;
    height: 42px;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--bg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

    .qty-btn:hover:not(:disabled) {
        background: var(--primary);
        color: #fff;
    }

    .qty-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

.qty-input {
    width: 56px;
    height: 42px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text);
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Tabs */
.product-tabs {
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 0;
    margin-bottom: 28px;
}

.tab-btn {
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

    .tab-btn.active, .tab-btn:hover {
        color: var(--primary);
        border-bottom-color: var(--primary);
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

    .tab-content p {
        margin-bottom: 14px;
    }

/* ============================================
   CART PAGE
   ============================================ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.cart-table {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.cart-table-head {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.cart-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    padding: 18px 20px;
    border-top: 1px solid var(--border-light);
    align-items: center;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-product-img {
    width: 70px;
    height: 70px;
    background: var(--bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.cart-product-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.cart-product-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.cart-remove {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
}

    .cart-remove:hover {
        background: var(--danger);
        color: #fff;
    }

.cart-summary {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px;
}

    .cart-summary h3 {
        margin-bottom: 20px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--border-light);
    }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

    .summary-row span:first-child {
        color: var(--text-muted);
    }

    .summary-row.total {
        font-size: 1.05rem;
        font-weight: 700;
        border-top: 1px solid var(--border-light);
        padding-top: 14px;
        margin-top: 14px;
    }

.coupon-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

    .coupon-form input {
        flex: 1;
        padding: 10px 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        font-size: 0.88rem;
    }

/* ============================================
   ACCOUNT PAGE
   ============================================ */
.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.account-sidebar {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.account-user {
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light), #e0ecff);
    border-bottom: 1px solid var(--border-light);
}

.account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.account-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
}

.account-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    font-size: 0.88rem;
    color: var(--text);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

    .account-nav a:hover, .account-nav a.active {
        color: var(--primary);
        border-left-color: var(--primary);
        background: var(--bg);
    }

    .account-nav a svg {
        width: 18px;
        height: 18px;
    }

/* ============================================
   FORMS (Auth Pages)
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #E8F1FF 0%, #f7f8fc 100%);
    padding: 40px 20px;
}

.auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 6px;
    font-size: 1.5rem;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 7px;
    }

    .form-group input, .form-group select, .form-group textarea {
        width: 100%;
        padding: 11px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        font-size: 0.9rem;
        color: var(--text);
        transition: var(--transition);
        background: #fff;
    }

        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(11,123,255,0.1);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 110px;
    }

.form-hint {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-divider {
    text-align: center;
    margin: 20px 0;
    font-size: 0.84rem;
    color: var(--text-muted);
    position: relative;
}

    .form-divider::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        height: 1px;
        width: 40%;
        background: var(--border);
    }

    .form-divider::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        height: 1px;
        width: 40%;
        background: var(--border);
    }

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

    .auth-footer a {
        color: var(--primary);
        font-weight: 600;
    }

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ============================================
   POLICY PAGES
   ============================================ */
.policy-content {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
    line-height: 1.8;
}

    .policy-content h2 {
        font-size: 1.25rem;
        margin: 28px 0 12px;
        color: var(--dark);
    }

    .policy-content h3 {
        font-size: 1.05rem;
        margin: 20px 0 10px;
        color: var(--dark);
    }

    .policy-content p {
        margin-bottom: 14px;
        color: var(--text);
        font-size: 0.94rem;
    }

    .policy-content ul {
        margin: 12px 0 16px 20px;
    }

        .policy-content ul li {
            list-style: disc;
            font-size: 0.94rem;
            color: var(--text);
            margin-bottom: 7px;
        }

.effective-date {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    padding: 12px 18px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.88rem;
    margin-bottom: 24px;
    color: var(--text);
}

/* ============================================
   TRACK ORDER
   ============================================ */
.track-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
    max-width: 540px;
    margin: 0 auto;
}

    .track-card h2 {
        margin-bottom: 8px;
    }

    .track-card p {
        margin-bottom: 28px;
    }

.order-timeline {
    position: relative;
    padding-left: 32px;
}

    .order-timeline::before {
        content: '';
        position: absolute;
        left: 10px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--border);
    }

.timeline-step {
    position: relative;
    margin-bottom: 28px;
}

    .timeline-step::before {
        content: '';
        position: absolute;
        left: -28px;
        top: 2px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--border);
        border: 2px solid #fff;
        box-shadow: 0 0 0 2px var(--border);
    }

    .timeline-step.completed::before {
        background: var(--success);
        box-shadow: 0 0 0 2px var(--success);
    }

    .timeline-step.current::before {
        background: var(--primary);
        box-shadow: 0 0 0 2px var(--primary);
    }

    .timeline-step h4 {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }

    .timeline-step p {
        font-size: 0.8rem;
        margin: 0;
    }

/* ============================================
   WISHLIST
   ============================================ */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 36px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon {
    width: 46px;
    height: 46px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.contact-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
}

    .contact-form-card h3 {
        margin-bottom: 24px;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================
   BULK ORDERS PAGE
   ============================================ */
.bulk-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.bulk-feature {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.bulk-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.bulk-feature h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.bulk-feature p {
    font-size: 0.88rem;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

    .mobile-menu-btn svg {
        width: 24px;
        height: 24px;
    }

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

    .mobile-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1100;
    overflow-y: auto;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

    .mobile-menu.open {
        transform: translateX(0);
    }

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

    .mobile-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu-close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text);
}

.mobile-nav {
    margin-top: 24px;
}

    .mobile-nav a {
        display: block;
        padding: 13px 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 0.94rem;
        color: var(--text);
        font-weight: 500;
    }

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

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

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.fw-bold {
    font-weight: 700;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.gap-2 {
    gap: 16px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.w-100 {
    width: 100%;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 18px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.88rem;
}

.alert-success {
    background: #e8fff5;
    border: 1px solid #c3f7de;
    color: #00913f;
}

.alert-danger {
    background: #fff0f0;
    border: 1px solid #ffd6d6;
    color: #cc0000;
}

.alert-info {
    background: var(--primary-light);
    border: 1px solid #c5d8ff;
    color: var(--primary-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-track .testimonial-card {
        flex: 0 0 calc(50% - 10px);
    }

    .tcarousel-prev {
        left: -18px;
    }

    .tcarousel-next {
        right: -18px;
    }
}

@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .account-layout {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .promo-banners {
        grid-template-columns: 1fr;
    }

    .bulk-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-search {
        display: none;
    }

    .trust-items {
        gap: 0;
    }

    .trust-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 40px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-track .testimonial-card {
        flex: 0 0 100%;
    }

    .tcarousel-prev {
        left: 4px;
    }

    .tcarousel-next {
        right: 4px;
    }

    .cart-table-head {
        display: none;
    }

    .cart-row {
        grid-template-columns: 1fr auto;
    }

        .cart-row > *:nth-child(2), .cart-row > *:nth-child(3), .cart-row > *:nth-child(4) {
            display: none;
        }

    .newsletter-form {
        flex-direction: column;
    }

        .newsletter-form .btn {
            width: 100%;
        }

    .bulk-features {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

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

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

    .hero-slide {
        min-height: 300px;
    }

    .hero-img {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* ── Auth page shell ── */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f6ff 0%, #fff 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    background: #fff;
    border-radius: 24px;
    border: 1.5px solid var(--border);
    box-shadow: 0 8px 48px rgba(11,123,255,0.08);
    padding: 40px 40px 32px;
    width: 100%;
    max-width: 440px;
}

@media (max-width: 500px) {
    .auth-card {
        padding: 28px 20px 24px;
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

    .auth-logo img {
        height: 40px;
    }

/* Progress dots */
.auth-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.auth-prog-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

    .auth-prog-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 12px;
        width: 68px;
        height: 2px;
        background: var(--border);
        transition: background 0.3s;
    }


    .auth-prog-step.done:not(:last-child)::after {
        background: var(--primary);
    }

    .auth-prog-step.active:not(:last-child)::after {
        background: linear-gradient(90deg, var(--primary) 50%, var(--border) 50%);
    }

.prog-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    margin-right: 68px;
    transition: all 0.25s;
}

.auth-prog-step:last-child .prog-dot {
    margin-right: 0;
}

.auth-prog-step.active .prog-dot {
    border-color: var(--primary);
    color: var(--primary);
}

.auth-prog-step.done .prog-dot {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.prog-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 5px;
    text-align: center;
    margin-right: 68px;
}

.auth-prog-step:last-child .prog-label {
    margin-right: 0;
}

.auth-prog-step.active .prog-label {
    color: var(--primary);
}

.auth-prog-step.done .prog-label {
    color: #22c55e;
}

/* Step panels */
.auth-step {
    display: none;
}

    .auth-step.active {
        display: block;
    }

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 26px;
}

/* Method tabs */
.login-method-tabs {
    display: flex;
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 4px;
    gap: 0;
    margin-bottom: 24px;
}

.method-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    border-radius: 9px;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s;
}

    .method-tab.active {
        background: #fff;
        color: var(--primary);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

/* Input group */
.auth-input-group {
    position: relative;
    margin-bottom: 16px;
}

    .auth-input-group label {
        display: block;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        margin-bottom: 7px;
    }

    .auth-input-group input {
        width: 100%;
        padding: 13px 16px;
        border: 1.5px solid var(--border);
        border-radius: 12px;
        font-size: 0.95rem;
        font-family: inherit;
        color: var(--text-dark);
        background: #fff;
        outline: none;
        transition: border-color 0.18s;
        box-sizing: border-box;
    }

        .auth-input-group input:focus {
            border-color: var(--primary);
        }

        .auth-input-group input.valid {
            border-color: #22c55e;
        }

        .auth-input-group input.error {
            border-color: #ef4444;
        }

.input-suffix {
    position: absolute;
    right: 14px;
    bottom: 14px;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.phone-prefix {
    position: absolute;
    left: 14px;
    bottom: 14px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    pointer-events: none;
}

    .phone-prefix + input,
    .auth-input-group.has-prefix input {
        padding-left: 44px;
    }

/* Password wrap */
.pw-wrap {
    position: relative;
}

    .pw-wrap input {
        padding-right: 48px;
    }

.pw-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
}

/* Password strength */
.pw-strength {
    margin-top: 8px;
}

.pw-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    overflow: hidden;
    margin-bottom: 5px;
}

.pw-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
    width: 0%;
}

.pw-strength-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* OTP boxes */
.otp-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.otp-box {
    width: 52px;
    height: 56px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    background: var(--bg-soft);
    outline: none;
    transition: all 0.18s;
    caret-color: var(--primary);
}

    .otp-box:focus {
        border-color: var(--primary);
        background: #fff;
    }

    .otp-box.filled {
        border-color: var(--primary);
        background: var(--primary-light);
    }

@media (max-width: 400px) {
    .otp-box {
        width: 44px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Resend */
.otp-resend {
    text-align: center;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

    .otp-resend .resend-link {
        color: var(--primary);
        font-weight: 600;
        cursor: pointer;
        display: none;
    }

        .otp-resend .resend-link.show {
            display: inline;
        }

.otp-timer {
    font-weight: 600;
    color: var(--text-dark);
}

/* Main CTA */
.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .auth-btn:hover {
        background: var(--primary-dark);
    }

    .auth-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .auth-btn.outline {
        background: #fff;
        color: var(--primary);
        border: 1.5px solid var(--primary);
    }

        .auth-btn.outline:hover {
            background: var(--primary-light);
        }

/* Back link */
.auth-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 20px;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}

    .auth-back:hover {
        color: var(--primary);
    }

/* Google btn */
.google-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-dark);
    transition: all 0.18s;
    margin-bottom: 18px;
    font-family: inherit;
}

    .google-btn:hover {
        border-color: var(--primary);
        background: var(--primary-light);
    }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

    .auth-divider::before, .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

/* Info notice */
.auth-notice {
    background: var(--primary-light);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.82rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

/* Success */
.auth-success-icon {
    width: 64px;
    height: 64px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(34,197,94,0.3);
    animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Legal */
.auth-legal {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    line-height: 1.6;
}

    .auth-legal a {
        color: var(--primary);
    }

/* Error msg */
.field-error {
    font-size: 0.78rem;
    color: #ef4444;
    margin-top: -10px;
    margin-bottom: 14px;
    display: none;
}

    .field-error.show {
        display: block;
    }



.bulk-hero {
    background: linear-gradient(135deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center
}

    .bulk-hero h1 {
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 12px
    }

    .bulk-hero p {
        font-size: 1.1rem;
        opacity: .85;
        max-width: 560px;
        margin: 0 auto 24px
    }

.bulk-features {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
    margin-bottom: 60px
}

.bulk-feature-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid var(--border);
    text-align: center;
    transition: box-shadow .2s
}

    .bulk-feature-card:hover {
        box-shadow: 0 6px 30px rgba(11,123,255,.1)
    }

.bulk-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 14px
}

.bulk-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px
}

.bulk-feature-card p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6
}

.bulk-tiers {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-bottom: 60px
}

.tier-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    position: relative
}

    .tier-card.featured {
        border-color: var(--primary);
        background: var(--primary-light)
    }

    .tier-card .tier-badge {
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--primary);
        color: #fff;
        padding: 4px 16px;
        border-radius: 20px;
        font-size: .78rem;
        font-weight: 600;
        white-space: nowrap
    }

    .tier-card h3 {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 6px
    }

    .tier-card .tier-qty {
        font-size: .88rem;
        color: var(--text-muted);
        margin-bottom: 16px
    }

    .tier-card .tier-discount {
        font-size: 2.2rem;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 4px
    }

    .tier-card ul {
        text-align: left;
        list-style: none;
        padding: 0;
        margin: 16px 0 20px
    }

        .tier-card ul li {
            font-size: .87rem;
            padding: 5px 0;
            color: var(--text-muted)
        }

            .tier-card ul li::before {
                content: '✓ ';
                color: var(--primary);
                font-weight: 700
            }

.bulk-form-section {
    background: var(--bg);
    padding: 60px 0
}

.bulk-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,.07)
}

@media(max-width:768px) {
    .bulk-features, .bulk-tiers {
        grid-template-columns: 1fr
    }
}

/* ── Checkout Layout ── */
.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
    padding: 40px 0 60px;
}

@media (max-width: 900px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Steps */
.checkout-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    overflow: hidden;
}

.step-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    border-right: 1.5px solid var(--border);
    position: relative;
}

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

    .step-item.active {
        color: var(--primary);
    }

    .step-item.done {
        color: #22c55e;
    }

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-item.active .step-num {
    background: var(--primary);
    color: #fff;
}

.step-item.done .step-num {
    background: #22c55e;
    color: #fff;
}

@media (max-width: 600px) {
    .step-item {
        padding: 14px 12px;
        gap: 6px;
        font-size: 0.78rem;
    }
}

@media (max-width: 420px) {
    .step-item {
        flex-direction: column;
        padding: 10px 4px;
        gap: 4px;
        text-align: center;
    }

    .step-sublabel {
        display: none;
    }
}

/* Section card */
.checkout-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    padding: 28px;
    margin-bottom: 20px;
}

.checkout-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

    .checkout-card-title .step-badge {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        font-size: 0.78rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

/* Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

    .form-row.single {
        grid-template-columns: 1fr;
    }

    .form-row.triple {
        grid-template-columns: 1fr 1fr 1fr;
    }

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

        .form-row.triple {
            grid-template-columns: 1fr 1fr;
        }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group label {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 14px;
        border: 1.5px solid var(--border);
        border-radius: 10px;
        font-size: 0.92rem;
        font-family: inherit;
        color: var(--text-dark);
        background: #fff;
        transition: border-color 0.18s;
        outline: none;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--primary);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 72px;
    }

/* Saved addresses */
.saved-address-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .saved-address-list {
        grid-template-columns: 1fr;
    }
}

.saved-address-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.18s;
    position: relative;
}

    .saved-address-card:hover {
        border-color: var(--primary);
    }

    .saved-address-card.selected {
        border-color: var(--primary);
        background: var(--primary-light);
    }

    .saved-address-card .addr-name {
        font-weight: 700;
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .saved-address-card .addr-type {
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        background: var(--primary-light);
        color: var(--primary);
        padding: 2px 8px;
        border-radius: 30px;
    }

    .saved-address-card p {
        font-size: 0.82rem;
        color: var(--text-muted);
        line-height: 1.5;
    }

.add-new-address-btn {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    transition: all 0.18s;
    width: 100%;
}

    .add-new-address-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

/* New address form (toggle) */
#newAddressForm {
    display: none;
}

    #newAddressForm.open {
        display: block;
    }

/* Payment options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.18s;
    overflow: hidden;
}

    .payment-option.selected {
        border-color: var(--primary);
    }

.payment-option-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.payment-radio {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
}

.payment-option.selected .payment-radio {
    border-color: var(--primary);
}

    .payment-option.selected .payment-radio::after {
        content: '';
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--primary);
        display: block;
    }

.payment-icon {
    font-size: 1.4rem;
}

.payment-label {
    font-weight: 700;
    font-size: 0.92rem;
}

.payment-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.payment-badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #dcfce7;
    color: #16a34a;
    padding: 3px 10px;
    border-radius: 30px;
}

.payment-body {
    padding: 0 18px 18px;
    display: none;
}

.payment-option.selected .payment-body {
    display: block;
}

/* UPI body */
.upi-input-row {
    display: flex;
    gap: 10px;
}

    .upi-input-row input {
        flex: 1;
        padding: 10px 14px;
        border: 1.5px solid var(--border);
        border-radius: 10px;
        font-size: 0.9rem;
        outline: none;
    }

        .upi-input-row input:focus {
            border-color: var(--primary);
        }

    .upi-input-row button {
        padding: 10px 18px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.88rem;
        cursor: pointer;
    }

.upi-apps {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.upi-app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.18s;
}

    .upi-app-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    .upi-app-btn .app-icon {
        font-size: 1.4rem;
    }

/* Card body */
.card-body-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.card-body-fields input {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
}

    .card-body-fields input:focus {
        border-color: var(--primary);
    }

.card-body-fields label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

/* COD body */
.cod-info {
    background: #fef9c3;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: #78350f;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Order Summary sidebar */
.order-summary-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    padding: 24px;
    position: sticky;
    top: 90px;
}

    .order-summary-card h3 {
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: 20px;
        padding-bottom: 14px;
        border-bottom: 1.5px solid var(--border);
    }

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.summary-item-img {
    width: 52px;
    height: 52px;
    background: var(--bg-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-item-info {
    flex: 1;
}

.summary-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

.summary-item-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.summary-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Coupon */
.coupon-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

    .coupon-row input {
        flex: 1;
        padding: 10px 14px;
        border: 1.5px solid var(--border);
        border-radius: 10px;
        font-size: 0.88rem;
        outline: none;
    }

        .coupon-row input:focus {
            border-color: var(--primary);
        }

    .coupon-row button {
        padding: 10px 16px;
        background: #fff;
        color: var(--primary);
        border: 1.5px solid var(--primary);
        border-radius: 10px;
        font-weight: 700;
        font-size: 0.85rem;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.18s;
    }

        .coupon-row button:hover {
            background: var(--primary);
            color: #fff;
        }

/* Price breakdown */
.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-muted);
}

    .price-line.discount {
        color: #16a34a;
    }

    .price-line.total {
        font-size: 1.02rem;
        font-weight: 800;
        color: var(--text-dark);
        padding-top: 12px;
        border-top: 1.5px solid var(--border);
    }

    .price-line.saving {
        font-size: 0.82rem;
        font-weight: 600;
        background: #dcfce7;
        color: #16a34a;
        padding: 8px 12px;
        border-radius: 8px;
    }

/* Place order btn */
.place-order-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
    margin-bottom: 12px;
}

    .place-order-btn:hover {
        background: var(--primary-dark);
    }

.secure-badge {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}


/* ── Order Detail Layout ── */
.order-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
    padding: 40px 0 60px;
}

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

/* failed banner */
.order-failed-banner {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1.5px solid #86efac;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    margin-bottom: 28px;
}

.failed-icon {
    width: 72px;
    height: 72px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
    box-shadow: 0 8px 32px rgba(34,197,94,0.3);
}

.failed-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #b91c1c;
    margin-bottom: 6px;
}

.failed-sub {
    font-size: 0.92rem;
    color: #b91c1c;
    margin-bottom: 16px;
}

.order-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #86efac;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #15803d;
}

/* Confirmation banner */
.order-confirmed-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid #86efac;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    margin-bottom: 28px;
}

.confirmed-icon {
    width: 72px;
    height: 72px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
    box-shadow: 0 8px 32px rgba(34,197,94,0.3);
}

.confirmed-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #15803d;
    margin-bottom: 6px;
}

.confirmed-sub {
    font-size: 0.92rem;
    color: #166534;
    margin-bottom: 16px;
}

.order-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #86efac;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #15803d;
}

/* Detail cards */
.detail-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.detail-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .detail-card-title a {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--primary);
        text-decoration: none;
    }

/* Order timeline */
.order-timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    padding: 8px 0;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

    .timeline-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 20px;
        left: 50%;
        width: 100%;
        height: 3px;
        background: var(--border);
        z-index: 0;
    }

    .timeline-step.done:not(:last-child)::after {
        background: #22c55e;
    }

    .timeline-step.active:not(:last-child)::after {
        background: linear-gradient(90deg, #22c55e 50%, var(--border) 50%);
    }

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 2.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.timeline-step.done .timeline-dot {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
    box-shadow: 0 4px 16px rgba(34,197,94,0.3);
}

.timeline-step.active .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(11,123,255,0.3);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(11,123,255,0.3);
    }

    50% {
        box-shadow: 0 4px 24px rgba(11,123,255,0.55);
    }
}

.timeline-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
}

.timeline-step.done .timeline-label {
    color: #15803d;
}

.timeline-step.active .timeline-label {
    color: var(--primary);
}

.timeline-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 3px;
}

@media (max-width: 600px) {
    .timeline-dot {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .timeline-label {
        font-size: 0.7rem;
    }
}

/* Order items */
.order-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

    .order-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.order-item-img {
    width: 64px;
    height: 64px;
    background: var(--bg-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.order-item-info {
    flex: 1;
}

.order-item-brand {
    font-size: 0.74rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-item-name {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 2px 0 4px;
}

.order-item-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.order-item-price {
    text-align: right;
}

    .order-item-price .price {
        font-size: 1rem;
        font-weight: 700;
    }

    .order-item-price .qty {
        font-size: 0.78rem;
        color: var(--text-muted);
        margin-top: 2px;
    }

/* Delivery info grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-block label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.info-block p {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Payment tag */
.payment-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Sidebar */
.summary-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    padding: 22px;
}

    .sidebar-card h4 {
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1.5px solid var(--border);
    }

/* Price summary */
.price-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ps-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-muted);
}

    .ps-line.discount {
        color: #16a34a;
    }

    .ps-line.total {
        font-size: 1rem;
        font-weight: 800;
        color: var(--text-dark);
        padding-top: 10px;
        border-top: 1.5px solid var(--border);
    }

.ps-saving {
    background: #dcfce7;
    color: #15803d;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 4px;
}

/* Action buttons */
.action-btn {
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.18s;
    border: none;
}

    .action-btn.primary {
        background: var(--primary);
        color: #fff;
    }

        .action-btn.primary:hover {
            background: var(--primary-dark);
        }

    .action-btn.outline {
        background: #fff;
        color: var(--primary);
        border: 1.5px solid var(--primary);
    }

        .action-btn.outline:hover {
            background: var(--primary-light);
        }

    .action-btn.ghost {
        background: var(--bg-soft);
        color: var(--text-dark);
    }

        .action-btn.ghost:hover {
            background: #e5e7eb;
        }

/* Need help */
.help-card {
    background: var(--primary-light);
    border-radius: 14px;
    padding: 18px 20px;
    text-align: center;
}

    .help-card p {
        font-size: 0.85rem;
        color: var(--text-dark);
        margin-bottom: 12px;
        line-height: 1.5;
    }
