/*
Theme Name: NourePhone Theme
Author: YASSINE
Description: A premium, modern, and impressive mobile-first e-commerce store optimized for WooCommerce. Bold luxury phone store aesthetic.
Version: 2.0.0
Text Domain: nourephone
*/

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ===== DESIGN TOKENS — Warm Luxury ===== */
:root,
[data-theme="dark"] {
    /* Background — warm dark */
    --bg-primary: #131210;
    --bg-secondary: #1A1816;
    --bg-card: #1C1A18;
    --bg-card-hover: #22201D;
    --bg-elevated: #1E1C1A;

    /* Accent — warm copper */
    --accent: #B8976A;
    --accent-soft: rgba(184, 151, 106, 0.10);
    --accent-glow: rgba(184, 151, 106, 0.22);
    --accent-gradient: linear-gradient(135deg, #A68B6B 0%, #8B6E4E 50%, #6E5638 100%);

    /* Text */
    --text-hero: #EDEBE8;
    --text-primary: #EDEBE8;
    --text-secondary: #A09A95;
    --text-muted: #605B56;

    /* Borders & Glass */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.13);
    --glass: rgba(19, 18, 16, 0.85);
    --glass-strong: rgba(19, 18, 16, 0.95);

    /* Gradients */
    --gradient-hero-text: linear-gradient(180deg, #EDEBE8 20%, #8B8580 100%);
    --gradient-card: linear-gradient(145deg, #1C1A18 0%, #151310 100%);

    /* Inverse (for buttons) */
    --inverse-bg: #EDEBE8;
    --inverse-text: #131210;

    /* Noise overlay opacity */
    --noise-opacity: 0.02;
}

[data-theme="light"] {
    --bg-primary: #F8F6F3;
    --bg-secondary: #F0EDE8;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F5F2EE;
    --bg-elevated: #FFFFFF;

    --accent: #8B6E4E;
    --accent-soft: rgba(139, 110, 78, 0.10);
    --accent-glow: rgba(139, 110, 78, 0.22);
    --accent-gradient: linear-gradient(135deg, #A68B6B 0%, #8B6E4E 50%, #6E5638 100%);

    --text-hero: #1E1E1E;
    --text-primary: #1E1E1E;
    --text-secondary: #5A5550;
    --text-muted: #9A9590;

    --border: rgba(0, 0, 0, 0.07);
    --border-hover: rgba(0, 0, 0, 0.14);
    --glass: rgba(248, 246, 243, 0.88);
    --glass-strong: rgba(248, 246, 243, 0.96);

    --gradient-hero-text: linear-gradient(180deg, #1E1E1E 20%, #8B8580 100%);
    --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #F5F2EE 100%);

    --inverse-bg: #1E1E1E;
    --inverse-text: #F8F6F3;

    --noise-opacity: 0.015;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
}

/* Noise texture overlay on body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: var(--noise-opacity);
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ===== PRELOADER ===== */
.noure-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.noure-preloader.loaded {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px) scale(0.98);
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.noure-svg {
    color: var(--accent);
    filter: drop-shadow(0 0 15px var(--accent-glow));
    margin-bottom: 5px;
}

.svg-outline {
    stroke-dasharray: 470;
    stroke-dashoffset: 470;
    animation: dashDraw 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.svg-camera-bump {
    stroke-dasharray: 130;
    stroke-dashoffset: 130;
    animation: dashDraw 1s cubic-bezier(0.65, 0, 0.35, 1) 0.5s forwards;
}

.svg-lens {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}

.l1 {
    animation: dashDraw 0.5s ease-out 1s forwards;
}

.l2 {
    animation: dashDraw 0.5s ease-out 1.2s forwards;
}

.l3 {
    animation: dashDraw 0.5s ease-out 1.4s forwards;
}

@keyframes dashDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.creative-text-wrap {
    overflow: hidden;
    padding-bottom: 5px;
}

.creative-text {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    letter-spacing: 12px;
    margin-right: -12px;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(100%);
    animation: textReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preloader-bar {
    width: 100px;
    height: 1px;
    background: var(--border);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInBar 0.5s 1.5s forwards;
}

.preloader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    animation: preloaderLoadLoop 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes fadeInBar {
    to {
        opacity: 1;
    }
}

@keyframes preloaderLoadLoop {
    0% {
        width: 0%;
        left: 0;
        right: auto;
    }

    50% {
        width: 100%;
        left: 0;
        right: auto;
    }

    50.1% {
        left: auto;
        right: 0;
    }

    100% {
        width: 0%;
        left: auto;
        right: 0;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--accent);
    color: #ffffff;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ===== LOGOS ===== */
[data-theme="dark"] .light-mode-logo {
    display: none !important;
}

[data-theme="light"] .dark-mode-logo {
    display: none !important;
}

.logo-container {
    display: flex;
    align-items: center;
    max-height: 50px;
}

.brand-logo {
    height: 42px;
    max-height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.app-logo {
    display: flex;
    align-items: center;
    max-height: 44px;
}

.brand-logo-mobile {
    height: 38px;
    max-height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
}

/* ===============================================
   NAVIGATION — DESKTOP
   =============================================== */
.desktop-nav {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-strong);
    backdrop-filter: blur(30px) saturate(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s ease;
}

.admin-bar .desktop-nav {
    top: 32px;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links li,
.nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-links a,
.nav-links .menu-item a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1.8rem;
    font-weight: 500;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    position: relative;
    font-family: 'Outfit', sans-serif;
}

.nav-links a::after,
.nav-links .menu-item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links .menu-item a:hover {
    color: var(--text-primary);
    letter-spacing: 3px;
}

.nav-links a:hover::after,
.nav-links .menu-item a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===============================================
   APP HEADER — MOBILE
   =============================================== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.app-header.scrolled {
    background: var(--glass-strong);
    backdrop-filter: blur(30px) saturate(1.3);
    -webkit-backdrop-filter: blur(30px) saturate(1.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.admin-bar .app-header {
    top: 46px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== ICON BUTTONS ===== */
.icon-btn {
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.icon-btn i {
    width: 18px;
    height: 18px;
}

.icon-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}

/* Cart Badge */
.cart-btn {
    position: relative;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
    font-family: 'Outfit', sans-serif;
}

/* ===============================================
   MAIN LAYOUT
   =============================================== */
.app-main {
    padding-top: 0;
    min-height: 100vh;
}

/* ===============================================
   PRIMARY CTA BUTTON
   =============================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--inverse-bg);
    color: var(--inverse-text);
    border: none;
    padding: 1.1rem 2.5rem;
    border-radius: 60px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--accent-glow);
}

.btn-primary i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.btn-primary:hover i {
    transform: translateX(4px);
}



/* ===============================================
   PRODUCT CARD GRID (SHOP PAGE)
   =============================================== */

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.product-card {
    background: var(--gradient-card);
    border-radius: 22px;
    padding: 0.6rem;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, var(--accent-soft), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 22px;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-card:hover::after {
    opacity: 1;
}

.product-image-container {
    background: rgba(128, 128, 128, 0.06);
    height: 200px;
    border-radius: 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .product-img {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.product-card:hover .product-img {
    transform: scale(1.08) translateY(-4px);
}

.like-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.like-btn i {
    width: 15px;
    height: 15px;
}

.like-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.product-info {
    padding: 1rem 0.6rem 0.6rem;
}

.brand {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Outfit', sans-serif;
}

.product-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 0.35rem 0 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums lining-nums;
}

.add-btn {
    background: var(--inverse-bg);
    color: var(--inverse-text);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-btn i {
    width: 16px;
    height: 16px;
}

.add-btn:hover {
    background: var(--accent);
    color: white;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 5px 15px var(--accent-glow);
}



/* ===============================================
   APP BOTTOM NAV (MOBILE)
   =============================================== */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--glass-strong);
    backdrop-filter: blur(25px) saturate(1.3);
    -webkit-backdrop-filter: blur(25px) saturate(1.3);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
    z-index: 100;
    padding-bottom: calc(0.8rem + env(safe-area-inset-bottom));
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    gap: 4px;
    transition: all 0.3s ease;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
}

.nav-item i {
    width: 22px;
    height: 22px;
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-item.active {
    color: var(--text-primary);
}

.nav-item.active i {
    color: var(--accent);
}

.nav-item:hover {
    color: var(--text-primary);
}

.bottom-padding {
    height: 80px;
}

/* ===============================================
   ANIMATIONS
   =============================================== */
@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) {
    transition-delay: 0s;
}

.stagger-children .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.stagger-children .reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* ===============================================
   DESKTOP RESPONSIVE (768px+)
   =============================================== */
@media (min-width: 768px) {

    .app-header,
    .app-bottom-nav {
        display: none;
    }

    .desktop-nav {
        display: block;
    }

    .btn-primary {
        padding: 1.2rem 3.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .product-image-container {
        height: 260px;
    }

    .bottom-padding {
        height: 0;
    }
}

/* ===============================================
   LARGE DESKTOP (1200px+)
   =============================================== */
@media (min-width: 1200px) {
    .product-grid {
        gap: 2rem;
    }
}

/* ===============================================
   WOOCOMMERCE OVERRIDES
   =============================================== */
.woocommerce-page .app-main,
.woocommerce .app-main {
    padding-top: 80px;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.woocommerce ul.products li.product {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 1rem;
    transition: all 0.4s ease;
    margin: 0;
    width: auto !important;
    float: none !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
}

.woocommerce ul.products li.product a img {
    border-radius: 16px;
    margin-bottom: 0.5rem;
}

.woocommerce ul.products li.product .price {
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-variant-numeric: tabular-nums lining-nums;
}

.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.add_to_cart_button {
    background: var(--inverse-bg);
    color: var(--inverse-text);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
    background: var(--accent);
    color: white;
}


/* ===============================================
   SHOP PAGE EXCLUSIVE — MODERN REDESIGN
   =============================================== */
.shop-page {
    min-height: 100vh;
}

/* --- Compact Header --- */
.shop-compact-header {
    padding: 100px 2rem 0;
    position: relative;
    overflow: hidden;
}

.shop-compact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, var(--accent-soft), transparent),
        radial-gradient(ellipse 40% 60% at 80% 30%, rgba(128, 128, 128, 0.03), transparent);
    pointer-events: none;
    z-index: 0;
}

.shop-compact-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.shop-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.shop-breadcrumb a:hover {
    color: var(--accent);
}

.shop-breadcrumb .sep {
    color: var(--text-muted);
    opacity: 0.4;
}

.shop-breadcrumb .current {
    color: var(--text-secondary);
}

.shop-main-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: var(--gradient-hero-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
}

.shop-results-count {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- Content Section --- */
.shop-content-section {
    position: relative;
}

.shop-content-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    position: relative;
}

/* --- Filter Bar --- */
.shop-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    position: sticky;
    top: 64px;
    z-index: 50;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.admin-bar .shop-filter-bar {
    top: 96px;
}

.filter-bar-left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.filter-bar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

/* --- Category Chips --- */
.category-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0;
}

.category-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    border-radius: 50px;
}

.chip>* {
    position: relative;
    z-index: 1;
}

.chip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.chip-label {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.chip:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.chip.active {
    border-color: var(--accent);
    color: white;
    background: var(--accent);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.chip.active .chip-label {
    color: white;
}

.chip.active::before {
    transform: scaleX(1);
}

.chip.active .chip-dot {
    background: white;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* --- Sort Dropdown --- */
.sort-dropdown-wrap {
    position: relative;
}

.sort-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sort-trigger i {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.sort-chevron {
    transition: transform 0.3s ease;
}

.sort-dropdown-wrap.open .sort-chevron {
    transform: rotate(180deg);
}

.sort-trigger:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.sort-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    backdrop-filter: blur(20px);
}

.sort-dropdown-wrap.open .sort-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sort-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.65rem 1rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-option:hover {
    background: rgba(128, 128, 128, 0.08);
    color: var(--text-primary);
}

.sort-option.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

/* --- View Toggle --- */
.view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn i {
    width: 16px;
    height: 16px;
}

.view-btn:first-child {
    border-right: 1px solid var(--border);
}

.view-btn:hover {
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--accent-soft);
    color: var(--accent);
}

/* --- Grid/List Views --- */
.shop-custom-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    transition: all 0.4s ease;
}

.shop-custom-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 1rem;
}

.shop-custom-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0.8rem;
    max-width: 100%;
}

.shop-custom-grid.list-view .product-image-container {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    height: 160px;
    border-radius: 14px;
    flex-shrink: 0;
}

.shop-custom-grid.list-view .product-image-container .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.shop-custom-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    min-width: 0;
}

.shop-custom-grid.list-view .product-name {
    font-size: 1.05rem;
}

.shop-custom-grid.list-view .price-row {
    margin-top: auto;
}

/* --- Loading Overlay --- */
.shop-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.shop-loading-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.shop-spinner {
    width: 44px;
    height: 44px;
}

.spinner-ring {
    width: 100%;
    height: 100%;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spinRing 0.8s linear infinite;
}

@keyframes spinRing {
    to {
        transform: rotate(360deg);
    }
}

/* --- No Products --- */
.no-products-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: var(--gradient-card);
    border-radius: 20px;
    border: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.no-products-msg h3 {
    margin-bottom: 0.8rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.no-products-msg p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* --- Pagination --- */
.shop-pagination {
    padding-top: 1rem;
}

.custom-pagination ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
}

.custom-pagination ul li a,
.custom-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.custom-pagination ul li a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.custom-pagination ul li span.current {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Make single product wrapper nice */
.single-product-wrapper {
    background: var(--bg-primary);
}

/* --- Mobile adjustments for shop --- */
@media (max-width: 767px) {
    .shop-compact-header {
        padding: 80px 1rem 0;
    }

    .shop-compact-inner {
        padding: 1.5rem 1rem 1rem;
    }

    .shop-main-title {
        font-size: 1.8rem;
    }

    .shop-filter-bar {
        flex-direction: column;
        align-items: stretch;
        top: 56px;
        padding: 0.8rem 0;
    }

    .filter-bar-right {
        justify-content: space-between;
    }

    .sort-dropdown-wrap {
        margin-inline-start: auto;
    }

    .sort-dropdown {
        max-width: calc(100vw - 2rem);
    }

    .shop-content-inner {
        padding: 0 1rem 3rem;
    }

    .shop-custom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .shop-custom-grid.list-view {
        grid-template-columns: 1fr !important;
    }

    .shop-custom-grid.list-view .product-image-container {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
        height: 110px;
    }

    .view-toggle {
        display: none;
    }
}

/* --- Desktop shop fine-tuning --- */
@media (min-width: 768px) {
    .shop-compact-header {
        padding-top: 80px;
    }

    .shop-filter-bar {
        top: 62px;
    }

    .admin-bar .shop-filter-bar {
        top: 94px;
    }

    .shop-custom-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .shop-custom-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.8rem;
    }
}

/* ===============================================
   FILTER TOGGLE BUTTON
   =============================================== */
.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-toggle-btn i {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.filter-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* ===============================================
   SHOP LAYOUT
   =============================================== */
.shop-layout {
    position: relative;
}

.shop-grid-area {
    width: 100%;
    min-width: 0;
}

/* ===============================================
   FILTER SIDEBAR — ALWAYS SLIDE-OVER DRAWER
   =============================================== */
.shop-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    z-index: 500;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 60px rgba(0, 0, 0, 0.2);
}

.shop-sidebar.open {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 499;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- Sidebar Header --- */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-title i {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-close i {
    width: 16px;
    height: 16px;
}

.sidebar-close:hover {
    background: rgba(220, 50, 50, 0.1);
    border-color: rgba(220, 50, 50, 0.3);
    color: var(--accent);
}

/* --- Sidebar Content --- */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* --- Filter Groups --- */
.filter-group {
    border-bottom: 1px solid var(--border);
}

.filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-group-header:hover {
    background: rgba(128, 128, 128, 0.04);
}

.filter-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.filter-group-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
}

.filter-group-body.open {
    max-height: 500px;
    padding: 0 1.5rem 1.2rem;
}

/* --- Checkbox Filters --- */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.filter-checkbox:hover {
    opacity: 0.85;
}

.filter-checkbox input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--border-hover);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
}

.checkbox-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--accent);
    transform: scale(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-checkbox input:checked~.checkbox-custom {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.filter-checkbox input:checked~.checkbox-custom::after {
    transform: scale(1);
}

.checkbox-label {
    flex: 1;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkbox-count {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(128, 128, 128, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
}

/* --- Color Swatches --- */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--swatch-color);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.15);
}

.color-swatch.light-color {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-swatch.selected {
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--bg-elevated), 0 0 0 4px var(--accent);
}

.swatch-check {
    display: none;
    color: white;
}

.color-swatch.light-color .swatch-check {
    color: #333;
}

.color-swatch.selected .swatch-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swatch-check i {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

/* --- Attribute Options (size, storage, etc.) --- */
.attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.attr-option {
    padding: 0.45rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.attr-option:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(128, 128, 128, 0.05);
}

.attr-option.selected {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}

/* --- Price Range Slider --- */
.price-range-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.price-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(128, 128, 128, 0.06);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
}

.price-separator {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.price-slider-wrap {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
}

.price-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    transform: translateY(-50%);
}

.price-slider-fill {
    position: absolute;
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: left 0.1s, width 0.1s;
}

.price-slider {
    position: absolute;
    width: 100%;
    height: 30px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-elevated);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px var(--accent-glow);
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-elevated);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- Sidebar Actions --- */
.sidebar-actions {
    display: flex;
    gap: 0.8rem;
    padding: 1.2rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.btn-clear-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-filters i {
    width: 14px;
    height: 14px;
}

.btn-clear-filters:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-apply-filters {
    flex: 1;
    padding: 0.7rem 1.5rem;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-apply-filters:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-apply-filters:active {
    transform: translateY(0);
}

/* ===============================================
   CART DRAWER — Editorial Luxury Side Cart
   =============================================== */

/* ─── Overlay ─── */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.cart-drawer-overlay.active {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ─── Drawer Panel ─── */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100dvh;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 80px rgba(0, 0, 0, 0.4), -4px 0 24px rgba(0, 0, 0, 0.2);
    transform: translateX(105%);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.cart-drawer.open {
    transform: translateX(0);
}

/* Subtle noise grain overlay */
.cart-drawer-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    z-index: 0;
    mix-blend-mode: overlay;
}

/* ─── Header ─── */
.cart-drawer-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.35rem 1.35rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.cart-drawer-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-drawer-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.cart-drawer-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0;
}

.cart-drawer-item-count {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cart-drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.cart-drawer-close:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg) scale(1.05);
}

/* ─── Body ─── */
.cart-drawer-body {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cart-drawer-body::-webkit-scrollbar { width: 4px; }
.cart-drawer-body::-webkit-scrollbar-track { background: transparent; }
.cart-drawer-body::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 10px;
}

/* Force widget to fill layout */
.cart-drawer-body .widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
}

/* ─── Mini Cart Items List ─── */
.noure-minicart-items {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
}

.noure-minicart-items::-webkit-scrollbar { width: 4px; }
.noure-minicart-items::-webkit-scrollbar-track { background: transparent; }
.noure-minicart-items::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 10px;
}

/* ─── Individual Item ─── */
.noure-minicart-item {
    display: flex;
    gap: 12px;
    padding: 1.1rem 1.35rem;
    position: relative;
    transition: background 0.3s ease;
    animation: cartItemSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--item-index, 0) * 0.06s);
}

.noure-minicart-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.35rem;
    right: 1.35rem;
    height: 1px;
    background: var(--border);
}

.noure-minicart-item:last-child::after {
    display: none;
}

.noure-minicart-item:hover {
    background: var(--bg-secondary);
}

@keyframes cartItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ─── Product Image ─── */
.noure-minicart-img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
}

