:root {
    /* Color Palette */
    --clr-off-white: #FAF9F6;
    --clr-warm-grey: #B0A999;
    --clr-soft-black: #2C2C2C;
    --clr-dusty-rose: #8C756A;
    --clr-dusty-rose-light: #eedbc2;
    --clr-white: #FFFFFF;
    --clr-border: #E5E5E5;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;

    /* Variables */
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & GLOBALS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-off-white);
    color: var(--clr-soft-black);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    line-height: 1.2;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: var(--transition);
    letter-spacing: 0.5px;
    background: transparent;
}

.btn-primary {
    background-color: var(--clr-soft-black);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: var(--clr-dusty-rose);
    color: var(--clr-white);
}

.btn-accent {
    background-color: var(--clr-dusty-rose);
    color: var(--clr-white);
}

.btn-accent:hover {
    background-color: var(--clr-soft-black);
}

.btn-outline {
    border-color: var(--clr-soft-black);
    color: var(--clr-soft-black);
}

.btn-outline:hover {
    background-color: var(--clr-soft-black);
    color: var(--clr-white);
}

.btn-full {
    width: 100%;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-soft-black);
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--clr-dusty-rose);
}

/* === LAYOUT UTILS === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.product-info {
    padding: 16px;
    position: relative;
    z-index: 2;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* === PROMO BANNER === */
.promo-banner {
    background-color: var(--clr-white);
    color: var(--clr-soft-black);
    width: 100%;
    height: 36px;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid var(--clr-border);
    position: relative;
    z-index: 101;
    display: none; /* JS will toggle to flex */
    align-items: center;
    justify-content: center;
}

.promo-track {
    display: flex;
    flex-direction: column;
    animation: promoSwipe 8s ease-in-out infinite;
}

.promo-slide {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

@keyframes promoSwipe {
    0%, 25% { transform: translateY(0); }
    50%, 75% { transform: translateY(-36px); }
    100% { transform: translateY(-72px); }
}

/* === HEADER === */
.site-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.desktop-nav {
    display: none;
    gap: 32px;
}

.desktop-nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--clr-dusty-rose);
    transition: var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: var(--clr-dusty-rose);
    color: var(--clr-white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* === MOBILE NAV === */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-off-white);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1), visibility 0s linear 0.4s;
    display: flex;
    flex-direction: column;
    padding: 40px;
    visibility: hidden;
}

.mobile-nav-overlay.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1), visibility 0s linear 0s;
}

.close-menu-btn {
    align-self: flex-end;
    margin-bottom: 40px;
    z-index: 9999;
    position: relative;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 1.5rem;
}

/* === SEARCH OVERLAY === */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 249, 246, 0.98);
    z-index: 300;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1), opacity 0.4s;
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
}

.search-overlay.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
}

.search-header-bar {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--clr-soft-black);
    padding-bottom: 8px;
    margin-bottom: 24px;
}

.search-header-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    font-family: var(--font-primary);
    color: var(--clr-soft-black);
    outline: none;
}

.search-results {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.close-search-btn {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -12px;
}

.mobile-search-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--clr-soft-black);
    cursor: pointer;
    z-index: 1000;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px;
    transition: background 0.2s;
    border-radius: 4px;
    cursor: pointer;
}

.search-result-item:hover {
    background: rgba(0,0,0,0.05);
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-title {
    font-weight: 500;
}

.search-result-price {
    font-size: 0.9rem;
    color: var(--clr-warm-grey);
}

/* === MAIN APP ROOT === */
#app-root {
    min-height: calc(100vh - var(--header-height));
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === HERO SECTION === */
.hero {
    height: 80vh;
    min-height: 600px;
    background-color: var(--clr-warm-grey);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--clr-white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
    /* Crucial so we can click the text beneath it */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 0 24px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.8), -1px 1px 0 rgba(0,0,0,0.8), 1px -1px 0 rgba(0,0,0,0.8), -1px -1px 0 rgba(0,0,0,0.8), 0 4px 6px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.8), -1px 1px 0 rgba(0,0,0,0.8), 1px -1px 0 rgba(0,0,0,0.8), -1px -1px 0 rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* === PRODUCT GRID & CARDS === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

.product-card {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 16px;
    border-radius: 4px;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease 0.1s;
}

.product-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.product-card:hover .product-image-secondary {
    opacity: 1;
}

.add-to-cart-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s ease 0.1s, opacity 0.5s ease 0.1s, background-color 0.3s ease;
    border-radius: 0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    z-index: 10;
    background: rgba(40, 40, 40, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--clr-white);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card:hover .add-to-cart-hover {
    transform: translateY(0);
    opacity: 1;
}

.add-to-cart-hover:hover {
    background: rgba(40, 40, 40, 0.6);
}

/* On mobile, show button always or just let them click through */
@media (max-width: 768px) {
    .add-to-cart-hover {
        display: none;
    }
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 400;
}

.product-price {
    font-size: 1rem;
    color: var(--clr-soft-black);
}

/* === BANNER SECTION === */
.banner-section {
    border-bottom: 1px solid var(--clr-border);
}

