/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Italianno&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #F7F2D7;
    color: #0f1633;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Headers - Cinzel Font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: #9f7f52;
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

/* Tagline - Italianno Font */
.tagline {
    font-family: 'Italianno', cursive;
    font-size: 2.5rem;
    color: #D7C48B;
    text-align: center;
}

/* Navbar Styles */
.navbar-celeste {
    background-color: #0f1633 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 60px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #9f7f52;
    z-index: 1000;
}

.navbar-celeste .navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.navbar-celeste .logo-img {
    height: 70px;
    width: auto;
    position:relative;
    top: 0px;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar-celeste .nav-link {
    font-family: 'Cinzel', serif;
    color: #F7F2D7 !important;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0.5rem;
    line-height: 60px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

    .navbar-celeste .nav-link:hover,
    .navbar-celeste .nav-link.active {
        color: #D7C48B !important;
    }

/* Footer Styles */
.footer-celeste {
    background-color: #0f1633;
    color: #F7F2D7;
    padding: 3rem 0 1rem 0;
    margin-top: 5rem;
}

    .footer-celeste h5 {
        color: #D7C48B;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

.footer-celeste p, .footer-celeste a {
    color: #F7F2D7;
    text-decoration: none;
    font-size: 0.9rem;
}

    .footer-celeste a:hover {
        color: #D7C48B;
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 248, 240, 0.2);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
}

/* Floating Snowflakes Animation */
.snowflake {
    position: fixed;
    top: -50px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
    animation: fall linear infinite, rotate 3s linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0f1633;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

    .scroll-to-top:hover {
        background-color: #D7C48B;
        transform: translateY(-5px);
    }

.scroll-to-top i {
    color: #F7F2D7;
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #F7F2D7 0%, #D7C48B 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .tagline {
    font-size: 3rem;
    margin-bottom: 2rem;
}

/* Product Cards */
.product-card {
    background: white;
    border: 2px solid #9f7f52;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card-body {
    padding: 1.5rem;
}

.product-card-title {
    font-family: 'Cinzel', serif;
    color: #0f1633;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    color: #9f7f52;
    font-weight: bold;
    margin: 1rem 0;
}

.category-badge {
    background-color: #0f1633;
    color: #F7F2D7;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-celeste {
    background-color: #0f1633;
    color: #F7F2D7;
    border: 2px solid #0f1633;
    padding: 0.8rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-celeste:hover {
    background-color: #9f7f52;
    border-color: #9f7f52;
    color: #0f1633;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline-celeste {
    background-color: transparent;
    color: #0f1633;
    border: 2px solid #0f1633;
    padding: 0.8rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-celeste:hover {
    background-color: #0f1633;
    color: #F7F2D7;
}

/* Cart Customization Section */
.customization-section {
    background: white;
    border: 2px solid #9f7f52;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.customization-section h4 {
    color: #0f1633;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.form-label-celeste {
    font-weight: 600;
    color: #0f1633;
    margin-bottom: 0.5rem;
}

.form-control-celeste {
    border: 2px solid #D7C48B;
    border-radius: 8px;
    padding: 0.8rem;
    font-family: 'Montserrat', sans-serif;
}

.form-control-celeste:focus {
    border-color: #9f7f52;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Discount Banner */
.discount-banner {
    background: linear-gradient(135deg, #9f7f52 0%, #D7C48B 100%);
    color: #0f1633;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    margin: 1rem 0;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* Thank You Page */
.thank-you-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.thank-you-card {
    background: white;
    border: 3px solid #9f7f52;
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    max-width: 600px;
}

.thank-you-card h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.thank-you-snowflake {
    font-size: 4rem;
    color: #9f7f52;
    opacity: 0.7;
    animation: rotate 5s linear infinite;
}

/* Admin Buttons */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-admin-edit {
    background-color: #ffc107;
    color: #0f1633;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
}

.btn-admin-delete {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
}

.btn-admin-add {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Related Products Section */
.related-products {
    background: linear-gradient(to bottom, rgba(244, 228, 193, 0.3), transparent);
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 2px solid #9f7f52;
}

.related-products h3 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Tier Selection */
.tier-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tier-option {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    border: 2px solid #9f7f52;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tier-option:hover, .tier-option.selected {
    background-color: #9f7f52;
    color: white;
}

/* Price Note */
.price-note {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 0.8rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #856404;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 248, 240, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #D7C48B;
    border-top-color: #9f7f52;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* -------------------------------------
   MULTI-LEVEL HOVER DROPDOWN NAV
   (Does not affect standard navbar layout)
   ------------------------------------- */

/* Make the list item an anchor for the dropdown without changing its size/shape */
.menu-dropdown {
    position: relative;
}

/* Base Dropdown Menu Styles - Hidden by default */
.dropdown-menu-custom {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%; /* Directly below the navbar link */
    left: 0;
    background-color: #0f1633; /* Matches navbar Navy theme */
    border-top: 2px solid #9f7f52; /* Gold border line to separate */
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 240px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.2s ease-in-out;
}

/* Show the menu on hover of the parent li */
.menu-dropdown:hover > .dropdown-menu-custom,
.menu-dropdown-submenu:hover > .dropdown-menu-custom {
    visibility: visible;
    opacity: 1;
}

/* Sub-Menu Positioning (Cakes, Cupcakes, Themes) */
.menu-dropdown-submenu {
    position: relative; 
}

/* The second level list opens to the right */
.menu-dropdown-submenu .dropdown-menu-custom {
    top: 0;
    left: 100%; /* Pops out exactly to the right border */
    margin-top: -2px; /* Aligns perfectly with the parent item */
    border-top: none;
    border-left: 2px solid #9f7f52; /* Separator for sub menu */
}

/* Styling the Links Inside the Dropdown */
.dropdown-menu-custom li {
    border-bottom: 1px solid rgba(159, 127, 82, 0.15); /* Subtle gold divider */
    display: block;
}

.dropdown-menu-custom li:last-child {
    border-bottom: none;
}

.dropdown-menu-custom li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-family: 'Cinzel', serif;
    color: #F7F2D7; /* Cream text */
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Hover effect for the dropdown items */
.dropdown-menu-custom li a:hover {
    background-color: #9f7f52; /* Turns gold */
    color: #0f1633; /* Dark text */
    padding-left: 25px; /* Slight indent sweeping animation */
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section .tagline {
        font-size: 2rem;
    }

    .navbar-celeste .nav-link {
        margin: 0.5rem 0;
    }
}
/* Céleste Promo Modal Styles */
.custom-promo-modal {
    background-color: #F7F2D7;
    border: 5px solid #9f7f52;
    border-radius: 8px; /* Slight bevel for a softer luxury look */
}

    .custom-promo-modal .modal-title {
        font-family: 'Cinzel', serif;
        color: #9f7f52;
        font-weight: bold;
        font-size: 2rem;
    }

    .custom-promo-modal .promo-subtitle {
        font-family: 'Montserrat', sans-serif;
        color: #0f1633;
        font-size: 0.95rem;
        font-weight: 500;
    }

.custom-promo-input {
    background-color: #ffffff; /* Or transparent */
    border: 1px solid #9f7f52;
    font-family: 'Montserrat', sans-serif;
    color: #0f1633;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    box-shadow: none;
}

    .custom-promo-input::placeholder {
        color: rgba(15, 22, 51, 0.5);
        font-size: 0.9rem;
    }

    /* Elegant focus state */
    .custom-promo-input:focus {
        background-color: #ffffff;
        border-color: #0f1633;
        box-shadow: 0 0 0 0.2rem rgba(15, 22, 51, 0.15);
        outline: 0;
    }

.custom-promo-btn {
    background-color: #0f1633;
    color: #F7F2D7;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    letter-spacing: 1.5px;
    border: none;
    padding: 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

    .custom-promo-btn:hover {
        background-color: #1a2656;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(15, 22, 51, 0.2);
    }

/* CSS Filter to match Bootstrap's SVG close cross to the Gold hex #9f7f52 */
.custom-promo-modal .custom-close-btn {
    filter: invert(53%) sepia(20%) saturate(859%) hue-rotate(345deg) brightness(96%) contrast(89%);
    opacity: 0.8;
}

    .custom-promo-modal .custom-close-btn:hover {
        opacity: 1;
    }