.noure-minicart-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.noure-minicart-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    float: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.noure-minicart-item:hover .noure-minicart-img img {
    transform: scale(1.08);
}

/* ─── Product Details ─── */
.noure-minicart-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.noure-minicart-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.noure-minicart-name-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.noure-minicart-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

a.noure-minicart-name:hover {
    color: var(--accent);
}

.noure-minicart-meta {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    text-transform: capitalize;
}

/* ─── Remove Button ─── */
.noure-minicart-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    margin-top: -2px;
}

.noure-minicart-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    transform: scale(1.1);
}

/* ─── Bottom Row: Quantity + Price ─── */
.noure-minicart-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* ─── Quantity Stepper ─── */
.noure-minicart-qty {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    height: 32px;
}

.noure-minicart-qty-btn {
    width: 28px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    flex-shrink: 0;
}

.noure-minicart-qty-btn:hover:not(:disabled) {
    background: var(--accent-soft);
    color: var(--accent);
}

.noure-minicart-qty-btn:active:not(:disabled) {
    transform: scale(0.9);
}

.noure-minicart-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.noure-minicart-qty-val {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 22px;
    text-align: center;
    user-select: none;
    line-height: 1;
}

/* Loading state for qty */
.noure-minicart-qty.loading {
    pointer-events: none;
    opacity: 0.55;
}

