/* Utility Classes */
.hidden {
    display: none !important;
}

:root {
    /* Colors */
    --color-bg: #FCFDFD;
    /* Very subtle off-white */
    --color-text: #4A4A4A;
    --color-heading: #2C3E50;

    --color-primary: #D8A7B1;
    /* Dusty Pink */
    --color-primary-dark: #C08A95;

    --color-secondary: #95A792;
    /* Sage Green */
    --color-secondary-dark: #7D8F7A;

    --color-accent: #F9F3F0;
    /* Light background accent */
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    background-image: radial-gradient(#F5F7FA 1px, transparent 1px);
    background-size: 20px 20px;
    /* Subtle texture to fix "boring" */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(216, 167, 177, 0.25);
    /* Softer colored shadow */
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 167, 177, 0.6);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-heading);
    color: var(--color-heading);
    /* High contrast on white */
}

.btn-secondary:hover {
    background-color: var(--color-heading);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
    background-color: var(--color-heading);
    color: white;
}

/* --- Header --- */
.site-header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 280px;
    margin-left: -20px;
    transition: all 0.3s ease;
    width: auto;
    display: block;
}

/* Resize logo on scroll */
.site-header.scrolled .header-logo-img {
    height: 120px;
}

@media (max-width: 768px) {
    .header-logo-img {
        height: 120px;
    }

    .site-header.scrolled .header-logo-img {
        height: 80px;
    }
}

/* Invert logo to white when header is transparent (on hero) */
.site-header:not(.solid) .header-logo-img {
    filter: brightness(0) invert(1);
}

