/* ==========================================================================
   Kuratipara Kobirajbari - Modern Luxury Redesign Design System
   ========================================================================== */

:root {
    /* Refined Color Palette - Editorial Boutique (Emerald & Warm Gold) */
    --emerald-dark: #022c22;       /* Deep Forest Emerald */
    --emerald-medium: #0f766e;     /* Luxury Teal */
    --emerald-light: #14b8a6;      /* Bright Aqua Green Accent */
    --emerald-tint: #f0fdfa;       /* Soft Mint Base */
    --emerald-glass: rgba(2, 44, 34, 0.85);
    
    --gold: #d97706;               /* Pure Muted Gold */
    --gold-dark: #b45309;          /* Deep Bronze Gold */
    --gold-light: #fef3c7;         /* Warm Sand/Amber Gold */
    --gold-glow: rgba(217, 119, 6, 0.15);
    
    --cream: #fdfbf7;              /* Premium Soft Warm Cream */
    --card-bg: #ffffff;
    --border: #f1f0ec;             /* Light sand-colored borders */
    --border-dark: #e7e5e4;
    
    /* Typography Colors */
    --text-title: #1c1917;         /* Stone 900 */
    --text-body: #44403c;          /* Stone 700 */
    --text-muted: #78716c;         /* Stone 500 */
    --text-light: #a8a29e;         /* Stone 400 */

    /* Bangla UI font — switchable via html[data-font]; system fallbacks prevent tofu */
    --font-bengali: 'Hind Siliguri', 'Noto Sans Bengali', 'Nirmala UI', 'Bangla Sangam MN', 'Vrinda', sans-serif;
    --font-latin: 'Outfit', 'Hind Siliguri', system-ui, sans-serif;
    
    /* Visual Elevators */
    --shadow-sm: 0 2px 4px rgba(28, 25, 23, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(28, 25, 23, 0.05), 0 8px 16px -6px rgba(28, 25, 23, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(2, 44, 34, 0.08), 0 10px 20px -8px rgba(2, 44, 34, 0.05);
    --shadow-gold: 0 15px 30px -10px rgba(217, 119, 6, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --header-height: 80px;
}

html[data-font="hind-siliguri"],
html:not([data-font]) {
    --font-bengali: 'Hind Siliguri', 'Noto Sans Bengali', 'Nirmala UI', 'Bangla Sangam MN', 'Vrinda', sans-serif;
}

html[data-font="noto-sans-bengali"] {
    --font-bengali: 'Noto Sans Bengali', 'Hind Siliguri', 'Nirmala UI', 'Bangla Sangam MN', 'Vrinda', sans-serif;
}

html[data-font="noto-serif-bengali"] {
    --font-bengali: 'Noto Serif Bengali', 'Noto Sans Bengali', 'Hind Siliguri', 'Nirmala UI', 'Bangla Sangam MN', serif;
}

/* ==========================================================================
   Base resets & typography
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 17.5px; /* medium default */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html[data-font-size="small"] {
    font-size: 16px;
}

html[data-font-size="medium"],
html:not([data-font-size]) {
    font-size: 17.5px;
}

html[data-font-size="large"] {
    font-size: 19.5px;
}

html[data-font-size="xlarge"] {
    font-size: 21.5px;
}

body {
    background-color: var(--cream);
    color: var(--text-body);
    font-family: var(--font-bengali);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 0;
}

img, video, svg {
    max-width: 100%;
    height: auto;
}

/* Prevent iOS zoom on focus; keep usable tap targets */
input, textarea, select, button {
    font-size: 16px;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-small {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.app-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    background: var(--card-bg);
    box-shadow: 0 0 100px rgba(2, 44, 34, 0.05);
    min-height: 100vh;
    padding-top: var(--header-height);
    position: relative;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

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

/* ==========================================================================
   Luxury Navigation Header (Glassmorphic & Gold Border)
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--emerald-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1.5px solid var(--gold);
    z-index: 1000;
    transition: var(--transition);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    animation: pulse 2.5s infinite alternate;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-subtext {
    font-size: 0.65rem;
    font-family: 'Outfit', sans-serif;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-order-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
}

.nav-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}

.cart-toggle-btn {
    color: #ffffff;
    font-size: 1.7rem;
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
}

.cart-badge-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--gold);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--emerald-dark);
    font-family: 'Outfit', sans-serif;
}

/* ==========================================================================
   Editorial Split Hero Design
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-cover {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

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

.slide-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(2, 44, 34, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.slide-nav-btn:hover {
    background: #0f766e;
    border-color: #14b8a6;
    color: #ffffff;
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

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

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: #10b981;
    width: 24px;
    border-radius: 5px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    padding: 0 48px 48px 48px;
    max-width: 600px;
    text-align: left;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-tag i {
    color: var(--gold);
}

.hero-content .brand-title {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hero-content .tagline {
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 15px;
    font-style: italic;
}

.hero-subtext {
    font-size: 1rem;
    opacity: 0.88;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #022c22 100%);
}

/* ==========================================================================
   Value Props Card Grid (Refined)
   ========================================================================== */

.value-props-section {
    padding: 36px 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.value-card .icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--emerald-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--emerald-medium);
    transition: var(--transition);
}

.value-card:hover .icon-wrap {
    background: var(--gold-light);
    color: var(--gold-dark);
}

.value-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-title);
}

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

/* Editorial Story section details */
.story-section {
    padding: 48px 24px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    text-align: center;
    position: relative;
}

.story-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: var(--border-dark);
}

.story-label {
    display: block;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.story-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.story-content p {
    font-size: 1.1rem;
    color: var(--text-body);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================================================
   Responsive Video Container
   ========================================================================== */

.media-container {
    padding: 48px 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.25;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.title-underline {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--emerald-medium));
    margin: 12px auto 0;
    border-radius: var(--radius-full);
}

.video-frame {
    max-width: 820px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Products Grid Redesign (4x4 Editorial Aesthetic)
   ========================================================================== */

.products-section {
    padding: 28px 24px 56px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
}

/* Category Filter Tab Bar */
.category-filters-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0 24px 0;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-dark);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-body);
    background: var(--card-bg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-tab:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: translateY(-1px);
}

.filter-tab.active {
    background: var(--emerald-dark);
    color: #ffffff;
    border-color: var(--emerald-dark);
    box-shadow: 0 4px 12px rgba(2, 44, 34, 0.15);
}

/* 4-column Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-grid-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    border-color: var(--gold-glow);
}

.grid-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.grid-card-badge.accent-badge {
    background: var(--emerald-medium);
}

.grid-card-img-container {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fdfbf7;
}

.grid-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.grid-card-img-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.grid-card-img-container.has-hover-gallery .grid-card-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: none;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.grid-card-img-container.has-hover-gallery .grid-card-img.is-active {
    opacity: 1;
    z-index: 1;
}

.product-grid-card:hover .grid-card-img-container:not(.has-hover-gallery) .grid-card-img {
    transform: scale(1.08);
}

/* Overlays Detail button triggers */
.grid-card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 44, 34, 0.45);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: var(--transition);
}

.product-grid-card:hover .grid-card-hover-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: var(--card-bg);
    color: var(--emerald-dark);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(12px);
    transition: var(--transition);
}

.product-grid-card:hover .quick-view-btn {
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: var(--gold);
    color: #ffffff;
}

.grid-card-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.grid-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.grid-card-cat {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-card-rating {
    color: var(--gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

.grid-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 8px;
    line-height: 1.3;
}

.grid-card-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.grid-card-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--emerald-medium);
    font-family: 'Outfit', sans-serif;
}

.grid-card-old-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-family: 'Outfit', sans-serif;
}

.grid-card-action-btn {
    margin-top: auto;
    background: var(--cream);
    color: var(--text-body);
    border: 1px solid var(--border-dark);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-grid-card:hover .grid-card-action-btn {
    background: var(--emerald-dark);
    color: #ffffff;
    border-color: var(--emerald-dark);
}

/* ==========================================================================
   Customer Testimonials Quote Design
   ========================================================================== */

.testimonials-section {
    padding: 56px 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '“';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12rem;
    color: rgba(2, 44, 34, 0.03);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.testimonials-slider {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    min-height: 200px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transition: opacity 0.6s ease-in-out;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.rating-stars {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.review-text {
    font-size: 1.25rem;
    color: var(--text-body);
    font-style: italic;
    line-height: 1.75;
    margin-bottom: 20px;
}

.customer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-title);
}

.customer-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dots .dot.active {
    background: var(--gold);
    width: 24px;
}

/* ==========================================================================
   Stunning Dynamic Product Details View Design (Boutique Layout)
   ========================================================================== */

#productDetailView {
    padding: 28px 0 40px;
    background: var(--card-bg);
}

.back-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 16px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--cream);
    border: 1px solid var(--border);
}

.back-shop-btn:hover {
    color: var(--gold-dark);
    background: var(--gold-light);
    border-color: var(--gold);
    transform: translateX(-3px);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.product-detail-grid > * {
    min-width: 0;
}

.detail-img-col {
    position: relative;
    top: auto;
}

@media (min-width: 993px) {
    .detail-img-col {
        position: sticky;
        top: 110px;
    }
}

.product-detail-grid .product-slider,
.product-detail-grid .product-static-img-container,
.product-layout-v3 .product-slider,
.product-layout-v3 .product-static-img-container {
    border-radius: 4px;
    border: none;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    box-shadow: none;
    background: transparent;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detail thumbnails list */
.detail-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    border: 2.5px solid var(--border-dark);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    padding: 0;
    background: #ffffff;
}

.thumb-btn:hover,
.thumb-btn.active {
    border-color: var(--gold);
    transform: scale(1.04);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: transparent !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-title);
    font-size: 2.2rem;
    z-index: 10;
    transition: var(--transition);
    box-shadow: none !important;
}

