/* ============================================================
   DEJEWELS — LUXURY THEME (Responsive, Minimal UI)
   ============================================================ */

/* --- LUXURY THEME VARIABLES --- */
:root {
    /* --- WHITE / IVORY SHOWROOM THEME --- */
    --bg-base: #FAF7F2;      /* Warm white — page, header, footer, cart, nav */
    --bg-accent: #F0ECE4;    /* Soft marble grey — panels: bento, buy-box, mobile sidebar */
    --text-ivory: #1A1A1A;   /* Primary text — near-black for readability on white */
    --gold: #C9A227;         /* Slightly deepened gold — reads better on light bg */
    --gold-hover: #B8901E;
    --white: #F0ECE4;        /* Product image card background — soft marble grey */
    --on-gold: #1A1A1A;      /* Text color used specifically on gold backgrounds */
    --border-thin: rgba(201, 162, 39, 0.35); /* Gold hairline dividers, tuned for light bg */
    --muted-text: rgba(26, 26, 26, 0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    max-width: 100%;
    min-width: 100%;
    background-color: var(--bg-base);
    color: var(--text-ivory);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .serif-font { font-family: 'Playfair Display', serif; }
::selection { background-color: var(--gold); color: var(--on-gold); }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILITIES --- */
.container { max-width: 94rem; margin: 0 auto; padding: 0 5vw; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.hidden { display: none !important; }
.block { display: block; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
[x-cloak] { display: none !important; }

/* --- HEADER & NAV --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-thin);
    padding: 10px 5vw;
    height: 72px;
    display: flex;
    align-items: center;
}
.logo {
    color: var(--text-ivory);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    letter-spacing: 1px;
    white-space: nowrap;
}
.logo span { color: var(--gold); font-style: normal; }

.nav-links {
    display: none;
    gap: 2.5rem;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-ivory);
}
.nav-links a:hover { color: var(--gold); }
svg { stroke-width: 1.5px; }

.cart-trigger { display: flex; align-items: center; gap: 0.75rem; }
.cart-label {
    display: none;
    text-transform: uppercase;
    font-size: 0.625rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--gold);
    color: var(--text-ivory);
}
.cart-badge {
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 300;
    transition: all 0.3s;
    flex-shrink: 0;
}
.cart-trigger:hover .cart-badge { background-color: var(--gold); color: var(--on-gold); }

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
    display: flex;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gold);
    transition: all 0.2s;
}
.mobile-nav-wrapper { position: fixed; inset: 0; z-index: 200; display: flex; pointer-events: none; }
.mobile-nav-wrapper:not([style*="display: none"]) { pointer-events: auto; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(5px); }
.mobile-nav-sidebar {
    position: relative;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: var(--bg-base);
    border-right: 1px solid var(--border-thin);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-thin);
    padding-bottom: 1rem;
}
.mobile-nav-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); font-style: italic; }
.mobile-close-btn { background: transparent; color: var(--text-ivory); font-size: 1.8rem; font-weight: 300; line-height: 1; }
.mobile-close-btn:hover { color: var(--gold); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 1.4rem; }
.mobile-link {
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    color: var(--text-ivory);
    letter-spacing: 0.1em;
    transition: color 0.3s;
}
.mobile-link:hover { color: var(--gold); }

/* --- HERO SECTION (fluid type via clamp) --- */
.hero-section {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-thin);
    background: radial-gradient(circle at center 30%, var(--bg-accent) 0%, var(--bg-base) 100%);
}
.hero-content {
    position: relative;
    z-index: 10;
    padding: clamp(3.5rem, 10vw, 8rem) 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-tag {
    border: 1px solid var(--gold);
    padding: 0.25rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--gold);
    text-transform: uppercase;
    border-radius: 2px;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.1rem, 6.5vw, 5.5rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text-ivory);
    word-break: break-word;
}
.hero-title span { font-style: italic; color: var(--gold); }
.hero-desc {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--muted-text);
    margin-bottom: 2.5rem;
    max-width: 32rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    padding: 0 0.5rem;
}

.btn-neo, .btn-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: transparent;
    border: 1px solid var(--gold);
    padding: 0.9rem clamp(1.75rem, 6vw, 3rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: var(--gold);
    transition: all 0.4s ease;
    white-space: nowrap;
}
.btn-neo:hover, .btn-luxury:hover { background-color: var(--gold); color: var(--on-gold); }

/* --- MARQUEE --- */
.marquee-container {
    background: var(--bg-base);
    color: var(--gold);
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-thin);
    padding: 0.75rem 0;
    width: 100%;
}
.marquee-content {
    display: inline-flex; /* Keeps everything in a perfect single row */
    align-items: center;
    width: max-content; /* Forces the container to stretch, preventing mobile wrapping */
    animation: marquee 30s linear infinite;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}