.noure-minicart-qty.loading .noure-minicart-qty-val {
    animation: qtyPulse 0.8s ease infinite;
}

@keyframes qtyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ─── Line Total ─── */
.noure-minicart-line-total {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.noure-minicart-line-total .woocommerce-Price-currencySymbol {
    font-weight: 600;
}

/* ─── Footer (Totals + Buttons) ─── */
.noure-minicart-footer {
    position: relative;
    z-index: 2;
    padding: 1.25rem 1.35rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Top decorative line */
.noure-minicart-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.35rem;
    right: 1.35rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}

.noure-minicart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.noure-minicart-subtotal-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.noure-minicart-subtotal-value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.noure-minicart-subtotal-value .woocommerce-Price-currencySymbol {
    font-size: 1.1rem;
    vertical-align: super;
    margin-right: 2px;
    color: var(--accent);
}

/* ─── Action Buttons ─── */
.noure-minicart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.noure-minicart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.85rem 1.5rem;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on hover */
.noure-minicart-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
}

.noure-minicart-btn:hover::after {
    left: 120%;
}

.noure-minicart-btn--secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.noure-minicart-btn--secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-card);
    transform: translateY(-1px);
}

.noure-minicart-btn--primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 6px 24px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.noure-minicart-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.noure-minicart-btn--primary:active {
    transform: translateY(0);
}