.slider-arrow:hover {
    color: var(--gold);
    transform: translateY(-50%) scale(1.2);
}

.slider-arrow.prev-btn { left: -12px; }
.slider-arrow.next-btn { right: -12px; }

/* Right Information column detail page */
.detail-info-col {
    display: flex;
    flex-direction: column;
}

.detail-info-col .product-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.35;
}

/* Product Rating Stars Row */
.product-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.product-rating-row .stars {
    color: #eab308;
    font-size: 0.95rem;
    display: flex;
    gap: 2px;
}

.product-rating-row .rating-text {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Bullet Feature Lists */
.product-features-bullet-list {
    list-style-type: none;
    margin-bottom: 24px;
    padding-left: 0;
}

.product-features-bullet-list li {
    font-size: 0.94rem;
    color: var(--text-body);
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
    line-height: 1.5;
}

.product-features-bullet-list li::before {
    content: "•";
    color: var(--gold-dark);
    font-size: 1.25rem;
    position: absolute;
    left: 0;
    top: -3px;
}

.detail-info-col .price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid var(--border-dark);
}

.price-amount-wrapper {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.detail-info-col .price-symbol {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.detail-info-col .price {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--gold-dark);
    font-family: 'Outfit', sans-serif;
}

.detail-info-col .sub-price {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.shipping-calc-notice {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Variant Pill Option boxes */
.detail-info-col .variant-group {
    margin-bottom: 24px;
}

.detail-info-col .variant-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 10px;
}

.detail-info-col .selected-val-label {
    color: var(--gold-dark);
    font-weight: 700;
}

.detail-info-col .variant-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Color swatches details */
.color-swatch-wrapper {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-block;
}

.color-swatch-wrapper input {
    display: none;
}

.color-swatch-visual {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    display: block;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

/* Swatch Color Background Definitions */
.white-swatch { background-color: #ffffff !important; }
.black-swatch { background-color: #1c1917 !important; }
.golden-swatch { background-color: #d97706 !important; }
.red-swatch { background-color: #b91c1c !important; }
.brown-swatch { background-color: #78350f !important; }
.purple-swatch { background-color: #6b21a8 !important; }
.pink-swatch { background-color: #db2777 !important; }

.color-swatch-wrapper input:checked + .color-swatch-visual {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--gold);
}

.color-swatch-wrapper:hover {
    transform: scale(1.08);
}

/* Option Chip selectors */
.pill-label { cursor: pointer; }
.pill-label input { display: none; }

.pill-label span {
    display: block;
    padding: 8px 16px;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    background: #ffffff;
    color: var(--text-body);
    transition: var(--transition);
    text-align: center;
}

.pill-label:hover span {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.pill-label input:checked + span {
    background: #fdfbf7;
    color: var(--gold-dark);
    border-color: var(--gold);
    box-shadow: none;
    font-weight: 600;
}

.pill-options.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.pill-options.size-grid .pill-label {
    flex: 0 0 auto;
}

.pill-options.size-grid .pill-label span {
    padding: 8px 16px;
    min-width: 46px;
}

/* Attar list */
.attar-scents-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--emerald-tint);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(15, 118, 110, 0.25);
}

.attar-scents-list li {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 10px;
}

.attar-scents-list li i {
    color: var(--emerald-medium);
    font-size: 1.15rem;
}

/* Quantity Selection detail page */
.qty-selector-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.qty-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-title);
}

.detail-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.detail-qty-box .qty-btn {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    font-weight: 500;
    background: transparent;
    transition: var(--transition);
}

.detail-qty-box .qty-btn:hover {
    background: #f7f7f7;
    color: var(--gold-dark);
}

.detail-qty-box .qty-val {
    width: 44px;
    height: 38px;
    text-align: center;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid var(--border-dark);
    border-right: 1px solid var(--border-dark);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-title);
    font-family: 'Outfit', sans-serif;
    background: transparent;
}

/* Action button area detail details */
.detail-actions-box {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 10px;
}

.detail-btn-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.detail-btn-row .add-cart-btn,
.detail-btn-row .buy-now-btn {
    width: 100%;
    height: 52px;
    border-radius: 4px !important;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: none !important;
}

.detail-btn-row .add-cart-btn {
    background: transparent;
    color: var(--text-title);
    border: 1px solid var(--border-dark);
}

.detail-btn-row .add-cart-btn:hover {
    background: var(--card-bg-hover);
    border-color: var(--text-title);
    transform: translateY(-2px);
}

.detail-btn-row .buy-now-btn {
    background: var(--emerald-dark);
    color: #ffffff;
    border: none;
}

.detail-btn-row .buy-now-btn:hover {
    background: #02231a;
    transform: translateY(-2px);
}

.detail-btn-row .added-msg {
    display: none;
    color: var(--emerald-medium);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 2px;
    animation: bounce 1s infinite alternate;
}

.detail-btn-row .added-msg.visible {
    display: block;
}

/* Product Trust Badges */
.product-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-dark);
}

.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.trust-badge-item i {
    font-size: 1.25rem;
    color: var(--gold);
}

.trust-badge-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-body);
}

/* Product Short Description */
.product-short-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.product-detail-bottom-section {
    margin-top: 20px;
    border-top: none;
    padding-top: 0;
    width: 100%;
}

.details-tab-header {
    display: none;
}

.tab-trigger {
    background: transparent;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 12px 24px;
    cursor: pointer;
}

.details-tab-content {
    display: none;
}

.tab-pane {
    display: none;
}

.tab-text {
    font-size: 0.96rem;
    color: var(--text-body);
    line-height: 1.8;
}

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

/* ==========================================================================
   Stunning Standalone Checkout Layout (2 Columns)
   ========================================================================== */

#checkoutView {
    padding: 60px 0;
    background: var(--cream);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
}

.checkout-left-col .form-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--card-bg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.checkout-right-col {
    position: sticky;
    top: 110px;
}

.order-summary-sticky-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.summary-card-header {
    background: var(--emerald-dark);
    color: #ffffff;
    padding: 20px 24px;
}

.summary-card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-card-body {
    padding: 24px;
}

.summary-items-list {
    max-height: 280px;
    overflow-y: auto;
    border-bottom: 1px dashed var(--border-dark);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.checkout-item-line {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.08rem;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.checkout-item-line:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.checkout-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.checkout-item-name {
    font-weight: 600;
    color: var(--text-title);
    line-height: 1.35;
    font-size: 1.12rem;
}

.checkout-item-variants {
    font-size: 0.98rem;
    color: var(--text-muted);
}

.checkout-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.checkout-qty-box .qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: #fafaf9;
    color: var(--text-title);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkout-qty-box .qty-btn:hover {
    background: var(--emerald-tint);
    color: var(--emerald-dark);
}

.checkout-qty-val {
    min-width: 36px;
    text-align: center;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--text-title);
}

.checkout-item-controls .item-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--emerald-dark);
    white-space: nowrap;
}

.summary-calc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    color: var(--text-body);
}

.calc-row.total {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--gold-dark);
    border-top: 1.5px solid var(--border-dark);
    padding-top: 12px;
    margin-top: 6px;
}

.secure-badge {
    display: none !important;
}

/* Desktop: larger checkout form + summary type */
@media (min-width: 769px) {
    #checkoutView .input-group label {
        font-size: 1.12rem;
    }

    #checkoutView .input-group input,
    #checkoutView .input-group textarea,
    #checkoutView .country-prefix,
    #checkoutView .phone-input-wrapper input {
        font-size: 1.15rem;
    }

    #checkoutView .input-hint {
        font-size: 1rem;
    }

    #checkoutView .area-name {
        font-size: 1.12rem;
    }

    #checkoutView .area-price {
        font-size: 1.1rem;
    }

    #checkoutView .cod-text h4 {
        font-size: 1.18rem;
    }

    #checkoutView .cod-text p {
        font-size: 1.08rem;
    }

    #checkoutView .checkout-item-name {
        font-size: 1.15rem;
    }

    #checkoutView .checkout-item-variants {
        font-size: 1.02rem;
    }

    #checkoutView .checkout-qty-val,
    #checkoutView .checkout-item-controls .item-price {
        font-size: 1.2rem;
    }

    #checkoutView .calc-row {
        font-size: 1.15rem;
    }

    #checkoutView .calc-row.total {
        font-size: 1.65rem;
    }

    #checkoutView .summary-card-header h3 {
        font-size: 1.35rem;
    }
}

/* Form inputs & selections */
.form-header {
    background: var(--emerald-tint);
    padding: 24px;
    text-align: center;
    border-bottom: 1.5px solid rgba(15, 118, 110, 0.15);
}

.form-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--emerald-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.product-form {
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group.full-width-input {
    grid-column: span 2;
}

.input-group label {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-title);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group label i {
    color: var(--gold);
}

.required {
    color: #ef4444;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    color: var(--text-title);
    background: var(--card-bg);
    transition: var(--transition);
    font-family: inherit;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--card-bg);
    transition: var(--transition);
}

.phone-input-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.country-prefix {
    background: var(--cream);
    color: var(--text-title);
    padding: 14px 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border-right: 1.5px solid var(--border-dark);
}

.phone-input-wrapper input {
    border: none !important;
    box-shadow: none !important;
    padding: 14px 16px;
}

.input-hint {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Shipping Area card grid */
.shipping-area-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.area-chip {
    cursor: pointer;
}

.area-chip input {
    display: none;
}

.area-card {
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card-bg);
    transition: var(--transition);
}

.area-icon {
    font-size: 1.35rem;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.area-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-title);
}

.area-price {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 600;
}

