/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* --- Root Variables (Luxury Color Palette) --- */
:root {
    --primary-black: #000000;
    --accent-blue: #007AFF; /* Apple Blue */
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --border-color: rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.5;
}

/* --- Announcement Bar --- */
.top-bar {
    background: var(--primary-black);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-align: center;
    padding: 10px 0;
    text-transform: uppercase;
}

/* --- Header Main Styling --- */
.main-header {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: blur(20px); /* Premium Blur */
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo Styling --- */
.logo-wrapper a {
    text-decoration: none;
    color: var(--primary-black);
}

.brand-logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.brand-logo span {
    font-weight: 300;
    color: var(--text-secondary);
    font-style: italic;
    margin-left: 2px;
}

/* --- Desktop Navigation --- */
.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 28px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: var(--transition);
    position: relative;
}

.nav-more-dropdown {
    min-width: 220px;
}

@media (max-width: 1280px) {
    .header-container {
        padding: 0 2.5%;
    }

    .nav-list {
        gap: 22px;
    }

    .nav-link {
        font-size: 12.5px;
    }
}

/* --- Utility Icons Styling --- */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 20px;
}

.util-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    position: relative;
    padding: 5px;
    transition: var(--transition);
}

.util-btn:hover {
    transform: translateY(-2px);
    color: var(--accent-blue);
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary-black);
    color: white;
    font-size: 9px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
}

/* --- Mega Menu (Basic Logic) --- */
.has-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 200px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.has-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-inner a {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 0;
    transition: 0.2s;
}

.dropdown-inner a:hover {
    color: var(--primary-black);
    padding-left: 5px;
}

/* --- Responsive Helpers --- */
.mobile-nav-trigger {
    display: none;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .desktop-nav, .hide-mobile {
        display: none;
    }
    
    .mobile-nav-trigger {
        display: block;
    }
}

/* --- Mobile Bottom Tab Bar --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    z-index: 10000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom); /* iPhone notch support */
}

@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Body ekata bottom padding ekak danna nav eka nisa content hangan nathi wenna */
    body {
        padding-bottom: 70px;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 500;
    gap: 4px;
}

.bottom-nav-item.active {
    color: var(--primary-black);
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
}

/* --- HERO SECTION STYLING --- */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px); /* Header eka ariyama ithuru tika */
    overflow: hidden;
    background: #ffffff;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slide Transition Logic */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Container */
.hero-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 6%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
}

/* --- Hero Text Animations --- */
.hero-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 15px;
    transform: translateY(30px);
    opacity: 0;
    transition: 0.8s 0.2s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(45px, 6vw, 85px); /* Responsive font size */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 25px;
    transform: translateY(40px);
    opacity: 0;
    transition: 0.8s 0.4s ease-out;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
    transform: translateY(50px);
    opacity: 0;
    transition: 0.8s 0.6s ease-out;
}

.hero-btns {
    display: flex;
    gap: 20px;
    transform: translateY(60px);
    opacity: 0;
    transition: 0.8s 0.8s ease-out;
}

/* Active State Text Animation */
.slide.active .hero-subtitle,
.slide.active .hero-title,
.slide.active .hero-description,
.slide.active .hero-btns {
    transform: translateY(0);
    opacity: 1;
}

/* --- 3D Image Wrapper & Floating Effect --- */
.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* 3D depth eka hadanna */
}

.hero-img-main {
    width: 100%;
    max-width: 550px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.15));
    transition: transform 0.1s ease-out; /* Mouse tracking ekata */
}

/* Floating Elements (Background decorations) */
.depth-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,122,255,0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
    border-radius: 50%;
}

/* --- Buttons Styling --- */
.btn-primary {
    padding: 16px 35px;
    background: var(--primary-black);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-blue);
    transform: scale(1.05);
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-black);
    text-decoration: none;
    font-size: 15px;
}

/* --- Pagination Dots --- */
.hero-pagination {
    position: absolute;
    bottom: 40px;
    left: 6%;
    z-index: 20;
    display: flex;
    gap: 15px;
}

.dot {
    width: 40px;
    height: 2px;
    background: rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-black);
    width: 60px;
}

/* --- Scroll Indicator --- */
.scroll-down {
    position: absolute;
    bottom: 40px;
    right: 6%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.mouse-icon {
    width: 20px;
    height: 35px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--text-secondary);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* --- Responsive Hero --- */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 50px;
    }
    .hero-content {
        order: 2;
    }
    .hero-image-wrap {
        order: 1;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-description {
        margin: 0 auto 30px;
    }
}

/* --- FULL BACKGROUND HERO SECTION --- */
.full-bg-hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Mulu screen ekama cover karanawa */
    overflow: hidden;
    background: #000; /* Image load wenakam black thiyenne */
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Background Slide Styling */
.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.1); /* Zoom effect ekak danna */
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    display: flex;
    align-items: center;
}

.bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Luxury Overlay - Meka thama text kiyawanna help wenne */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

/* Container & Content */
.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6%;
    position: relative;
    z-index: 2; /* Overlay ekata udata text enna */
}

.hero-content {
    max-width: 650px;
    color: #ffffff;
}

.hero-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-blue); /* Ara premium blue eka */
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s 0.5s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s 0.7s ease-out;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s 0.9s ease-out;
}

/* Slide Active Animations */
.bg-slide.active .hero-subtitle,
.bg-slide.active .hero-title,
.bg-slide.active .hero-description,
.bg-slide.active .hero-btns {
    opacity: 1;
    transform: translateY(0);
}

/* --- Premium Buttons (White/Transparent) --- */
.hero-btns {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s 1.1s ease-out;
}

.btn-white {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 16px 40px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn-white::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.85) 45%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 0.65s ease;
    z-index: -1;
}

.btn-white:hover {
    background: var(--accent-blue);
    border-color: rgba(0,122,255,0.75);
    color: #fff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 36px rgba(0, 122, 255, 0.22), 0 10px 26px rgba(15, 23, 42, 0.16);
}

.btn-white:hover::before {
    transform: translateX(130%);
}

.btn-white:active {
    transform: translateY(-1px) scale(0.995);
}

.btn-transparent {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 0 6px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: transform 0.35s ease, color 0.35s ease, border-color 0.35s ease, text-shadow 0.35s ease;
}

.btn-transparent svg {
    transition: transform 0.35s ease;
}

.btn-transparent:hover {
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
    text-shadow: 0 10px 20px rgba(255,255,255,0.18);
}

.btn-transparent:hover svg {
    transform: translateX(4px);
}

.btn-transparent:active {
    transform: translateY(0);
}

/* --- Pagination (Glassmorphism dots) --- */
.hero-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.2);
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.5); /* Mobile ekedi mulu image ekama dark karanawa */
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 45px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn-white {
        width: 100%;
        text-align: center;
    }
}

/* --- UPDATED MOBILE CENTER ALIGNMENT --- */

@media (max-width: 768px) {
    /* 1. Hero Container center kireema */
    .hero-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center; /* Mulu content ekama center wenawa */
        padding: 0 10%; /* Side margins poddak wadi kara lassana wenna */
    }

    /* 2. Text elements center kireema */
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 38px; /* Mobile ekata galapenna poddak adu kara */
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 30px;
        max-width: 300px; /* Text eka godak digata yanne nathuwa center eke thiyaganna */
    }

    /* 3. Buttons center kireema */
    .hero-btns {
        width: 100%;
        flex-direction: column; /* Buttons ekata yata wenna */
        gap: 15px;
        align-items: center;
    }

    .btn-white {
        width: 100%; /* Mobile ekedi loku button ekak dunnama premium */
        max-width: 280px;
        text-align: center;
    }

    .btn-transparent {
        justify-content: center;
        width: auto;
    }

    /* 4. Pagination (Dots) center eke thiyaganna */
    .hero-pagination {
        bottom: 100px; /* Bottom nav ekata therenna poddak udata kara */
        left: 50%;
        transform: translateX(-50%);
    }
}