.marquee-item { margin: 0 1.5rem; color: var(--text-ivory); display: inline-block; white-space: nowrap; }
.marquee-item span { color: var(--gold); margin-left: 1.5rem; }

@keyframes marquee { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* --- BENTO GRID (mobile-first) --- */
.bento-section {
    padding: clamp(3rem, 8vw, 6rem) 1.25rem;
    border-bottom: 1px solid var(--border-thin);
    background: var(--bg-base);
}
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    gap: 1.25rem;
    max-width: 94rem;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: 400px 400px; grid-auto-rows: unset; gap: 1.5rem; }
    .bento-item:nth-child(1) { grid-column: 1 / 3; }
    .bento-item:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 3; }
}
.bento-item {
    border: 1px solid var(--border-thin);
    background: var(--bg-accent);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.5s ease;
}
.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 10, 0.7) 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
}
.bento-item:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.bento-item:hover::before { opacity: 0.8; }
.bento-label {
    position: relative;
    z-index: 10;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-ivory);
    text-align: center;
    transition: color 0.3s ease;
}
.bento-item:hover .bento-label { color: var(--gold); }

/* --- MANIFESTO --- */
.manifesto-section {
    background: var(--bg-base);
    padding: clamp(4rem, 10vw, 8rem) 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-thin);
}
.manifesto-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-ivory);
    max-width: 1000px;
    margin: 0 auto;
}
.manifesto-text span { color: var(--gold); font-style: italic; }

/* --- SHOP / PRODUCT GRID --- */
.shop-container { padding: clamp(2.5rem, 6vw, 5rem) 10px; }
.shop-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(2rem, 6vw, 4rem);
    text-align: center;
    border-bottom: 1px solid var(--border-thin);
    padding-bottom: 1.5rem;
    gap: 1rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: var(--text-ivory);
    font-style: italic;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
}
.product-card { background-color: transparent; border: none; display: flex; flex-direction: column; height: 100%; transition: transform 0.4s ease; }
.card-image-wrapper {
    aspect-ratio: 1 / 1;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-thin);
}
.product-img { width: 80%; height: auto; object-fit: contain; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.card-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
}
.product-card:hover .product-img { transform: scale(1.15); }
.product-card:hover .card-image-wrapper::after { animation: lightSweep 1.2s forwards; }
@keyframes lightSweep { 100% { left: 200%; } }
.card-details { padding: 1.25rem 0; display: flex; flex-direction: column; }
.product-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--text-ivory); margin-bottom: 0.25rem; }
.product-price { font-size: 0.9rem; color: var(--muted-text); font-weight: 300; }
.btn-mobile-add {
    background-color: transparent; color: var(--gold); border: 1px solid var(--gold);
    font-weight: 300; text-transform: uppercase; font-size: 0.72rem; padding: 0.7rem;
    width: 100%; margin-top: 1rem; transition: all 0.3s;
}
.btn-mobile-add:hover { background-color: var(--gold); color: var(--on-gold); }

/* --- STORE SIDEBAR + GRID LAYOUT (mobile-first) --- */
.horiz-container-store {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 94rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 5vw;
}

.category-sidebar {
    background-color: transparent;
    border-right: none;
    border-bottom: 1px solid var(--border-thin);
    padding: 0 0 1.5rem 0;
}
@media (min-width: 768px) {
    .category-sidebar { border-right: 1px solid var(--border-thin); border-bottom: none; padding: 0 20px 0 0; }
}
.cat-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--gold);
    border-bottom: 1px solid var(--border-thin);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}
