/* =============================================
   ELARA THEME – GLOBAL STYLES
   ============================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---- LIGHT MODE (default) ---- */
:root {
    --gold: #c9a84c;
    --gold-light: #e8d5a3;
    --gold-dark: #9e7c2e;
    --black: #111111;
    --dark: #1a1a1a;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.14);
    --transition: all 0.3s ease;

    /* Semantic tokens — used everywhere in the theme */
    --bg: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #666666;
    --border: #e8e8e8;
    --navbar-bg: #ffffff;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --input-bg: #fafafa;
    --overlay: rgba(0, 0, 0, 0.55);
}

/* ---- DARK MODE — system preference ---- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #121212;
        --bg-secondary: #1e1e1e;
        --bg-card: #1e1e1e;
        --text: #f0f0f0;
        --text-muted: #aaaaaa;
        --border: #2e2e2e;
        --dark: #f0f0f0;
        --white: #121212;
        --light-gray: #1e1e1e;
        --gray: #aaaaaa;
        --navbar-bg: #161616;
        --footer-bg: #0e0e0e;
        --footer-text: #f0f0f0;
        --input-bg: #252525;
        --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.6);
        --overlay: rgba(0, 0, 0, 0.75);
    }
}

/* ---- DARK MODE — manual toggle (overrides system) ---- */
[data-theme="dark"] {
    --bg: #121212;
    --bg-secondary: #1e1e1e;
    --bg-card: #1e1e1e;
    --text: #f0f0f0;
    --text-muted: #aaaaaa;
    --border: #2e2e2e;
    --dark: #f0f0f0;
    --white: #121212;
    --light-gray: #1e1e1e;
    --gray: #aaaaaa;
    --navbar-bg: #161616;
    --footer-bg: #0e0e0e;
    --footer-text: #f0f0f0;
    --input-bg: #252525;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.6);
    --overlay: rgba(0, 0, 0, 0.75);
}

[data-theme="light"] {
    --bg: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #666666;
    --border: #e8e8e8;
    --dark: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #666666;
    --navbar-bg: #ffffff;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --input-bg: #fafafa;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.14);
    --overlay: rgba(0, 0, 0, 0.55);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

input,
select,
textarea,
button {
    font-family: var(--font-body);
}

/* UTILITY */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-pad {
    padding: 80px 0;
}

.bg-light {
    background: var(--bg-secondary);
}

.bg-dark {
    background: var(--footer-bg);
    color: var(--footer-text);
}

.hidden {
    display: none !important;
}

.center-btn {
    text-align: center;
    margin-top: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--dark);
}

.section-tag {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 8px;
}

/* BUTTONS — Premium Enhancement */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    letter-spacing: 0.5px;
}

.btn::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:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-dark), #8a6e1a);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-color: var(--border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.15);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border-color: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Premium Loading States */
.btn.loading {
    color: transparent;
    pointer-events: none;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    /* Required so position:absolute children (dropdown) anchor here */
    overflow: visible;
}

/* ---- MOBILE NAV DROPDOWN — hidden on desktop ---- */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 63px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.logo span {
    color: var(--gold);
}

/* ---- NAV LINKS: hidden on desktop, visible in mobile drawer ---- */
.nav-links {
    display: none;
    /* hidden on desktop */
}

/* Nav dropdown hidden on desktop — only active on mobile */
@media (min-width: 769px) {

    .nav-dropdown,
    .nav-dropdown-backdrop {
        display: none !important;
    }
}

/* ---- MOBILE NAV DROPDOWN CARD ---- */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 8px;
    min-width: 210px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    list-style: none;
}

/* Reset wp_nav_menu ul/li output */
.nav-dropdown ul,
.nav-dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Tiny arrow pointing up toward hamburger */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 18px;
    width: 14px;
    height: 14px;
    background: var(--white);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a.current-menu-item>a,
.nav-dropdown a.current_page_item {
    background: rgba(201, 168, 76, 0.08);
    color: var(--gold);
}

/* Divider between links */
.nav-dropdown a+a {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dark mode */
[data-theme="dark"] .nav-dropdown {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .nav-dropdown::before {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .nav-dropdown a {
    color: var(--text);
}

/* Backdrop to close on tap-outside */
.nav-dropdown-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
}

.nav-dropdown-backdrop.open {
    display: block;
}

/* ---- NAV ICONS ROW ---- */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Vertical separator bars between pill groups */
.nav-sep {
    width: 1.5px;
    height: 20px;
    background: #e0e0e0;
    flex-shrink: 0;
    border-radius: 1px;
    margin: 0 4px;
}

/* ---- PILL BUTTONS (Search, Wishlist, Cart) ---- */
.nav-pill-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50px;
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.nav-pill-btn:hover {
    background: var(--light-gray);
    color: var(--gold);
}

/* Icon wrapper for badge positioning */
.nav-pill-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    flex-shrink: 0;
}

.nav-pill-icon-wrap i {
    font-size: 1rem;
    line-height: 1;
}

/* Badge on wishlist / cart */
.nav-pill-badge {
    position: absolute;
    top: -7px;
    right: -8px;
    background: #e53935;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--navbar-bg, #fff);
    box-shadow: 0 1px 4px rgba(229, 57, 53, 0.4);
}

/* Show badge when count > 0 (set by JS) */
.nav-pill-badge.visible {
    display: flex;
}

/* Active state — current page */
.nav-pill-link.nav-pill-active {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold);
}

.nav-pill-label {
    font-size: 0.8rem;
    letter-spacing: 0.15px;
}

/* Legacy icon-btn — keep for hamburger */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--dark);
    padding: 5px;
    transition: var(--transition);
    position: relative;
}

.icon-btn:hover {
    color: var(--gold);
}

/* Cart-icon kept for JS targeting */
.cart-icon {
    position: relative;
}

/* Legacy cart-count (still used on cart page etc.) */
.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--gold);
    color: var(--white);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.hamburger {
    display: none;
}

/* SEARCH BAR */
.search-bar {
    display: none;
    padding: 12px 20px;
    background: var(--light-gray);
    border-top: 1px solid #eee;
    max-width: 1200px;
    margin: 0 auto;
}

.search-bar.open {
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 0.9rem;
    outline: none;
}

.search-bar button {
    padding: 10px 20px;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 100px 0 50px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--gold-light);
}

.breadcrumb a {
    color: var(--gold);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* STICKY BREADCRUMB BAR — shown on mobile when page title scrolls away */
.breadcrumb-bar {
    display: none;
    /* hidden on desktop */
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 990;
    background: var(--white);
    border-bottom: 1px solid #efefef;
    padding: 0 20px;
    height: 0;
    overflow: hidden;
    transition: height 0.25s ease, opacity 0.25s ease;
    opacity: 0;
    align-items: center;
    justify-content: space-between;
}

.breadcrumb-bar.visible {
    height: 44px;
    opacity: 1;
}

.breadcrumb-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-bar-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb-bar-crumb {
    font-size: 0.75rem;
    color: var(--gray);
    white-space: nowrap;
}

.breadcrumb-bar-crumb a {
    color: var(--gold);
}

.breadcrumb-bar-crumb a:hover {
    text-decoration: underline;
}

/* =============================================
   PRODUCT CARD — PREMIUM REDESIGN
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.13);
    transform: translateY(-5px);
}

/* IMAGE */
.product-img-wrap {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    background: #f7f6f4;
}

.product-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.07);
}

/* SALE / NEW BADGE — top-left, New only */
.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 1;
}

/* Sale badge removed from cards — kept for future use */
.product-badge[data-type="sale"],
.product-badge:not([data-type]) {
    background: var(--gold);
    color: var(--white);
}

/* Dark badge for New */
.product-badge[data-type="new"] {
    background: var(--dark);
    color: var(--white);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* SAVE PILL — top-right, shows savings amount when product is on sale */
.product-save-pill {
    display: inline-block;
    position: absolute;
    top: 8px;
    right: 8px;
    background: #d32f2f;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
    line-height: 1.3;
    white-space: nowrap;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.35);
}

/* Strip the wc_price wrapper styling inside the pill */
.product-save-pill .woocommerce-Price-amount,
.product-save-pill bdi {
    color: #fff !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
}

/* INFO SECTION */
.product-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
}

.product-category {
    font-size: 0.72rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    margin-bottom: 4px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Enhanced Color Dots */
.product-card-colours {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 8px 0;
}

.product-card-colour-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 0 1px var(--border), 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.product-card-colour-dot:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--gold), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card-more-colours {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2px 6px;
    margin-left: 2px;
}