.footer-logo {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo-img {
    height: 140px;
    width: auto;
    padding: 5px;
    filter: brightness(0) invert(1);
    /* Make it white in the dark footer */
}

/* Solid Header Variant for Sub-pages */
/* Solid Header (Color Only) */
.site-header.solid {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 5px 0;
    /* Compact "curtain" */
}

.site-header.solid .header-logo-img {
    height: 140px;
    /* Smaller logo on subpages */
}

/* Scrolled Header (Size Only) */
.site-header.scrolled {
    padding: 10px 0;
}

.site-header.solid .logo {
    color: var(--color-heading);
}

.site-header.solid .main-nav a {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #555;
    padding: 5px 15px;
    /* Smaller padding */
}

.site-header.solid .main-nav a:hover,
.site-header.solid .main-nav a.active {
    color: var(--color-primary);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.site-header.solid .btn-cart {
    background: transparent;
    border-color: #eee;
    box-shadow: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* --- Hero --- */
.hero {
    height: 90vh;
    /* Almost full screen */
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('./hero_flowers_background.png');
    /* Will use generated image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero .subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
}

.hero h1 em {
    font-style: italic;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- About --- */
.about-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-white);
}

.section-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-desc {
    color: #888;
    font-style: italic;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-item h3 {
    color: var(--color-secondary-dark);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* --- Shop --- */
.shop-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-accent);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 4px;
    /* Slightly sharper for editorial look */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    /* Very subtle, deep shadow */
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.img-wrapper {
    height: 300px;
    overflow: hidden;
    background-color: #eee;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .img-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.product-info .price {
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* --- Contact --- */
.contact-section {
    padding: var(--spacing-lg) 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info ul {
    list-style: none;
    margin-top: 30px;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.contact-info li strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #555;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-primary);
    border-color: transparent;
}

.full-width {
    width: 100%;
}

/* --- Footer (Mega-Footer) --- */
footer {
    padding: 80px 0 40px;
    background-color: var(--color-heading);
    color: white;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-links-footer a {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.social-links-footer a:hover {
    background: white;
    color: var(--color-heading);
    border-color: white;
}

.designer-credit {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links-footer {
        justify-content: center;
    }
}

/* --- Mobile --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
    .site-header {
        position: absolute;
        background-color: transparent;
    }

    .hero {
        margin-top: 0;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 100;
        box-shadow: none;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        transform: translateY(20px);
        transition: transform 0.5s ease;
    }

    .main-nav.open ul {
        transform: translateY(0);
    }

    /* Premium Typography for Menu */
    .main-nav a {
        font-family: var(--font-heading);
        font-size: 2rem;
        font-weight: 500;
        color: var(--color-heading);
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        position: relative;
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: var(--color-heading);
        /* Dark text for visibility */
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        outline: none;
    }

    /* Underline animation for premium feel */
    .main-nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 50%;
        background-color: var(--color-primary);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .main-nav a:hover::after {
        width: 100%;
    }

    /* Hide cart button in main menu for cleaner look, assume header cart icon */
    .btn-cart {
        font-size: 1.2rem;
        border: 2px solid var(--color-heading);
        color: var(--color-heading);
        padding: 10px 30px;
        border-radius: 50px;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 40px;
        height: 40px;
        background: white;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 110;
        /* Above nav */
        position: fixed;
        top: 20px;
        right: 20px;
        align-items: center;
    }

    .mobile-menu-btn span {
        width: 30px;
        height: 2px;
        background: var(--color-heading);
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }
}

/* --- Sub-page Styles --- */

.page-hero {
    height: 150px;
    background: url('images/hero_flowers_background.png') center/cover no-repeat;
    /* Fixed header sits on top, so we don't need negative margin */
    margin-top: 0;
    padding-top: 85px;
    margin-bottom: 30px;
    position: relative;
}

/* Add a subtle overlay to the hero to make logo pop */
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
}

.page-hero h1 {
    display: none;
    /* Hide text as requested "inscription not needed" */
}

.page-hero h1 {
    display: none;
}

/* Shop Layout polish */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
    padding-bottom: 100px;
}

.sidebar {
    background: #fff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: sticky;
    top: 120px;
    border-right: 1px solid #eee;
    height: fit-content;
}

.sidebar h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-accent-light);
    color: var(--color-heading);
}

.filter-btn {
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    color: #666;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--color-primary);
    padding-left: 10px;
    border-bottom: 1px solid #eee;
}

/* About Polish */
.about-text {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Contact Polish */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-details li {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding: 15px;
    background: #fdfdfd;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

@media (max-width: 768px) {

    /* Fix Solid Header Logo on Mobile */
    .site-header.solid .header-logo-img {
        height: 120px;
        /* Reverted to larger size */
    }

    .page-hero {
        height: 100px;
        /* Further reduced */
        padding-top: 0;
        /* Remove padding if we want it tighter */
        margin-bottom: 0;
        /* Remove bottom margin */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .shop-layout {
        margin-top: 0 !important;
        /* Force remove top margin on mobile */
        padding-top: 20px !important;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid #eee;
        position: static;
        margin-bottom: 40px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

@media (max-width: 768px) {

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* --- Breadcrumbs (Context) --- */
.breadcrumbs-strip {
    background-color: #fcfcfc;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    margin-bottom: 40px;
    /* Space before content */
    font-size: 0.85rem;
    color: #888;
}

.breadcrumbs-strip .container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs-strip a {
    color: #888;
    transition: color 0.2s;
}

.breadcrumbs-strip a:hover {
    color: var(--color-primary);
}

.breadcrumbs-strip span {
    color: var(--color-text);
    font-weight: 500;
}

/* --- Animations (Delight) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-entrance {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    /* Star invisible */
}



/* --- Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    z-index: 1001;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
}

.modal-subtitle {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #666;
}

.addons-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.addon-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Changed to flex-start for image layout */
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.addon-option:hover {
    border-color: var(--color-primary);
}

.addon-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    background-color: #f0f0f0;
}

.addon-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    margin-right: 15px;
}

.addon-label {
    flex-grow: 1;
    font-weight: 500;
}

.addon-price {
    font-weight: 600;
    color: var(--color-heading);
}

.total-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.modal-footer {
    padding: 20px 25px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-radius: 0 0 8px 8px;
}

/* --- Success Modal Specific --- */
.success-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-heading);
    margin-bottom: 10px;
}

.payment-box {
    background: #fdf2f8;
    border: 1px dashed var(--color-primary-light);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.payment-box h4 {
    margin-bottom: 10px;
    color: var(--color-primary-dark);
}

.payment-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 5px;
}

.success-actions {
    margin-top: 30px;
}

.text-dark {
    color: #333 !important;
    border-color: #ddd !important;
}

/* --- Cart Button --- */
.btn-cart {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #333;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-cart:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cart-count {
    background-color: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Size Selection */
.size-selection-section {
    margin-bottom: 20px;
}

.size-options-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    flex: 1;
    min-width: 90px;
    text-align: center;
    transition: all 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.size-option:hover {
    border-color: var(--color-primary);
    background: #fff5f7;
}

.size-option.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.size-option .size-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.size-option .size-price {
    display: block;
    font-size: 0.85rem;
    margin-top: 4px;
    opacity: 0.9;
}

/* Make active white text */
.size-option.active .size-price,
.size-option.active .size-name {
    color: white;
}

/* --- Cart Modal Items --- */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.cart-item-addons {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--color-primary-dark);
}

.remove-btn {
    background: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    color: #999;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    margin-left: auto;
    align-self: flex-start;
}

.remove-btn:hover {
    color: #f00;
}

/* --- Checkout Styles --- */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.payment-option:hover {
    border-color: var(--color-primary);
}

.payment-option input {
    margin-right: 12px;
    accent-color: var(--color-primary);
}

.pay-label {
    font-weight: 500;
}





@media (max-width: 480px) {
    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
        margin-left: 0;
    }

    /* Reverse order visually if desired, but column is fine for now */
}

/* --- Mobile Visual Polish --- */
@media (max-width: 500px) {

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        /* 2-column grid for better shopping experience */
    }

    .product-card {
        box-shadow: none;
        /* Remove card shadow on mobile for cleaner flat look */
        background: transparent;
    }

    .img-wrapper {
        height: auto;
        aspect-ratio: 3/4;
        /* Standard editorial aspect ratio */
        border-radius: 4px;
        margin-bottom: 8px;
    }

    .product-info {
        padding: 5px 0;
        /* Remove side padding */
        text-align: left;
        /* Editorial alignment */
    }

    .product-info h3 {
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 2px;
        min-height: auto;
    }

    .product-info .price {
        font-size: 0.9rem;
        color: #666;
        /* Subtler price */
        font-weight: 400;
    }

    /* Hide 'Customize' button on grid to declutter, user taps image */
    /* .product-info .btn-secondary {
        display: none;
    } */

    .hero h1 {
        font-size: 2rem;
    }

    /* Adjust form inputs to prevent zoom (16px rule) */
    .form-group input,
    .form-group textarea,
    select {
        font-size: 16px;
    }

    /* Improve Filters on Shop Page */
    .sidebar {
        padding: 15px;
        margin-bottom: 30px;
    }

    .filter-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-list li {
        width: auto;
        margin-bottom: 0;
    }

    .filter-btn {
        background: #f5f5f5;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.9rem;
        border: 1px solid transparent;
        text-align: center;
    }

    .filter-btn.active {
        background: var(--color-primary);
        color: #2C3E50 !important;
        /* Force dark text color to fix invisible text bug */
        font-weight: 600;
    }

    /* Mobile Logo Polish */
    .logo {
        font-size: 1.8rem;
        /* Smaller, more elegant */
        border: none;
        /* Cleaner look without box */
        padding: 0;
        letter-spacing: 1px;
    }

    .site-header.solid .logo {
        border: none;
    }
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--color-primary);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--color-heading);
}