.cat-link {
    font-weight: 300;
    color: var(--muted-text);
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
    transition: all 0.3s;
    display: block;
    padding: 0.5rem 0;
}
.cat-link:hover { color: var(--gold); border-color: var(--gold); }

/* --- CART SIDEBAR (mobile-first) --- */
.cart-overlay-wrapper { position: fixed; inset: 0; z-index: 50; display: none; }
.cart-backdrop { position: absolute; inset: 0; background-color: rgba(10, 10, 10, 0.8); backdrop-filter: blur(4px); }
.cart-sidebar {
    position: absolute;
    right: 0; top: 0;
    height: 100%;
    width: 100%;
    max-width: 28rem;
    background-color: var(--bg-base);
    border-left: 1px solid var(--gold);
    box-shadow: -20px 0px 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    color: var(--text-ivory);
    overflow-y: auto;
}
@media (min-width: 640px) { .cart-sidebar { padding: 2.5rem; } }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-thin); padding-bottom: 1.25rem; margin-bottom: 1.5rem; }
.cart-title { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 400; font-style: italic; color: var(--gold); }
.cart-close-btn { color: var(--muted-text); font-weight: 300; font-size: 1.8rem; }
.cart-close-btn:hover { color: var(--gold); }
.cart-items { flex-grow: 1; overflow-y: auto; padding-right: 0.5rem; }
.cart-item { display: flex; gap: 1rem; border-bottom: 1px solid rgba(201, 162, 39, 0.3); padding-bottom: 1.25rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.cart-item-img {
    width: 5rem; height: 5rem;
    background-color: var(--bg-accent);
    border: 1px solid var(--border-thin);
    display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0;
}
.qty-badge {
    position: absolute; top: -0.5rem; left: -0.5rem;
    background-color: var(--gold); color: var(--on-gold);
    width: 1.4rem; height: 1.4rem; display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; font-weight: 700;
}
.cart-item-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--text-ivory); }
.cart-item-cat { font-size: 0.65rem; color: var(--muted-text); }
.qty-controls { border: 1px solid var(--border-thin); display: flex; align-items: center; }
.qty-btn { color: var(--gold); padding: 0.25rem 0.5rem; transition: all 0.2s; }
.qty-btn:hover { background-color: var(--gold); color: var(--on-gold); }
.qty-display { padding: 0 1rem; font-size: 0.75rem; color: var(--text-ivory); }
.remove-btn { color: var(--muted-text); border-bottom: 1px solid var(--muted-text); font-size: 0.65rem; text-transform: uppercase; }
.remove-btn:hover { color: var(--gold); border-color: var(--gold); }
.cart-footer { margin-top: 2rem; padding-top: 1.5rem; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.total-label { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted-text); }
.total-amount { font-family: 'Playfair Display', serif; font-size: 1.75rem; color: var(--text-ivory); }
.btn-checkout {
    width: 100%; background-color: transparent; border: 1px solid var(--gold); color: var(--gold);
    font-weight: 300; letter-spacing: 0.18em; padding: 1.1rem; text-transform: uppercase; transition: all 0.3s;
}
.btn-checkout:hover { background-color: var(--gold); color: var(--on-gold); }