/* Enhanced Size Chips */
.product-card-sizes {
    display: flex;
    gap: 4px;
    margin: 6px 0 8px;
    flex-wrap: wrap;
}

.product-card-size {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 2px 6px;
}

.product-card-size:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.product-card-size--more {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2px 6px;
}

/* Compact Attribute Display */
.product-card-attributes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}

.product-card-attr-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.product-card-attr-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: fit-content;
}

.product-card-attr-values {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.product-card-attr-value {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 5px;
}

.product-card-attr-more {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 5px;
}

.product-card-size:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
    transform: translateY(-1px);
}

.product-card-size--more {
    color: var(--text-muted);
    background: transparent;
    border-style: dashed;
}

/* Wishlist Button Enhancement */
.wishlist-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.wishlist-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #e53935;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.2);
}

.wishlist-btn.wishlisted {
    color: #e53935;
    background: rgba(255, 255, 255, 1);
}

/* Enhanced Product Actions */
.product-actions {
    margin-top: 12px;
}

.btn-add-cart {
    width: 100%;
    background: var(--text);
    color: var(--bg-card);
    border: 2px solid var(--text);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-cart:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

.btn-add-cart:active {
    transform: translateY(0);
}

/* Custom Price Note */
.custom-price-note {
    font-size: 0.72rem;
    color: var(--gold-dark);
    font-weight: 600;
    margin: 4px 0;
    display: block;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
}

.old-price {
    font-size: 0.8rem;
    color: #b0a898;
    font-weight: 400;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Premium savings display */
.savings-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.save-percentage {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

.save-amount {
    font-size: 0.74rem;
    color: #2e7d32;
    font-weight: 600;
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.2);
    padding: 2px 8px;
    border-radius: 8px;
}

/* Legacy save tag for compatibility */
.save-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #c0392b;
    background: #fef0ee;
    border-radius: 4px;
    padding: 2px 7px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ADD TO BAG BUTTON — single full-width, no "View" clutter */
.product-actions {
    margin-top: auto;
}

.btn-add-cart {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 8px;
    background: var(--dark);
    color: var(--white);
    border: 2px solid var(--dark);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-add-cart:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.btn-add-cart i {
    font-size: 0.8rem;
}

/* FOOTER — Full Viewport Width on Every Page */
.footer {
    background: var(--footer-bg);
    color: #aaa;
    padding: 60px 0 0;
    /* Break out of any max-width ancestor (WooCommerce pages, account etc.) */
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

/* =============================================
   PRODUCT CARD PRICE — industry-standard sale display
   Works everywhere: homepage, shop, empty-cart suggestions
   ============================================= */

/* Container */
.product-card .product-price-section .price,
.products-grid .product-card .price {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    line-height: 1.3 !important;
}

/* Crossed-out original price — grey + red strikethrough */
.product-card .price del,
.products-grid .product-card .price del {
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    color: #999 !important;
    text-decoration: line-through !important;
    text-decoration-color: #d32f2f !important;
    text-decoration-thickness: 2px !important;
    opacity: 1 !important;
    order: 2 !important;
}

/* Amount INSIDE del — must also be grey (overrides WC default) */
.product-card .price del .woocommerce-Price-amount,
.product-card .price del bdi,
.products-grid .product-card .price del .woocommerce-Price-amount,
.products-grid .product-card .price del bdi {
    color: #999 !important;
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    text-decoration-color: #d32f2f !important;
    text-decoration-thickness: 2px !important;
}

/* Sale price (`<ins>`) — black, bold, prominent */
.product-card .price ins,
.products-grid .product-card .price ins {
    text-decoration: none !important;
    order: 1 !important;
    background: none !important;
}

/* Amount INSIDE ins — black and larger */
.product-card .price ins .woocommerce-Price-amount,
.product-card .price ins bdi,
.products-grid .product-card .price ins .woocommerce-Price-amount,
.products-grid .product-card .price ins bdi {
    color: #111 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* Regular (non-sale) price — black, same size */
.product-card .price>.woocommerce-Price-amount,
.product-card .price>bdi,
.product-card .price>.product-regular-price,
.product-card .price>.product-regular-price .woocommerce-Price-amount,
.product-card .price>.product-regular-price bdi {
    color: #111 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* All grid columns must be able to shrink below their content size */
.footer-grid>* {
    min-width: 0;
}

.footer-brand .logo {
    color: var(--footer-text);
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--footer-text);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 2px 0;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-contact i {
    color: var(--gold);
    width: 16px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    background: #1da851;
    transform: scale(1.1);
}

/* Hide WhatsApp FAB on cart, checkout and single product pages */
.woocommerce-cart .whatsapp-float,
.woocommerce-checkout .whatsapp-float,
.single-product .whatsapp-float {
    display: none !important;
}

/* =============================================
   AOA UNIFIED TOAST
   position:fixed, bottom-centre, solid fill.
   Used for validation errors AND success.
   ============================================= */
.aoa-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Prevent layout shift */
    will-change: opacity, transform;
}

.aoa-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.aoa-toast--error {
    background: #d32f2f;
}

.aoa-toast--success {
    background: #1a7a4a;
}

.aoa-toast__icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Keep the old #toast working as a no-op fallback */
.toast {
    display: none !important;
}

/* Strip WooCommerce's injected spinner icon from the add-to-cart button
   so only our <i class="fas fa-cart-shopping"> is visible */
.single_add_to_cart_button .wc-forward,
.single_add_to_cart_button::before,
.woocommerce .single_add_to_cart_button .loading-icon,
.woocommerce .single_add_to_cart_button svg {
    display: none !important;
}



.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Hamburger visible on mobile */
    .hamburger {
        display: block;
    }

    /* Hide text labels on pill buttons on mobile — icon only */
    .nav-pill-label {
        display: none;
    }

    .nav-pill-btn {
        padding: 6px 8px;
        gap: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-pad {
        padding: 55px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Mobile: show breadcrumb bar */
    .breadcrumb-bar {
        display: flex;
    }

    .page-header {
        padding: 90px 0 35px;
    }

    .page-header h1 {
        font-size: 1.9rem;
    }

    body.breadcrumb-visible .page-header+* {
        padding-top: 44px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .btn {
        padding: 11px 20px;
        font-size: 0.85rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }
}


/* =============================================
   REDUCED MOTION RESPECT
   ============================================= */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============================================
   IMAGE ZOOM LIGHTBOX (product detail page)
   ============================================= */

/* Zoom cursor on gallery main image */
.gallery-main {
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

/* CSS-only zoom on hover for desktop */
@media (hover: hover) {
    .gallery-main:hover img {
        transform: scale(1.08);
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .gallery-main img {
        transition: transform 0.4s ease;
    }
}

/* LIGHTBOX OVERLAY */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(5, 5, 5, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    cursor: zoom-in;
    /* JS toggles zoomed class */
}

.lightbox-overlay.open .lightbox-img {
    transform: scale(1);
}

.lightbox-img.zoomed {
    transform: scale(1.9) !important;
    cursor: zoom-out;
}

/* LIGHTBOX CONTROLS */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    backdrop-filter: blur(6px);
    z-index: 3001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-zoom-controls {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50px;
    padding: 8px 18px;
    backdrop-filter: blur(8px);
    z-index: 3001;
}

.lightbox-zoom-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-family: var(--font-body);
}

.lightbox-zoom-btn:hover {
    background: rgba(201, 168, 76, 0.35);
}

.lightbox-zoom-level {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    min-width: 38px;
    text-align: center;
    font-family: var(--font-body);
}

.lightbox-hint {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    z-index: 3001;
    pointer-events: none;
}

/* ZOOM ICON BADGE on gallery */
.gallery-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-main:hover .gallery-zoom-hint {
    opacity: 1;
}

/* =============================================
   WISHLIST HEART BUTTON
   ============================================= */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    z-index: 2;
    outline: none;
    transform-origin: center center;
}

.wishlist-btn:hover {
    color: #e53935;
    background: var(--white);
    box-shadow: 0 3px 14px rgba(229, 57, 53, 0.28);
}

.wishlist-btn.wishlisted {
    color: #e53935;
    background: #fff5f5;
    box-shadow: 0 3px 16px rgba(229, 57, 53, 0.35);
}

.wishlist-btn.wishlisted i {
    font-weight: 900;
}


/* =============================================
   SEARCH OVERLAY
   ============================================= */
#searchOverlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 90px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#searchOverlay.open {
    opacity: 1;
    pointer-events: all;
}

.search-overlay-box {
    background: var(--white);
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    margin: 0 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transform: translateY(-12px);
    transition: transform 0.25s ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

#searchOverlay.open .search-overlay-box {
    transform: translateY(0);
}

.search-overlay-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.search-overlay-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--light-gray);
    border-radius: 10px;
    padding: 10px 14px;
}

.search-overlay-input-wrap i {
    color: var(--gray);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.search-overlay-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: var(--dark);
}

.search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 0.85rem;
    padding: 2px;
    transition: var(--transition);
}

.search-clear:hover {
    color: var(--gray);
}

.search-close {
    background: none;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--gray);
    white-space: nowrap;
    transition: var(--transition);
    font-family: var(--font-body);
}

.search-close:hover {
    background: var(--light-gray);
}

.search-results {
    overflow-y: auto;
    padding: 16px 20px 20px;
    flex: 1;
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.search-hint,
.search-no-results {
    text-align: center;
    padding: 30px 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.search-count {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 14px;
}

.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 10px;
    transition: var(--transition);
    color: var(--dark);
}

.search-result-item:hover {
    background: var(--light-gray);
}

.search-result-item img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.search-result-info .s-cat {
    font-size: 0.68rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.search-result-info strong {
    font-size: 0.88rem;
}

.search-result-info .s-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

.search-result-info .s-old {
    font-size: 0.75rem;
    color: var(--gray);
    text-decoration: line-through;
    margin-right: 6px;
    font-weight: 400;
}

.search-view-all {
    text-align: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

/* =============================================
   FOOTER TAPPABLE CONTACT LINKS
   ============================================= */
.footer-contact a {
    color: #aaa;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    word-break: break-all;
    overflow-wrap: break-word;
    min-width: 0;
}

.footer-contact a span,
.footer-contact a:not([href^="tel"]) {
    flex: 1;
    min-width: 0;
    word-break: break-all;
    overflow-wrap: break-word;
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-contact a i {
    color: var(--gold);
    width: 16px;
    flex-shrink: 0;
}

.footer-map-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: var(--gold) !important;
    font-size: 0.8rem !important;
    margin-top: 4px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 20px;
    padding: 5px 12px !important;
    transition: var(--transition);
}

.footer-map-link:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
}

/* =============================================
   ACCOUNT MENU — trigger + dropdown
   ============================================= */
.account-menu-wrap {
    position: relative;
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50px;
    transition: background 0.2s ease;
    color: var(--dark);
    font-family: var(--font-body);
}

.account-trigger:hover {
    background: var(--light-gray);
}

.account-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 2px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--gray);
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-family: var(--font-heading);
}

.account-avatar-circle.has-user {
    background: var(--dark);
    border-color: #333;
    color: #fff;
    font-size: 0.85rem;
}

.account-trigger-name {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.account-chevron {
    font-size: 0.6rem;
    color: var(--gray);
    transition: transform 0.22s ease;
}

.account-trigger[aria-expanded="true"] .account-chevron {
    transform: rotate(180deg);
}

/* DROPDOWN */
.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1200;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top right;
}

.account-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.account-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 14px;
    background: linear-gradient(135deg, var(--dark), #2a2a2a);
    color: var(--white);
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-heading);
    color: var(--white);
}

.dropdown-avatar.has-user {
    background: var(--gold);
    border-color: var(--gold-dark);
}

.account-dropdown-header strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.3;
}