/* --- OPTIONAL: ANIMATION REFINEMENT --- */
/* Mobile ekedi slide weddi thawa smooth wenna meka add karanna */
.bg-slide.active .hero-title {
    animation: fadeInUp 1s ease forwards;
}

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

/* --- CATEGORY SECTION STYLING --- */
.category-section {
    padding: 80px 5%;
    background: #ffffff;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Section Header (Title & View All) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

.view-all {
    font-size: 14px;
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* --- Category Grid Layout --- */
.category-grid {
    display: grid;
    /* Desktop eke categories 6 keta bedanawa */
    grid-template-columns: repeat(6, 1fr); 
    gap: 30px;
    justify-items: center;
}

.category-item a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Circle Image Box */
.circle-box {
    width: 140px;
    height: 140px;
    background: #f5f5f7; /* Light grey apple background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.circle-box img {
    width: 70%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* Text Labels */
.category-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.category-item span {
    font-size: 12px;
    color: #86868b;
    font-weight: 400;
}

/* --- Animations & Hover Effects --- */
.category-item:hover a {
    transform: translateY(-8px);
}

.category-item:hover .circle-box {
    background: #ebebed;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.category-item:hover img {
    transform: scale(1.15) rotate(5deg);
}

/* --- MOBILE RESPONSIVENESS (2 Columns) --- */
@media (max-width: 991px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr); /* Tablet ekedi 3 columns */
        gap: 20px;
    }
    
    .circle-box {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .category-section {
        padding: 50px 5%;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobile ekedi column 2 keta align wenawa */
        gap: 25px 15px;
    }

    .circle-box {
        width: 100px;
        height: 100px; /* Mobile ekata size eka balance kara */
    }

    .category-item h4 {
        font-size: 14px;
    }

    .section-header h3 {
        font-size: 20px;
    }
}

/* --- NEW ARRIVALS: ELITE MINIMALIST STYLE --- */
.new-arrivals {
    padding: 80px 5%;
    background-color: #ffffff;
}

.arrivals-header {
    text-align: center;
    margin-bottom: 50px;
}

.hurry-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #007aff; /* Premium Blue */
    margin-bottom: 10px;
}

.main-title {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.sub-title {
    color: #86868b;
    font-size: 15px;
}

/* --- Filter Tabs --- */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #86868b;
    cursor: pointer;
    text-transform: uppercase;
    padding-bottom: 8px;
    position: relative;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    color: #000;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007aff;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Desktop eke 5 items scale wenawa */
    gap: 30px 20px;
}

.product-card {
    transition: transform 0.4s ease;
}

/* --- Image Wrapper & Hover Effects --- */
.p-image-wrapper {
    position: relative;
    background: #f5f5f7;
    border-radius: 4px;
    aspect-ratio: 1 / 1.2; /* Portrait look for luxury */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
}

.p-img {
    width: 85%;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

/* 1. Vertical Quick Actions (Slide-in from right) */
.p-quick-actions {
    position: absolute;
    right: -50px; /* Initially hidden */
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.4s ease;
}

.action-btn {
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: #555;
}

.action-btn:hover {
    background: #007aff;
    color: #fff;
    border-color: #007aff;
}

/* 2. Slide-up Add to Cart Button */
.p-add-cart {
    position: absolute;
    bottom: -50px; /* Initially hidden */
    left: 0;
    width: 100%;
    height: 45px;
    background: #628acc; /* Screenshot eke thibba blue tone eka */
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
}

/* Card Hover States */
.product-card:hover .p-img {
    transform: scale(1.08);
}

.product-card:hover .p-quick-actions {
    right: 15px; /* Slide in */
}

.product-card:hover .p-add-cart {
    bottom: 0; /* Slide up */
}

/* --- Badge Style --- */
.p-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* --- Product Details --- */
.p-details {
    text-align: center;
}

.p-title {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-model {
    display: block;
    font-size: 12px;
    color: #86868b;
    margin-bottom: 8px;
}

.p-price-row {
    font-size: 16px;
    font-weight: 700;
    color: #007aff;
}

.p-rating {
    font-size: 10px;
    margin-bottom: 5px;
}

/* --- MOBILE VERSION --- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobile 2 columns */
        gap: 20px 10px;
    }
    
    /* Mobile eke hover effects nathuwa buttons pennanna puluwan ona nam */
    .p-quick-actions {
        display: none; /* Mobile eke cluttered wena nisa hide kara */
    }
    
    .p-add-cart {
        bottom: 0;
        height: 35px;
        font-size: 10px;
    }
}

/* --- TRUST FEATURES STYLING --- */
.trust-features {
    padding: 100px 5%;
    background-color: #ffffff;
    text-align: center;
}

.trust-header {
    margin-bottom: 60px;
}

.trust-label {
    font-size: 13px;
    font-weight: 600;
    color: #007aff;
    letter-spacing: 1px;
}

.trust-title {
    font-size: 36px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 15px 0;
}

.trust-desc {
    color: #86868b;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 14px;
    color: #86868b;
    line-height: 1.6;
    padding: 0 10px;
}

/* --- MOBILE VERSION --- */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr; /* Mobile ekedi ekata yata ekak enawa */
        gap: 50px;
    }

    .trust-title {
        font-size: 28px;
    }

    .trust-desc {
        font-size: 14px;
    }
}

/* --- PROMO BANNERS STYLING --- */
.promo-banners {
    padding: 60px 5%;
    background-color: #ffffff;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Desktop 2x2 Grid */
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.banner-card {
    position: relative;
    border-radius: 12px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    min-height: 350px;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Background Variations */
.light-grey-bg { background-color: #f5f5f7; }
.white-bg { background-color: #ffffff; border: 1px solid #eee; }

.banner-info {
    flex: 1;
    z-index: 2;
}

.banner-tag {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #007aff;
    margin-bottom: 15px;
}

.banner-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.2;
    margin-bottom: 30px;
    max-width: 250px;
}

/* --- Banner Buttons --- */
.btn-blue-solid {
    display: inline-block;
    padding: 12px 30px;
    background: #007aff;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-blue-solid:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid #ddd;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}

/* --- Image Styling --- */
.banner-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.banner-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
}

/* Hover Effect */
.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.banner-card:hover .banner-image img {
    transform: scale(1.05) rotate(2deg);
}

/* --- MOBILE VERSION --- */
@media (max-width: 1024px) {
    .banner-grid {
        grid-template-columns: 1fr; /* Tablet/Mobile 1 Column */
    }
}

@media (max-width: 480px) {
    .banner-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        min-height: auto;
    }

    .banner-info {
        margin-bottom: 30px;
    }

    .banner-title {
        max-width: 100%;
        font-size: 26px;
    }

    .banner-image {
        justify-content: center;
    }

    .banner-image img {
        max-width: 200px;
    }
}

/* --- MOST POPULAR PRODUCTS STYLING --- */
.popular-products {
    padding: 100px 5%;
    background-color: #ffffff;
}

.popular-header {
    text-align: center;
    margin-bottom: 60px;
}

.learn-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #007aff;
    margin-bottom: 10px;
}

.popular-title {
    font-size: 40px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.popular-desc {
    color: #86868b;
    font-size: 15px;
}

/* --- Popular Grid Layout (5 Columns) --- */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.popular-card {
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    transition: 0.3s ease;
}

/* --- Image Container --- */
.pop-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    overflow: hidden;
}

.pop-img {
    width: 80%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

/* --- Sidebar Actions (Vertical Icons) --- */
.pop-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0; /* Initially hidden */
    transition: 0.3s ease;
}

.pop-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    transition: 0.3s;
}