.area-chip input:checked + .area-card {
    border-color: var(--emerald-dark);
    background: var(--emerald-tint);
}

.area-chip input:checked + .area-card .area-icon {
    background: var(--emerald-dark);
    color: #ffffff;
}

.area-chip input:checked + .area-card .area-price {
    color: var(--emerald-medium);
    font-weight: 700;
}

/* COD Payment Banner Details */
.cod-banner {
    margin-top: 20px;
    background: #fdfbf7;
    border: 1px solid var(--gold-light);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 14px;
}

.cod-icon {
    font-size: 1.6rem;
    color: var(--gold);
}

.cod-text h4 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.cod-text p {
    font-size: 1.02rem;
    color: var(--text-body);
    line-height: 1.55;
}

.empty-cart-warning {
    margin-top: 20px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-order-btn {
    width: 100%;
    margin-top: 24px;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.25);
}

.submit-order-btn:hover {
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.submit-order-btn:disabled {
    background: var(--text-light);
    box-shadow: none;
    cursor: not-allowed;
}

/* ==========================================================================
   Global Cart Drawer Backdrop & Items (Boutique Layout)
   ========================================================================== */

.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(28, 25, 23, 0.5);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    background: var(--card-bg);
    z-index: 1100;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cart-drawer.show { right: 0; }

.cart-drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-title);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart-btn {
    font-size: 1.6rem;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-cart-btn:hover {
    background: var(--cream);
    color: var(--text-title);
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Shipping limit bar visual */
.shipping-tracker-container {
    background: var(--gold-light);
    border: 1px solid #fde68a;
    padding: 14px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.tracker-desc {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tracker-progress-bg {
    width: 100%;
    height: 8px;
    background: #ffffff;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.tracker-progress-bar {
    height: 100%;
    background: var(--gold);
    border-radius: var(--radius-full);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80%;
    text-align: center;
    color: var(--text-light);
    padding: 24px;
}

.cart-empty-message i {
    font-size: 3.5rem;
    margin-bottom: 16px;
    color: var(--border-dark);
}

.cart-empty-message p {
    font-size: 1.05rem;
    color: var(--text-body);
    margin-bottom: 20px;
}

.shop-now-empty-btn {
    background: var(--emerald-dark);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
}

.shop-now-empty-btn:hover {
    background: var(--emerald-medium);
}

.cart-item {
    display: flex;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-dark);
}

.cart-details { flex: 1; }

.cart-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.35;
}

.cart-variants {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.cart-price-single {
    font-size: 0.9rem;
    color: var(--emerald-medium);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-top: 6px;
}

.cart-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--cream);
}

.qty-btn:hover {
    background: var(--gold-light);
    color: var(--gold-dark);
}

.qty-val {
    width: 28px;
    text-align: center;
    border: none;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-title);
    font-family: 'Outfit', sans-serif;
    background: transparent;
}

.remove-btn {
    background: #fef2f2;
    color: #ef4444;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.remove-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.cart-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

.cart-summary-rows {
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 6px;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-dark);
    border-top: 1.5px dashed var(--border-dark);
    padding-top: 10px;
    margin-top: 8px;
}

.proceed-checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #ffffff;
    padding: 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.25);
}