.account-dropdown-header span {
    font-size: 0.72rem;
    opacity: 0.55;
}

.account-dropdown-body {
    padding: 8px 6px;
}

.account-dropdown-body a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    color: var(--dark);
    transition: background 0.15s ease, color 0.15s ease;
}

.account-dropdown-body a:hover {
    background: var(--light-gray);
    color: var(--gold);
}

.account-dropdown-body a i {
    width: 16px;
    text-align: center;
    font-size: 0.78rem;
    color: #bbb;
    transition: color 0.15s ease;
}

.account-dropdown-body a:hover i {
    color: var(--gold);
}

.account-dropdown-footer {
    padding: 12px 14px 14px;
    border-top: 1px solid #f0f0f0;
}

.dropdown-register-link {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 10px;
}

.dropdown-register-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

.dropdown-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff5f5;
    border: 1px solid #ffd0d0;
    color: #e53935;
    font-size: 0.84rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.15s ease;
    justify-content: center;
}

.dropdown-logout-btn:hover {
    background: #ffe8e8;
}

.dropdown-logout-btn i {
    font-size: 0.78rem;
}

/* ---- THEME MODE SWITCHER (in account dropdown) ---- */
.dropdown-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid var(--border, #f0f0f0);
    border-bottom: 1px solid var(--border, #f0f0f0);
    margin: 4px 0;
}

.dropdown-theme-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted, #888);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-theme-label i {
    color: var(--gold);
    font-size: 0.78rem;
}

.dropdown-theme-btns {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 8px;
    padding: 3px;
}

.theme-mode-btn {
    width: 30px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--text-muted, #999);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    padding: 0;
    font-family: var(--font-body);
}

.theme-mode-btn:hover {
    color: var(--gold);
}

.theme-mode-btn.active {
    background: var(--bg-card, #fff);
    color: var(--gold);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

/* Hide trigger name on small mobile */
@media (max-width: 480px) {
    .account-trigger-name {
        display: none;
    }

    .account-chevron {
        display: none;
    }

    .account-trigger {
        padding: 4px;
    }
}

/* Account trigger — active state: dark, not gold */
.account-trigger--active {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50px;
}

.account-trigger--active .account-avatar-circle {
    background: var(--dark);
    border-color: #333;
    color: #fff;
}

.account-trigger--active .account-trigger-name {
    color: var(--dark);
    font-weight: 600;
}

.account-trigger--active .account-chevron {
    color: var(--dark);
}

/* Gold name on hover */
.account-trigger:hover .account-trigger-name {
    color: var(--gold);
}

/* Account page theme switcher */
.account-theme-switcher {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.account-theme-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.account-theme-btns {
    display: flex;
    gap: 6px;
}

.account-theme-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 6px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.18s;
}

.account-theme-btn:hover,
.account-theme-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}




/* Cart pill — ensure spring scales from centre */
a.cart-icon.nav-pill-btn {
    transform-origin: center center;
}

/* Hide separators on mobile — icon-only mode has no room */
@media (max-width: 768px) {
    .nav-sep {
        display: none;
    }
}

/* Wishlist count badge inside account dropdown */
.dropdown-wishlist-count {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #e53935;
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50px;
    padding: 0 4px;
    margin-left: 6px;
    line-height: 1;
    vertical-align: middle;
}

/* =============================================
   PRODUCT CARD — SUBTYPE + CUSTOMIZABLE ADDITIONS
   ============================================= */

/* Meta row: category + subtype chip side by side */
.product-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

/* Subtype chip on card */
.product-subtype {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gray);
    background: #f0f0f0;
    border-radius: 20px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* Customisable badge — small inline pill below category tag */
.product-custom-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.35);
    color: var(--gold-dark);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 5px;
}

.product-custom-tag i {
    font-size: 0.6rem;
}

/* Customisation price note on card */
.custom-price-note {
    font-size: 0.72rem;
    color: var(--gold-dark);
    margin-top: 3px;
    display: block;
    font-style: italic;
}

/* =============================================
   PRODUCT DETAIL PAGE — CUSTOMIZATION SECTION
   ============================================= */