.pop-btn:hover {
    color: #007aff;
    transform: scale(1.2);
}

/* Card Hover States */
.popular-card:hover .pop-img {
    transform: scale(1.1);
}

.popular-card:hover .pop-actions {
    opacity: 1;
}

/* --- Active/Special Card (Blue Line in Screenshot) --- */
.active-card {
    border-bottom: 2px solid #007aff;
}

/* --- Badge --- */
.pop-badge.hot {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff3b30;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
}

/* --- Product Info --- */
.pop-name {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pop-category {
    display: block;
    font-size: 12px;
    color: #86868b;
    margin-bottom: 10px;
}

.pop-price {
    font-size: 16px;
    font-weight: 700;
    color: #007aff;
}

/* --- MOBILE VERSION (2.5 Columns or Grid) --- */
@media (max-width: 1024px) {
    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .popular-grid {
        display: flex;
        overflow-x: auto; /* Mobile view eke slider ekak wage scroll wenna */
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
    }

    .popular-card {
        min-width: 200px;
        scroll-snap-align: start;
    }

    .popular-title {
        font-size: 28px;
    }
}

/* --- FOOTER STYLING --- */
.main-footer {
    background-color: #fbfbfd; /* Apple's off-white background */
    padding: 80px 0 40px;
    border-top: 1px solid #e6e6e6;
    color: #1d1d1f;
}

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

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1d1d1f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

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

.footer-col ul li a {
    text-decoration: none;
    color: #86868b;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #007aff;
    padding-left: 5px;
}

/* --- Brand Column --- */
.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-logo span {
    font-weight: 300;
    color: #86868b;
}

.footer-about {
    font-size: 14px;
    line-height: 1.6;
    color: #86868b;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    transition: 0.3s;
}

.social-links a:hover {
    background: #007aff;
    color: #fff;
    transform: translateY(-3px);
}

/* --- Newsletter --- */
.newsletter-col p {
    font-size: 14px;
    color: #86868b;
    margin-bottom: 20px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #d2d2d7;
    border-radius: 4px;
    background: #fff;
    outline: none;
    font-size: 14px;
}

.subscribe-form button {
    padding: 0 20px;
    background: #1d1d1f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.subscribe-form button:hover {
    background: #424245;
}

/* --- Footer Bottom --- */
.footer-bottom {
    border-top: 1px solid #e6e6e6;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    font-size: 12px;
    color: #86868b;
    line-height: 1.5;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0.6;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
/* === PATCHED APP-LIKE MOBILE DRAWER === */
html { scroll-behavior: smooth; }
body.drawer-active { overflow: hidden; }
.cart-badge.pulse { transform: scale(1.18); }
.cart-badge { transition: transform 0.2s ease; }

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 10010;
}

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

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(82vw, 340px);
    height: 100dvh;
    background: #ffffff;
    z-index: 10020;
    transform: translateX(-100%);
    transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 20px 0 50px rgba(15, 23, 42, 0.14);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.drawer-open { transform: translateX(0); }
.drawer-top { border-bottom: 1px solid #ececec; }
.drawer-search {
    height: 70px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #7b6d5e;
    font-size: 14px;
    font-weight: 600;
}
.drawer-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f3f3f3;
}
.drawer-tab {
    height: 52px;
    border: 0;
    background: transparent;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.8px;
    font-weight: 700;
    color: #8d8d94;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.drawer-tab.active {
    background: #fff;
    color: #1d1d1f;
    border-bottom-color: #3071ff;
}
.drawer-panels { flex: 1; overflow: auto; }
.drawer-panel { display: none; }
.drawer-panel.active { display: block; }
.drawer-link {
    min-height: 50px;
    padding: 14px 18px;
    border-bottom: 1px solid #eeeeef;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #171717;
    font-size: 16px;
    font-weight: 600;
}
.drawer-link.is-menu { font-size: 15px; }
.drawer-icon {
    width: 18px;
    text-align: center;
    color: #111827;
    font-size: 16px;
}

/* app-like card reveal */
.product-card,
.popular-card,
.banner-card,
.feature-card {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}
.product-card.revealed,
.popular-card.revealed,
.banner-card.revealed,
.feature-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.p-add-cart.added { background: #16a34a !important; }
.action-btn,
.pop-btn {
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
}

/* product grid improvements */
.product-grid { margin-top: 18px; }
.product-card { display: block; }
.p-image-wrapper,
.pop-img-wrapper {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}
.p-img,
.pop-img,
.banner-image img {
    display: block;
}
.p-title,
.pop-name { white-space: normal; min-height: 40px; }
.p-price-row,
.pop-price { letter-spacing: -0.2px; }

.hero-slider { overflow: hidden; }
.bg-slide { background-color: #f4f6fb; }

.payment-methods img {
    background: #fff;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

@media (min-width: 1025px) {
    .mobile-drawer,
    .mobile-drawer-overlay { display: none; }
}

@media (max-width: 1024px) {
    .mobile-nav-trigger {
        width: 42px;
        height: 42px;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.75);
        backdrop-filter: blur(10px);
    }

    .header-container {
        padding: 0 16px;
        gap: 12px;
    }

    .brand-logo { font-size: 19px; }
    .hero-title { font-size: clamp(34px, 8vw, 52px); }
    .hero-description { font-size: 15px; }
    .hero-pagination { bottom: 86px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
    .banner-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar { font-size: 10px; padding: 8px 10px; }
    .header-utilities { gap: 10px; }
    .util-btn { padding: 2px; }
    .full-bg-hero { height: calc(100vh - 50px); min-height: 560px; }
    .hero-container { padding: 0 22px !important; }
    .hero-content { max-width: 100%; }
    .hero-btns { width: 100%; }
    .btn-white,
    .btn-transparent { width: 100%; justify-content: center; }
    .new-arrivals,
    .trust-features,
    .promo-banners,
    .popular-products { padding-left: 16px; padding-right: 16px; }
    .arrivals-header,
    .popular-header,
    .trust-header { margin-bottom: 34px; }
    .main-title,
    .popular-title,
    .trust-title { font-size: 30px; line-height: 1.15; }
    .sub-title,
    .popular-desc,
    .trust-desc { font-size: 14px; }
    .filter-tabs {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
    .product-card .p-details { text-align: left; }
    .p-image-wrapper { margin-bottom: 10px; border-radius: 18px; }
    .p-add-cart { bottom: 0; height: 38px; font-size: 10px; }
    .p-quick-actions { display: none; }
    .features-grid { gap: 18px; }
    .feature-card { background: #fff; border: 1px solid #eef1f4; border-radius: 18px; padding: 22px; }
    .banner-card {
        min-height: 280px;
        padding: 26px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .banner-image {
        width: 100%;
        justify-content: center;
    }
    .banner-image img { max-width: 220px; }
    .popular-grid { gap: 14px; padding-bottom: 8px; }
    .popular-card {
        min-width: 190px;
        background: #fff;
        border: 1px solid #eef1f4;
        border-radius: 18px;
        padding: 10px;
    }
    .pop-img-wrapper { border-radius: 16px; }
    .main-footer { padding-bottom: 105px; }
}

@media (max-width: 480px) {
    .mobile-drawer { width: 84vw; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { letter-spacing: 2px; font-size: 12px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .circle-box { width: 88px; height: 88px; }
    .bottom-nav-item span { font-size: 9px; }
}


.brand-logo-img {
    width: 160px;
    height: auto;
    display: block;
}

.footer-logo-img {
    width: 175px;
    height: auto;
    display: block;
    margin-bottom: 18px;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.load-more-btn {
    min-width: 240px;
    padding: 15px 28px;
    border: 1px solid #111;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 12px 30px rgba(17,17,17,0.12);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    background: #fff;
    color: #111;
}

.load-more-btn.is-complete {
    background: #f5f5f7;
    color: #111;
    border-color: rgba(0,0,0,0.08);
    box-shadow: none;
}

.product-card.is-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .brand-logo-img {
        width: 128px;
    }

    .footer-logo-img {
        width: 150px;
    }

    .load-more-wrap {
        margin-top: 24px;
    }

    .load-more-btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
        font-size: 12px;
    }
}


/* --- Update v4 tweaks --- */
.full-bg-hero {
    height: calc(100vh - 10px);
    min-height: 620px;
}
@media (max-width: 768px) {
    .full-bg-hero {
        height: calc(100vh - 80px);
        min-height: 540px;
    }
}



/* --- HERO CATEGORY BAR --- */
.top-bar{display:none !important;}
.hero-category-bar{padding:26px 0 30px;background:#f7f7f8;border-bottom:1px solid rgba(0,0,0,0.05);}
.hero-category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px;align-items:start;}
.hero-category-item{text-decoration:none;text-align:center;color:#222;display:flex;flex-direction:column;align-items:center;transition:transform .25s ease;}
.hero-category-item:hover{transform:translateY(-4px);}
.hero-category-circle{width:132px;height:132px;border-radius:50%;background:#ececef;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:16px;}
.hero-category-circle img{width:70%;height:70%;object-fit:contain;}
.hero-category-item h3{font-size:15px;line-height:1.2;font-weight:600;margin:0 0 6px;}
.hero-category-item p{margin:0;font-size:12px;color:#777;}
@media (max-width: 1100px){.hero-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:28px;}}
@media (max-width: 640px){.hero-category-bar{padding:20px 0 18px;}.hero-category-grid{display:flex;gap:14px;overflow-x:auto;padding:0 16px 6px;scrollbar-width:none;}.hero-category-grid::-webkit-scrollbar{display:none;}.hero-category-item{min-width:108px;}.hero-category-circle{width:86px;height:86px;margin-bottom:10px;}.hero-category-item h3{font-size:14px;}.hero-category-item p{font-size:11px;}}


/* --- SOCIAL PROOF STRIP --- */
.social-proof-strip {
    background: #000;
    margin-top: 0;
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
}

.social-proof-card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
}

.social-proof-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, opacity 0.35s ease;
}

.social-proof-card .social-proof-cover {
    object-fit: contain;
    padding: 18px;
    background: linear-gradient(135deg, #d7efff, #ffffff 60%, #f2f2f2);
}

.social-proof-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-proof-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.16);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.social-proof-card:hover img {
    transform: scale(1.06);
}

.social-proof-card:hover .social-proof-overlay {
    opacity: 1;
}

.social-proof-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.28);
}

.main-footer {
    margin-top: 0;
}

@media (max-width: 1100px) {
    .social-proof-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

    .social-proof-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

.hero-content {
    animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.bg-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 25%, rgba(255,255,255,0.12), transparent 30%);
    pointer-events: none;
}

.filter-btn,
.btn-blue-solid,
.btn-outline,
.load-more-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.filter-btn:hover,
.btn-blue-solid:hover,
.btn-outline:hover,
.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.drawer-link {
    transition: background 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
}

.drawer-link:hover {
    background: #f8fafc;
    color: var(--accent-blue);
    padding-left: 22px;
}

.drawer-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    flex: 0 0 22px;
}

.drawer-icon svg {
    width: 20px;
    height: 20px;
}

.mob-menu-btn-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
    .btn-white:hover,
    .btn-transparent:hover,
    .filter-btn:hover,
    .btn-blue-solid:hover,
    .btn-outline:hover,
    .load-more-btn:hover { transform: none; box-shadow: none; }
}

/* --- CART PAGE --- */
.cart-page-body {
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 24%, #ffffff 100%);
}

.cart-hero {
    padding: 72px 0 26px;
}

.cart-hero-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding-top: 12px;
}

.cart-overline {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #007aff;
}

.cart-hero h1 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    max-width: 720px;
}

.cart-hero p {
    max-width: 640px;
    color: var(--text-secondary);
    font-size: 15px;
}

.cart-continue-link,
.empty-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: #111111;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition);
}

.cart-continue-link:hover,
.empty-cart-link:hover,
.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(17, 17, 17, 0.16);
}