/* ─── Empty Cart State ─── */
.noure-minicart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    flex: 1;
    gap: 1rem;
}

.noure-minicart-empty-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 2px dashed var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    animation: emptyCartFloat 3s ease-in-out infinite;
    margin-bottom: 0.5rem;
}

@keyframes emptyCartFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.noure-minicart-empty-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.noure-minicart-empty-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.noure-minicart-empty .noure-minicart-btn {
    margin-top: 0.5rem;
}

/* ─── Item Remove Animation ─── */
.noure-minicart-item.removing {
    animation: cartItemRemove 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cartItemRemove {
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        overflow: hidden;
    }
}

/* ─── Mobile Responsive ─── */
@media (max-width: 480px) {
    .cart-drawer {
        max-width: 100%;
        border-left: none;
    }

    .cart-drawer-header {
        padding: 1.25rem 1.25rem;
    }

    .noure-minicart-item {
        padding: 0.9rem 1rem;
    }

    .noure-minicart-item::after {
        left: 1rem;
        right: 1rem;
    }

    .noure-minicart-footer {
        padding: 1.25rem;
    }

    .noure-minicart-footer::before {
        left: 1.25rem;
        right: 1.25rem;
    }

    .noure-minicart-img {
        width: 56px;
        height: 56px;
    }
}

/* Hide old WC default mini-cart styles within drawer */
.cart-drawer .woocommerce-mini-cart__total,
.cart-drawer .woocommerce-mini-cart__buttons {
    display: none !important;
}


/* ===============================================
   CART PAGE (Luxury Overhaul)
   =============================================== */
.woocommerce-cart .single-product-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 2rem 6rem;
}

/* Page Title Integration */
.woocommerce-cart .single-product-wrapper>h1:first-child,
.woocommerce-cart .woocommerce>h1:first-child {
    font-family: var(--font-product-heading);
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 3rem;
    color: var(--text-primary);
    text-align: left;
    background: var(--gradient-hero-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

/* Two-column layout */
.woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .woocommerce-cart .woocommerce {
        grid-template-columns: 1fr;
    }
}

/* ─── 1. PRODUCTS LIST (Left Column) ─── */
.woocommerce-cart-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    overflow: visible;
}