.proceed-checkout-btn:hover {
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

/* ==========================================================================
   Redefined Editorial Footer Style
   ========================================================================== */

.footer {
    background: var(--emerald-dark);
    color: var(--cream);
    padding: 48px 24px 24px 24px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-info .footer-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.brand-bio {
    font-size: 0.92rem;
    opacity: 0.8;
    max-width: 460px;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links ul a {
    font-size: 0.92rem;
    opacity: 0.85;
}

.footer-links ul a:hover {
    opacity: 1;
    color: var(--gold);
    padding-left: 6px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-badges {
    display: flex;
    gap: 20px;
}

.footer-badges span {
    font-size: 0.82rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-badges span i {
    color: var(--gold);
    font-size: 1rem;
}

/* ==========================================================================
   Sticky Mobile Footer
   ========================================================================== */

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1.5px solid var(--border-dark);
    padding: 10px 24px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    box-shadow: 0 -5px 25px rgba(2, 44, 34, 0.05);
    pointer-events: auto;
}

@media (min-width: 769px) {
    .sticky-footer {
        display: none !important;
    }
}

.sticky-footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.sticky-cart-info {
    display: flex;
    flex-direction: column;
}

.sticky-cart-info .count-txt {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sticky-cart-info .price-txt {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--emerald-medium);
    font-family: 'Outfit', sans-serif;
}

.sticky-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

.sticky-btn:hover {
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    color: var(--text-title);
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-full);
    font-size: 1.35rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--emerald-dark);
    color: #ffffff;
    border-color: var(--emerald-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    display: flex;
}

/* ==========================================================================
   Bounce and Pulse keyframes details
   ========================================================================== */

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

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

/* ==========================================================================
   Responsive Adaptations — Full Platform Mobile Friendly
   ========================================================================== */

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .detail-img-col,
    .col-media,
    .col-buy-box {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
    }

    .product-layout-v3 .product-slider,
    .product-layout-v3 .product-static-img-container {
        height: 320px;
        max-height: 42vh;
        aspect-ratio: auto;
    }

    .product-layout-v3 .slide-img,
    .product-layout-v3 .product-static-img-container .p-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .premium-price-banner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .checkout-layout {
        grid-template-columns: 1.2fr 1fr;
        gap: 24px;
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .main-header {
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }
    
    .app-wrapper {
        border-left: none;
        border-right: none;
        padding-bottom: 0;
    }

    body.has-mobile-sticky .app-wrapper,
    body.pdp-active .app-wrapper {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    .container,
    .container-small {
        padding: 0 16px;
        width: 100%;
    }
    
    .hero-cover {
        height: min(42vw, 280px);
        min-height: 200px;
        max-height: 320px;
    }
    
    .hero-content {
        padding: 0 16px 20px 16px;
        max-width: 100%;
    }
    
    .hero-content .brand-title {
        font-size: 2.2rem;
    }
    
    .hero-content .tagline {
        font-size: 1.1rem;
    }
    
    .hero-subtext {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .hero-btn-primary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.98rem;
        min-height: 48px;
    }

    .slide-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .prev-slide {
        left: 8px;
    }

    .next-slide {
        right: 8px;
    }

    .slide-dots {
        bottom: 12px;
    }

    .products-section {
        padding: 18px 12px 40px;
    }

    .section-title {
        margin-bottom: 12px;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.86rem;
    }
    
    .category-filters-container {
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding: 4px 16px 10px 16px;
        margin: 10px -16px 18px -16px;
        scrollbar-width: none;
        gap: 8px;
    }

    .category-filters-container::-webkit-scrollbar {
        display: none;
    }

    .filter-tab {
        flex: 0 0 auto;
        padding: 10px 16px;
        font-size: 0.86rem;
        min-height: 40px;
    }
    
    .value-props-section {
        padding: 24px 0;
    }

    .value-props-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 12px;
    }

    .value-card {
        padding: 16px;
        flex-direction: row;
        text-align: left;
        gap: 14px;
    }
    
    .story-section {
        padding: 40px 16px;
    }
    
    .story-content h2 {
        font-size: 1.5rem;
    }
    
    .story-content p {
        font-size: 0.96rem;
    }
    
    /* Product grid — 2 columns */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0;
    }

    .product-grid-card {
        border-radius: 12px;
    }

    .product-grid-card:hover {
        transform: none;
    }
    
    .grid-card-img-container {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .grid-card-badge {
        top: 8px;
        left: 8px;
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .grid-card-info {
        padding: 10px;
    }

    .grid-card-meta {
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 6px;
    }

    .grid-card-name {
        font-size: 0.9rem;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .grid-card-price {
        font-size: 1.1rem;
    }

    .grid-card-old-price {
        font-size: 0.78rem;
    }

    .grid-card-price-row {
        gap: 6px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .grid-card-action-btn {
        padding: 10px 8px;
        font-size: 0.78rem;
        min-height: 40px;
        justify-content: center;
    }

    .grid-card-hover-overlay {
        display: none;
    }

    #productDetailView {
        padding: 0 0 calc(72px + env(safe-area-inset-bottom, 0px));
        background: #f3f4f3;
    }

    #productDetailView > .container {
        padding: 0;
        max-width: 100%;
    }

    #productDetailView .back-shop-btn {
        display: none;
    }

    .product-layout-v3 {
        gap: 0;
        margin-bottom: 0;
    }

    .col-media {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        overflow: visible;
    }

    .detail-img-col {
        position: static !important;
        top: auto !important;
    }

    .product-detail-grid .product-slider,
    .product-detail-grid .product-static-img-container,
    .product-layout-v3 .product-slider,
    .product-layout-v3 .product-static-img-container {
        height: auto;
        max-height: none;
        aspect-ratio: 1 / 1;
        border-radius: 0;
        background: #f8f7f4;
    }

    .product-layout-v3 .slide-img,
    .product-layout-v3 .product-static-img-container .p-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .product-layout-v3 .slider-arrow {
        display: none;
    }

    .product-layout-v3 .slider-dots {
        display: flex;
    }

    .product-layout-v3 .slider-counter {
        display: block;
    }

    .product-layout-v3 .detail-thumbnails {
        display: none;
    }

    .col-center-info {
        padding: 0;
        gap: 0;
        position: relative;
        z-index: 1;
        background: #fff;
    }

    .col-pdp-intro {
        padding: 2px 12px 0;
    }

    .detail-header-block {
        border-bottom: none;
        padding-bottom: 0;
    }

    .category-tag {
        display: none !important;
    }

    /* —— Mobile app PDP (Daraz-inspired, brand theme) —— */
    .product-layout-v3 {
        grid-template-areas:
            "media"
            "app"
            "center";
        gap: 0;
        margin-bottom: 0;
        background: #f3f4f3;
    }

    .pdp-app-stack {
        display: flex !important;
        flex-direction: column;
        grid-area: app;
        background: #fff;
        margin-bottom: 8px;
    }

    .pdp-desktop-intro,
    .pdp-desktop-buy {
        display: none !important;
    }

    .pdp-app-hero {
        padding: 14px 16px 12px;
        border-bottom: 1px solid #eee;
    }

    .pdp-app-promo {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--gold-dark);
        margin-bottom: 4px;
    }

    .pdp-app-price-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
    }

    .pdp-app-price-main {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 8px;
    }

    .pdp-app-price {
        font-family: 'Outfit', sans-serif;
        font-size: 1.85rem;
        font-weight: 700;
        color: var(--emerald-dark);
        letter-spacing: -0.02em;
        line-height: 1.1;
    }

    .pdp-app-old {
        font-size: 0.95rem;
        color: var(--text-light);
        text-decoration: line-through;
    }

    .pdp-app-discount {
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--gold-dark);
        background: var(--gold-light);
        padding: 2px 7px;
        border-radius: 4px;
    }

    .pdp-app-tools {
        display: flex;
        gap: 4px;
        flex-shrink: 0;
    }

    .pdp-tool-btn {
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        color: var(--text-body);
        font-size: 1.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }

    .pdp-tool-btn:active {
        background: #f5f5f4;
    }

    .pdp-app-title {
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-title);
        line-height: 1.45;
        margin: 0 0 8px;
    }

    .pdp-app-rating {
        margin: 0;
        gap: 6px;
    }

    .pdp-app-rating .stars {
        font-size: 0.9rem;
        color: var(--gold);
    }

    .pdp-app-rating .rating-text {
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    .pdp-app-row,
    .pdp-app-block {
        width: 100%;
        text-align: left;
        background: #fff;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 14px 16px;
        font-family: inherit;
        color: inherit;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }

    .pdp-app-block {
        cursor: default;
    }

    .pdp-app-row-top {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        background: none;
        border: none;
        padding: 0;
        font-family: inherit;
        color: inherit;
        cursor: pointer;
        text-align: left;
    }

    .pdp-app-row-label {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-title);
        flex-shrink: 0;
    }

    .pdp-app-row-value {
        flex: 1;
        min-width: 0;
        font-size: 0.9rem;
        color: var(--text-muted);
        text-align: right;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pdp-app-row-top > i {
        font-size: 1.25rem;
        color: var(--text-light);
        flex-shrink: 0;
    }

    .pdp-loc-value {
        color: var(--emerald-medium);
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
    }

    .pdp-opt-thumbs {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pdp-opt-thumbs::-webkit-scrollbar {
        display: none;
    }

    .pdp-opt-thumb {
        width: 52px;
        height: 52px;
        border-radius: 8px;
        border: 1.5px solid var(--border-dark);
        background: #f5f5f4 center / cover no-repeat;
        flex-shrink: 0;
        padding: 0;
        position: relative;
        overflow: hidden;
    }

    .pdp-opt-thumb.active {
        border-color: var(--gold);
        box-shadow: 0 0 0 1px var(--gold);
    }

    .pdp-opt-thumb.active::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        border-style: solid;
        border-width: 0 16px 16px 0;
        border-color: transparent var(--gold) transparent transparent;
    }

    .pdp-delivery-meta {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-top: 10px;
        padding-left: 0;
    }

    .pdp-delivery-meta strong {
        display: block;
        font-size: 0.9rem;
        color: var(--text-title);
        font-weight: 600;
    }

    .pdp-delivery-meta span {
        display: block;
        font-size: 0.8rem;
        color: var(--text-muted);
        margin-top: 2px;
    }

    .pdp-delivery-fee {
        font-weight: 700 !important;
        color: var(--text-title) !important;
        font-size: 0.95rem !important;
        white-space: nowrap;
    }

    .pdp-service-sub {
        margin: 6px 0 0;
        font-size: 0.8rem;
        color: var(--text-light);
        line-height: 1.4;
    }

    .col-center-info {
        padding: 0;
        gap: 0;
        margin-bottom: 8px;
        background: #fff;
    }

    .pdp-desc-preview {
        display: none;
    }

    .product-highlights-card {
        border-radius: 0;
        border: none;
        border-top: 1px solid #eee;
        margin: 0;
        box-shadow: none;
    }

    .product-title {
        font-size: 1.65rem;
        margin-bottom: 6px;
    }

    .product-layout-v3 .product-rating-row .stars {
        font-size: 1rem;
    }

    .product-layout-v3 .product-rating-row .rating-text {
        font-size: 0.95rem;
    }

    .product-rating-row {
        margin-bottom: 0;
    }

    .premium-price-banner {
        margin: 0;
        padding: 0;
        border-radius: 0;
        flex-direction: column;
        align-items: stretch;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .price-banner-purchase {
        display: flex;
    }

    .price-banner-actions {
        grid-template-columns: 1fr 1fr;
    }

    .price-banner-actions .add-cart-btn,
    .price-banner-actions .buy-now-btn {
        min-height: 48px;
        font-size: 0.98rem;
    }

    .price-amount {
        font-size: 2.1rem;
    }

    .price-currency {
        font-size: 1.25rem;
    }

    .price-unit,
    .price-banner-qty .qty-label {
        font-size: 1rem;
    }

    .pdp-delivery-strip {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        background: #f8faf9;
        border: 1px solid var(--border-dark);
        border-radius: 12px;
    }

    .pdp-delivery-strip > i {
        font-size: 1.35rem;
        color: var(--emerald-medium);
        flex-shrink: 0;
    }

    .pdp-delivery-strip strong {
        display: block;
        font-size: 0.92rem;
        color: var(--text-title);
    }

    .pdp-delivery-strip span {
        display: block;
        font-size: 0.8rem;
        color: var(--text-muted);
        margin-top: 1px;
    }

    .col-buy-box {
        margin: 0 12px;
        padding: 12px;
        border-radius: 12px;
        gap: 10px;
        box-shadow: 0 4px 16px rgba(2, 44, 34, 0.04);
        border: 1px solid var(--border-dark);
    }

    .desktop-only-block,
    .desktop-qty-block,
    .desktop-actions {
        display: none !important;
    }

    .shop-info-header {
        border-bottom: none;
        padding-bottom: 0;
    }

    .trust-stack-vertical {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 14px;
        border-top: 1px dashed var(--border-dark);
        padding-top: 12px;
        font-size: 0.78rem;
    }

    .trust-stack-vertical div {
        flex: 1 1 auto;
        min-width: calc(50% - 8px);
    }

    .highlights-body {
        padding: 12px;
    }

    .product-highlights-list li {
        padding: 10px 12px;
    }

    .highlight-text {
        font-size: 1.02rem;
    }

    .product-detail-bottom-section {
        margin: 0 0 12px;
        padding: 0;
        min-width: 0;
        background: #fff;
    }

    .pdp-accordion {
        gap: 0;
        border-radius: 0;
    }

    .pdp-acc-item {
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
        box-shadow: none;
    }

    .pdp-acc-trigger {
        padding: 14px 16px;
        font-size: 1rem;
        min-height: 48px;
        gap: 8px;
    }

    .pdp-acc-panel {
        padding: 0 16px 14px;
    }

    .pdp-acc-panel .tab-text {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    .premium-price-banner {
        margin: 0;
        padding: 0;
        border-radius: 0;
        gap: 10px;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .price-banner-purchase {
        gap: 8px;
        padding-top: 8px;
    }

    /* Sticky mobile app bar */
    .pdp-sticky-bar {
        display: flex !important;
        align-items: stretch;
        gap: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #fff;
        border-top: 1px solid var(--border-dark);
        box-shadow: 0 -4px 20px rgba(2, 44, 34, 0.08);
        min-height: 56px;
    }

    body.pdp-active .sticky-footer {
        display: none !important;
    }

    body.pdp-active .back-to-top {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .pdp-sticky-nav {
        display: flex;
        flex-shrink: 0;
        width: 28%;
        max-width: 112px;
    }

    .pdp-sticky-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-decoration: none;
        color: var(--text-body);
        font-size: 0.65rem;
        font-weight: 600;
        padding: 8px 4px;
        background: #fff;
        border-right: 1px solid #f0f0f0;
    }

    .pdp-sticky-nav-btn i {
        font-size: 1.2rem;
        color: var(--emerald-medium);
        line-height: 1;
    }

    .pdp-sticky-cta {
        flex: 1;
        display: flex;
        min-width: 0;
        min-height: 56px;
    }

    .pdp-sticky-cart,
    .pdp-sticky-buy {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 56px;
        border: none;
        border-radius: 0;
        font-weight: 700;
        font-size: 0.92rem;
        font-family: inherit;
        color: #fff;
        transition: filter 0.2s ease;
        padding: 0 8px;
    }

    .pdp-sticky-buy {
        background: linear-gradient(135deg, var(--emerald-medium), var(--emerald-dark));
        clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
        margin-right: -10px;
        z-index: 1;
        padding-right: 14px;
    }

    .pdp-sticky-cart {
        background: linear-gradient(135deg, var(--gold), var(--gold-dark));
        clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
        padding-left: 14px;
    }

    .pdp-sticky-cart.just-added {
        background: linear-gradient(135deg, #059669, #047857);
    }

    .pdp-sticky-cart:active,
    .pdp-sticky-buy:active {
        filter: brightness(0.94);
    }

    /* Bottom sheet */
    .pdp-sheet-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(28, 25, 23, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }

    .pdp-sheet-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

    .pdp-sheet {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1091;
        max-height: min(88vh, 640px);
        background: #fff;
        border-radius: 16px 16px 0 0;
        transform: translateY(110%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -12px 40px rgba(2, 44, 34, 0.12);
    }

    .pdp-sheet.open {
        transform: translateY(0);
    }

    .pdp-sheet[hidden],
    .pdp-sheet-overlay[hidden] {
        display: none !important;
    }

    .pdp-sheet-handle {
        width: 36px;
        height: 4px;
        border-radius: 4px;
        background: #d6d3d1;
        margin: 10px auto 0;
        flex-shrink: 0;
    }

    .pdp-sheet-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        border: none;
        background: #f5f5f4;
        border-radius: 50%;
        color: var(--text-body);
        font-size: 1.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .pdp-sheet-head {
        display: flex;
        gap: 14px;
        padding: 16px 16px 14px;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    .pdp-sheet-thumb {
        width: 88px;
        height: 88px;
        object-fit: cover;
        border-radius: 10px;
        background: #f5f5f4;
        flex-shrink: 0;
    }

    .pdp-sheet-head-info {
        min-width: 0;
        padding-right: 28px;
    }

    .pdp-sheet-price {
        font-family: 'Outfit', sans-serif;
        font-size: 1.55rem;
        font-weight: 700;
        color: var(--emerald-dark);
        line-height: 1.15;
    }

    .pdp-sheet-old-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 4px;
    }

    .pdp-sheet-selected {
        margin-top: 8px;
        font-size: 0.9rem;
        color: var(--text-muted);
    }

    .pdp-sheet-body {
        flex: 1;
        overflow-y: auto;
        padding: 14px 16px;
        -webkit-overflow-scrolling: touch;
    }

    .pdp-sheet-body .variant-group {
        margin-bottom: 16px;
    }

    .pdp-sheet-qty {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 8px;
        border-top: 1px solid #eee;
        margin-top: 4px;
    }

    .pdp-sheet-qty-label {
        font-size: 0.95rem;
        color: var(--text-muted);
        font-weight: 500;
    }

    .pdp-sheet-qty-box {
        display: inline-flex;
        align-items: center;
        border: 1px solid var(--border-dark);
        border-radius: 8px;
        overflow: hidden;
    }

    .pdp-sheet-qty-box .qty-btn {
        width: 40px;
        height: 36px;
        background: #fafaf9;
        border: none;
        font-size: 1.1rem;
        color: var(--text-title);
    }

    .pdp-sheet-qty-box .qty-val {
        width: 40px;
        text-align: center;
        font-weight: 700;
        font-family: 'Outfit', sans-serif;
        border: none;
        background: #fff;
    }

    .pdp-sheet-footer {
        padding: 12px 16px;
        border-top: 1px solid #eee;
    }

    .pdp-sheet-action {
        width: 100%;
        min-height: 48px;
        border: none;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--gold), var(--gold-dark));
        color: #fff;
        font-weight: 700;
        font-size: 1.05rem;
        font-family: inherit;
    }

    .pdp-sheet-action.is-buy {
        background: linear-gradient(135deg, var(--emerald-medium), var(--emerald-dark));
    }

    .pdp-sheet-action.is-confirm {
        background: var(--emerald-dark);
    }

    .pdp-sheet-action:active {
        filter: brightness(0.95);
    }

    body.pdp-sheet-open {
        overflow: hidden;
    }

    .detail-info-col .product-name {
        font-size: 1.45rem;
    }
    
    .detail-qty-box .qty-btn {
        width: 44px;
        height: 44px;
    }

    .price-banner-qty .detail-qty-box .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }

    .price-banner-qty .detail-qty-box .qty-val {
        width: 34px;
        height: 30px;
        font-size: 0.95rem;
    }
    
    .detail-btn-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-btn-row button {
        width: 100%;
        justify-content: center;
        padding: 14px;
        min-height: 48px;
    }

    .detail-thumbnails {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        flex-wrap: nowrap;
    }

    .center-details-split,
    .center-details-bottom-split {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    /* Checkout */
    #checkoutView {
        padding: 28px 0 40px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkout-right-col {
        position: static;
        order: -1;
    }

    .form-header {
        padding: 18px 16px;
    }

    .form-header h2 {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }

    .product-form {
        padding: 16px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .input-group.full-width-input {
        grid-column: span 1;
    }

    .input-group input,
    .input-group textarea,
    .phone-input-wrapper input {
        font-size: 16px;
        min-height: 48px;
    }

    .shipping-area-selector {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .summary-card-header,
    .summary-card-body {
        padding: 16px;
    }

    .calc-row.total {
        font-size: 1.25rem;
    }

    .cod-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer {
        padding: 28px 16px 20px;
    }

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

    .footer-info .footer-brand {
        font-size: 1.4rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .back-to-top {
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        width: 44px;
        height: 44px;
    }

    body.has-mobile-sticky .back-to-top,
    body.pdp-active .back-to-top {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .cart-drawer {
        max-width: 100%;
        right: -100%;
    }

    .cart-drawer.show {
        right: 0;
    }

    .cart-drawer-header,
    .cart-drawer-body {
        padding: 16px;
    }

    .sticky-footer-container {
        gap: 12px;
    }

    .sticky-cart-info .price-txt {
        font-size: 1.2rem;
    }

    .sticky-btn {
        padding: 12px 18px;
        font-size: 0.95rem;
        min-height: 46px;
        white-space: nowrap;
    }

    .brand-logo {
        gap: 8px;
        min-width: 0;
        flex: 1;
    }

    .logo-text-group {
        min-width: 0;
    }

    .logo-text {
        font-size: 1.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: min(58vw, 240px);
    }

    .logo-subtext {
        font-size: 0.55rem;
        letter-spacing: 0.8px;
    }

    .logo-icon {
        font-size: 1.5rem;
        flex-shrink: 0;
    }

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

    .cart-toggle-btn {
        width: 44px;
        height: 44px;
        font-size: 1.45rem;
        flex-shrink: 0;
    }

    .custom-alert-card {
        width: calc(100% - 32px);
        padding: 24px 18px;
        margin: 0 16px;
    }

    .custom-alert-buttons-group {
        grid-template-columns: 1fr;
    }

    .storefront-pagination {
        margin: 28px 0 12px;
        flex-wrap: wrap;
        gap: 6px;
        padding: 0 4px;
    }

    .pagination-btn {
        padding: 10px 12px;
        min-height: 40px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .product-layout-v3 .product-slider,
    .product-layout-v3 .product-static-img-container {
        aspect-ratio: 1 / 1;
        height: auto;
        max-height: none;
    }

    .price-banner-actions {
        grid-template-columns: 1fr;
    }

    .price-banner-actions .buy-now-btn {
        order: 2;
    }

    .price-banner-actions .add-cart-btn {
        order: 1;
    }

    .pdp-app-price {
        font-size: 1.65rem;
    }

    .pdp-sticky-cart,
    .pdp-sticky-buy {
        font-size: 0.84rem;
    }
}

@media (max-width: 480px) {
    .container, .container-small {
        padding: 0 12px;
    }

    .hero-cover {
        height: 200px;
        min-height: 180px;
    }

    .hero-content .brand-title {
        font-size: 1.85rem;
    }

    .logo-text {
        font-size: 1.05rem;
        max-width: 52vw;
    }

    .logo-subtext {
        display: none;
    }

    .products-grid {
        gap: 8px;
    }

    .grid-card-rating {
        display: none;
    }

    .grid-card-action-btn {
        font-size: 0.72rem;
        padding: 8px 6px;
    }

    .grid-card-action-btn i {
        display: none;
    }

    .shipping-area-selector {
        grid-template-columns: 1fr;
    }

    .sticky-btn {
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    .sticky-cart-info .count-txt {
        font-size: 0.72rem;
    }
}

/* Touch devices: disable hover lift that feels sticky after tap */
@media (hover: none) {
    .product-grid-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .product-grid-card:hover .grid-card-img {
        transform: none;
    }

    .product-grid-card:active {
        transform: scale(0.98);
    }
}

/* ==========================================================================
   Admin Panel Styles (Passcode Login & Dashboard)
   ========================================================================== */

.admin-login-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    background: #fafaf9;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-md);
    padding: 35px 30px;
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.login-header .login-logo {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 8px;
}

.login-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.passcode-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.passcode-display {
    width: 100%;
    height: 54px;
    background: #f5f5f4;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 1.8rem;
    letter-spacing: 12px;
    text-align: center;
    color: var(--text-title);
    font-weight: 700;
    outline: none;
}

.clear-passcode-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
}

.clear-passcode-btn:hover {
    color: var(--text-title);
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.key-btn {
    height: 52px;
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-title);
    cursor: pointer;
    transition: var(--transition);
}

.key-btn:hover {
    background: #f5f5f4;
    border-color: var(--text-muted);
}

.key-btn.action-key {
    background: #fdfbf7;
    color: var(--gold-dark);
    border-color: var(--gold-glow);
}

.key-btn.action-key:hover {
    background: var(--gold-light);
}

.login-error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Dashboard Layout */
.admin-dashboard-layout {
    display: flex;
    min-height: 80vh;
    border: 1px solid var(--border-dark);
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: 1.08rem;
}

.admin-dashboard-layout .admin-table-container,
.admin-dashboard-layout .dashboard-pane,
.admin-dashboard-layout label,
.admin-dashboard-layout input,
.admin-dashboard-layout select,
.admin-dashboard-layout textarea,
.admin-dashboard-layout button,
.admin-dashboard-layout td,
.admin-dashboard-layout th,
.admin-dashboard-layout p,
.admin-dashboard-layout small {
    font-size: inherit;
}

.admin-dashboard-layout input,
.admin-dashboard-layout select,
.admin-dashboard-layout textarea {
    font-size: 1.08rem !important;
}

.admin-dashboard-layout label {
    font-size: 1.05rem !important;
}

.admin-dashboard-layout h3 {
    font-size: 1.35rem !important;
}

.admin-sidebar {
    width: 270px;
    background: var(--emerald-dark);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand {
    padding: 24px;
    font-size: 1.28rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--gold-light);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    gap: 8px;
}

.sidebar-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    padding: 14px 16px;
    text-align: left;
    font-size: 1.08rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.sidebar-tab-btn i {
    font-size: 1.3rem;
}

.sidebar-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-tab-btn.active {
    color: #ffffff;
    background: var(--gold);
}

.sidebar-tab-btn.logout-btn-item {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    padding-top: 20px;
}

.admin-main-viewport {
    flex: 1;
    background: #fafaf9;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.viewport-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-dark);
}

.viewport-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-title);
}

.admin-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-body);
    background: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-dark);
}

.admin-profile-badge i {
    color: var(--gold);
}

/* Dashboard Panes */
.dashboard-pane {
    display: none;
}

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

/* Metrics Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.metric-icon.color-sales { background: #ecfdf5; color: #059669; }
.metric-icon.color-orders { background: #eff6ff; color: #2563eb; }
.metric-icon.color-products { background: #fffbeb; color: #d97706; }

.metric-details h3 {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-title);
}

.metric-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Chart/List Panel Row */
.analytics-panels-row {
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 24px;
}

.chart-panel-card h3 {
    font-size: 1.05rem;
    color: var(--text-title);
    margin-bottom: 20px;
}

.dashboard-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.action-btn-primary {
    background: var(--emerald-dark);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    text-decoration: none;
    transition: var(--transition);
}

.action-btn-primary:hover {
    background: #02231a;
    color: #ffffff;
}

.action-btn-primary.action-btn-secondary {
    background: #44403c;
}

.action-btn-primary.action-btn-secondary:hover {
    background: #292524;
}

.category-sales-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cat-sale-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-body);
}

.cat-sale-item span:first-child {
    width: 100px;
}

.sale-bar-wrapper {
    flex: 1;
    height: 8px;
    background: #f5f5f4;
    border-radius: var(--radius-full);
    margin: 0 20px;
    overflow: hidden;
}

.sale-bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: var(--radius-full);
}