.custom-section {
    background: linear-gradient(135deg, #fffdf5, #fdf8ec);
    border: 1.5px solid var(--gold-light);
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.custom-section-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.custom-section-header i {
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.custom-section-header strong {
    display: block;
    font-size: 0.92rem;
    color: var(--dark);
    margin-bottom: 3px;
}

.custom-section-header p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.custom-fee-tag {
    background: var(--gold);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 4px;
    vertical-align: middle;
}

.custom-char-count {
    font-size: 0.72rem;
    color: #aaa;
    display: block;
    text-align: right;
    margin-top: 4px;
}

.custom-note {
    font-size: 0.76rem;
    color: var(--gray);
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-note i {
    color: var(--gold);
    font-size: 0.72rem;
}

/* Price info row — shows when customText is entered */
.custom-price-info {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 8px;
    align-items: center;
    gap: 6px;
    display: flex;
}

.custom-price-info strong {
    color: var(--dark);
}

/* =============================================
   SHOP SIDEBAR — SUBTYPE CHIPS
   ============================================= */
.subtype-filter-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 10px;
}

.subtype-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.subtype-chip {
    padding: 5px 13px;
    border-radius: 20px;
    border: 1.5px solid #e0e0e0;
    background: var(--white);
    font-size: 0.78rem;
    font-family: var(--font-body);
    cursor: pointer;
    color: var(--gray);
    transition: all 0.18s ease;
    white-space: nowrap;
}

.subtype-chip:hover {
    border-color: var(--gold);
    color: var(--dark);
}

.subtype-chip.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    font-weight: 600;
}

/* =============================================
   CART PAGE — LINE TOTALS + CUSTOMIZATION
   ============================================= */
.cart-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    gap: 8px;
}

.cart-unit-price {
    font-size: 0.78rem;
    color: var(--gray);
}

.cart-line-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.cart-item-meta {
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.cart-subtype {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cart-color-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: inline-block;
    flex-shrink: 0;
}

.cart-custom-text {
    font-size: 0.78rem;
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    font-style: italic;
}

.cart-custom-text i {
    color: var(--gold);
    font-size: 0.72rem;
}

.cart-custom-fee {
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold-dark);
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 2px;
}

/* =============================================
   PRODUCT DETAIL — NEW ELEMENTS
   ============================================= */

/* Customisable pill — top of info panel */
.product-detail-custom-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #fffdf5, #fdf8ec);
    border: 1.5px solid var(--gold);
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 20px;
}

.product-detail-custom-pill i {
    font-size: 0.7rem;
}

/* Selected variant label inline */
.selected-variant-val {
    font-weight: 400;
    color: var(--dark);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.82rem;
    margin-left: 4px;
}

/* Size guide button */
.size-guide-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gold);
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    transition: opacity 0.18s ease;
}

.size-guide-btn:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* Attributes table */
.product-attrs {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.attrs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.attrs-table td {
    padding: 7px 0;
    border-bottom: 1px solid #f8f8f8;
    vertical-align: top;
}

.attrs-table td:first-child {
    color: var(--gray);
    width: 110px;
    font-weight: 500;
    flex-shrink: 0;
}

.attrs-table td:last-child {
    color: var(--dark);
}

.attrs-table tr:last-child td {
    border-bottom: none;
}

/* =============================================
   CUSTOMISATION TOGGLE CARDS
   ============================================= */
.custom-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.custom-section-title i {
    color: var(--gold);
}

.custom-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.custom-toggle-card {
    display: block;
    cursor: pointer;
}

.custom-toggle-card input[type="radio"] {
    display: none;
}

.custom-toggle-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.18s ease;
}

.custom-toggle-inner strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 1px;
}

.custom-toggle-inner span {
    font-size: 0.78rem;
    color: var(--gray);
}

.custom-toggle-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.18s ease;
}

.custom-toggle-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    transition: transform 0.18s ease;
}

.custom-toggle-card.active .custom-toggle-inner {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.custom-toggle-card.active .custom-toggle-check {
    border-color: var(--gold);
}

.custom-toggle-card.active .custom-toggle-check::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Slide-in input panel */
.custom-input-panel {
    overflow: hidden;
    max-height: 200px;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 1;
}

.custom-input-panel.hidden {
    max-height: 0 !important;
    opacity: 0;
}

.custom-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 6px;
    gap: 8px;
}

.custom-note {
    font-size: 0.72rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.custom-note i {
    color: var(--gold);
    font-size: 0.68rem;
}

/* =============================================
   SIZE GUIDE MODAL
   ============================================= */
.sg-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(4px);
}

.sg-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.sg-modal {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 540px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    transition: transform 0.28s cubic-bezier(0.32, 1, 0.4, 1);
    overflow: hidden;
}

.sg-overlay.open .sg-modal {
    transform: translateY(0);
}

.sg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.sg-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0;
}

.sg-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--gray);
    transition: background 0.18s ease;
}

.sg-close:hover {
    background: #eee;
}

.sg-body {
    overflow-y: auto;
    padding: 18px 24px 24px;
    flex: 1;
}

.sg-note {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.sg-table-wrap {
    overflow-x: auto;
}

.sg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    white-space: nowrap;
}

.sg-table th {
    background: var(--dark);
    color: var(--white);
    padding: 9px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.sg-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #f5f5f5;
    color: var(--dark);
}

.sg-table tr:last-child td {
    border-bottom: none;
}

.sg-table tr:nth-child(even) td {
    background: #fafafa;
}

