:root {
    /* Color Palette - Oaxacan Earth & Clay */
    --color-bg: #1c1917;
    /* Warm Dark Stone */
    --color-surface: #292524;
    /* Darker Clay */
    --color-text: #e7e5e4;
    /* Stone White */
    --color-text-muted: #a8a29e;
    --color-primary: #aa4814;
    /* Brand Terracotta */
    --color-primary-rgb: 170, 72, 20;
    --color-primary-dark: #883a10;
    --color-secondary: #707903;
    /* Brand Green */
    --color-accent: #707903;
    /* Usage of Green as accent */

    /* Glazed Amber/Terracotta - Deprecated or repurposed */
    /* --color-glass: rgba(41, 37, 36, 0.7); Keep glass */
    --color-glass: rgba(41, 37, 36, 0.7);
    --color-glass-border: rgba(231, 229, 228, 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 90px;
    --border-radius: 4px;
    /* More traditional/crafted feel */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.glass-effect {
    background: rgba(28, 25, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-glass-border);
}

.text-gradient {
    background: linear-gradient(135deg, #e7e5e4, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    transition: background 0.3s ease;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.menu-toggle {
    display: none;
    /* Hidden on desktop */
}

.brand-logo .highlight {
    color: var(--color-primary);
    font-style: italic;
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.main-nav ul:hover a {
    /* Focus Bloom: Dim siblings when interacting with menu */
    opacity: 0.4;
    filter: blur(0.5px);
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: inline-block;
    /* Required for transform */
}

.main-nav a:hover {
    /* Active bloom state */
    opacity: 1 !important;
    filter: blur(0) !important;
    color: var(--color-primary);
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 0 15px rgba(170, 72, 20, 0.4);
}

.main-nav a.active {
    color: var(--color-primary);
}

/* Cart Icon */
.cart-trigger {
    position: relative;
    cursor: pointer;
    color: var(--color-text);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--color-text);
    position: relative;
    transition: color 0.3s ease;
}

.lang-switch svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.lang-switch .lang-label {
    font-size: 0.8rem;
    font-weight: 500;
}

.lang-switch:hover {
    color: var(--color-primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-glass-border);
    border-radius: 2px;
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--header-height) 5% 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-image: url('assets/img/barro4.jpg');
    /* Hero Image */
    background-size: cover;
    background-position: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darker overlay for readability */
    z-index: 1;
    /* Ensure it's above the image but below content */
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-title em {
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Styles - Editorial Update */
.main-footer {
    background-color: #0c0a09;
    /* Very dark stone */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6rem 5% 3rem;
    margin-top: 0;
    /* Attached to map */
    color: var(--color-text-muted);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-bottom: 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-column h4 {
    font-family: var(--font-body);
    /* Switch to body font for cleaner look */
    color: var(--color-text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.brand-summary .brand-logo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
}

.brand-summary p {
    font-family: var(--font-heading);
    /* Serif for body text in footer for editorial feel */
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
    max-width: 320px;
    font-style: italic;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    letter-spacing: 0.02em;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.contact-info p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    line-height: 1.6;
}

.contact-info span {
    color: var(--color-text);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

/* Minimalist Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.newsletter-form input {
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
    padding-left: 0.5rem;
    background: transparent;
}

.newsletter-form button {
    padding: 0;
    background: transparent;
    color: var(--color-primary);
    border: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-form button:hover {
    color: var(--color-text);
    padding-left: 5px;
    background: transparent;
}

.newsletter-form button::after {
    content: '→';
    font-size: 1.2em;
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 3rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--color-primary);
    /* Use brand color directly as requested */
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.social-links a:hover {
    color: var(--color-primary-dark);
    transform: translateY(-3px);
    opacity: 1;
}

.social-links svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    /* Ensure thin/elegant stroke */
}


/* Footer Legal / Luminari Section */
.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.luminari-credit a {
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    font-size: 0.7rem;
    font-family: var(--font-body);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.luminari-credit a:hover {
    color: rgba(255, 255, 255, 0.6);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 2000;
    }

    .menu-toggle span {
        width: 30px;
        height: 2px;
        background-color: var(--color-text);
        transition: all 0.3s ease;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-bg);
        display: flex;
        /* Ensure flexbox is enabled */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* Center horizontally */
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 0;
        /* Remove padding to allow true vertical centering */
        z-index: 1500;
        /* Cart button stays visible in header, so we just move the ul */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
        font-size: 1.2rem;
    }

    .main-nav.active {
        right: 0;
    }

    /* Cart Trigger on Mobile - Adjust position if needed, or keep in header */
    .cart-trigger {
        margin-top: 1rem;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding-top: calc(var(--header-height) + 2rem);
        text-align: center;
        flex-direction: column;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-links {
        display: none;
    }

    .contact-info p {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column-reverse;
        gap: 1.5rem;
    }

    .luminari-credit {
        width: 100%;
        text-align: center;
    }

    .policy-links {
        margin-bottom: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Family Section */
    #familia h3 {
        font-size: 2rem !important;
    }
}

/* Toggle Animation - Perfect X */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Location Section */
.location-section {
    padding-top: 4rem;
    /* Reduced to balance vertical space */
    padding-bottom: 0;
    position: relative;
    background-color: var(--color-bg);
}

.map-container {
    width: 100%;
    margin-top: 2rem;
    filter: sepia(20%) grayscale(40%) contrast(1.1);
    transition: filter 0.5s ease;
}

.map-container:hover {
    filter: none;
}

.map-container iframe {
    display: block;
    border: none;
}

/* Ensure Luminari credit is not blue and handles positioning correctly */
.luminari-credit {
    text-align: left;
    width: auto;
}

.luminari-credit a {
    color: #a8a29e;
    /* Warm grey/stone instead of potentially bluish dependent implementation */
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    font-size: 0.75rem;
    font-family: var(--font-body);
    letter-spacing: 0.2em;
    /* Increased letter spacing for premium look */
    text-transform: uppercase;
    opacity: 0.6;
}

.luminari-credit a:hover {
    color: var(--color-primary);
    /* Brand interaction color */
    opacity: 1;
    border-bottom-color: var(--color-primary);
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }

    .location-section {
        padding-top: 4rem;
    }

    .main-footer {
        padding-top: 4rem;
    }

    .brand-summary p {
        margin: 0 auto;
        text-align: center;
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Testimonials / Google Reviews */
.testimonials-section {
    padding: 6rem 5%;
    background: var(--color-surface);
}

.google-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.rating-score {
    font-weight: 700;
    color: var(--color-text);
}

.stars {
    color: #fbbf24;
    /* Google Star Color */
    letter-spacing: 0.1em;
}

/* .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
} */

.review-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-img {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    /* Use brand color for avatar background */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.reviewer-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0px;
    color: var(--color-text);
}

.review-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.google-icon {
    width: 20px;
    height: 20px;
    margin-left: auto;
    opacity: 0.7;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 1rem;
}

/* Navigation Tools Container */
.nav-tools {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Cart Icon SVG update */
.cart-trigger span {
    display: none;
    /* Hide text label if present in desktop view previously */
}

.cart-trigger svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Access Screen */
.access-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0c0a09;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.access-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

/* Policy Links in Footer */
.policy-links {
    margin-bottom: 0;
    display: flex;
    justify-content: flex-end;
    /* Align content to the right edge */
    gap: 3rem;
    /* Wider gap for better distribution */
    flex-wrap: wrap;
}

.policy-links a {
    color: var(--color-text-muted);
    font-size: 0.7rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.policy-links a:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* Testimonial Controls (Hidden by default, shown on mobile) */
/* Testimonial Controls (Visible on all screens now) */
.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--color-glass-border);
    color: var(--color-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Carousel Logic (Global) */
.reviews-grid {
    display: block;
    /* Disable grid for slider behavior */
    position: relative;
    min-height: 300px;
    max-width: 800px;
    /* Limit width on desktop for better readability of single card */
    margin: 3rem auto 0;
}

.review-card {
    display: none;
    /* Hide all by default */
    animation: fadeEffect 0.5s;
}

.review-card.active-slide {
    display: block;
    /* Show only active */
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    /* Previously held slider logic, now empty or used for specific mobile tweaks */
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-bg);
    /* Using brand background (dark) */
    color: var(--color-primary);
    /* Brand accent color */
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: var(--color-primary);
    color: white;
    /* Inverting on hover for nice effect */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(217, 119, 6, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    /* Use brand background */
    z-index: 11000;
    transform: translateY(100%);
    /* Start hidden at bottom */
    transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
}

.page-transition-overlay.active {
    transform: translateY(0);
    /* Move to cover screen */
    pointer-events: all;
}

/* Ensure collection sections have space */
.collection-section {
    padding: 4rem 5%;

}

/* Editorial Quote Section */
.editorial-quote-section {
    padding: 8rem 5%;
    text-align: center;
    background-color: var(--color-bg);
}

.editorial-quote {
    font-family: var(--font-heading);
    /* Playfair Display */
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--color-text);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}

.editorial-quote::before {
    content: "“";
    display: block;
    font-family: serif;
    font-size: 6rem;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -20px;
}

.editorial-quote cite {
    display: block;
    font-family: var(--font-body);
    /* Outfit */
    font-size: 0.85rem;
    font-style: normal;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-top: 3rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Flip Card Styles for Product Grid - Editorial & UX */
.product-card {
    background-color: transparent;
    perspective: 1200px;
    /* Enhanced depth */
    min-height: 620px;
    /* Taller editorial aspect ratio */
    border: none;
    box-shadow: none;
    padding: 0;
    overflow: visible;
    cursor: pointer;
}

.product-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    /* Smoother spring */
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
    /* More premium shadow */
    border-radius: 4px;
    /* Sharp editorial corners (slightly rounded) */
}

/* Flip on hover */
.product-card:hover .product-card-inner {
    transform: rotateY(180deg);
}

.product-card-front,
.product-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 4px;
    overflow: hidden;
}

/* --- Front Styles --- */
.product-card-front {
    background-color: var(--color-surface);
}

.product-card-front .card-image-placeholder {
    height: 100%;
    width: 100%;
    position: relative;
}

.card-front-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    text-align: left;
    transform: translateY(10px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-card:hover .card-front-overlay {
    transform: translateY(0);
}

.card-front-overlay h5 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    /* text-shadow: 0 2px 4px rgba(0,0,0,0.3); Removed for cleaner look */
    line-height: 1.2;
}

.view-details-sometext {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

/* --- Back Styles --- */
.product-card-back {
    background-color: #fdfbf7;
    /* Slight texture paper color? Let's use clean off-white */
    color: #1c1917;
    /* Dark text for light background */
    transform: rotateY(180deg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; Removed to allow custom spacing */
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* New: Handle inner content - No Scroll as requested */
.card-back-content {
    flex-grow: 1;
    overflow: visible;
    /* No scroll */
    margin-bottom: 1rem;
}

.card-back-header {
    margin-bottom: 2rem;
    text-align: center;
}

.card-back-header h4 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #1c1917;
    /* Ensure title is dark */
    margin-bottom: 1rem;
    line-height: 1.1;
}

.card-separator {
    width: 40px;
    height: 1px;
    background-color: var(--color-primary);
    margin: 0 auto;
    opacity: 0.5;
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #57534e;
    /* Darker gray specifically for this light card */
    margin-bottom: 2rem;
    text-align: center;
    font-style: italic;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-left: 2px solid rgba(var(--color-primary-rgb), 0.2);
    /* Assuming we might verify primary color later, using opacity approach */
    border-left: 2px solid #e5e5e5;
    padding-left: 1rem;
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #78716c;
    /* Stone-500, visible on light bg */
    font-weight: 600;
}

.meta-value {
    font-size: 0.9rem;
    color: #1c1917;
    /* Almost black */
}

/* Consolidated Footer */
.card-back-footer {
    display: flex;
    justify-content: center;
    /* Center the single button */
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* Editorial Button with Integrated Price */
/* Editorial Button with Integrated Price */
.card-back-footer .btn-editorial {
    background: #1c1917 !important;
    border: 1px solid #1c1917 !important;
    color: #ffffff !important;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
}

.card-back-footer .btn-editorial:hover {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.card-back-footer .btn-editorial svg {
    transition: transform 0.3s ease;
    stroke: #ffffff !important;
    /* Force icon white */
}

.card-back-footer .btn-editorial:hover svg {
    transform: translateX(3px);
}

/* Share Buttons in Card */
.card-share-actions {
    margin-top: auto;
    margin-bottom: 2rem;
    /* Space before footer */
    border-top: 1px dotted rgba(0, 0, 0, 0.1);
    /* Subtle separation */
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #a8a29e;
    font-weight: 600;
}

.share-icons {
    display: flex;
    gap: 0.8rem;
}

.btn-share {
    background: transparent;
    border: 1px solid rgba(170, 72, 20, 0.2);
    /* Very subtle primary border */
    color: var(--color-primary);
    /* Brand Primary Color */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-share:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.btn-share svg {
    stroke-width: 1.5;
    /* Elegant thin stroke */
    width: 16px;
    height: 16px;
}