.cat-sale-item span:last-child {
    width: 80px;
    text-align: right;
    color: var(--text-title);
}

/* Pane Action Bar controls */
.pane-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.search-box-wrap {
    position: relative;
    width: 250px;
}

.search-box-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.05rem;
}

.search-box-wrap input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.search-box-wrap input:focus {
    border-color: var(--gold);
}

.search-box-wrap.full-search {
    width: 100%;
}

/* Data Tables */
.admin-table-container {
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-data-table th,
.admin-data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-dark);
    font-size: 1.05rem;
}

.admin-data-table th {
    background: #fafaf9;
    color: var(--text-title);
    font-weight: 700;
    font-size: 1.08rem;
}

.admin-data-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-data-table tbody tr:hover {
    background: #fdfbf7;
}

.orders-data-table {
    table-layout: auto;
    min-width: 640px;
}

.orders-data-table .order-id-link {
    font-weight: 700;
    color: var(--emerald-medium);
    text-decoration: none;
    white-space: nowrap;
}

.orders-data-table .order-customer-name {
    display: block;
    color: var(--text-title);
}

.orders-data-table .order-total-cell,
.orders-data-table .order-status-cell,
.orders-data-table .order-date-cell,
.orders-data-table .order-actions-cell {
    white-space: nowrap;
    vertical-align: middle;
}