.sg-tip {
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sg-tip a {
    color: var(--gold);
    font-weight: 500;
}

.sg-tip a:hover {
    text-decoration: underline;
}

@media (min-width: 540px) {
    .sg-overlay {
        align-items: center;
        padding: 20px;
    }

    .sg-modal {
        border-radius: 16px;
        max-height: 75vh;
    }
}

/* ---- LOGO IMAGE (when uploaded via dashboard) ---- */
.logo--img {
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.logo-img {
    height: 58px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    /* Ensure logo is visible in all modes */
    transition: filter 0.3s ease;
}

/* Dark mode: if logo has dark text, invert it to white */
[data-theme="dark"] .logo-img,
[data-theme="dark"] .footer-logo-img {
    filter: brightness(0) invert(1);
}

@media (prefers-color-scheme: dark) {

    :root:not([data-theme="light"]) .logo-img,
    :root:not([data-theme="light"]) .footer-logo-img {
        filter: brightness(0) invert(1);
    }
}

/* Text logo in dark navbar — make it white */
[data-theme="dark"] .navbar .logo:not(.logo--img),
[data-theme="dark"] .navbar .logo:not(.logo--img) span {
    color: var(--white, #fff);
}

@media (prefers-color-scheme: dark) {

    :root:not([data-theme="light"]) .navbar .logo:not(.logo--img),
    :root:not([data-theme="light"]) .navbar .logo:not(.logo--img) span {
        color: #fff;
    }
}

/* Footer logo text — always white on dark footer */
.footer .logo:not(.logo--img),
.footer .logo:not(.logo--img) span {
    color: var(--white, #fff) !important;
}

/* Footer logo image — always inverted to white (footer bg is always dark) */
.footer .logo-img,
.footer-logo-img {
    filter: brightness(0) invert(1) !important;
}

/* ---- DARK MODE: prevent ALL text from going white ----
   Only specific elements should change color, not everything.
   The broad p/li/span rule was too aggressive. */
[data-theme="dark"] body {
    color: var(--text);
}

[data-theme="dark"] p {
    color: var(--text-muted);
}

[data-theme="dark"] .section-header h2,
[data-theme="dark"] .product-name,
[data-theme="dark"] .product-price,
[data-theme="dark"] .aoa-product-title {
    color: var(--text) !important;
}

/* Buttons should NOT go white in dark mode */
[data-theme="dark"] .btn-primary {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

[data-theme="dark"] .btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

[data-theme="dark"] .aoa-size-btn {
    background: var(--bg-card);
    color: var(--text-muted);
    border-color: var(--border);
}

[data-theme="dark"] .aoa-size-btn--active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* Nav links, footer links — readable in dark mode */
[data-theme="dark"] .nav-links a {
    color: var(--text);
}

[data-theme="dark"] .footer .footer-links a {
    color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .footer .footer-links a:hover {
    color: var(--gold);
}

[data-theme="dark"] .footer .footer-contact a {
    color: rgba(255, 255, 255, 0.65);
}

@media (prefers-color-scheme: dark) {

    :root:not([data-theme="light"]):not([data-theme="dark"]) .footer .logo-img,
    :root:not([data-theme="light"]):not([data-theme="dark"]) .footer-logo-img {
        filter: brightness(0) invert(1) !important;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 44px;
        max-width: 160px;
    }
}


/* =============================================
   DARK MODE — COMPLETE ACROSS-BOARD OVERRIDES
   3 modes: system (default), light, dark
   Toggle lives in the account dropdown.
   ============================================= */

/* Remove old toggle button — moved to dropdown */
.dark-mode-toggle {
    display: none !important;
}

/* ---- Manual dark ([data-theme="dark"]) ---- */
[data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}

[data-theme="dark"] .navbar {
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--border);
}

/* Logo: invert dark-text logo images to white in dark mode */
[data-theme="dark"] .logo-img,
[data-theme="dark"] .footer-logo-img {
    filter: brightness(0) invert(1);
}

/* Text logo white on dark navbar */
[data-theme="dark"] .navbar .logo:not(.logo--img) {
    color: #fff;
}

[data-theme="dark"] .navbar .logo:not(.logo--img) span {
    color: var(--gold);
}

/* Cards & surfaces */
[data-theme="dark"] .product-card,
[data-theme="dark"] .cart-item,
[data-theme="dark"] .cart-summary,
[data-theme="dark"] .co-section,
[data-theme="dark"] .co-terms,
[data-theme="dark"] .aoa-product-full-desc,
[data-theme="dark"] .elara-auth-form-panel,
[data-theme="dark"] .account-sidebar,
[data-theme="dark"] .account-details-card,
[data-theme="dark"] .sg-modal,
[data-theme="dark"] .size-guide-modal,
[data-theme="dark"] .search-overlay {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .account-dropdown {
    background: #1e1e1e;
    border-color: var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .account-dropdown-header {
    background: #161616;
    border-color: var(--border);
}

[data-theme="dark"] .account-dropdown-body a {
    color: #ccc;
}

[data-theme="dark"] .account-dropdown-body a:hover {
    background: #2a2a2a;
    color: var(--gold);
}

[data-theme="dark"] .account-dropdown-footer {
    border-color: var(--border);
}

[data-theme="dark"] .dropdown-theme-row {
    border-color: var(--border);
}

[data-theme="dark"] .dropdown-theme-btns {
    background: #2a2a2a;
}

[data-theme="dark"] .theme-mode-btn.active {
    background: #383838;
}

[data-theme="dark"] .dropdown-logout-btn {
    background: #2a1515;
    border-color: #5a2020;
}

/* Inputs */
[data-theme="dark"] input:not([type="color"]):not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--input-bg) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

/* Light backgrounds → dark equivalents */
[data-theme="dark"] .bg-light,
[data-theme="dark"] .featured,
[data-theme="dark"] .about-teaser,
[data-theme="dark"] .checkout-main,
[data-theme="dark"] .cart-page-section,
[data-theme="dark"] .account-section {
    background: var(--bg-secondary) !important;
}

[data-theme="dark"] .banner-strip {
    background: #1a1a1a;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .footer {
    background: #0e0e0e;
}

[data-theme="dark"] .section-header h2,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: var(--text);
}

/* Tables */
[data-theme="dark"] .sg-table td {
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .sg-table tr:nth-child(even) td {
    background: var(--bg-secondary);
}

/* Policy */
[data-theme="dark"] .policy-section,
[data-theme="dark"] .policy-sidebar {
    background: var(--bg-card);
    border-color: var(--border);
}

/* Engraving section */
[data-theme="dark"] .aoa-engraving-section {
    background: #1e1a10;
    border-color: #5a4a1a;
}

/* Co-summary checkout dark header stays dark */
[data-theme="dark"] .co-summary-head {
    background: #0a0a0a;
}

/* Auth tabs */
[data-theme="dark"] .elara-auth-tabs {
    background: #2a2a2a;
}

[data-theme="dark"] .elara-auth-tab.active {
    background: var(--bg-card);
    color: var(--text);
}

/* Subtype chip */
[data-theme="dark"] .cart-subtype,
[data-theme="dark"] .product-card-size,
[data-theme="dark"] .aoa-sub-tag {
    background: #2a2a2a;
    color: #aaa;
}

/* ---- System preference (no data-theme set — "system" mode) ---- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) body {
        background: var(--bg);
        color: var(--text);
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) .navbar {
        background: var(--navbar-bg);
        border-bottom: 1px solid var(--border);
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) .logo-img,
    :root:not([data-theme="light"]):not([data-theme="dark"]) .footer-logo-img {
        filter: brightness(0) invert(1);
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) .navbar .logo:not(.logo--img) {
        color: #fff;
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) .account-dropdown {
        background: #1e1e1e;
        border-color: #2e2e2e;
        color: #f0f0f0;
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) .account-dropdown-header {
        background: #161616;
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) .dropdown-theme-btns {
        background: #2a2a2a;
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) .sg-modal,
    :root:not([data-theme="light"]):not([data-theme="dark"]) .search-overlay {
        background: #1e1e1e;
        border-color: #2e2e2e;
        color: #f0f0f0;
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) input:not([type="color"]):not([type="checkbox"]):not([type="radio"]),
    :root:not([data-theme="light"]):not([data-theme="dark"]) select,
    :root:not([data-theme="light"]):not([data-theme="dark"]) textarea {
        background: #252525 !important;
        color: #f0f0f0 !important;
        border-color: #3a3a3a !important;
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) .bg-light,
    :root:not([data-theme="light"]):not([data-theme="dark"]) .featured,
    :root:not([data-theme="light"]):not([data-theme="dark"]) .checkout-main,
    :root:not([data-theme="light"]):not([data-theme="dark"]) .cart-page-section,
    :root:not([data-theme="light"]):not([data-theme="dark"]) .account-section {
        background: #1e1e1e !important;
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) .cart-item,
    :root:not([data-theme="light"]):not([data-theme="dark"]) .cart-summary,
    :root:not([data-theme="light"]):not([data-theme="dark"]) .co-section,
    :root:not([data-theme="light"]):not([data-theme="dark"]) .co-terms {
        background: #1e1e1e;
        border-color: #2e2e2e;
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) .banner-strip {
        background: #1a1a1a;
        border-top: 1px solid #2e2e2e;
        border-bottom: 1px solid #2e2e2e;
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) .product-card {
        background: #1e1e1e;
        border-color: #2e2e2e;
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) h1,
    :root:not([data-theme="light"]):not([data-theme="dark"]) h2,
    :root:not([data-theme="light"]):not([data-theme="dark"]) h3 {
        color: #f0f0f0;
    }
}

/* Skip-to-content (accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--gold);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 99999;
    transition: top 0.2s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* =============================================
   LIVE SEARCH — loading + result styles
   ============================================= */
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.search-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: searchSpin 0.7s linear infinite;
}

@keyframes searchSpin {
    to {
        transform: rotate(360deg);
    }
}

.search-result-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.search-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    font-size: 1.2rem;
}

/* Dark mode search overlay */
[data-theme="dark"] .search-overlay-box {
    background: #1e1e1e;
    border-color: var(--border);
}

[data-theme="dark"] #searchOverlayInput {
    background: #252525 !important;
    color: #f0f0f0 !important;
    border-color: #3a3a3a !important;
}

[data-theme="dark"] .search-result-item {
    border-color: var(--border);
}

[data-theme="dark"] .search-result-item:hover {
    background: #252525;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) .search-overlay-box {
        background: #1e1e1e;
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) #searchOverlayInput {
        background: #252525 !important;
        color: #f0f0f0 !important;
    }
}

/* =============================================
   PREMIUM TYPOGRAPHY & SPACING SYSTEM
   ============================================= */

/* Enhanced Typography Scale */
.premium-heading-xl {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.premium-heading-lg {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 1.25rem;
}

/* Premium Text Effects */
.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow-soft {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Premium spacing utilities */
.spacing-premium {
    margin-bottom: 2rem;
}

.spacing-premium-lg {
    margin-bottom: 3rem;
}

/* Enhanced section headers */
.section-header-premium {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-premium .section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.75rem;
    display: block;
}

.section-header-premium h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem;
    line-height: 1.15;
}

.section-header-premium p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Mobile responsive typography */
@media (max-width: 768px) {
    .premium-heading-xl {
        font-size: 2.5rem;
    }

    .premium-heading-lg {
        font-size: 2rem;
    }

    .section-header-premium h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .premium-heading-xl {
        font-size: 2rem;
    }

    .premium-heading-lg {
        font-size: 1.75rem;
    }

    .section-header-premium h2 {
        font-size: 1.75rem;
    }
}

/* =============================================
   PHASE 2: PREMIUM ADVANCED FEATURES CSS
   ============================================= */

/* Smart Recommendations Section */
.smart-recommendations-section {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.smart-recommendations-header {
    text-align: center;
    margin-bottom: 40px;
}

.smart-recommendations-header h3 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #c9a84c, #d4af3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.smart-recommendations-header p {
    color: #666;
    font-size: 1.1rem;
}

.smart-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.smart-rec-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.smart-rec-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.smart-rec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c9a84c, #d4af3c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smart-rec-card:hover::before {
    opacity: 1;
}

.smart-rec-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.smart-rec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.smart-rec-card:hover .smart-rec-image img {
    transform: scale(1.1);
}

.smart-rec-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 40%,
            rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.smart-rec-card:hover .smart-rec-overlay {
    opacity: 1;
    transform: translateY(0);
}

.smart-rec-overlay .btn {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: none;
    backdrop-filter: blur(10px);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.smart-rec-overlay .btn:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.smart-rec-info {
    padding: 20px;
}

.smart-rec-info h4 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.smart-rec-price {
    color: #c9a84c;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.smart-rec-match {
    color: #4CAF50;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Cart Preview Styles */
#cart-preview {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

#cart-preview.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cart-preview-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-preview-header h4 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.cart-preview-items {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c9a84c transparent;
}

.cart-preview-items::-webkit-scrollbar {
    width: 4px;
}

.cart-preview-items::-webkit-scrollbar-track {
    background: transparent;
}

.cart-preview-items::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 2px;
}

.cart-preview-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
}

