/* assets/css/templates/luxe.css */
:root {
    --luxe-bg: #050505;
    --luxe-surface: #111111;
    --luxe-accent: #C5A059; /* Sophisticated Muted Gold */
    --luxe-gold-gradient: linear-gradient(135deg, #C5A059 0%, #E2C98F 50%, #C5A059 100%);
    --luxe-text: #F5F5F5;
    --luxe-muted: #888888;
    --luxe-border: rgba(197, 160, 89, 0.2);
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

body.tpl-luxe {
    background-color: var(--luxe-bg);
    color: var(--luxe-text);
    font-family: var(--font-sans);
    overflow-x: hidden; /* Prevent horizontal spill */
}

body.tpl-luxe::before, 
body.tpl-luxe::after {
    opacity: 0.15;
    background: var(--luxe-accent);
}

.tpl-luxe .container {
    width: 92%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Top Bar */
.luxe-top-bar {
    padding: 2rem 0;
}

.luxe-top-bar .back-to-marketing {
    color: var(--luxe-accent);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.luxe-top-bar .back-to-marketing:hover {
    opacity: 1;
    transform: translateX(-4px);
}

.luxe-top-bar .icon-back {
    width: 16px;
    height: 16px;
}

/* Header */
.luxe-header {
    text-align: center;
    padding: 3rem 0 5rem;
    position: relative;
}

.luxe-logo {
    max-height: 100px;
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(197, 160, 89, 0.15));
}

.luxe-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--luxe-accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.luxe-header .luxe-divider {
    width: 40px;
    height: 1px;
    background: var(--luxe-gold-gradient);
    margin: 1.5rem auto;
}

.luxe-header p {
    font-size: 0.875rem;
    letter-spacing: 0.4em;
    color: var(--luxe-muted);
    text-transform: uppercase;
    font-weight: 500;
}

/* Nav */
.luxe-nav {
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid var(--luxe-border);
    border-bottom: 1px solid var(--luxe-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.luxe-nav .category-nav-inner {
    justify-content: flex-start; /* Better for horizontal scroll */
    padding: 0 1rem;
}

.luxe-nav .category-nav-link {
    color: var(--luxe-muted);
    font-family: var(--font-serif);
    font-size: 1rem;
    padding: 1.25rem 1rem;
    border-radius: 0;
    transition: all 0.4s;
    border-bottom: 2px solid transparent;
}

.luxe-nav .category-nav-link:hover {
    color: var(--luxe-accent);
    background: transparent;
}

.luxe-nav .category-nav-link.is-active {
    color: var(--luxe-accent);
    background: transparent;
    border-bottom-color: var(--luxe-accent);
    box-shadow: none;
}

/* Section Title */
.luxe-section h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    text-align: center;
    margin: 5rem 0 3.5rem;
    color: var(--luxe-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding-bottom: 1.5rem;
}

.luxe-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--luxe-accent);
    opacity: 0.5;
}

/* Grid */
.luxe-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Item */
.luxe-item {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.08);
}

.luxe-item:last-child {
    border-bottom: none;
}

.luxe-item-image {
    width: 280px;
    flex-shrink: 0;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--luxe-border);
    padding: 8px;
    background: #000;
}

.luxe-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxe-item:hover .luxe-item-image img {
    transform: scale(1.08);
}

.luxe-item-content {
    flex-grow: 1;
    min-width: 0; /* Fix flex overflow */
}

.luxe-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.luxe-item-header h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--luxe-text);
    line-height: 1.2;
}

.luxe-item-price {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--luxe-accent);
    white-space: nowrap;
}

.luxe-item-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--luxe-muted);
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Statuses & Allergens */
.luxe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.luxe-status {
    color: var(--luxe-accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.luxe-status::before {
    content: "";
    width: 3px;
    height: 3px;
    background: var(--luxe-accent);
    border-radius: 50%;
}

.luxe-item .allergens-section {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1.25rem;
}

.luxe-item .allergens-section-label {
    color: var(--luxe-accent);
    opacity: 0.7;
    font-size: 0.6rem;
}

.luxe-item .allergen-pill {
    background: rgba(197, 160, 89, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.15);
    color: var(--luxe-muted);
    font-size: 0.65rem;
}

/* Macros */
.luxe-macros {
    margin-top: 1.5rem;
}

.luxe-macros summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--luxe-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.luxe-macros summary:hover {
    opacity: 1;
}

.luxe-macros summary::-webkit-details-marker {
    display: none;
}

.luxe-macros-grid {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.25rem;
}

.luxe-macro {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.luxe-macro-val {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--luxe-text);
}

.luxe-macro-lab {
    font-size: 0.65rem;
    color: var(--luxe-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
.luxe-footer {
    text-align: center;
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--luxe-border);
    margin-top: 4rem;
}

.luxe-footer p {
    color: var(--luxe-muted);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
    .luxe-top-bar {
        padding: 1rem 0;
    }
    
    .luxe-top-bar .back-to-marketing span {
        display: none; /* Hide text on small mobile, show only icon */
    }
    
    .luxe-top-bar .back-to-marketing {
        padding: 0.5rem;
        border: 1px solid var(--luxe-border);
        border-radius: 50%;
        background: rgba(197, 160, 89, 0.05);
    }

    .luxe-header {
        padding: 2rem 0 3.5rem;
    }
    
    .luxe-logo {
        max-height: 80px;
        margin-bottom: 1.5rem;
    }

    .luxe-grid {
        gap: 2.5rem;
    }

    .luxe-item {
        flex-direction: column;
        gap: 1.25rem;
        padding-bottom: 2.5rem;
    }
    
    .luxe-item-image {
        width: 100%;
        aspect-ratio: 16/10;
        padding: 6px;
    }
    
    .luxe-item-header h3 {
        font-size: 1.4rem;
    }
    
    .luxe-item-price {
        font-size: 1.2rem;
    }

    .luxe-nav .category-nav-link {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .luxe-section h2 {
        margin: 4rem 0 2.5rem;
    }
    
    .luxe-macros-grid {
        gap: 1.25rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .luxe-top-bar {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        z-index: 10;
        padding: 0;
    }
    
    .luxe-header {
        padding-top: 4rem;
    }
    
    .luxe-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