.banner-container {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .banner-container {
        flex-direction: row;
        align-items: stretch;
    }
}

.banner-text {
    flex: 1;
    padding: 60px 24px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .banner-text {
        padding: 80px 60px;
        text-align: left;
        align-items: flex-start;
    }
    
    .banner-text h2 {
        font-size: 1.8rem;
    }
}

.banner-text h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--clr-soft-black);
}

.banner-text p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--clr-soft-black);
    margin-bottom: 32px;
}

.banner-btn {
    font-weight: 300;
    border-width: 1px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 22px;
    font-size: 0.85rem;
    max-width: max-content;
    border-radius: 0;
}

.collection-link-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 0px; /* pull extremely close on mobile */
}

@media (min-width: 768px) {
    .collection-link-wrapper {
        margin-top: 24px;
    }
}

.banner-image {
    flex: 1;
    min-height: 400px;
    position: relative;
}

@media (min-width: 768px) {
    .banner-image {
        min-height: 600px;
    }
}

.banner-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .banner-image {
        min-height: 300px;
    }
}

/* === STORY SECTION === */
.story-section {
    background-color: var(--clr-white);
}

.story-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .story-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        text-align: center;
    }
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.story-icon {
    width: 48px;
    height: 48px;
    background-color: var(--clr-dusty-rose-light);
    color: var(--clr-dusty-rose);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.story-item h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 300;
}

.story-item p {
    font-weight: 300;
    line-height: 1.6;
}

/* === NEWSLETTER === */
.newsletter {
    background-color: var(--clr-soft-black);
    color: var(--clr-white);
    padding: 80px 24px;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 16px;
    font-size: 2rem;
}

.newsletter p {
    margin-bottom: 32px;
    color: #aaa;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #444;
    background: transparent;
    color: var(--clr-white);
    border-radius: 4px;
    font-family: var(--font-primary);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--clr-dusty-rose);
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
}


/* === INSTAGRAM GRID === */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === FOOTER === */
.site-footer {
    background-color: var(--clr-white);
    padding: 60px 0 20px;
    border-top: 1px solid var(--clr-border);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-logo {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.footer-col h4 {
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a:hover {
    color: var(--clr-dusty-rose);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 0;
    border-top: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.payment-icons {
    display: flex;
    gap: 12px;
}

.payment-icon {
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #f9f9f9;
}


/* === FILTERS (Collection Page) === */
.collection-header {
    margin-bottom: 40px;
    text-align: center;
}

.collection-header h1 {
    margin-bottom: 16px;
    font-size: 2.5rem;
}

.filters-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 16px;
}

.filter-group {
    display: flex;
    gap: 16px;
}

select {
    padding: 8px 12px;
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    background: var(--clr-white);
    font-family: var(--font-primary);
    cursor: pointer;
    outline: none;
}

select:focus {
    border-color: var(--clr-soft-black);
}

/* === SINGLE PRODUCT PAGE === */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.product-gallery {
    display: grid;
    gap: 16px;
}

.product-gallery img {
    width: 100%;
    border-radius: 8px;
    background: #f0f0f0;
}

.product-info-detail {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.product-info-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .product-info-detail h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
}

.product-info-detail .price {
    font-size: 1.5rem;
    color: var(--clr-soft-black);
    margin-bottom: 8px;
}

.moms-info {
    font-size: 0.85rem;
    color: var(--clr-warm-grey);
    margin-bottom: 32px;
    display: block;
}

.product-description {
    margin-bottom: 32px;
    color: #444;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    width: max-content;
    margin-bottom: 24px;
}

.qty-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 1.2rem;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    pointer-events: none;
}

.shipping-snippet {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--clr-border);
    color: #555;
    font-size: 0.9rem;
}

/* === CART PAGE === */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .cart-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--clr-border);
}

.cart-item-img {
    width: 100px;
    height: 125px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--clr-warm-grey);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.remove-btn:hover {
    color: var(--clr-soft-black);
}

.cart-summary {
    background-color: var(--clr-white);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--clr-border);
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 1rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--clr-border);
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.empty-cart {
    text-align: center;
    padding: 60px 0;
}

/* === CHECKOUT PAGE === */
.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .checkout-wrapper {
        grid-template-columns: 3fr 2fr;
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--clr-soft-black);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method-label:hover {
    border-color: var(--clr-soft-black);
}

.payment-method-label input:checked+span {
    font-weight: 500;
}

.legal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 32px 0;
    font-size: 0.9rem;
}

.legal-checkbox input {
    margin-top: 4px;
}


/* === LEGAL PAGES (Prose) === */
.prose {
    max-width: 800px;
    margin: 0 auto;
}

.prose h1 {
    margin-bottom: 32px;
}

.prose h2 {
    margin: 32px 0 16px;
    font-size: 1.5rem;
}

.prose p {
    margin-bottom: 16px;
    color: #444;
}

.prose ul {
    margin-bottom: 16px;
    padding-left: 24px;
    list-style: disc;
    color: #444;
}