.cart-preview-item:hover {
    background: rgba(201, 168, 76, 0.05);
}

.cart-preview-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-preview-item-info h5 {
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.cart-preview-price {
    color: #666;
    font-size: 0.9rem;
}

.cart-preview-footer {
    padding: 20px 24px;
    background: #fafbfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cart-preview-total {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Smart Search Results */
#smart-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    z-index: 99999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

#smart-search-results.show {
    opacity: 1;
    transform: translateY(0);
}

.smart-search-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.smart-search-item:hover {
    background: rgba(201, 168, 76, 0.05);
    transform: translateX(4px);
}

.smart-search-item:last-child {
    border-bottom: none;
}

.smart-search-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.smart-search-info {
    flex: 1;
}

.smart-search-info h5 {
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.smart-search-price {
    color: #c9a84c;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Smart Upsells Section */
.smart-upsells-section {
    margin: 40px 0;
    padding: 32px;
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.smart-upsells-section h3 {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.smart-upsells-section h3 i {
    color: #c9a84c;
    font-size: 1.5rem;
}

.smart-upsells-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.upsell-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.upsell-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(201, 168, 76, 0.2);
}

.upsell-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.upsell-card:hover img {
    transform: scale(1.05);
}

.upsell-card h4 {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.upsell-price {
    color: #c9a84c;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

/* Premium Loading States */
.premium-skeleton {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
}

.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(90deg,
            rgba(240, 240, 240, 0.8) 25%,
            rgba(220, 220, 220, 0.8) 50%,
            rgba(240, 240, 240, 0.8) 75%);
    background-size: 400% 100%;
    animation: premiumShimmer 1.8s ease-in-out infinite;
}

.skeleton-content {
    flex: 1;
    padding-top: 8px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg,
            rgba(240, 240, 240, 0.8) 25%,
            rgba(220, 220, 220, 0.8) 50%,
            rgba(240, 240, 240, 0.8) 75%);
    background-size: 400% 100%;
    animation: premiumShimmer 1.8s ease-in-out infinite;
    border-radius: 8px;
    margin-bottom: 12px;
}

.skeleton-line.long {
    width: 100%;
}

.skeleton-line.medium {
    width: 75%;
}

.skeleton-line.short {
    width: 45%;
}

/* Premium Animations */
@keyframes premiumShimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

@keyframes quickAddSuccess {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-15deg);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg) translateY(-60px);
        opacity: 0;
    }
}

/* Advanced Product Card Enhancements */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.woocommerce ul.products li.product:hover::before {
    opacity: 1;
}

/* Image Zoom Lens */
.image-zoom-lens {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(201, 168, 76, 0.8);
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle,
            rgba(201, 168, 76, 0.1) 0%,
            rgba(201, 168, 76, 0.05) 50%,
            transparent 100%);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
    transition: all 0.2s ease;
}

/* Button Enhancements */
.btn.success {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    border-color: #4CAF50 !important;
}

.btn.error {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
    color: white !important;
    border-color: #f44336 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .smart-recommendations-section {
        padding: 24px;
        margin: 40px 0;
    }

    .smart-recommendations-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #cart-preview {
        width: 300px;
        left: auto;
        right: 10px;
    }

    .smart-upsells-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }

    .premium-skeleton {
        padding: 16px;
    }

    .skeleton-avatar {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .smart-rec-card {
        margin: 0 -10px;
    }

    #cart-preview {
        width: calc(100vw - 20px);
        left: 10px;
        right: 10px;
    }

    .smart-recommendations-header h3 {
        font-size: 1.6rem;
    }

    .smart-upsells-section {
        margin: 24px -16px;
        padding: 20px 16px;
        border-radius: 0;
    }
}

/* Premium Focus States */
.smart-rec-card:focus-within,
.upsell-card:focus-within {
    outline: 3px solid rgba(201, 168, 76, 0.3);
    outline-offset: 2px;
}

/* Advanced Micro-Interactions */
.smart-rec-card .btn,
.upsell-card .btn {
    position: relative;
    overflow: hidden;
}

.smart-rec-card .btn::before,
.upsell-card .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.smart-rec-card .btn:hover::before,
.upsell-card .btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Enhanced Typography */
.smart-recommendations-section *,
.smart-upsells-section * {
    letter-spacing: -0.01em;
}

.smart-recommendations-section h3,
.smart-upsells-section h3 {
    letter-spacing: -0.02em;
}

/* =============================================
   PREMIUM CHECKOUT EXPERIENCE
   ============================================= */

/* Enhanced Form Fields */
.premium-field-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.premium-field {
    width: 100%;
    padding: 16px 16px 8px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 1rem;
    background: #fafbfc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    z-index: 1;
}

.premium-field:focus {
    border-color: #c9a84c;
    background: white;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.premium-field:placeholder-shown {
    padding: 16px;
}

.floating-label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: #8b949e;
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    background: transparent;
    padding: 0 4px;
}

.premium-field-wrapper.focused .floating-label,
.premium-field-wrapper.filled .floating-label {
    top: -8px;
    font-size: 0.85rem;
    color: #c9a84c;
    background: white;
    font-weight: 600;
}

.field-indicator {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-field-wrapper.valid .field-indicator {
    opacity: 1;
    color: #4CAF50;
}

.premium-field-wrapper.error .field-indicator {
    opacity: 1;
    color: #f44336;
}

.premium-field-wrapper.error .premium-field {
    border-color: #f44336;
    background: #fef5f5;
}

.premium-field-wrapper.valid .premium-field {
    border-color: #4CAF50;
    background: #f8fff8;
}

/* Address Suggestions */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
}

.address-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.address-suggestion-item:hover {
    background: rgba(201, 168, 76, 0.05);
}

.address-suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-address {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.suggestion-location {
    font-size: 0.9rem;
    color: #666;
}

/* Payment Method Enhancements */
.woocommerce-checkout .payment_methods li {
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.woocommerce-checkout .payment_methods li:hover {
    border-color: #c9a84c;
    background: rgba(201, 168, 76, 0.02);
}

.woocommerce-checkout .payment_methods li.payment-method-active {
    border-color: #c9a84c;
    background: rgba(201, 168, 76, 0.05);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.1);
}

.woocommerce-checkout .payment_methods li label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.woocommerce-checkout .payment_methods li input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #c9a84c;
}