.orders-data-table .order-date-cell {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.table-product-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
}

.table-price-regular {
    font-weight: 700;
    color: var(--text-title);
}

.table-badge-tag {
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-top: 4px;
}

/* Order contact metadata formatting */
.table-contact-name {
    font-weight: 700;
    color: var(--text-title);
    display: block;
}

.table-contact-phone {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.table-contact-addr {
    font-size: 0.8rem;
    color: var(--text-body);
    display: block;
    margin-top: 2px;
}

/* Status Badges */
.status-pill {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.status-pill.pending { background: #fffbeb; color: #d97706; }
.status-pill.confirmed { background: #ecfdf5; color: #059669; }
.status-pill.shipped { background: #eff6ff; color: #2563eb; }
.status-pill.cancelled { background: #fef2f2; color: #dc2626; }

.status-select {
    padding: 6px 10px;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #ffffff;
    cursor: pointer;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-dark);
    background: #ffffff;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
}

.table-btn:hover {
    color: var(--emerald-dark);
    border-color: var(--emerald-dark);
    background: #ecfdf5;
}

.table-btn.btn-delete:hover {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* Product Form Slide-in Drawer Modal */
.product-form-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 44, 34, 0.45);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: flex-end;
}

.product-form-modal.open {
    display: flex;
}

.product-modal-content {
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--border-dark);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-title);
}

.close-modal-btn {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
}

.close-modal-btn:hover {
    color: var(--text-title);
}

.modal-form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.modal-form-grid label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-title);
}

.modal-form-grid input,
.modal-form-grid select,
.modal-form-grid textarea {
    padding: 10px 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.modal-form-grid input:focus,
.modal-form-grid select:focus,
.modal-form-grid textarea:focus {
    border-color: var(--gold);
}

.form-group-row {
    display: flex;
    gap: 16px;
}

.form-group-row .half-width {
    flex: 1;
}

.submit-modal-btn {
    background: var(--emerald-dark);
    color: #ffffff;
    border: none;
    height: 48px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
}

.submit-modal-btn:hover {
    background: #02231a;
}

/* Mobile responsive layout for admin panel */
.admin-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1.5px solid var(--border-dark);
    background: #ffffff;
    color: var(--text-title);
    font-size: 1.35rem;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.45);
    z-index: 1090;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.admin-sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.viewport-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.viewport-header-actions .view-site-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #059669;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.viewport-header-actions .view-site-btn:hover {
    background: #047857;
    transform: translateY(-1px);
}

.sidebar-view-site {
    display: none;
}