.cart-main-section {
    padding: 6px 0 82px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.78fr);
    gap: 28px;
    align-items: start;
}

.cart-items-card,
.cart-summary-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.cart-items-card {
    padding: 28px;
}

.cart-summary-card {
    padding: 26px;
    position: sticky;
    top: 94px;
}

.cart-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.cart-card-head h2,
.cart-summary-card h3 {
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.cart-card-head p,
.summary-note {
    color: var(--text-secondary);
    font-size: 14px;
}

.clear-cart-btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.clear-cart-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cart-items-list {
    display: grid;
    gap: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.cart-item-media {
    background: #f4f5f7;
    border-radius: 18px;
    overflow: hidden;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.cart-item-tag {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 122, 255, 0.08);
    color: #007aff;
}

.cart-item h3 {
    font-size: 21px;
    line-height: 1.08;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.cart-item p,
.cart-item-price-wrap span {
    color: var(--text-secondary);
    font-size: 14px;
}

.remove-item-btn {
    border: none;
    background: transparent;
    color: #737373;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.remove-item-btn:hover {
    color: #111111;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 999px;
}

.quantity-box button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 19px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.08);
}

.quantity-box span {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
}

.cart-item-price-wrap {
    text-align: right;
}

.cart-item-price-wrap strong {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    font-size: 15px;
}

.summary-row strong {
    font-size: 16px;
}

.summary-row.total {
    padding-top: 18px;
}

.summary-row.total strong {
    font-size: 24px;
    letter-spacing: -0.03em;
}

.summary-divider {
    height: 1px;
    background: rgba(15, 23, 42, 0.1);
    margin: 2px 0 4px;
}

.coupon-label {
    display: block;
    margin-top: 14px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}

.coupon-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 18px;
}

.coupon-box input {
    min-width: 0;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    padding: 0 16px;
    font-family: inherit;
    font-size: 14px;
}

.coupon-box button,
.checkout-btn {
    min-height: 48px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
}

.coupon-box button {
    padding: 0 16px;
    background: #edf4ff;
    color: #007aff;
}

.checkout-btn {
    width: 100%;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #111111 0%, #2d2d2d 100%);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cart-empty-state {
    text-align: center;
    padding: 48px 24px 32px;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    border-radius: 24px;
    background: #fafafa;
}

.cart-empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.cart-empty-state h3 {
    font-size: 26px;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.cart-empty-state p {
    max-width: 420px;
    margin: 0 auto 20px;
    color: var(--text-secondary);
}

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

    .cart-summary-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .cart-hero {
        padding-top: 58px;
    }

    .cart-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-items-card,
    .cart-summary-card {
        padding: 18px;
        border-radius: 22px;
    }

    .cart-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .cart-item-media {
        min-height: 220px;
    }

    .cart-item-top,
    .cart-item-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-price-wrap {
        text-align: left;
    }

    .coupon-box {
        grid-template-columns: 1fr;
    }
}