/* Checkout Progress Indicator */
.checkout-progress {
    margin-bottom: 40px;
    padding: 24px;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-steps {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-step {
    display: none;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e6ed;
    color: #8b949e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.progress-step.completed .step-number {
    background: #c9a84c;
    color: white;
}

.progress-step.completed .step-number::after {
    content: '✓';
    font-size: 0.9rem;
}

.step-label {
    font-weight: 600;
    color: #8b949e;
    transition: color 0.3s ease;
}

.progress-step.completed .step-label {
    color: #1a1a1a;
}

.progress-line {
    height: 4px;
    background: #e0e6ed;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a84c, #d4af3c);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* Order Summary Toggle */
.order-summary-toggle {
    display: none;
    width: 100%;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    justify-content: space-between;
    align-items: center;
}

.order-summary-toggle:hover {
    background: #f0f1f3;
    border-color: #c9a84c;
}

.woocommerce-checkout-review-order-table {
    transition: max-height 0.4s ease, opacity 0.4s ease;
    overflow: hidden;
}

/* Enhanced Form Sections */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    background: white;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f1f3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-billing-fields h3::before {
    content: '👤';
    font-size: 1.2rem;
}

.woocommerce-shipping-fields h3::before {
    content: '🚚';
    font-size: 1.2rem;
}

.woocommerce-additional-fields h3::before {
    content: '📝';
    font-size: 1.2rem;
}

/* Enhanced Place Order Button */
#place_order {
    width: 100%;
    background: linear-gradient(135deg, #c9a84c 0%, #d4af3c 100%);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#place_order::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.6s ease;
}

#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

#place_order:hover::before {
    left: 100%;
}

#place_order:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .checkout-progress {
        padding: 16px;
        margin-bottom: 24px;
    }

    .progress-steps {
        flex-direction: column;
        gap: 16px;
    }

    .progress-step {
        flex-direction: row;
        justify-content: flex-start;
    }

    .progress-line {
        display: none;
    }

    .order-summary-toggle {
        display: flex;
    }

    .woocommerce-checkout-review-order-table:not(.expanded) {
        max-height: 0;
        opacity: 0;
        margin: 0;
        padding: 0;
    }

    .woocommerce-checkout-review-order-table.expanded {
        max-height: 1000px;
        opacity: 1;
    }

    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .woocommerce-additional-fields {
        padding: 20px;
        margin-bottom: 16px;
    }

    .premium-field {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}

@media (max-width: 480px) {
    .progress-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.9rem;
    }

    #place_order {
        font-size: 1.1rem;
        padding: 16px 24px;
    }
}

/* Loading States */
.premium-field-wrapper.loading .premium-field {
    position: relative;
    pointer-events: none;
}

.premium-field-wrapper.loading .premium-field::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 16px;
    height: 16px;
    border: 2px solid #e0e6ed;
    border-top: 2px solid #c9a84c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Focus Improvements */
.premium-field:focus,
.order-summary-toggle:focus,
#place_order:focus {
    outline: 3px solid rgba(201, 168, 76, 0.3);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .premium-field {
        border-width: 3px;
    }

    .floating-label {
        font-weight: 700;
    }

    .progress-step.completed .step-number {
        background: #000;
        color: #fff;
    }
}

/* =============================================
   PHASE 3: PREMIUM INTERACTIONS & FEATURES
   ============================================= */

/* Social Proof Notifications */
.social-proof-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.social-proof-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    max-width: 350px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateX(100%) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    position: relative;
}

.social-proof-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a84c, #d4af3c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.social-proof-content {
    flex: 1;
    min-width: 0;
}

.social-proof-message {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.social-proof-message strong {
    color: #c9a84c;
    font-weight: 600;
}

.social-proof-message .product-name {
    color: #666;
    font-style: italic;
}

.social-proof-time {
    font-size: 0.8rem;
    color: #888;
}

.social-proof-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.social-proof-close:hover {
    color: #888;
}

/* Urgency Indicators */
.urgency-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
    animation: urgencyPulse 2s ease-in-out infinite;
}

.urgency-badge.stock-low {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
}

.urgency-badge i {
    font-size: 0.8rem;
}