/* --- LUXURY FORMS --- */
.neo-card { background-color: var(--bg-base); border: 1px solid var(--border-thin); padding: clamp(1.75rem, 6vw, 3rem); width: 100%; max-width: 450px; margin: 0 auto; }
.neo-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 5vw, 2.5rem); font-style: italic; color: var(--gold); margin-bottom: 0.5rem; }
.neo-subtitle { font-weight: 300; color: var(--muted-text); margin-bottom: 2rem; }
.neo-input-group { margin-bottom: 1.25rem; text-align: left; }
.neo-label { display: block; color: var(--muted-text); font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; margin-bottom: 0.5rem; }
.neo-input {
    width: 100%; background: var(--bg-accent); border: 1px solid rgba(201, 162, 39, 0.35);
    color: var(--text-ivory); font-weight: 300; padding: 0.9rem; outline: none; transition: all 0.3s;
}
.neo-input:focus { border-color: var(--gold); }
.neo-btn {
    width: 100%; background-color: transparent; color: var(--gold); border: 1px solid var(--gold);
    font-weight: 300; padding: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; transition: all 0.3s ease;
}
.neo-btn:hover:not(:disabled) { background-color: var(--gold); color: var(--on-gold); }
.neo-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.neo-link { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; font-weight: 300; }
.neo-link:hover { color: var(--text-ivory); }
.neo-alert { padding: 1rem; border: 1px solid var(--border-thin); font-weight: 300; margin-bottom: 1.5rem; background: var(--bg-accent); }
.neo-alert.success { border-color: #4ade80; color: #4ade80; }
.neo-alert.error { border-color: #ef4444; color: #ef4444; }

/* --- FOOTER (mobile-first) --- */
.site-footer { background-color: var(--bg-base); border-top: 1px solid var(--border-thin); padding: clamp(3rem, 8vw, 5rem) 5vw; width: 100%; }
.footer-content { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .footer-content { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
    .footer-content { grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 4rem; }
    .footer-column:not(:last-child) { border-right: 1px solid rgba(201, 162, 39, 0.3); padding-right: 2rem; }
}
.footer-heading { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--gold); margin-bottom: 1.25rem; font-style: italic; }
.footer-links-list { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-links-list a { font-size: 0.8rem; color: var(--muted-text); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 300; }
.footer-links-list a:hover { color: var(--gold); }
.footer-bottom {
    padding-top: 2rem; border-top: 1px solid rgba(201, 162, 39, 0.3);
    display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
    font-size: 0.7rem; color: var(--muted-text); letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
}

/* --- BREAKPOINTS (nav / hero / footer) --- */
@media (min-width: 640px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 768px) {
    .nav-links { display: flex; }
    .cart-label { display: inline-block; }
    .mobile-menu-toggle { display: none; }
}
@media (max-width: 500px) {
    .logo { font-size: 1.15rem; }
}

/* ============================================================
   STORE PAGE (store_view.php)
   ============================================================ */
.store-hero {
    background: radial-gradient(circle at center, var(--bg-accent) 0%, var(--bg-base) 100%);
    color: var(--text-ivory);
    padding: clamp(3rem, 8vw, 6rem) 1.25rem;
    border-bottom: 1px solid var(--border-thin);
    text-align: center;
}
.hero-elegant-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-ivory);
    margin-bottom: 1rem;
}
.hero-elegant-text .highlight { color: var(--gold); font-style: italic; }
.hero-subtitle {
    font-weight: 300;
    color: var(--muted-text);
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.05em;
    font-size: clamp(0.85rem, 2vw, 1rem);
    line-height: 1.6;
}

/* --- Bento nav (category strip) --- */
.bento-nav {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--border-thin);
}
@media (min-width: 768px) { .bento-nav { grid-template-columns: 1fr 1fr 1fr; } }
.bento-box {
    background: transparent;
    padding: 2.25rem 1.5rem;
    border-bottom: 1px solid var(--border-thin);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    transition: all 0.4s ease;
    text-decoration: none;
    color: var(--text-ivory);
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .bento-box { padding: 3rem 2rem; min-height: 200px; border-bottom: none; border-right: 1px solid var(--border-thin); }
    .bento-box:last-child { border-right: none; }
}
.bento-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}
.bento-box:hover::before { opacity: 0.05; }
.bento-box:hover .bento-arrow { transform: translateX(5px); border-color: var(--gold); color: var(--gold); }
.bento-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    position: relative;
    z-index: 1;
    color: var(--text-ivory);
    transition: color 0.3s;
}
.bento-box:hover .bento-title { color: var(--gold); }
.bento-arrow {
    align-self: flex-end;
    width: 2.5rem; height: 2.5rem;
    border: 1px solid var(--border-thin);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; border-radius: 50%;
    transition: all 0.4s ease;
    position: relative; z-index: 1;
    color: var(--muted-text);
}