@media (max-width: 992px) {
    .admin-menu-toggle {
        display: inline-flex;
    }

    .admin-sidebar-backdrop {
        display: block;
    }

    .admin-dashboard-layout {
        flex-direction: column;
        border-radius: 0;
        border: none;
        min-height: 100vh;
        position: relative;
        font-size: 1rem;
    }
    
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(300px, 86vw);
        height: 100vh;
        height: 100dvh;
        z-index: 1100;
        transform: translateX(-105%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border-right: none;
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .admin-dashboard-layout.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }
    
    .sidebar-nav {
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 12px;
        gap: 6px;
    }
    
    .sidebar-tab-btn {
        padding: 12px 14px;
        font-size: 0.92rem;
        min-height: 46px;
    }
    
    .sidebar-tab-btn.logout-btn-item {
        margin-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.08);
        padding-top: 16px;
    }

    .sidebar-brand {
        padding: 18px 16px;
        font-size: 1rem;
    }

    .admin-main-viewport {
        padding: 10px 10px 28px;
        width: 100%;
        min-width: 0;
    }

    /* Compact single-row header: menu | title | site | profile */
    .viewport-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        padding: 4px 0 10px;
        border-bottom: 1px solid var(--border-dark);
    }

    .viewport-title {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .viewport-title h2 {
        font-size: 1rem;
        line-height: 1.25;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .viewport-header-actions {
        width: auto;
        flex-shrink: 0;
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .viewport-header-actions .view-site-btn span {
        display: none;
    }

    .viewport-header-actions .view-site-btn {
        padding: 0;
        width: 40px;
        height: 40px;
        min-height: 40px;
        border-radius: 10px;
        justify-content: center;
        box-shadow: none;
    }

    /* Full-label site link lives in the drawer on mobile */
    .sidebar-view-site {
        display: flex;
        background: rgba(5, 150, 105, 0.22);
        color: #ecfdf5;
    }

    .sidebar-view-site:hover,
    .sidebar-view-site:focus-visible {
        background: #059669;
        color: #fff;
    }

    .admin-profile-badge span {
        display: none;
    }

    .admin-profile-badge {
        padding: 0;
        width: 40px;
        height: 40px;
        min-height: 40px;
        min-width: 40px;
        justify-content: center;
        border-radius: 50%;
    }

    .admin-menu-toggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
    }

    /* Tighter settings / content cards on mobile */
    .admin-main-viewport .dashboard-pane {
        gap: 12px !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .admin-main-viewport .admin-table-container {
        margin: 0;
        border-radius: 12px;
        padding: 14px !important;
        -webkit-overflow-scrolling: touch;
    }

    .admin-main-viewport .admin-table-container h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .admin-main-viewport .admin-table-container > p,
    .admin-main-viewport .admin-table-container form > p {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
        line-height: 1.45 !important;
    }

    .admin-main-viewport .admin-table-container input,
    .admin-main-viewport .admin-table-container select,
    .admin-main-viewport .admin-table-container textarea {
        font-size: 1rem !important;
        padding: 10px 12px !important;
    }

    .admin-main-viewport .admin-table-container label {
        font-size: 0.95rem !important;
    }

    .admin-main-viewport [style*="grid-template-columns: 1fr 1fr"],
    .admin-main-viewport [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .metric-card {
        padding: 14px;
    }

    .analytics-panels-row {
        padding: 16px;
    }

    .admin-data-table {
        min-width: 640px;
    }

    .admin-data-table th,
    .admin-data-table td {
        padding: 12px 14px;
        font-size: 0.84rem;
    }

    .orders-data-table th,
    .orders-data-table td {
        white-space: nowrap;
    }

    .dashboard-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-action-row .action-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .table-actions {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .table-btn {
        min-height: 40px;
        padding: 8px 10px;
    }

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

    .pane-toolbar,
    .products-toolbar,
    .orders-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-box-wrap,
    .search-box-wrap.full-search {
        width: 100%;
    }

    .search-box-wrap input {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .shipping-area-selector {
        grid-template-columns: 1fr;
    }
    
    .hero-content .brand-title {
        font-size: 1.85rem;
    }
    
    .filter-tab {
        padding: 10px 14px;
        font-size: 0.84rem;
    }

    .admin-main-viewport {
        padding: 10px 10px 28px;
    }

    .metric-value {
        font-size: 1.25rem;
    }

    .login-card {
        padding: 28px 18px;
    }

    .admin-login-gate {
        padding: 16px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Force stacked layouts for common admin inline grids */
    .admin-main-viewport [style*="grid-template-columns: 1fr 1.5fr"],
    .admin-main-viewport [style*="grid-template-columns:1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .admin-main-viewport [style*="padding:30px"],
    .admin-main-viewport [style*="padding: 30px"],
    .admin-main-viewport [style*="padding: 28px"],
    .admin-main-viewport [style*="padding:28px"] {
        padding: 14px !important;
    }

    .admin-main-viewport [style*="justify-content:space-between"],
    .admin-main-viewport [style*="justify-content: space-between"] {
        flex-wrap: wrap;
        gap: 12px;
    }

    .admin-main-viewport table[style*="min-width:600px"] {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   Stunning Custom On-Site Modal Alerts / Confirms
   ========================================================================== */
.custom-alert-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(28, 25, 23, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-alert-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-alert-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-alert-backdrop.show .custom-alert-card {
    transform: scale(1) translateY(0);
}

.custom-alert-backdrop.hide .custom-alert-card {
    transform: scale(0.95) translateY(10px);
}

.custom-alert-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.alert-icon-success {
    color: var(--emerald-medium);
}

.alert-icon-error {
    color: #ef4444;
}

.alert-icon-warning {
    color: var(--gold);
}

.alert-icon-info {
    color: #3b82f6;
}

.custom-alert-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 12px;
}

.custom-alert-message {
    font-size: 0.96rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 24px;
}

.custom-alert-buttons-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.custom-alert-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
    transition: var(--transition);
}

.custom-alert-btn:hover {
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
    transform: translateY(-1px);
}

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

.custom-alert-btn.btn-cancel {
    background: #e7e5e4;
    color: #44403c;
    box-shadow: none;
}

.custom-alert-btn.btn-cancel:hover {
    background: #d6d3d1;
    box-shadow: none;
}

/* Storefront Pagination */
.storefront-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 48px 0 24px 0;
    font-family: var(--font-bengali);
    width: 100%;
}

.pagination-btn {
    background: #ffffff;
    border: 1.5px solid var(--border-dark);
    color: var(--text-title);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--emerald-tint);
    border-color: var(--emerald-medium);
    color: var(--emerald-medium);
}

.pagination-btn.active {
    background: var(--emerald-dark);
    color: #ffffff;
    border-color: var(--emerald-dark);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Product Layout V3 (3-column layout) — same theme for every product */
.product-layout-v3 {
    display: grid;
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr) minmax(380px, 440px);
    grid-template-areas: "media intro buy";
    gap: 18px 24px;
    align-items: start;
    margin-bottom: 16px;
}

/* Desktop / tablet: widen PDP toward the canvas edge + lock 3-column theme */
@media (min-width: 769px) {
    body.pdp-active .app-wrapper {
        max-width: 1680px;
    }

    #productDetailView > .container,
    #productDetailView .pdp-container {
        max-width: 1600px;
        padding-left: 28px;
        padding-right: 28px;
    }

    .pdp-app-stack {
        display: none !important;
    }

    .pdp-desktop-intro {
        display: flex !important;
        flex-direction: column;
        gap: 14px;
        min-width: 0;
    }

    .pdp-desktop-buy {
        display: flex !important;
        flex-direction: column;
    }

    .col-center-info {
        display: none !important;
    }

    .product-layout-v3 {
        display: grid !important;
        grid-template-columns: minmax(320px, 400px) minmax(0, 1fr) minmax(380px, 440px) !important;
        grid-template-areas: "media intro buy" !important;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .product-layout-v3 {
        grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(320px, 380px) !important;
        gap: 14px 16px;
    }
}

@media (max-width: 768px) {
    .product-layout-v3 {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "app"
            "center";
        gap: 0;
    }

    .pdp-app-stack {
        display: flex !important;
        flex-direction: column;
        grid-area: app;
    }

    .pdp-desktop-intro,
    .pdp-desktop-buy {
        display: none !important;
    }
}

.col-media {
    grid-area: media;
    position: relative;
    top: auto;
}

.col-pdp-intro {
    grid-area: intro;
    min-width: 0;
}

/* Default: hide mobile app stack (desktop lock above uses !important) */
.pdp-app-stack {
    display: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.col-center-info {
    grid-area: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.col-buy-box {
    grid-area: buy;
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(2, 44, 34, 0.04);
    position: relative;
    top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Merged price + purchase block inside buy box (single card, no nested card) */
.col-buy-box .premium-price-banner,
.col-buy-box .buy-box-price {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    gap: 10px;
}

.col-buy-box .shop-info-header {
    border-top: 1px solid var(--border-dark);
    padding-top: 12px;
    margin-top: 0;
}

.col-buy-box .delivery-info-box {
    margin: 0;
    padding: 12px;
}

.col-buy-box .trust-stack-vertical {
    margin-top: 0;
    padding-top: 12px;
    gap: 8px;
    font-size: 0.95rem;
}

@media (min-width: 769px) {
    .col-media,
    .col-buy-box {
        position: sticky;
        top: 110px;
    }
}

@media (max-width: 768px) {
    .col-media,
    .col-buy-box,
    .detail-img-col,
    .product-layout-v3 .col-media {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
    }

    .product-layout-v3 {
        overflow: visible;
    }

    .product-layout-v3 .col-media,
    .product-layout-v3 .product-slider {
        position: relative !important;
        z-index: 0 !important;
    }

    .product-layout-v3 .col-center-info,
    .product-layout-v3 .col-buy-box,
    .product-detail-bottom-section {
        position: relative;
        z-index: 2;
        background: #fff;
    }
}

.detail-header-block {
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 12px;
}

.category-tag {
    background: var(--emerald-tint);
    color: var(--emerald-medium);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
    border: 1px solid rgba(15, 118, 110, 0.12);
}

.product-title {
    font-size: 2.35rem;
    line-height: 1.28;
    color: var(--text-title);
    font-weight: 700;
    margin: 0 0 8px 0;
    font-family: var(--font-bengali);
    letter-spacing: -0.02em;
}

.product-layout-v3 .product-rating-row {
    gap: 8px;
    margin-bottom: 0;
}

.product-layout-v3 .product-rating-row .stars {
    font-size: 1.05rem;
}

.product-layout-v3 .product-rating-row .rating-text {
    font-size: 1rem;
    color: var(--text-muted);
}

.product-static-img-container .p-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.pdp-delivery-strip {
    display: none;
}

.pdp-variants-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-layout-v3 .variant-label {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.product-layout-v3 .seller-line {
    font-size: 1.05rem;
}

.product-layout-v3 .seller-rating {
    font-size: 0.95rem;
    margin-top: 4px;
}

.product-layout-v3 .delivery-title {
    font-size: 1.02rem;
}

.product-layout-v3 .delivery-sub {
    font-size: 0.92rem;
}

.desktop-only-block {
    display: flex;
}

.split-variants {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-stack .add-cart-btn {
    background: var(--emerald-dark);
    color: #fff;
    border: none;
    order: -1;
    padding: 14px;
}

.action-stack .add-cart-btn:hover {
    background: #033d2f;
}

.action-stack .buy-now-btn {
    background: #fff;
    color: var(--emerald-dark);
    border: 1.5px solid var(--emerald-dark);
    padding: 13px;
}

.action-stack .buy-now-btn:hover {
    background: var(--emerald-tint);
}

.added-msg {
    display: none;
    text-align: center;
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
}

.added-msg.visible {
    display: block;
}

/* Gallery dots + counter */
.product-slider {
    position: relative;
    overflow: hidden;
}

.slider-dots {
    display: none;
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    gap: 6px;
    z-index: 5;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: #fff;
    width: 18px;
    border-radius: 999px;
}

.slider-counter {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(2, 44, 34, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 5;
}

/* Accordion details */
.pdp-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.pdp-acc-item {
    background: #fff;
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.pdp-acc-trigger {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-title);
    cursor: pointer;
    user-select: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.pdp-acc-trigger::-webkit-details-marker {
    display: none;
}

.pdp-acc-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.pdp-acc-trigger i {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.25s ease;
    flex: 0 0 auto;
}

.pdp-acc-item[open] .pdp-acc-trigger i {
    transform: rotate(180deg);
    color: var(--emerald-medium);
}

.pdp-acc-panel {
    padding: 0 14px 14px;
    border-top: 1px solid var(--border);
    min-width: 0;
}

.pdp-acc-panel .tab-text {
    margin: 12px 0 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Mobile sticky purchase bar — desktop only hide (must not override mobile flex) */
@media (min-width: 769px) {
    .pdp-sticky-bar,
    .pdp-sheet,
    .pdp-sheet-overlay {
        display: none !important;
    }
}

/* ==========================================================================
   Product Detail + Highlights Redesign
   ========================================================================== */

.product-detail-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0;
    white-space: pre-line;
}

.premium-price-banner {
    background: #fff;
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(2, 44, 34, 0.04);
}

.price-banner-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.price-banner-purchase {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--border-dark);
}

.buy-box-variants {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.col-buy-box .variant-group {
    margin: 0;
    padding: 0;
}

.col-buy-box .variant-label {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.col-buy-box .selected-val-label {
    color: var(--emerald-medium);
    font-weight: 700;
}

.col-buy-box .variant-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.col-buy-box .color-swatch-wrapper {
    width: 36px;
    height: 36px;
}

.col-buy-box .pill-label span {
    padding: 8px 14px;
    font-size: 0.95rem;
    border-radius: 8px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.col-buy-box .pill-label input:checked + span {
    background: var(--emerald-dark);
    color: #fff;
    border-color: var(--emerald-dark);
}

.buy-box-scents-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.scent-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--emerald-tint);
    border: 1px solid rgba(15, 118, 110, 0.16);
    color: var(--text-title);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}

.price-banner-qty {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.price-banner-qty .qty-label {
    margin: 0;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-title);
}

.price-banner-qty .detail-qty-box {
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-dark);
    overflow: hidden;
    width: fit-content;
}

.price-banner-qty .detail-qty-box .qty-btn {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    background: #fafaf9;
    color: var(--text-title);
}

.price-banner-qty .detail-qty-box .qty-btn:hover {
    background: #f0fdfa;
    color: var(--emerald-medium);
}

.price-banner-qty .detail-qty-box .qty-val {
    width: 34px;
    height: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    border-left: 1px solid var(--border-dark);
    border-right: 1px solid var(--border-dark);
}

.price-banner-actions {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8px;
    width: 100%;
}

.price-banner-actions .add-cart-btn,
.price-banner-actions .buy-now-btn {
    width: 100%;
    min-height: 50px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 1.02rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    padding: 12px 10px;
    cursor: pointer;
}

.price-banner-actions .add-cart-btn {
    background: var(--emerald-dark);
    color: #fff;
    border: none;
}

.price-banner-actions .add-cart-btn:hover {
    background: #033d2f;
}

.price-banner-actions .buy-now-btn {
    background: #fff;
    color: var(--emerald-dark);
    border: 1.5px solid var(--emerald-dark);
}

.price-banner-actions .buy-now-btn:hover {
    background: var(--emerald-tint);
}

.price-offer-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.price-row-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-dark);
}

.price-amount {
    font-size: 2.55rem;
    font-weight: 800;
    color: var(--emerald-dark);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.price-unit {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.15rem;
    margin-left: 4px;
    font-family: 'Outfit', sans-serif;
}

.price-discount {
    background: #ef4444;
    color: #fff;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
}

.stock-badge {
    background: #ecfdf5;
    color: #047857;
    padding: 7px 12px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
}

.product-highlights-card {
    background: linear-gradient(160deg, #f0fdfa 0%, #ffffff 55%);
    border: 1.5px solid rgba(15, 118, 110, 0.16);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(2, 44, 34, 0.04);
    width: 100%;
}

.highlights-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--emerald-dark);
    color: #fff;
}

.highlights-header i {
    color: var(--gold);
    font-size: 1.2rem;
}

.highlights-header h4 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
}

.highlights-body {
    padding: 12px;
}

.product-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 11px 12px;
}

.highlight-icon {
    color: var(--emerald-medium);
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.highlight-text {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-title);
    font-weight: 500;
}

.shop-info-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.seller-line {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-title);
}

.seller-line span {
    color: var(--emerald-medium);
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.85rem;
    color: #f59e0b;
    margin-top: 6px;
}

.seller-rating span {
    color: var(--text-muted);
    margin-left: 8px;
    font-size: 0.85rem;
}

.delivery-info-box {
    background: var(--cream);
    padding: 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
}

.delivery-info-box > i {
    font-size: 1.35rem;
    color: var(--emerald-medium);
}

.delivery-title {
    font-weight: 700;
    color: var(--text-title);
    font-size: 0.95rem;
}

.delivery-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.qty-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.qty-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-title);
}

.detail-qty-box {
    display: flex;
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
    background: white;
}

.detail-qty-box .qty-btn {
    border: none;
    background: #fafaf9;
    width: 44px;
    height: 44px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--text-title);
}

.detail-qty-box .qty-val {
    width: 48px;
    text-align: center;
    border: none;
    outline: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-title);
}

/* Compact quantity control inside buy box */
.price-banner-qty .detail-qty-box .qty-btn {
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    font-size: 0.95rem !important;
    font-weight: 600;
}

.price-banner-qty .detail-qty-box .qty-val {
    width: 34px !important;
    height: 30px !important;
    min-height: 30px !important;
    font-size: 0.95rem !important;
}

.action-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.buy-now-btn,
.add-cart-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    min-height: 50px;
    font-size: 1.02rem;
}

.trust-stack-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trust-stack-vertical div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-stack-vertical i {
    color: var(--emerald-medium);
    font-size: 1.1rem;
}

.tab-text {
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
}

.flat-shipping-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f0fdfa;
    border: 1.5px solid #99f6e4;
    border-radius: 12px;
    padding: 14px 16px;
}

.flat-shipping-banner i {
    font-size: 1.4rem;
    color: var(--emerald-medium);
    margin-top: 2px;
}

.flat-shipping-banner strong {
    display: block;
    color: var(--text-title);
    font-size: 1rem;
    margin-bottom: 2px;
}

.flat-shipping-banner p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Legacy tab styles kept for compatibility */
.details-tab-header { display: none; }
.details-tab-content { display: none; }

.product-detail-bottom-section {
    grid-column: 1 / -1;
    margin-top: 16px;
    border-top: none;
    padding-top: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .media-container {
        padding: 28px 14px 32px;
    }

    .media-container .section-title h2 {
        font-size: 1.35rem;
    }

    .media-container .section-subtitle,
    .testimonials-section .section-subtitle {
        font-size: 0.95rem;
    }

    .video-frame {
        padding: 10px;
        border-radius: 16px;
    }

    .testimonials-section {
        padding: 32px 14px 36px;
    }

    .review-text {
        font-size: 1.05rem !important;
        line-height: 1.7;
    }

    .customer-name {
        font-size: 1.05rem !important;
    }

    .footer {
        padding: 24px 14px 16px;
    }

    .footer-info .footer-brand {
        font-size: 1.35rem;
    }

    .brand-bio {
        font-size: 0.95rem;
    }

    .footer-links h4 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .footer-links ul {
        gap: 8px;
    }

    .footer-links ul a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.95rem;
        padding: 8px 0;
        min-height: 40px;
    }

    .footer-badges {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-badges span {
        font-size: 0.88rem;
    }

    .product-detail-desc {
        font-size: 1.05rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .pdp-sticky-cart span {
        font-size: 0.88rem;
    }

    .pdp-sticky-buy {
        font-size: 0.86rem;
        padding: 0 10px;
    }

    #checkoutView {
        padding: 20px 0 36px;
    }

    .checkout-layout {
        gap: 16px;
    }

    .form-header h2 {
        font-size: 1.15rem;
    }

    .form-header p,
    .input-group label,
    .area-name,
    .cod-text p,
    .calc-row {
        font-size: 0.95rem;
    }

    .area-price {
        font-size: 1.1rem;
    }

    .calc-row.total {
        font-size: 1.2rem;
    }

    .order-btn-green,
    .submit-order-btn {
        min-height: 50px;
        font-size: 1.05rem;
    }

    .summary-card-header h3 {
        font-size: 1.05rem;
    }

    .buy-now-btn,
    .add-cart-btn {
        min-height: 52px;
        font-size: 1.02rem;
    }
}

/* ==========================================================================
   Floating WhatsApp + Call widgets
   ========================================================================== */

.contact-float-dock {
    position: fixed;
    left: 16px;
    right: auto;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    pointer-events: none;
}

.contact-float-dock > * {
    pointer-events: auto;
}

/* Call on top, WhatsApp directly below */
.contact-float-dock .contact-float-call {
    order: 1;
}

.contact-float-dock .contact-float-wa {
    order: 2;
}

body.has-mobile-sticky .contact-float-dock,
body.pdp-active .contact-float-dock {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}

.contact-float-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.55rem;
    box-shadow: 0 10px 28px rgba(2, 44, 34, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    overflow: visible;
}

.contact-float-btn:hover,
.contact-float-btn:focus-visible {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 14px 32px rgba(2, 44, 34, 0.32);
}

.contact-float-btn i {
    position: relative;
    z-index: 1;
}

.contact-float-wa {
    background: #25D366;
    width: 52px;
    height: 52px;
    font-size: 1.45rem;
}

.contact-float-wa.is-disabled {
    opacity: 0.72;
    filter: grayscale(0.15);
}

.contact-float-call {
    background: linear-gradient(145deg, var(--emerald-medium), var(--emerald-dark));
    width: 58px;
    height: 58px;
    font-size: 1.65rem;
}

.contact-float-call.is-disabled {
    opacity: 0.72;
    filter: grayscale(0.15);
}

.contact-float-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.45);
    animation: contactPulse 2s ease-out infinite;
    z-index: 0;
    pointer-events: none;
}

.contact-float-call.is-disabled .contact-float-pulse {
    animation: none;
    opacity: 0;
}

@keyframes contactPulse {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }
    70% {
        transform: scale(1.55);
        opacity: 0;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .contact-float-dock {
        left: 12px;
        right: auto;
    }

    .contact-float-call {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }

    .contact-float-wa {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }

    .admin-table-container form > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    #productDetailView {
        padding-bottom: 12px;
    }

    body.pdp-active #productDetailView {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    .price-amount {
        font-size: 1.95rem;
    }

    .stock-badge {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}