@keyframes urgencyPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Social Proof Views */
.social-proof-views {
    margin-top: 16px;
    padding: 12px;
    background: rgba(201, 168, 76, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.view-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.view-indicator i {
    color: #c9a84c;
}

.view-count {
    color: #1a1a1a;
    font-weight: 600;
}

.recent-activity {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.activity-dots {
    display: flex;
    gap: 3px;
}

.activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: activityPulse 1.5s ease-in-out infinite;
}

.activity-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.activity-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.activity-dot:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes activityPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Sale Timer */
.sale-timer {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
}

.sale-timer.expired {
    background: rgba(107, 114, 126, 0.9);
}

.timer-value {
    font-variant-numeric: tabular-nums;
}

/* Cart Abandonment Reminder */
.cart-abandonment-reminder {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 350px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reminder-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reminder-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a84c, #d4af3c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    align-self: center;
}

.reminder-text {
    text-align: center;
}

.reminder-text h4 {
    margin: 0 0 4px 0;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
}

.reminder-text p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.reminder-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reminder-close {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.reminder-close:hover {
    color: #888;
}

/* Product Comparison */
.compare-btn {
    position: relative;
    background: none;
    border: 2px solid #e0e6ed;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-btn:hover,
.compare-btn.active {
    border-color: #c9a84c;
    color: #c9a84c;
    background: rgba(201, 168, 76, 0.1);
}

.compare-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.compare-btn:hover .compare-tooltip {
    opacity: 1;
}

/* Compare Bar */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e6ed;
    padding: 16px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.compare-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.compare-items {
    display: flex;
    gap: 12px;
    flex: 1;
}

.compare-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e6ed;
}

.compare-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-compare-item {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff4757;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-actions {
    display: flex;
    gap: 12px;
}

/* Compare Modal */
.compare-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compare-modal {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.compare-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compare-modal-header h3 {
    margin: 0;
    color: #1a1a1a;
}

.compare-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.compare-modal-close:hover {
    color: #333;
}

.compare-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.compare-table {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compare-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: center;
}

.compare-cell {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.compare-images .compare-cell img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.compare-names h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.compare-prices .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #c9a84c;
}

/* Recently Viewed Section */
.recently-viewed-section {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.recently-viewed-section .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.recently-viewed-section .section-header h3 {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.recently-viewed-section .section-header h3 i {
    color: #c9a84c;
}

.recently-viewed-section .section-header p {
    color: #666;
    font-size: 1rem;
}

.recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.recently-viewed-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.recently-viewed-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.recently-viewed-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.recently-viewed-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recently-viewed-item:hover img {
    transform: scale(1.05);
}

.recently-viewed-item h4 {
    padding: 12px 16px 8px 16px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.recently-viewed-item .price {
    padding: 0 16px 16px 16px;
    color: #c9a84c;
    font-weight: 700;
    font-size: 1rem;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10002;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
}

.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.toast-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-proof-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

    .social-proof-notification {
        max-width: none;
    }

    .cart-abandonment-reminder {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .compare-bar-content {
        flex-direction: column;
        gap: 16px;
    }

    .compare-modal {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .compare-row {
        grid-template-columns: 1fr;
    }

    .recently-viewed-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .recently-viewed-section {
        padding: 24px;
        margin: 40px 0;
    }
}

@media (max-width: 480px) {
    .urgency-badge {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .social-proof-views {
        padding: 8px;
        margin-top: 12px;
    }

    .compare-items {
        flex-wrap: wrap;
    }

    .compare-item {
        width: 50px;
        height: 50px;
    }

    .recently-viewed-section .section-header h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {

    .urgency-badge,
    .activity-dot,
    .social-proof-notification,
    .recently-viewed-item img {
        animation: none;
    }

    .social-proof-notification,
    .cart-abandonment-reminder,
    .compare-bar,
    .toast {
        transition: opacity 0.2s ease;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .urgency-badge.stock-low {
        background: #d32f2f;
        border: 2px solid #b71c1c;
    }

    .social-proof-notification {
        border: 2px solid #333;
    }

    .compare-btn {
        border-width: 3px;
    }
}

/* Focus Improvements */
.compare-btn:focus,
.reminder-close:focus,
.compare-modal-close:focus,
.remove-compare-item:focus {
    outline: 3px solid rgba(201, 168, 76, 0.3);
    outline-offset: 2px;
}

/* =============================================
   PREMIUM BUNDLING & SIZE RECOMMENDATION
   ============================================= */

/* Product Bundles Section */
.product-bundles-section {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bundles-header {
    text-align: center;
    margin-bottom: 40px;
}

.bundles-header h3 {
    color: #1a1a1a;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.bundles-header h3 i {
    color: #c9a84c;
    font-size: 1.8rem;
}

.bundles-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.bundle-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bundle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c9a84c, #d4af3c);
}

.bundle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.bundle-header {
    text-align: center;
    margin-bottom: 24px;
}

.bundle-header h4 {
    color: #1a1a1a;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.bundle-header p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.bundle-products {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.bundle-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    position: relative;
}

.bundle-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.bundle-product-info {
    flex: 1;
}

.bundle-product-info h5 {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.bundle-product-price {
    color: #c9a84c;
    font-weight: 700;
    font-size: 0.9rem;
}

.bundle-plus {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #c9a84c;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.bundle-pricing {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(201, 168, 76, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.bundle-original-price {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.bundle-original-price .strikethrough {
    text-decoration: line-through;
    color: #999;
}

.bundle-discounted-price {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.bundle-discounted-price strong {
    color: #c9a84c;
    font-weight: 700;
}

.bundle-savings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #10b981;
    font-weight: 600;
    font-size: 0.95rem;
}

.bundle-savings i {
    color: #10b981;
}

.bundle-add-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.bundle-add-btn.success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #10b981 !important;
}

.bundle-add-btn.error {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border-color: #ef4444 !important;
}

/* Size Recommendation */
.size-helper-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #c9a84c, #d4af3c);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.size-helper-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.3);
}

.size-quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.size-quiz-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.size-quiz-header {
    padding: 24px;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #c9a84c, #d4af3c);
    color: white;
}

.size-quiz-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.size-quiz-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.size-quiz-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.size-quiz-body {
    padding: 32px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: slideInFromRight 0.3s ease;
}

.quiz-step h4 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 24px 0;
    text-align: center;
}

.quiz-field {
    margin-bottom: 24px;
}

.quiz-field label {
    display: block;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.quiz-field input,
.quiz-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.quiz-field input:focus,
.quiz-field select:focus {
    outline: none;
    border-color: #c9a84c;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

.quiz-options input[type="radio"] {
    width: auto;
    margin: 0;
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.quiz-next,
.quiz-actions .btn {
    flex: 1;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
}

/* Quiz Results */
.recommendation-result,
.recommendation-error {
    text-align: center;
    padding: 20px;
}

.recommendation-icon,
.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.recommendation-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.error-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.recommendation-result h4,
.recommendation-error h4 {
    color: #1a1a1a;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.confidence-bar {
    width: 100%;
    height: 8px;
    background: #e0e6ed;
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}

.confidence-fill {
    height: 100%;
    transition: width 1s ease;
    border-radius: 4px;
}

.confidence-text {
    font-weight: 600;
    color: #666;
    margin-bottom: 16px;
}

.recommendation-explanation {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
}

.available-sizes h5 {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.sizes-list {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.size-chip {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    border-radius: 20px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.size-chip.recommended {
    background: linear-gradient(135deg, #c9a84c, #d4af3c);
    color: white;
    border-color: #c9a84c;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

/* Reorder Buttons */
.elara-reorder-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.elara-reorder-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.elara-reorder-btn.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.elara-reorder-btn.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-bundles-section {
        padding: 24px;
        margin: 40px 0;
    }

    .bundles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bundle-card {
        padding: 24px;
    }

    .bundles-header h3 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 8px;
    }

    .bundle-products {
        gap: 12px;
    }

    .bundle-product {
        padding: 12px;
    }

    .bundle-product img {
        width: 50px;
        height: 50px;
    }

    .size-quiz-content {
        margin: 20px;
        max-width: none;
    }

    .size-quiz-body {
        padding: 24px;
    }

    .quiz-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .bundle-products {
        gap: 8px;
    }

    .bundle-product {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .bundle-plus {
        position: static;
        transform: none;
        margin: 8px 0;
    }

    .sizes-list {
        gap: 6px;
    }

    .size-chip {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes slideInFromRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .bundle-card,
    .size-helper-btn,
    .quiz-step {
        animation: none;
        transition: none;
    }
}

/* Focus States */
.size-helper-btn:focus,
.bundle-add-btn:focus,
.quiz-next:focus,
.elara-reorder-btn:focus {
    outline: 3px solid rgba(201, 168, 76, 0.3);
    outline-offset: 2px;
}

/* =============================================
   SMART SEARCH AUTOCOMPLETE STYLES (consolidated)
   ============================================= */
.smart-search-wrapper {
    position: relative;
    display: flex;
    flex: 1;
}

/* Single high-z dropdown definition — overrides everything */
.smart-search-dropdown,
.ss-dropdown-anchor .smart-search-dropdown {
    position: fixed;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    overflow: hidden;
    max-height: 440px;
    overflow-y: auto;
    min-width: 280px;
}

@media (max-width: 768px) {
    .smart-search-dropdown {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        min-width: unset;
        border-radius: 12px;
        max-height: 60vh;
        z-index: 99999;
    }
}

.ss-header {
    padding: 10px 16px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted, #888);
    background: var(--bg-secondary, #fafafa);
    border-bottom: 1px solid var(--border, #f0f0f0);
}

/* also keep legacy suggestion classes for old search.js */
.search-suggestions-header {
    padding: 10px 16px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #888;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.search-suggestions-loading,
.search-suggestions-empty,
.ss-loading,
.ss-empty {
    padding: 18px;
    text-align: center;
    color: #999;
    font-size: 0.84rem;
}

.search-suggestion-item,
.ss-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border, #f8f8f8);
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.search-suggestion-item:hover,
.ss-item:hover,
.ss-item.selected {
    background: var(--bg-secondary, #f8f9ff);
}

.suggestion-image,
.ss-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f5f5f5;
}

.suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.suggestion-content,
.ss-info {
    flex: 1;
    min-width: 0;
}

.suggestion-name,
.ss-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text, #1a1a1a);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-name strong,
.ss-name strong {
    color: var(--gold-dark, #a07830);
}

.suggestion-category,
.ss-cat {
    font-size: 0.72rem;
    color: var(--text-muted, #888);
    margin-bottom: 4px;
    text-transform: capitalize;
}

.suggestion-pricing,
.ss-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.suggestion-sale-price,
.ss-sale-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: #d32f2f;
}

.suggestion-original-price,
.ss-orig-price {
    font-size: 0.72rem;
    color: #999;
    text-decoration: line-through;
    text-decoration-color: #d32f2f;
}

.suggestion-price,
.ss-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-dark, #a07830);
}

.search-suggestions-footer,
.ss-footer {
    padding: 10px 16px;
    background: var(--bg-secondary, #fafafa);
    border-top: 1px solid var(--border, #f0f0f0);
}

.view-all-results,
.ss-view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--gold-dark, #a07830);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s;
    cursor: pointer;
}

.view-all-results:hover,
.ss-view-all:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Fix for product card view details hint */
.product-view-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    margin-top: 8px;
}

.view-details-text {
    font-size: 0.75rem;
    color: var(--gold-dark);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-card:hover .view-details-text {
    opacity: 1;
}

/* White button for hero "Our Story" */
.btn-white {
    border: 2px solid var(--white);
    background: var(--white);
    color: var(--dark);
}

.btn-white:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

/* =============================================
   SMART SEARCH DROPDOWN
   ============================================= */
.smart-search-wrapper {
    position: relative;
    display: flex;
    flex: 1;
}

/* dropdown styles defined in the main block above — this duplicate removed */

.ss-header {
    padding: 10px 16px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted, #888);
    background: var(--bg-secondary, #fafafa);
    border-bottom: 1px solid var(--border, #f0f0f0);
}

.ss-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border, #f8f8f8);
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.ss-item:hover,
.ss-item.selected {
    background: var(--bg-secondary, #f8f9ff);
}

.ss-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--bg-secondary, #f5f5f5);
}

.ss-info {
    flex: 1;
    min-width: 0;
}

.ss-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text, #1a1a1a);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-name strong {
    color: var(--gold, #c9a84c);
}

.ss-cat {
    font-size: 0.72rem;
    color: var(--text-muted, #888);
    margin-bottom: 4px;
    text-transform: capitalize;
}

.ss-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ss-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-dark, #a07830);
}

.ss-sale-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: #d32f2f;
}

.ss-orig-price {
    font-size: 0.72rem;
    color: #999;
    text-decoration: line-through;
    text-decoration-color: #d32f2f;
}

.ss-footer {
    padding: 10px 16px;
    background: var(--bg-secondary, #fafafa);
    border-top: 1px solid var(--border, #f0f0f0);
}

.ss-view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--gold-dark, #a07830);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s;
}

.ss-view-all:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.ss-loading,
.ss-empty {
    padding: 20px 16px;
    text-align: center;
    font-size: 0.84rem;
    color: var(--text-muted, #888);
}

/* Product card visual hint */
.product-view-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.view-details-text {
    font-size: 0.75rem;
    color: var(--gold-dark, #a07830);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
    letter-spacing: 0.3px;
}

.product-card:hover .view-details-text {
    opacity: 1;
}