.shop-main-wrapper { padding-top: clamp(2rem, 6vw, 4rem); padding-bottom: clamp(2rem, 6vw, 4rem); }

.store-header-row {
    margin-bottom: clamp(1.5rem, 5vw, 3rem);
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-thin);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: flex-end;
}
.store-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    font-weight: 400;
    line-height: 1;
    color: var(--text-ivory);
}
.store-title span { color: var(--gold); font-style: italic; }
.store-meta {
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--muted-text);
    text-transform: uppercase;
}

.floating-cat-btn {
    background: var(--bg-accent);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.7rem 1.5rem;
    border-radius: 2px;
   
    font-size: 0.8rem;
}
.mobile-cat-wrapper { display: block; margin: 0 5vw 1.5rem; }
@media (min-width: 1025px) { .mobile-cat-wrapper { display: none; } }

/* ============================================================
   PRODUCT DETAIL PAGE (product_view.php)
   ============================================================ */
.detail-wrapper {
    padding: clamp(1.5rem, 5vw, 3rem);
    background-color: var(--bg-base);
    min-height: 100%;
}
.btn-back-simple {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    color: var(--muted-text);
    margin-bottom: 2rem;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: color 0.3s;
}
.btn-back-simple:hover { color: var(--gold); }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 1024px) {
    .product-detail-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* --- Gallery --- */
.gallery-container { display: flex; flex-direction: column; gap: 1rem; }
.main-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border: 1px solid var(--border-thin);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.main-frame img { width: 100%; height: 100%; object-fit: contain; }
.status-tag {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--gold); color: var(--on-gold);
    padding: 0.4rem 0.9rem;
    font-weight: 400; text-transform: uppercase;
    font-size: 0.65rem; letter-spacing: 0.08em;
    z-index: 10;
}
.thumbs-row { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.5rem; }
.thumb {
    width: 4rem; height: 4rem;
    border: 1px solid var(--border-thin);
    cursor: pointer; opacity: 0.55;
    transition: 0.3s;
    flex-shrink: 0;
    background: var(--white);
}
.thumb:hover, .thumb.active { opacity: 1; border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- Info --- */
.info-container { display: flex; flex-direction: column; gap: 1.5rem; }
.ref-label {
    color: var(--muted-text);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    display: block;
}
.prod-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4.5vw, 2.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-ivory);
    font-style: italic;
}
.prod-price {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 300;
    color: var(--gold);
    margin-top: 0.5rem;
    letter-spacing: 0.03em;
}
.prod-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--muted-text);
    font-weight: 300;
    border-top: 1px solid var(--border-thin);
    border-bottom: 1px solid var(--border-thin);
    padding: 1.5rem 0;
}