/* --- CHECKOUT PAGE --- */
.checkout-page-body {
    background: linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 100%);
}

.checkout-hero {
    padding: 54px 0 26px;
}

.checkout-hero-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.checkout-main-section {
    padding: 8px 0 90px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.checkout-main-card,
.checkout-sidebar-card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.08);
}

.checkout-main-card {
    padding: 28px;
}

.checkout-sidebar-card {
    padding: 24px;
    position: sticky;
    top: 92px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.checkout-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f5f6f8;
    transition: var(--transition);
}

.checkout-step.active,
.checkout-step.completed {
    background: #ffffff;
    border-color: rgba(0, 122, 255, 0.18);
    box-shadow: 0 12px 36px rgba(0, 122, 255, 0.08);
}

.checkout-step.completed .checkout-step-number,
.checkout-step.active .checkout-step-number {
    background: var(--text-main);
    color: #fff;
}

.checkout-step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.08);
}

.checkout-step strong {
    display: block;
    font-size: 14px;
}

.checkout-step small {
    display: block;
    color: var(--text-secondary);
    margin-top: 3px;
    font-size: 12px;
}

.checkout-step-line {
    width: 36px;
    height: 1px;
    background: rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.checkout-success-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,122,255,0.08), rgba(16,185,129,0.08));
    border: 1px solid rgba(16, 185, 129, 0.14);
    margin-bottom: 22px;
}

.checkout-success-banner strong,
.checkout-sidebar-head h3,
.delivery-review-head h3,
.checkout-section-head h2,
.minor-head h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.checkout-success-banner p,
.checkout-section-head p,
.delivery-review-head span,
.checkout-sidebar-head p,
.delivery-review-grid span,
.checkout-mini-empty p,
.payment-option-head p,
.summary-note {
    color: var(--text-secondary);
    font-size: 13px;
}

.success-banner-link,
.secondary-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    text-decoration: none;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    min-height: 44px;
    padding: 0 18px;
    background: #fff;
}

.checkout-pane {
    display: none;
}

.checkout-pane.active {
    display: block;
}

.checkout-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.checkout-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.08);
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.checkout-chip.subtle {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-main);
}

.checkout-form,
.payment-card-fields,
.delivery-review-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: #fff;
    padding: 22px;
}

.checkout-form-grid {
    display: grid;
    gap: 16px;
}

.checkout-form-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-form-grid.compact-gap {
    margin-top: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 16px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    background: #fbfbfc;
    padding: 14px 15px;
    outline: none;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: rgba(0, 122, 255, 0.3);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.08);
}

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

.checkout-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.checkout-actions.justify-end {
    justify-content: flex-end;
}

.checkout-actions.split-actions {
    justify-content: space-between;
    margin-top: 22px;
}

.primary-action-btn,
.ghost-action-btn {
    min-height: 48px;
    border-radius: 999px;
    padding: 0 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: var(--transition);
}

.primary-action-btn {
    border: none;
    background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
    color: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
}

.primary-action-btn:hover,
.ghost-action-btn:hover,
.secondary-action-link:hover,
.success-banner-link:hover {
    transform: translateY(-2px);
}

.primary-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.ghost-action-btn {
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    color: var(--text-main);
}

.delivery-review-card {
    margin-bottom: 18px;
}

.delivery-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.delivery-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.delivery-review-grid strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.delivery-review-grid .full-row {
    grid-column: 1 / -1;
}

.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.payment-option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 22px;
    background: #fff;
    padding: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option-card:hover,
.payment-option-card.selected {
    border-color: rgba(0, 122, 255, 0.22);
    box-shadow: 0 18px 44px rgba(0, 122, 255, 0.08);
    transform: translateY(-2px);
}

.payment-option-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.payment-option-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.payment-option-head strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.payment-option-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
    color: var(--text-main);
    flex-shrink: 0;
}

.payment-option-icon svg {
    width: 22px;
    height: 22px;
}

.card-icon { background: rgba(0, 122, 255, 0.08); }
.koko-icon { background: rgba(236, 72, 153, 0.1); }
.bank-icon { background: rgba(245, 158, 11, 0.1); }
.mobile-wallet-icon { background: rgba(16, 185, 129, 0.1); }
.cod-icon { background: rgba(15, 23, 42, 0.06); }

.method-chip {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.brand-cards {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-cards img {
    width: 110px;
    max-width: 100%;
    height: 36px;
    object-fit: contain;
    border-radius: 12px;
}

.payment-card-fields.hidden-fields {
    display: none;
}

.checkout-sidebar-head,
.checkout-method-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.checkout-mini-items {
    display: grid;
    gap: 14px;
    margin: 22px 0 20px;
}

.checkout-mini-item {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.checkout-mini-item img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 14px;
    background: #f6f6f8;
}

.checkout-mini-item strong,
.checkout-method-preview strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.checkout-mini-item span,
.checkout-method-preview span,
.checkout-mini-item em {
    color: var(--text-secondary);
    font-size: 12px;
    font-style: normal;
}

.checkout-mini-item em {
    color: var(--text-main);
    font-weight: 600;
}

.checkout-mini-empty {
    padding: 18px;
    border: 1px dashed rgba(15, 23, 42, 0.14);
    border-radius: 18px;
    background: #fff;
}

.checkout-mini-empty strong {
    display: block;
    margin-bottom: 8px;
}

.checkout-mini-empty a {
    text-decoration: none;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 600;
}

.checkout-method-preview {
    margin-top: 18px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

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

    .checkout-sidebar-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .checkout-hero {
        padding-top: 32px;
    }

    .checkout-hero-inner,
    .checkout-section-head,
    .checkout-success-banner,
    .delivery-review-head,
    .checkout-sidebar-head,
    .checkout-method-preview,
    .checkout-actions.split-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-main-card,
    .checkout-sidebar-card,
    .checkout-form,
    .payment-card-fields,
    .delivery-review-card {
        padding: 18px;
        border-radius: 22px;
    }

    .checkout-steps {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-step-line {
        width: 1px;
        height: 22px;
        align-self: center;
    }

    .checkout-form-grid.two-col,
    .payment-options-grid,
    .delivery-review-grid {
        grid-template-columns: 1fr;
    }

    .checkout-mini-item {
        grid-template-columns: 56px 1fr;
    }

    .checkout-mini-item em {
        grid-column: 2 / -1;
    }

    .brand-cards img {
        width: 96px;
    }
}

body.cart-panel-active {
    overflow: hidden;
}

body.cart-panel-active .main-header,
body.cart-panel-active .mobile-bottom-nav {
    z-index: 1;
}

.cart-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 20000;
}

.cart-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, calc(100vw - 26px));
    height: 100vh;
    background: #ffffff;
    transform: translateX(110%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 20001;
    box-shadow: -24px 0 48px rgba(15, 23, 42, 0.16);
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px;
    border-bottom: 1px solid #e7ebf0;
    gap: 16px;
}

.cart-panel-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a94a7;
    margin-bottom: 6px;
}

.cart-panel-head h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    color: #111827;
}

.cart-panel-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
}

.cart-panel-close span {
    font-size: 18px;
    line-height: 1;
}

.cart-panel-body {
    min-height: 0;
    overflow-y: auto;
}

.cart-panel-items {
    padding: 6px 18px 20px;
}

.cart-panel-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #eef2f6;
}

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

.cart-panel-item-media {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #edf1f5;
}

.cart-panel-item-media img {
    width: 76%;
    height: 76%;
    object-fit: contain;
}