.shop_table.cart {
    width: 100%;
    border-collapse: collapse;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Hide table headers entirely */
.shop_table.cart thead {
    display: none;
}

.shop_table.cart tbody {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Product Card Row */
.shop_table.cart tbody tr.woocommerce-cart-form__cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    grid-template-areas: "img info qty price";
    gap: 2rem;
    align-items: center;
    background: var(--glass-strong);
    padding: 1.5rem 2rem 1.5rem 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shop_table.cart tbody tr.woocommerce-cart-form__cart-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 40px var(--accent-glow);
    background: var(--bg-elevated);
}

@media (max-width: 768px) {
    .shop_table.cart tbody tr.woocommerce-cart-form__cart-item {
        grid-template-columns: 100px 1fr;
        grid-template-areas:
            "img info"
            "qty price";
        gap: 1rem;
        padding: 1.2rem;
    }
}

/* Remove default table cell borders & padding */
.shop_table.cart td {
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
}

/* Image */
.shop_table.cart .product-thumbnail {
    grid-area: img;
}

.shop_table.cart .product-thumbnail a {
    display: block;
    width: 120px;
    height: 120px;
    background: var(--bg-card);
    border-radius: 18px;
    padding: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

@media (max-width: 768px) {
    .shop_table.cart .product-thumbnail a {
        width: 100px;
        height: 100px;
    }
}

.shop_table.cart .product-thumbnail a:hover {
    transform: scale(1.05);
}

.shop_table.cart .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

/* Name/Info */
.shop_table.cart .product-name {
    grid-area: info;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.shop_table.cart .product-name a {
    font-family: var(--font-product-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.shop_table.cart .product-name a:hover {
    color: var(--accent);
}

/* Hide Individual Price on Desktop, keep on mobile */
.shop_table.cart .product-price {
    display: none;
}

@media (max-width: 768px) {
    .shop_table.cart .product-price {
        display: block;
        font-family: var(--font-product-body);
        color: var(--text-muted);
        font-size: 0.9rem;
    }
}

/* Quantity */
.shop_table.cart .product-quantity {
    grid-area: qty;
}

.shop_table.cart .product-quantity .quantity {
    display: inline-flex;
    align-items: center;
    background: var(--bg-primary);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--border);
    height: 48px;
}

.shop_table.cart .product-quantity .quantity input[type="number"] {
    width: 60px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: center;
    font-family: 'DM Sans', var(--font-product-heading);
    font-size: 1.1rem;
    font-weight: 700;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Custom +/- buttons if added by JS, otherwise just the input */
.shop_table.cart .product-quantity .csp-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.shop_table.cart .product-quantity .csp-qty-btn:hover {
    background: var(--bg-card);
    color: var(--accent);
}

/* Subtotal */
.shop_table.cart .product-subtotal {
    grid-area: price;
    justify-content: flex-end;
}

.shop_table.cart .product-subtotal .amount {
    font-family: 'DM Sans', var(--font-product-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .shop_table.cart .product-subtotal .amount {
        font-size: 1.3rem;
        color: var(--accent);
    }
}

/* Remove Button - Positioned absolute top-right */
.shop_table.cart .product-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: block;
    width: auto;
}

.shop_table.cart .product-remove a.remove {
    color: var(--text-secondary);
    font-size: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: all 0.3s;
    background: var(--bg-primary);
}

.shop_table.cart .product-remove a.remove::before {
    content: '×';
    font-size: 1.4rem;
    line-height: 1;
    font-family: var(--font-product-body);
}

.shop_table.cart .product-remove a.remove:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

/* ─── Actions Row (Coupons & Update Cart) ─── */
.shop_table.cart tbody tr.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    border: none;
    padding: 1rem 0 0 0;
    box-shadow: none;
}

.shop_table.cart tbody tr.actions>td {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.coupon {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.coupon input.input-text {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-product-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.coupon input.input-text:focus {
    outline: none;
    border-color: var(--accent);
}

.coupon button.button,
button[name="update_cart"].button {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    font-family: var(--font-product-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.coupon button.button:hover,
button[name="update_cart"].button:hover {
    background: var(--bg-elevated);
    border-color: var(--text-muted);
    color: var(--accent);
}

button[name="update_cart"].button {
    margin-left: auto;
}

/* ─── 2. CART TOTALS / SIDEBAR (Right Column) ─── */
.cart-collaterals .cart_totals {
    background: var(--glass-strong);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    position: sticky;
    top: 120px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.cart-collaterals .cart_totals h2 {
    font-family: var(--font-product-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.cart-collaterals table.shop_table_responsive {
    width: 100%;
    border-collapse: collapse;
}

.cart-collaterals table.shop_table_responsive th,
.cart-collaterals table.shop_table_responsive td {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    display: table-cell;
}

.cart-collaterals table.shop_table_responsive th {
    text-align: left;
    color: var(--text-secondary);
    font-family: var(--font-product-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-collaterals table.shop_table_responsive td {
    text-align: right;
    color: var(--text-primary);
    font-family: 'DM Sans', var(--font-product-heading);
    font-size: 1.2rem;
    font-weight: 500;
}

.cart-collaterals .order-total th,
.cart-collaterals .order-total td {
    padding-top: 2rem;
    border-bottom: none;
}

.cart-collaterals .order-total th {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.cart-collaterals .order-total td strong .amount {
    font-size: 2.2rem;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.wc-proceed-to-checkout {
    margin-top: 2.5rem;
}

.wc-proceed-to-checkout a.checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.25rem;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-product-body);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.wc-proceed-to-checkout a.checkout-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.wc-proceed-to-checkout a.checkout-button:hover::before {
    left: 100%;
}

.wc-proceed-to-checkout a.checkout-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--accent-glow);
}

/* ===============================================
   CART PAGE — LUXURY REDESIGN (WooCommerce Blocks)
   =============================================== */

/* --- Page Header --- */
.noure-cart-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.noure-cart-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.noure-cart-header-inner {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.noure-cart-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.8rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* Re-use shop breadcrumb */
.noure-cart-page .shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.noure-cart-page .shop-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.noure-cart-page .shop-breadcrumb a:hover {
    color: var(--accent);
}

.noure-cart-page .shop-breadcrumb .sep {
    color: var(--text-muted);
    opacity: 0.4;
}

.noure-cart-page .shop-breadcrumb .current {
    color: var(--text-secondary);
}

/* --- Cart Content Wrapper --- */
.noure-cart-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* WooCommerce block wrapper alignment override */
.noure-cart-content .wp-block-woocommerce-cart {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* The main sidebar-layout (two-column) — force side-by-side */
.noure-cart-content .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2.5rem;
    align-items: flex-start;
}

.noure-cart-content .wc-block-components-sidebar-layout>.wc-block-cart__main,
.noure-cart-content .wc-block-components-sidebar-layout>.wc-block-components-main {
    flex: 1 1 0%;
    min-width: 0;
    max-width: none !important;
    width: auto !important;
}

.noure-cart-content .wc-block-components-sidebar-layout>.wc-block-cart__sidebar,
.noure-cart-content .wc-block-components-sidebar-layout>.wc-block-components-sidebar {
    flex: 0 0 340px;
    min-width: 300px;
    max-width: 380px;
    width: auto !important;
}

/* ---- CART ITEMS (main) ---- */
.noure-cart-content .wc-block-cart__main {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Cart items table */
.noure-cart-content .wc-block-cart-items {
    border-collapse: separate;
    border-spacing: 0;
}

.noure-cart-content .wc-block-cart-items th {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 0 1rem 0;
    border-bottom: 1px solid var(--border);
}

/* Cart item rows */
.noure-cart-content .wc-block-cart-items__row {
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.noure-cart-content .wc-block-cart-items__row:last-child {
    border-bottom: none;
}

.noure-cart-content .wc-block-cart-items__row td {
    padding: 1.5rem 0.5rem;
    vertical-align: middle;
}

/* Product image */
.noure-cart-content .wc-block-cart-item__image img {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(128, 128, 128, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 90px;
}

.noure-cart-content .wc-block-cart-item__image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Product name */
.noure-cart-content .wc-block-components-product-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.noure-cart-content .wc-block-components-product-name:hover {
    color: var(--accent) !important;
}

/* Product metadata (variations, descriptions) */
.noure-cart-content .wc-block-components-product-metadata {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

/* Product price */
.noure-cart-content .wc-block-components-product-price,
.noure-cart-content .wc-block-cart-item__total .wc-block-components-product-price {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Quantity selector */
.noure-cart-content .wc-block-components-quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    transition: border-color 0.3s ease;
}

.noure-cart-content .wc-block-components-quantity-selector:hover,
.noure-cart-content .wc-block-components-quantity-selector:focus-within {
    border-color: var(--accent);
}

.noure-cart-content .wc-block-components-quantity-selector__button {
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s ease, background 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.noure-cart-content .wc-block-components-quantity-selector__button:hover {
    color: var(--accent);
    background: var(--accent-soft) !important;
}

.noure-cart-content .wc-block-components-quantity-selector__input {
    background: transparent !important;
    border: none !important;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    width: 40px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.noure-cart-content .wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.noure-cart-content .wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove item link */
.noure-cart-content .wc-block-cart-item__remove-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.noure-cart-content .wc-block-cart-item__remove-link:hover {
    color: #e53e3e !important;
}

/* ---- CART TOTALS SIDEBAR ---- */
.noure-cart-content .wc-block-cart__sidebar {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* Totals title */
.noure-cart-content .wc-block-cart__totals-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

/* Totals rows */
.noure-cart-content .wc-block-components-totals-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}

.noure-cart-content .wc-block-components-totals-item__label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.noure-cart-content .wc-block-components-totals-item__value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Footer total row */
.noure-cart-content .wc-block-components-totals-footer-item {
    padding: 1.2rem 0 0.5rem;
    border-bottom: none;
    margin-top: 0.5rem;
}

.noure-cart-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.noure-cart-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

/* Coupon / discount area */
.noure-cart-content .wc-block-components-totals-coupon button {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.noure-cart-content .wc-block-components-totals-coupon button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.noure-cart-content .wc-block-components-totals-coupon input {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--text-primary) !important;
    font-family: 'Outfit', sans-serif !important;
    padding: 0.6rem 1rem !important;
    transition: border-color 0.3s ease;
}

.noure-cart-content .wc-block-components-totals-coupon input:focus {
    border-color: var(--accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

/* Coupon accordion panel */
.noure-cart-content .wc-block-components-panel__button {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.8rem 0;
    transition: color 0.3s ease;
    width: 100%;
    text-align: left;
}

.noure-cart-content .wc-block-components-panel__button:hover {
    color: var(--accent);
}

/* Proceed to Checkout CTA */
.noure-cart-content .wc-block-cart__submit-button,
.noure-cart-content a.wc-block-cart__submit-button {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 1.1rem 2rem !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-decoration: none !important;
    display: block !important;
    text-align: center;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 8px 24px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.noure-cart-content .wc-block-cart__submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.noure-cart-content .wc-block-cart__submit-button:hover::before {
    left: 100%;
}

.noure-cart-content .wc-block-cart__submit-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 40px var(--accent-glow) !important;
}

/* ---- EMPTY CART STATE ---- */
.noure-cart-content .wc-block-cart--is-empty,
.noure-cart-content .wp-block-woocommerce-empty-cart-block {
    text-align: center;
    padding: 4rem 2rem;
}

.noure-cart-content .wc-block-cart--is-empty p,
.noure-cart-content .wp-block-woocommerce-empty-cart-block p {
    font-family: 'Outfit', sans-serif;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.noure-cart-content .wc-block-cart--is-empty a.wp-block-button__link,
.noure-cart-content .wp-block-woocommerce-empty-cart-block a.wp-block-button__link {
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: 14px !important;
    padding: 1rem 2.5rem !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 767px) {
    .noure-cart-page {
        padding-top: 80px;
        padding-bottom: 100px;
    }

    .noure-cart-header {
        padding: 0 1rem 1.2rem;
    }

    .noure-cart-title {
        font-size: 2rem;
    }

    .noure-cart-content {
        padding: 0 0.8rem;
    }

    /* Stack layout vertically on mobile */
    .noure-cart-content .wc-block-components-sidebar-layout {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 1.2rem;
    }

    .noure-cart-content .wc-block-components-sidebar-layout>.wc-block-cart__main,
    .noure-cart-content .wc-block-components-sidebar-layout>.wc-block-components-main {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
    }

    .noure-cart-content .wc-block-components-sidebar-layout>.wc-block-cart__sidebar,
    .noure-cart-content .wc-block-components-sidebar-layout>.wc-block-components-sidebar {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        position: static;
    }

    .noure-cart-content .wc-block-cart__main {
        padding: 0.8rem;
        border-radius: 14px;
    }

    .noure-cart-content .wc-block-cart__sidebar {
        padding: 1.2rem;
        border-radius: 14px;
        position: static;
    }

    /* Full-width block wrapper */
    .noure-cart-content .wp-block-woocommerce-cart {
        max-width: 100% !important;
        width: 100% !important;
    }

    .noure-cart-content .wc-block-cart-items__row td {
        padding: 1rem 0.3rem;
    }

    .noure-cart-content .wc-block-cart-item__image img {
        max-width: 70px;
    }

    /* Make cart table not overflow */
    .noure-cart-content .wc-block-cart-items {
        width: 100%;
        table-layout: fixed;
    }

    .noure-cart-content .wc-block-components-product-name {
        font-size: 0.88rem;
        word-break: break-word;
    }

    .noure-cart-content .wc-block-components-product-price,
    .noure-cart-content .wc-block-cart-item__total .wc-block-components-product-price {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .noure-cart-page {
        padding-top: 140px;
    }
}

/* ===============================================
   CHECKOUT PAGE — SIMPLIFIED LUXURY (Shortcode)
   =============================================== */
.noure-checkout-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

@media (max-width: 767px) {
    .noure-checkout-page {
        padding-top: 80px;
        padding-bottom: 100px;
    }
}

.noure-checkout-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 767px) {
    .noure-checkout-content {
        padding: 0 0.8rem;
    }
}

/* Classic Checkout Form Layout */
form.checkout {
    display: flex;
    flex-wrap: nowrap;
    gap: 3rem;
    align-items: flex-start;
}

@media (max-width: 991px) {
    form.checkout {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Customer Details (Left Side) */
#customer_details {
    flex: 1 1 0%;
    min-width: 0;
}

@media (max-width: 991px) {
    #customer_details {
        width: 100%;
    }
}

/* Col-1 and Col-2 inside customer details (we only have billing now) */
.col2-set .col-1,
.col2-set .col-2 {
    float: none;
    width: 100%;
}

.woocommerce-billing-fields h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.8rem;
}

/* Jumbo Inputs for Elderly / Accessibility */
form.checkout .form-row {
    margin-bottom: 2rem;
}

form.checkout .form-row label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

/* Hide the ugly * for required fields */
form.checkout .form-row label .required {
    display: none;
}

form.checkout .input-text {
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
    /* Very large text */
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

form.checkout .input-text::placeholder {
    color: #a09d98;
    font-weight: 300;
}

form.checkout .input-text:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.1);
}

/* Order Review & Payment (Right Side) */
#order_review_heading {
    display: none;
    /* Hide heading, use the table th instead */
}

#order_review {
    flex: 0 0 420px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

@media (max-width: 991px) {
    #order_review {
        flex: none;
        width: 100%;
        padding: 1.5rem;
    }
}

/* Order Table */
table.shop_table.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 2rem;
    border: none;
}

table.shop_table.woocommerce-checkout-review-order-table th,
table.shop_table.woocommerce-checkout-review-order-table td {
    border: none;
    padding: 1rem 0;
    background: transparent;
}

table.shop_table.woocommerce-checkout-review-order-table th {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

table.shop_table.woocommerce-checkout-review-order-table td.product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

table.shop_table.woocommerce-checkout-review-order-table td.product-total {
    text-align: right;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

table.shop_table.woocommerce-checkout-review-order-table tfoot th {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

table.shop_table.woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
    border-top: 1px solid var(--border);
}

table.shop_table.woocommerce-checkout-review-order-table tr.order-total th,
table.shop_table.woocommerce-checkout-review-order-table tr.order-total td {
    padding-top: 1.5rem;
}

table.shop_table.woocommerce-checkout-review-order-table tr.order-total th {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

table.shop_table.woocommerce-checkout-review-order-table tr.order-total td strong {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}

/* Payment Methods */
#payment {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

#payment ul.payment_methods {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
    background: transparent !important;
}

#payment ul.payment_methods li {
    margin-bottom: 1rem;
}

#payment ul.payment_methods li input[type=radio] {
    accent-color: var(--accent);
    transform: scale(1.2);
    margin-right: 0.8rem;
}

#payment ul.payment_methods li label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-primary);
}

#payment div.payment_box {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px;
    color: var(--text-secondary) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    padding: 1rem !important;
    margin-top: 0.5rem !important;
    border-radius: 12px !important;
}

#payment div.payment_box::before {
    display: none !important;
    /* Hide the ugly triangle pointer */
}

/* Submit Button / Place Order */
#payment .place-order {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

#payment #place_order {
    width: 100%;
    background: var(--accent);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 1.2rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#payment #place_order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

#payment #place_order:hover::before {
    left: 150%;
}

#payment #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(184, 134, 11, 0.2);
}

/* Hide extra text that clutters */
.woocommerce-privacy-policy-text {
    display: none;
}

.woocommerce-form-login-toggle {
    display: none;
}

.woocommerce-form-coupon-toggle {
    display: none;
}

/* ===============================================
   WOOCOMMERCE CHECKOUT STYLES - DARK MODE FIX
   =============================================== */

[data-theme="dark"] .woocommerce form .form-row input.input-text,
[data-theme="dark"] .woocommerce form .form-row textarea {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 1.1rem 1.4rem;
    border-radius: 12px;
    width: 100%;
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .woocommerce form .form-row label {
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Fix massive empty gap in WooCommerce checkout caused by core floats/widths */
.woocommerce-checkout form.checkout #customer_details.col2-set {
    flex: 1;
    width: 60% !important;
    max-width: 650px;
    float: none !important;
}

.woocommerce-checkout form.checkout #customer_details.col2-set .col-1 {
    width: 100% !important;
    float: none !important;
}

.woocommerce-checkout form.checkout #customer_details.col2-set .col-2 {
    display: none !important;
    width: 0 !important;
}

.woocommerce-checkout form.checkout {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

@media (max-width: 991px) {
    .woocommerce-checkout form.checkout {
        flex-direction: column;
        gap: 2rem;
    }

    .woocommerce-checkout form.checkout #customer_details.col2-set {
        width: 100% !important;
        max-width: 100%;
    }
}

[data-theme="dark"] .woocommerce form .form-row input.input-text:focus,
[data-theme="dark"] .woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-glow), inset 0 2px 10px rgba(0, 0, 0, 0.2);
    background-color: var(--bg-hover);
}

/* Hide the Additional Information Wrapper to be safe */
.woocommerce-additional-fields {
    display: none !important;
}

/* Fix placeholder colors in dark mode */
[data-theme="dark"] .woocommerce form .form-row input.input-text::placeholder,
[data-theme="dark"] .woocommerce form .form-row textarea::placeholder {
    color: var(--text-muted);
}

/* ===============================================
   LANGUAGE SWITCHER — FLAG TOGGLE BAR
   =============================================== */

.noure-lang-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3px;
    margin-right: 0.75rem;
}

.noure-lang-opt {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 9px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
}

.noure-lang-opt:hover {
    color: var(--text-primary);
    background: var(--glass);
}

.noure-lang-opt.active {
    background: var(--inverse-bg);
    color: var(--inverse-text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.noure-lang-flag {
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Mobile flag toggle — compact, no text labels */
.noure-lang-mobile {
    margin-right: 0;
    margin-left: 0.5rem;
    padding: 3px;
    gap: 2px;
}

.noure-lang-mobile .noure-lang-opt {
    padding: 5px 7px;
}

.noure-lang-mobile .noure-lang-opt span {
    display: none;
}

/* Wishlist header button */
.wishlist-header-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wishlist-header-btn .badge:empty,
.wishlist-header-btn .badge[data-count="0"] {
    transform: scale(0);
}

/* RTL Global Adjustments */
html[dir="rtl"] body {
    text-align: right;
    direction: rtl;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Keep outfit but allow fallback to system Arabic fonts */
}

/* Icons and elements inside flex need reversal in RTL */
html[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .noure-lang-toggle {
    margin-right: 0;
    margin-left: 0.75rem;
}

html[dir="rtl"] .noure-lang-mobile {
    margin-left: 0;
    margin-right: 0.5rem;
}

html[dir="rtl"] .cart-btn .badge {
    right: auto;
    left: -6px;
}

html[dir="rtl"] .h2-btn>svg,
html[dir="rtl"] .h2-view-all::after {
    transform: scaleX(-1);
}

html[dir="rtl"] .h2-product__price {
    direction: ltr;
    /* keep prices readable if formatted like $199 */
    display: inline-block;
}

html[dir="rtl"] .woocommerce-checkout form.checkout #customer_details.col2-set {
    float: right !important;
}

html[dir="rtl"] .cart-collaterals .cart_totals,
html[dir="rtl"] .wc-block-cart__sidebar {
    text-align: right;
}

/* ===============================================
   RTL EXPLICIT OVERRIDES (SHOP & PRODUCT PAGES)
   =============================================== */

/* --- Shop Layout --- */
html[dir="rtl"] .shop-filter-bar .filter-bar-right {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .shop-sidebar {
    right: 0;
    left: auto;
    transform: translateX(100%);
}

html[dir="rtl"] .shop-sidebar.open {
    transform: translateX(0);
}

@media (min-width: 992px) {
    html[dir="rtl"] .shop-sidebar {
        transform: none;
    }
}

/* --- Homepage Layouts --- */
html[dir="rtl"] .h2-view-all {
    right: auto;
    left: 0;
}

html[dir="rtl"] .h2-section-intro {
    padding-left: 100px;
    /* Prevent overlap with view all button */
}

html[dir="rtl"] .h2-marquee {
    direction: ltr;
    /* Ensure english brand names and punctuations don't swap around */
}

html[dir="rtl"] .h2-heading,
html[dir="rtl"] .csp-title,
html[dir="rtl"] .h2-hero__title {
    line-height: 1.4;
    /* Prevent Arabic diacritics and tall letters from colliding vertically */
}

html[dir="rtl"] .sidebar-close {
    left: 1.5rem;
    right: auto;
}

html[dir="rtl"] .filter-checkbox .checkbox-label {
    margin-right: 0.75rem;
    margin-left: 0;
}

html[dir="rtl"] .filter-checkbox .checkbox-count {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .sort-dropdown {
    left: 0;
    right: auto;
}

html[dir="rtl"] .price-row .add-btn {
    left: 1rem;
    right: auto;
}

/* --- Single Product Layout --- */
html[dir="rtl"] .csp-floating-badge {
    left: 20px;
    right: auto;
}

html[dir="rtl"] .csp-price del {
    margin-left: 0.25rem;
    margin-right: 0;
}

html[dir="rtl"] .csp-spec-item:not(:last-child)::after {
    left: 0;
    right: auto;
}

html[dir="rtl"] #reviews .commentlist img.avatar {
    float: right;
    margin-left: 1rem;
    margin-right: 0;
}

html[dir="rtl"] #reviews .comment-text {
    margin-right: 60px;
    margin-left: 0;
}

html[dir="rtl"] .csp-action-area table.variations td.label {
    padding-left: 1rem;
    padding-right: 0;
}


/* ═══════════════════════════════════════════════════════
   MAD CURRENCY — PREMIUM PRICE DISPLAY SYSTEM
   Clean, modern price formatting: "1,200 DH"
   No decimals, styled currency badge, tabular figures
   ═══════════════════════════════════════════════════════ */

/* ─── Global Price Wrapper ─── */
.noure-price,
.woocommerce-Price-amount.amount {
    font-variant-numeric: tabular-nums lining-nums;
    letter-spacing: -0.01em;
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
    gap: 0.2em;
}

/* ─── Currency Symbol Badge (DH) ─── */
.noure-price-currency,
.woocommerce-Price-currencySymbol {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.55;
    vertical-align: baseline;
    position: relative;
    top: -0.05em;
}

/* ─── Shop Grid / Product Cards ─── */
.price-row .price .woocommerce-Price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-row .price .noure-price-currency,
.price-row .price .woocommerce-Price-currencySymbol {
    font-size: 0.6em;
    font-weight: 700;
    opacity: 0.5;
}

/* Sale prices in product cards — clear visual hierarchy */
.price-row .price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-row .price del {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 400;
    opacity: 0.45;
    text-decoration: none;
    position: relative;
}

/* Elegant diagonal strikethrough line */
.price-row .price del .woocommerce-Price-amount {
    position: relative;
    font-size: 0.82rem;
    font-weight: 400;
}

.price-row .price del .woocommerce-Price-amount::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 1.5px;
    background: var(--text-muted);
    opacity: 0.6;
    transform: rotate(-8deg);
    border-radius: 2px;
}

.price-row .price del .noure-price-currency,
.price-row .price del .woocommerce-Price-currencySymbol {
    font-size: 0.6em;
    opacity: 0.4;
}

.price-row .price ins {
    text-decoration: none;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.2rem;
}

.price-row .price ins .woocommerce-Price-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
}

.price-row .price ins .noure-price-currency,
.price-row .price ins .woocommerce-Price-currencySymbol {
    opacity: 0.65;
}

/* ─── "View Cart" link after add-to-cart ─── */
.product-card .price-row a.added_to_cart,
.woocommerce ul.products li.product a.added_to_cart {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    background: var(--accent-soft);
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-card .price-row a.added_to_cart:hover,
.woocommerce ul.products li.product a.added_to_cart:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.product-card .price-row a.added_to_cart::before {
    content: '→';
    font-size: 0.8em;
    display: inline-block;
    transition: transform 0.2s ease;
}

.product-card .price-row a.added_to_cart:hover::before {
    transform: translateX(2px);
}

/* ─── Mini Cart (Side Drawer) ─── */
.noure-minicart-line-total .woocommerce-Price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent);
}

.noure-minicart-line-total .noure-price-currency,
.noure-minicart-line-total .woocommerce-Price-currencySymbol {
    font-size: 0.55em;
    font-weight: 700;
    opacity: 0.6;
}

.noure-minicart-subtotal-value .woocommerce-Price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.noure-minicart-subtotal-value .noure-price-currency,
.noure-minicart-subtotal-value .woocommerce-Price-currencySymbol {
    font-size: 0.5em;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.8;
}

/* ─── Cart Page (Block-based) ─── */
.noure-cart-content .wc-block-components-product-price .woocommerce-Price-amount,
.noure-cart-content .wc-block-cart-item__total .woocommerce-Price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.noure-cart-content .wc-block-components-product-price .noure-price-currency,
.noure-cart-content .wc-block-components-product-price .woocommerce-Price-currencySymbol,
.noure-cart-content .wc-block-cart-item__total .noure-price-currency,
.noure-cart-content .wc-block-cart-item__total .woocommerce-Price-currencySymbol {
    font-size: 0.6em;
    font-weight: 700;
    opacity: 0.55;
}

/* Cart totals area */
.noure-cart-content .wc-block-components-totals-item__value .woocommerce-Price-amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.noure-cart-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__value .woocommerce-Price-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
}

.noure-cart-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__value .noure-price-currency,
.noure-cart-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__value .woocommerce-Price-currencySymbol {
    font-size: 0.5em;
    opacity: 0.7;
}

/* ─── Cart Page (Classic Table) ─── */
.shop_table.cart .product-subtotal .woocommerce-Price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.shop_table.cart .product-subtotal .noure-price-currency,
.shop_table.cart .product-subtotal .woocommerce-Price-currencySymbol {
    font-size: 0.6em;
    font-weight: 700;
    opacity: 0.6;
}

.cart_totals .order-total .woocommerce-Price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.cart_totals .order-total .noure-price-currency,
.cart_totals .order-total .woocommerce-Price-currencySymbol {
    font-size: 0.5em;
    font-weight: 700;
    opacity: 0.7;
}

/* ─── Checkout Page ─── */
table.shop_table.woocommerce-checkout-review-order-table td.product-total .woocommerce-Price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

table.shop_table.woocommerce-checkout-review-order-table td.product-total .noure-price-currency,
table.shop_table.woocommerce-checkout-review-order-table td.product-total .woocommerce-Price-currencySymbol {
    font-size: 0.6em;
    font-weight: 700;
    opacity: 0.5;
}

table.shop_table.woocommerce-checkout-review-order-table tr.order-total td strong .woocommerce-Price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
}

table.shop_table.woocommerce-checkout-review-order-table tr.order-total td strong .noure-price-currency,
table.shop_table.woocommerce-checkout-review-order-table tr.order-total td strong .woocommerce-Price-currencySymbol {
    font-size: 0.5em;
    opacity: 0.65;
}

/* ─── Variation Modal Price ─── */
.vm-product-price .woocommerce-Price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
}

.vm-product-price .noure-price-currency,
.vm-product-price .woocommerce-Price-currencySymbol {
    font-size: 0.6em;
    font-weight: 700;
    opacity: 0.6;
}

.vm-product-price del .woocommerce-Price-amount {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ─── WooCommerce Default .price (fallback) ─── */
.woocommerce ul.products li.product .price .woocommerce-Price-amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-primary);
}

.woocommerce ul.products li.product .price .noure-price-currency,
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
    font-size: 0.6em;
    opacity: 0.5;
}

/* ─── Mobile Adjustments ─── */
@media (max-width: 640px) {
    .price-row .price .woocommerce-Price-amount {
        font-size: 1.05rem;
    }
    
    .noure-minicart-subtotal-value .woocommerce-Price-amount {
        font-size: 1.4rem;
    }
    
    .cart_totals .order-total .woocommerce-Price-amount {
        font-size: 1.5rem;
    }
    
    table.shop_table.woocommerce-checkout-review-order-table tr.order-total td strong .woocommerce-Price-amount {
        font-size: 1.4rem;
    }
}

/* ─── RTL Price adjustments ─── */
html[dir="rtl"] .noure-price,
html[dir="rtl"] .woocommerce-Price-amount.amount {
    direction: ltr;
    display: inline-flex;
}

html[dir="rtl"] .price-row .price,
html[dir="rtl"] .h2-product__price,
html[dir="rtl"] .csp-price,
html[dir="rtl"] .vm-product-price,
html[dir="rtl"] .noure-minicart-line-total,
html[dir="rtl"] .noure-minicart-subtotal-value,
html[dir="rtl"] .qv-info__price {
    direction: ltr;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25em;
}