/* --- Buy box --- */
.buy-box {
    background: var(--bg-accent);
    border: 1px solid var(--border-thin);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.controls-row { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; }
@media (max-width: 1024px) { .controls-row { grid-template-columns: 1fr; } }
.qty-group {
    display: flex;
    border: 1px solid var(--border-thin);
    height: 3rem;
    background: transparent;
}
.qty-act {
    width: 2.25rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    cursor: pointer;
    font-weight: 300;
    transition: 0.2s;
}
.qty-act:hover { background: var(--gold); color: var(--on-gold); }
.qty-val { flex-grow: 1; display: flex; align-items: center; justify-content: center; font-weight: 300; color: var(--text-ivory); }

.btn-add-cart {
    height: 3rem;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.btn-add-cart:hover:not(:disabled) { background: var(--gold); color: var(--on-gold); }
.btn-add-cart:disabled { opacity: 0.5; cursor: wait; }

.unavailable-box {
    padding: 1rem;
    text-align: center;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: var(--muted-text);
    border: 1px solid var(--border-thin);
}

.meta-data {
    margin-top: auto;
    font-size: 0.7rem;
    color: var(--muted-text);
    letter-spacing: 0.04em;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.meta-data span { color: var(--gold); font-weight: 400; text-transform: uppercase; margin-right: 0.35rem; }

.mobile-cat-toggle {
    display: none;
    position: fixed; bottom: 20px; right: 20px; z-index: 50;
    background: var(--bg-accent);
    color: var(--gold);
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    border: 1px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
@media (max-width: 1024px) { .mobile-cat-toggle { display: block; } }

/* ============================================================
   PRODUCT LISTING CELL (toast, qty control, pagination, sale badge)
   ============================================================ */

/* --- Toast notifications --- */
.neo-toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}
.neo-toast {
    background: var(--bg-base);
    border: 1px solid var(--border-thin);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 1rem 1.5rem;
    min-width: 280px;
    max-width: 380px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}
.neo-toast.active { transform: translateX(0); }
.neo-toast.type-success { border-left: 3px solid #2f7a4d; }
.neo-toast.type-error { border-left: 3px solid #a83246; }
.toast-icon { font-size: 1.25rem; line-height: 1; color: var(--gold); }
.toast-content { display: flex; flex-direction: column; }
.toast-title {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
    color: var(--text-ivory);
}
.toast-msg { font-size: 0.85rem; font-weight: 300; line-height: 1.4; color: var(--muted-text); }

/* --- Quantity control (grid card variant) --- */
.qty-control-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-thin);
    margin-bottom: 1rem;
    max-width: 120px;
}
.qty-control-group .qty-btn {
    background: var(--bg-accent);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    cursor: pointer;
    color: var(--gold);
    transition: all 0.2s;
}
.qty-control-group .qty-btn:hover { background: var(--gold); color: var(--on-gold); }
.qty-control-group .qty-display {
    flex-grow: 1;
    text-align: center;
    font-weight: 300;
    font-size: 0.8rem;
    border-left: 1px solid var(--border-thin);
    border-right: 1px solid var(--border-thin);
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
    color: var(--text-ivory);
}

/* --- Pagination --- */
.pagination-wrapper { margin: clamp(2rem, 6vw, 4rem) 2%; display: flex; justify-content: center; width: 96%; }
.pagination { display: flex; list-style: none; gap: 0.5rem; padding: 0; flex-wrap: wrap; }
.pagination li a, .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid var(--border-thin);
    background: var(--bg-base);
    color: var(--text-ivory);
    font-weight: 300;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}
.pagination li a:hover { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.pagination li.active a, .pagination li.active span {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--on-gold);
}

/* --- Product title link --- */
.product-title-link { text-decoration: none; color: inherit; }
.product-title-link:hover { color: var(--gold); }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.product-title.is-muted, .product-price.is-muted { color: var(--muted-text) !important; }

/* --- View Details / Add buttons (grid variant) --- */
.btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--gold);
    text-decoration: none;
    padding: 0.7rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}
.btn-details:hover { background: var(--gold); color: var(--on-gold); }

.btn-mobile-add-grid {
    width: 100%;
    margin-top: 0 !important;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    padding: 0.7rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-mobile-add-grid:hover:not(:disabled) { background: var(--gold); color: var(--on-gold); }
.btn-mobile-add-grid:disabled { opacity: 0.6; cursor: wait; }

.btn-disabled {
    background-color: var(--bg-accent) !important;
    color: var(--muted-text) !important;
    border-color: var(--border-thin) !important;
    cursor: not-allowed !important;
    opacity: 0.8;
    pointer-events: none;
}

/* --- Out of stock / sale badges --- */
.stock-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(250, 247, 242, 0.7);
    z-index: 5;
}
.stock-overlay span {
    background: var(--text-ivory);
    color: var(--bg-base);
    padding: 0.3rem 0.75rem;
    font-weight: 400;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sale-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: #a83246;
    color: #fff;
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.6rem;
    z-index: 10;
}
.sale-type-tag { color: #a83246; font-weight: 400; }

.price-wrapper { display: flex; flex-direction: column; align-items: flex-end; }
.old-price { text-decoration: line-through; color: var(--muted-text); font-size: 0.72rem; font-weight: 300; }
.sale-price { color: #a83246; font-weight: 400; font-size: 0.95rem; }

.card-image-wrapper.is-muted-image { opacity: 0.7; }
.qty-control-group.is-disabled-group { opacity: 0.5; pointer-events: none; }