.cart-panel-item-content {
    min-width: 0;
}

.cart-panel-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.cart-panel-item-top h4 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
    color: #1f2937;
}

.cart-panel-item-content p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #6b7280;
}

.cart-panel-remove {
    border: none;
    background: transparent;
    color: #8b95a7;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 2px;
    flex: 0 0 auto;
}

.cart-panel-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-panel-item-bottom strong {
    font-size: 18px;
    font-weight: 700;
    color: #1368ce;
    white-space: nowrap;
}

.cart-panel-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border: 1px solid #e4eaf1;
    border-radius: 999px;
    background: #f9fbfd;
}

.cart-panel-qty button {
    width: 24px;
    height: 24px;
    border: none;
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.cart-panel-qty span {
    min-width: 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.cart-panel-empty {
    padding: 42px 24px 30px;
    text-align: center;
}

.cart-panel-empty-icon {
    font-size: 34px;
    margin-bottom: 12px;
}

.cart-panel-empty h4 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #111827;
}

.cart-panel-empty p {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.cart-panel-shop-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    background: #1368ce;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.cart-panel-footer {
    border-top: 1px solid #e7ebf0;
    padding: 18px;
    background: #ffffff;
}

.cart-panel-subtotal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.cart-panel-subtotal-row span {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
}

.cart-panel-subtotal-row strong {
    font-size: 18px;
    font-weight: 800;
    color: #1368ce;
}

.cart-panel-progress-text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.cart-panel-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #edf2f7;
    overflow: hidden;
}

.cart-panel-progress-bar {
    display: block;
    width: 12%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2b7de0 0%, #0f5dbd 100%);
    transition: width 0.25s ease;
}

.cart-panel-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.cart-panel-secondary,
.cart-panel-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.cart-panel-secondary {
    background: #f1f5f9;
    color: #374151;
}

.cart-panel-primary {
    background: #1368ce;
    color: #ffffff;
}

.cart-panel-secondary:hover,
.cart-panel-primary:hover {
    transform: translateY(-1px);
}

.cart-panel-secondary[aria-disabled="true"],
.cart-panel-primary[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.55;
}

@media (max-width: 768px) {
    .cart-panel {
        width: min(390px, calc(100vw - 18px));
    }

    .cart-panel-head {
        padding: 18px 16px;
    }

    .cart-panel-head h3 {
        font-size: 22px;
    }

    .cart-panel-items {
        padding: 4px 16px 16px;
    }

    .cart-panel-item {
        grid-template-columns: 68px 1fr;
        gap: 12px;
        padding: 16px 0;
    }

    .cart-panel-item-media {
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }

    .cart-panel-item-top h4 {
        font-size: 16px;
    }

    .cart-panel-item-content p,
    .cart-panel-progress-text {
        font-size: 13px;
    }

    .cart-panel-subtotal-row span,
    .cart-panel-subtotal-row strong {
        font-size: 16px;
    }
}

/* --- Checkout polish v2 --- */
.checkout-hero {
    padding: 42px 0 18px;
}

.checkout-hero h1 {
    font-size: clamp(30px, 4.2vw, 46px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    margin-bottom: 12px;
}

.checkout-hero p {
    max-width: 680px;
    color: var(--text-secondary);
    font-size: 15px;
}

.checkout-hero .cart-overline {
    margin-bottom: 12px;
}

.checkout-main-card,
.checkout-sidebar-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(250,251,253,0.96) 100%);
}

.checkout-form,
.payment-card-fields,
.delivery-review-card,
.payment-strip-card,
.payment-info-panel {
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
}

.payment-strip-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 60%, #f7f8fb 100%);
    padding: 20px 22px;
    margin-bottom: 18px;
}

.payment-strip-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.payment-strip-head h3,
.panel-head-copy h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.payment-strip-head p,
.panel-head-copy p,
.bank-detail-item span,
.upload-proof-box small,
.payment-bullet-list li,
.upload-proof-name {
    color: var(--text-secondary);
    font-size: 13px;
}

.payment-strip-logos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.payment-strip-logo {
    min-height: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    text-align: center;
}

.payment-strip-logo img {
    height: 20px;
    width: auto;
}

.payment-strip-logo strong,
.payment-strip-logo em {
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
}

.payment-strip-logo small {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.1;
}

.visa-pill { background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(255,255,255,1)); }
.mastercard-pill { background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(255,255,255,1)); }
.koko-pill { background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(255,255,255,1)); }
.wallet-pill { background: linear-gradient(135deg, rgba(16, 185, 129, 0.10), rgba(255,255,255,1)); }
.cod-pill { background: linear-gradient(135deg, rgba(15, 23, 42, 0.06), rgba(255,255,255,1)); }

.payment-option-card {
    overflow: hidden;
}

.payment-option-card::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(15, 23, 42, 0.16);
    background: #fff;
    transition: var(--transition);
}