.toast-msg {
    font-size: 0.85rem;
    color: #666;
}

/* --- Styled Date & Time Inputs (Premium) --- */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group.half-width {
    flex: 1;
    margin-bottom: 0;
}

.styled-date-input,
.styled-time-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: linear-gradient(145deg, #ffffff, #fafafa);
    color: var(--color-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.styled-date-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23D8A7B1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    padding-right: 48px;
}

.styled-time-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23D8A7B1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    padding-right: 48px;
}

.styled-date-input:hover,
.styled-time-select:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(216, 167, 177, 0.15);
}

.styled-date-input:focus,
.styled-time-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(216, 167, 177, 0.2);
    background: #fff;
}

/* Calendar popup styling (Webkit browsers) */
.styled-date-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
}

/* Time select option styling */
.styled-time-select option {
    padding: 12px;
    background: #fff;
    color: var(--color-heading);
}

/* Responsive for form row */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half-width {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* --- Custom Flatpickr Theme (Premium Pink) --- */
.flatpickr-calendar {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
    font-family: var(--font-body);
    background: #fff;
    overflow: hidden;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
    display: none;
}

.flatpickr-months {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 12px 0;
    border-radius: 16px 16px 0 0;
}

.flatpickr-months .flatpickr-month {
    color: white;
    fill: white;
}

.flatpickr-current-month {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent;
    color: white;
    font-weight: 500;
}

.flatpickr-current-month input.cur-year {
    color: white;
    font-weight: 500;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: white;
    color: white;
    padding: 8px 12px;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    fill: rgba(255, 255, 255, 0.7);
}

.flatpickr-weekdays {
    background: #fafafa;
    padding: 8px 0;
}

.flatpickr-weekday {
    color: var(--color-heading);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flatpickr-days {
    padding: 8px;
}

.flatpickr-day {
    color: var(--color-text);
    border-radius: 50%;
    font-weight: 400;
    transition: all 0.2s ease;
    margin: 2px;
    max-width: 36px;
    height: 36px;
    line-height: 36px;
}

.flatpickr-day:hover {
    background: var(--color-accent);
    border-color: transparent;
}

.flatpickr-day.today {
    border-color: var(--color-primary);
    background: transparent;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(216, 167, 177, 0.4);
}

.flatpickr-day.selected:hover {
    background: var(--color-primary-dark) !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #ccc;
    background: transparent;
}

.flatpickr-day.flatpickr-disabled {
    text-decoration: line-through;
}

/* Time picker styling */
.flatpickr-time {
    border-top: 1px solid #eee;
    padding: 10px;
}

.flatpickr-time input {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-heading);
}

.flatpickr-time .numInputWrapper:hover {
    background: var(--color-accent);
}

/* --- Mobile Compatibility Fixes --- */
@media screen and (max-width: 768px) {

    /* Prevent iOS zoom on focus by forcing 16px font size */
    input[type="text"],
    input[type="tel"],
    textarea,
    .styled-date-input,
    .styled-time-select,
    select {
        font-size: 16px !important;
    }

    /* Ensure Flatpickr doesn't cause horizontal overflow */
    .flatpickr-calendar {
        max-width: 90vw;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}