.prose li {
    margin-bottom: 8px;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.toast {
    background-color: var(--clr-soft-black);
    color: var(--clr-white);
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* === GALLERY & LIGHTBOX === */
.product-gallery-main {
    width: 100%;
    aspect-ratio: 4/5;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.product-gallery-main img,
.product-gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.thumbnail-box {
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.thumbnail-box.active {
    border-color: var(--clr-dusty-rose);
}

.thumbnail-box:hover {
    border-color: #aaa;
}

.thumbnail-box img,
.thumbnail-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* LIGHTBOX overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: white;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-content-box {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content-box img,
.lightbox-content-box video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* === PAGE TRANSITIONS === */
#app-root {
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

#app-root.page-out {
    opacity: 0;
    transform: translateY(12px);
}

#app-root.page-in {
    opacity: 1;
    transform: translateY(0);
}

/* === MOBILE RESPONSIVE POLISH === */

button, 
.btn, 
.desktop-nav a, 
.mobile-menu a, 
select,
.payment-method-label,
#cm-floating-icon,
.cm-close-btn,
.close-menu-btn,
.mobile-menu-btn {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section a > svg {
    padding: 8px;
    background: transparent;
    border-radius: 4px;
    min-height: 44px;
    min-width: 44px;
}

html, body {
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(1.5rem, 8vw, 3rem);
        word-wrap: break-word;
        line-height: 1.2;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .product-detail-grid {
        padding: 0 16px;
    }

    .home-product-grid.product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 12px;
    }

    .product-grid {
        gap: 16px;
        padding: 0 12px;
    }

    .product-card {
        min-width: 0;
        width: 100%;
    }

    .product-image-wrapper {
        margin-bottom: 6px;
    }

    .product-info h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .add-to-cart-hover {
        font-size: 0.85rem;
        padding: 8px;
    }

    .prose h1 { font-size: 2rem; }
    .prose h2 { font-size: 1.5rem; }
    
    .footer-container {
        text-align: center;
        gap: 32px;
    }
    .footer-bottom {
        gap: 24px;
    }
    .payment-icons {
        justify-content: center;
    }
    
    .cm-modal {
        max-height: 85vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .filter-group {
        width: 100%;
        gap: 8px;
    }
    select {
        width: 100%;
        flex: 1;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    .newsletter-form button {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0; 
    }
    .checkout-wrapper .btn,
    .cart-summary .btn {
        width: 100%;
        display: block;
    }
    
    .cm-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    .cm-banner-actions button {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
/* === NEW CUSTOM HERO LAyOUT === */
.custom-hero {
    height: 90vh;
    min-height: 600px;
    margin-top: 0;
}
.custom-hero .hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.custom-hero .hero-text-img {
    max-width: 80vw;
    width: 600px;
    height: auto;
    filter: drop-shadow(0px 4px 12px rgba(255,255,255,0.4));
}
.custom-hero .hero-cta-btn {
    margin-top: 40px;
    padding: 16px 40px;
    font-size: 1.1rem;
}
@media(max-width: 768px) {
    .custom-hero {
        height: auto;
        min-height: auto;
        aspect-ratio: 4/5;
    }
    .custom-hero .hero-bg-img {
        object-fit: cover;
    }
    .custom-hero .hero-text-img {
        width: 90vw;
    }
}

/* === HERO === */
.hero {
    height: 80vh;
    min-height: 600px;
    background-color: #f7f7f7;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--clr-white);
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 0 24px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 32px;
}

/* === HERO SLIDESHOW === */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    background-color: #dcdcdc;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
}
.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.3s;
}
.slide-dot.active {
    background: rgba(0,0,0,0.6);
}
.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}
@media(max-width: 768px) {
    .hero-slideshow {
        height: auto;
        min-height: auto;
        aspect-ratio: 4/5;
    }
    .hero-slide {
        object-fit: cover;
    }
}

/* === ASTRID FRANK STYLE SLIDESHOW === */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    background-color: #f7f7f7;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}
.hero-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}
.hero-overlay-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-overlay-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 1;
    transform: translateY(0);
}
.hero-overlay-btn {
    display: inline-block;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 32px;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}
.hero-overlay-btn:hover {
    background: #fff;
    color: #000;
}
.slide-bars {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}
.slide-bar {
    width: 40px;
    height: 3px;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
}
.slide-bar.active {
    background: rgba(255,255,255,1);
}
@media(max-width: 768px) {
    .hero-slideshow {
        height: 75vh;
        min-height: 500px;
    }
    .hero-overlay-title {
        font-size: 2.2rem;
    }
    .hero-overlay-btn {
        font-size: 0.9rem;
        padding: 10px 24px;
    }
    .hero-slide img {
        object-fit: cover;
    }
}

@media(max-width: 768px) {
    #home-featured-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        flex-wrap: nowrap;
        gap: 16px;
        padding-bottom: 16px;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
    #home-featured-grid::-webkit-scrollbar {
        display: none;
    }
    #home-featured-grid .product-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

.hide-on-desktop { display: none !important; }
.hide-on-mobile { display: block; }
@media(max-width: 768px) {
    .hide-on-desktop { display: block !important; }
    .hide-on-mobile { display: none !important; }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