.payment-option-card.selected::after {
    background: linear-gradient(135deg, #0f172a, #334155);
    border-color: #0f172a;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.payment-extra-panels {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.payment-info-panel {
    display: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
    padding: 22px;
}

.payment-info-panel.active {
    display: block;
    animation: fadeUpIn 0.28s ease;
}

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

.panel-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-head-copy {
    min-width: 0;
}

.panel-brand-logos,
.panel-brand-logos.compact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-brand-logos img {
    height: 34px;
    width: auto;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 6px 10px;
}

.payment-bullet-list {
    margin: 16px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.payment-bullet-list.compact-list {
    gap: 8px;
}

.light-chip {
    background: rgba(0, 122, 255, 0.08);
    color: var(--accent-blue);
}

.bank-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.bank-detail-item {
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.bank-detail-item span {
    display: block;
    margin-bottom: 6px;
}

.bank-detail-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.upload-proof-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px dashed rgba(0, 122, 255, 0.24);
    background: linear-gradient(135deg, rgba(0,122,255,0.05), rgba(255,255,255,1));
}

.upload-proof-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
}

.upload-proof-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.upload-proof-input-wrap input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-proof-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.upload-proof-button svg {
    width: 18px;
    height: 18px;
}

.upload-proof-name {
    min-height: 22px;
    font-weight: 600;
}

.upload-proof-name.has-file {
    color: #0f172a;
}

.checkout-method-preview {
    gap: 18px;
}

.checkout-method-preview > div {
    min-width: 0;
}

.checkout-sidebar-card {
    overflow: hidden;
}

.checkout-sidebar-card::before {
    content: '';
    display: block;
    height: 5px;
    margin: -24px -24px 18px;
    background: linear-gradient(90deg, #0f172a, #3b82f6, #10b981);
}

.checkout-section-head.with-back {
    align-items: center;
}

.checkout-section-head.with-back .ghost-action-btn {
    white-space: nowrap;
}

.primary-action-btn {
    min-width: 230px;
}

@media (max-width: 1180px) {
    .checkout-layout {
        gap: 18px;
    }

    .checkout-sidebar-card {
        order: 2;
    }
}

@media (max-width: 767px) {
    .checkout-hero {
        padding: 22px 0 8px;
    }

    .checkout-hero-inner {
        padding: 0 16px;
        gap: 14px;
    }

    .checkout-hero h1 {
        font-size: 30px;
        line-height: 1.03;
        margin-bottom: 10px;
    }

    .checkout-hero p {
        font-size: 14px;
        max-width: 100%;
    }

    .checkout-main-section {
        padding: 6px 0 84px;
    }

    .checkout-main-card,
    .checkout-sidebar-card {
        border-radius: 24px;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
    }

    .checkout-main-card,
    .checkout-sidebar-card,
    .checkout-form,
    .payment-card-fields,
    .delivery-review-card,
    .payment-strip-card,
    .payment-info-panel {
        padding: 16px;
    }

    .checkout-step {
        gap: 12px;
        padding: 12px 14px;
        border-radius: 18px;
    }

    .checkout-step strong {
        font-size: 13px;
    }

    .checkout-step small {
        font-size: 11px;
    }

    .checkout-step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .payment-strip-head,
    .panel-head-row,
    .checkout-section-head.with-back {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-strip-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .payment-strip-logo {
        min-height: 68px;
        padding: 10px;
        border-radius: 18px;
    }

    .payment-option-card {
        padding: 16px;
        border-radius: 20px;
        gap: 14px;
    }

    .payment-option-head {
        gap: 12px;
    }

    .payment-option-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .payment-option-head strong {
        font-size: 14px;
    }

    .payment-option-head p {
        font-size: 12px;
    }

    .bank-detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .upload-proof-box {
        padding: 16px;
        border-radius: 18px;
    }

    .upload-proof-input-wrap {
        align-items: stretch;
    }

    .upload-proof-button {
        width: 100%;
        justify-content: center;
    }

    .upload-proof-name {
        width: 100%;
        font-size: 12px;
    }

    .checkout-actions,
    .checkout-actions.split-actions {
        width: 100%;
        gap: 12px;
    }

    .checkout-actions.justify-end,
    .checkout-actions.split-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .secondary-action-link,
    .primary-action-btn,
    .ghost-action-btn,
    .success-banner-link,
    .cart-continue-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .primary-action-btn {
        min-width: 0;
    }

    .checkout-sidebar-card::before {
        margin: -16px -16px 16px;
    }

    .checkout-method-preview {
        gap: 12px;
    }

    .summary-row {
        padding: 12px 0;
    }

    .summary-row.total strong {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .checkout-hero h1 {
        font-size: 27px;
    }

    .payment-strip-logos {
        grid-template-columns: 1fr 1fr;
    }

    .payment-strip-logo strong,
    .payment-strip-logo em {
        font-size: 12px;
    }

    .payment-strip-logo small {
        font-size: 10px;
    }

    .checkout-sidebar-head h3,
    .delivery-review-head h3,
    .checkout-section-head h2,
    .minor-head h3,
    .payment-strip-head h3,
    .panel-head-copy h3 {
        font-size: 18px;
    }

    .checkout-chip,
    .method-chip {
        font-size: 10px;
    }
}


/* --- Checkout payment refresh v3 --- */
.payment-strip-logos.real-brand-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.payment-brand-pill {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.payment-brand-pill img {
    display: block;
    width: 100%;
    height: auto;
}

.payment-gateway-bar {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    display: grid;
    gap: 12px;
}

.gateway-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.gateway-copy strong {
    font-size: 14px;
    line-height: 1.1;
}

.gateway-copy span {
    font-size: 12px;
    color: var(--text-secondary);
}

.payment-gateway-bar img,
.gateway-panel-media img,
.real-brand-row img {
    display: block;
    width: 100%;
    height: auto;
}

.gateway-panel-media {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.real-brand-row {
    margin-top: 6px;
}

.real-brand-row img {
    max-width: 270px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.payment-option-card .method-chip {
    align-self: flex-start;
}

.dark-chip {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.amber-chip {
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
}

.green-chip {
    background: rgba(16, 185, 129, 0.14);
    color: #065f46;
}

.slate-chip {
    background: rgba(51, 65, 85, 0.1);
    color: #334155;
}

@media (max-width: 767px) {
    .checkout-page-body {
        background: #f5f7fb;
    }

    .checkout-main-section {
        padding-bottom: 104px;
    }

    .payment-strip-card,
    .payment-info-panel,
    .delivery-review-card,
    .payment-card-fields,
    .checkout-form {
        border-radius: 22px;
    }

    .payment-strip-logos.real-brand-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .payment-brand-pill {
        border-radius: 18px;
    }

    .payment-options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .payment-option-card {
        border-radius: 22px;
        padding: 16px;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
    }

    .payment-option-card.selected {
        box-shadow: 0 18px 30px rgba(0, 122, 255, 0.09);
    }

    .payment-option-card::after {
        top: 14px;
        right: 14px;
    }

    .payment-option-head {
        align-items: center;
    }

    .real-brand-row img {
        max-width: 100%;
    }

    .gateway-copy {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-sidebar-card {
        position: static;
    }

    .checkout-sidebar-head,
    .checkout-method-preview {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .checkout-main-section {
        padding-bottom: 98px;
    }

    .checkout-main-card,
    .checkout-sidebar-card {
        border-radius: 22px;
    }

    .payment-option-head strong {
        font-size: 15px;
    }

    .payment-option-head p {
        font-size: 11.5px;
    }

    .gateway-copy strong {
        font-size: 13px;
    }

    .gateway-copy span {
        font-size: 11px;
    }
}


/* --- Payment image clarity refresh --- */
.payment-brand-pill {
    min-height: 96px;
}

.payment-brand-pill img {
    aspect-ratio: 13 / 7;
    object-fit: cover;
}

.payment-gateway-bar img,
.gateway-panel-media img,
.real-brand-row img {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.real-brand-row img {
    max-width: 100%;
}

@media (max-width: 767px) {
    .payment-brand-pill {
        min-height: 84px;
    }

    .gateway-panel-media {
        gap: 10px;
    }

    .gateway-panel-media img,
    .real-brand-row img {
        border-radius: 14px;
    }
}


/* --- Product details page --- */
.details-link-trigger {
    cursor: pointer;
}

.details-page-body {
    background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 34%, #f9fafc 100%);
}

.details-top-strip {
    padding: 24px 0 10px;
}

.details-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.details-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
}

.details-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.details-breadcrumbs strong {
    color: var(--text-main);
}

.details-back-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 13px;
}

.details-main-section {
    padding: 12px 0 26px;
}

.details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 28px;
    align-items: start;
}

.details-gallery-card,
.details-info-card,
.details-panel-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.details-gallery-card {
    padding: 22px;
    position: sticky;
    top: 94px;
}

.details-main-media {
    position: relative;
    min-height: 560px;
    border-radius: 26px;
    background: radial-gradient(circle at top, rgba(0, 122, 255, 0.08), transparent 44%), linear-gradient(180deg, #fbfcff 0%, #eef3f9 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-floating-badge {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 2;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.details-main-media img {
    width: min(82%, 460px);
    max-height: 480px;
    object-fit: contain;
    filter: drop-shadow(0 25px 45px rgba(15, 23, 42, 0.18));
}

.details-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.detail-thumb {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #fff 0%, #f4f7fb 100%);
    border-radius: 18px;
    padding: 10px;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

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

.detail-thumb.active,
.detail-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 122, 255, 0.25);
    box-shadow: 0 16px 30px rgba(0, 122, 255, 0.12);
}

.details-info-card {
    padding: 28px;
}

.details-meta-row,
.details-rating-row,
.details-price-row,
.details-option-head,
.details-benefit-bar,
.details-action-panel,
.related-products-head,
.details-panel-head {
    display: flex;
    align-items: center;
}

.details-meta-row {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.details-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.09);
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.details-chip.neutral {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-main);
}

.details-info-card h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.details-model {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 14px;
}

.details-rating-row {
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 18px;
}

.detail-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.detail-star {
    color: rgba(15, 23, 42, 0.18);
    font-size: 15px;
}

.detail-star.filled,
.detail-rating-value {
    color: #f59e0b;
}

.detail-rating-value {
    font-weight: 700;
    margin-left: 3px;
}

.dot-sep {
    color: rgba(15, 23, 42, 0.18);
}

.details-price-row {
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.details-price-row strong {
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1;
}

.details-price-row span {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-weight: 600;
}

.details-price-row em {
    font-style: normal;
    color: #0f9f5f;
    background: rgba(15, 159, 95, 0.11);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.details-summary {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 22px;
}

.details-option-block,
.details-feature-card {
    padding: 18px 18px 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(240, 244, 249, 0.95) 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    margin-bottom: 16px;
}

.details-option-head,
.details-panel-head,
.related-products-head {
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.details-option-head strong,
.details-panel-head h2,
.related-products-head .main-title {
    color: var(--text-main);
}

.details-option-head span,
.details-panel-head span {
    color: var(--text-secondary);
    font-size: 12px;
}

.detail-choice-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-choice-pill {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: var(--text-main);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.detail-choice-pill.active,
.detail-choice-pill:hover {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}

.details-benefit-bar {
    gap: 12px;
    align-items: stretch;
    margin-bottom: 16px;
}

.details-benefit-item {
    flex: 1;
    min-width: 0;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.details-benefit-item strong,
.details-benefit-item span {
    display: block;
}

.details-benefit-item strong {
    font-size: 13px;
    margin-bottom: 6px;
}

.details-benefit-item span {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.details-feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.details-feature-list li {
    position: relative;
    padding: 14px 14px 14px 42px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    font-size: 14px;
    line-height: 1.6;
}

.details-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 13px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.details-action-panel {
    justify-content: space-between;
    gap: 14px;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #101317 0%, #1b2129 100%);
    color: #fff;
}

.detail-qty-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 130px;
}

.detail-qty-box span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.72);
}

.detail-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.detail-qty-controls button {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.detail-action-buttons {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-secondary-btn,
.detail-primary-btn,
.details-mobile-actions button {
    min-height: 56px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.detail-secondary-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-primary-btn,
.details-mobile-actions button:last-child {
    background: linear-gradient(135deg, #007aff 0%, #0c63e7 100%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(0, 122, 255, 0.26);
}

.detail-secondary-btn:hover,
.detail-primary-btn:hover,
.details-mobile-actions button:hover {
    transform: translateY(-2px);
}

.details-content-section,
.related-products-section {
    padding: 8px 0 28px;
}

.details-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.details-panel-card {
    padding: 24px;
}

.detail-description {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.9;
}

.detail-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-spec-row span {
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-spec-row strong {
    text-align: right;
    font-size: 14px;
}

.related-products-head {
    margin-bottom: 18px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.related-product-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.related-product-media {
    width: 100%;
    border: none;
    background: linear-gradient(180deg, #fafcff 0%, #eef3f9 100%);
    padding: 20px;
    position: relative;
    cursor: pointer;
}

.related-product-media img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.related-product-label {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.related-product-content {
    padding: 16px;
}

.related-product-model {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 6px;
}

.related-product-content h3 {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 12px;
}

.related-product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.related-product-price-row strong {
    font-size: 16px;
}

.related-product-link {
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    color: var(--text-main);
    min-width: 74px;
    min-height: 40px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.details-mobile-sticky-bar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    z-index: 9997;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.details-mobile-sticky-bar span {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.details-mobile-sticky-bar strong {
    font-size: 18px;
    line-height: 1;
}

.details-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    flex: 1;
}

.details-mobile-actions button:first-child {
    background: #eef3f8;
    color: var(--text-main);
}

@media (max-width: 1180px) {
    .details-layout,
    .details-content-grid {
        grid-template-columns: 1fr;
    }

    .details-gallery-card {
        position: static;
    }

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

@media (max-width: 767px) {
    .details-top-strip {
        padding-top: 14px;
    }

    .details-top-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .details-main-section,
    .details-content-section,
    .related-products-section {
        padding-bottom: 20px;
    }

    .details-gallery-card,
    .details-info-card,
    .details-panel-card {
        border-radius: 24px;
    }

    .details-gallery-card,
    .details-info-card,
    .details-panel-card {
        padding: 16px;
    }

    .details-main-media {
        min-height: 360px;
        border-radius: 22px;
    }

    .details-main-media img {
        width: min(84%, 270px);
        max-height: 280px;
    }

    .details-thumbs {
        gap: 10px;
    }

    .detail-thumb {
        min-height: 76px;
        border-radius: 16px;
    }

    .detail-thumb img {
        height: 54px;
    }

    .details-info-card h1 {
        font-size: 29px;
    }

    .details-price-row strong {
        font-size: 30px;
    }

    .details-benefit-bar,
    .details-action-panel,
    .details-feature-list {
        grid-template-columns: 1fr;
    }

    .details-benefit-bar {
        display: grid;
    }

    .details-feature-list {
        display: grid;
    }

    .details-action-panel {
        flex-direction: column;
        align-items: stretch;
    }

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

    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .related-product-media img {
        height: 150px;
    }

    .details-mobile-sticky-bar {
        display: flex;
    }

    .details-page-body {
        padding-bottom: 170px;
    }
}

@media (max-width: 480px) {
    .details-breadcrumbs {
        font-size: 12px;
        gap: 7px;
    }

    .details-main-media {
        min-height: 320px;
    }

    .detail-floating-badge {
        left: 12px;
        top: 12px;
        padding: 7px 11px;
        font-size: 10px;
    }

    .details-info-card h1 {
        font-size: 26px;
    }

    .details-feature-list li {
        font-size: 13px;
        padding: 13px 12px 13px 40px;
    }

    .details-mobile-sticky-bar {
        left: 10px;
        right: 10px;
        bottom: calc(74px + env(safe-area-inset-bottom));
        padding: 12px;
        border-radius: 18px;
    }

    .details-mobile-actions button {
        min-height: 48px;
        border-radius: 14px;
        font-size: 13px;
    }
}

/* --- Payment cleanup v4 --- */
.payment-strip-head.compact-head {
    margin-bottom: 14px;
}

.payment-support-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.support-badge {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.support-badge img {
    display: block;
    height: 26px;
    width: auto;
    max-width: 140px;
}

.support-badge.text-badge {
    font-size: 14px;
    font-weight: 700;
    color: #0f766e;
    letter-spacing: -0.01em;
}

.support-badge.muted-badge {
    color: #334155;
}

.support-badge.small-badge {
    min-height: 42px;
    padding: 6px 12px;
    border-radius: 14px;
}

.support-badge.small-badge img {
    height: 22px;
    max-width: 130px;
}

.clean-gateway-bar {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.clean-gateway-bar img,
.clean-panel-media img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.clean-brand-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.clean-panel-media {
    gap: 14px;
}

.panel-support-row {
    margin-bottom: 0;
}

.payment-brand-pill {
    min-height: 0;
}

.payment-brand-pill img {
    aspect-ratio: auto;
    object-fit: contain;
}

.real-brand-row img,
.payment-gateway-bar img,
.gateway-panel-media img {
    object-fit: contain;
}

@media (max-width: 767px) {
    .payment-support-row {
        gap: 8px;
    }

    .support-badge {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .support-badge img {
        height: 22px;
        max-width: 100%;
    }

    .support-badge.text-badge {
        font-size: 13px;
    }

    .support-badge.small-badge {
        flex: 0 1 auto;
        min-height: 40px;
    }

    .clean-brand-row {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .support-badge {
        min-height: 44px;
        padding: 8px 10px;
    }

    .support-badge img {
        height: 20px;
    }

    .support-badge.text-badge {
        font-size: 12px;
    }
}
