@font-face {
    font-family: 'HeadingFont';
    src: url('../font/heading/HeadingFont.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'bodyfont';
    src: url('../font/body/FriendlySans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Beautiful custom luxury scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #fff0f3;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1f2446 0%, #dfb350 100%);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #313970 0%, #ffd700 100%);
}

body {
    padding-top: 70px;
    font-family: 'bodyfont', sans-serif;
    color: #2c121e;
    background: 
        radial-gradient(circle at top, rgba(31, 36, 70, 0.06) 0%, transparent 50%),
        radial-gradient(circle at bottom right, rgba(223, 179, 80, 0.04) 0%, transparent 40%),
        #fffafc;
    background-attachment: fixed;
    overflow-x: hidden;
}

body .category-section img {
    width: 100px;
    height: auto;
}

/* Page titles */
.display-6, .display-5 {
    color: #1f2446;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(31, 36, 70, 0.05);
}

.text-white-50 {
    color: #6a535c !important;
}

.text-white {
    color: #2c121e !important;
}

.category-section,
.latest-products,
.why-choose-us,
.customer-reviews,
.newsletter-signup {
    color: #2c121e;
}

/* Premium High-Contrast Light Cards */
.info-card,
.review-card,
.newsletter-card,
.about-hero-card,
.about-card,
.about-stat {
    background: #ffffff;
    border: 1px solid rgba(31, 36, 70, 0.12);
    border-radius: 20px;
    color: #2c121e;
    box-shadow: 0 8px 24px rgba(31, 36, 70, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.info-card:hover,
.review-card:hover,
.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(31, 36, 70, 0.25);
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(31, 36, 70, 0.08);
}

/* Luxurious Product Cards */
.product-card {
    background: #ffffff;
    border: 1px solid rgba(31, 36, 70, 0.12);
    border-radius: 20px;
    overflow: hidden;
    color: #2c121e;
    box-shadow: 0 8px 25px rgba(31, 36, 70, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(31, 36, 70, 0.3);
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(31, 36, 70, 0.08), 0 5px 15px rgba(31, 36, 70, 0.02);
}

.product-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    background: #fffcfd;
    padding: 10px;
    transition: all 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .badge {
    background: rgba(31, 36, 70, 0.08);
    color: #1f2446;
    border: 1px solid rgba(31, 36, 70, 0.2);
    font-weight: 500;
}

/* Product Detail main container override to keep it glowing and premium on light background */
.sticky-md-top .card.bg-dark {
    background: #ffffff !important;
    border: 1px solid rgba(31, 36, 70, 0.12) !important;
    box-shadow: 0 10px 40px rgba(31, 36, 70, 0.04) !important;
}

/* Elegant Category Circle Cards */
.category-card {
    background: #ffffff;
    border: 1px solid rgba(31, 36, 70, 0.12);
    border-radius: 20px;
    color: #2c121e;
    min-height: 120px;
    padding: 18px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 6px 20px rgba(31, 36, 70, 0.03);
}

.category-card:hover {
    transform: translateY(-5px);
    background: rgba(31, 36, 70, 0.04);
    border-color: rgba(223, 179, 80, 0.5); /* gold highlights */
    box-shadow: 0 12px 28px rgba(31, 36, 70, 0.08);
    color: #1f2446;
}

.category-icon {
    font-size: 1.6rem;
    color: #1f2446;
    transition: transform 0.3s;
}

.category-card:hover .category-icon {
    color: #dfb350;
    transform: scale(1.1) rotate(5deg);
}

/* Crimson Burgundy Headers with Gold accents */
h1, h2, h3, h4, h5, h6 {
    color: #1f2446;
    font-family: 'HeadingFont', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hover-warning:hover {
    color: #1f2446 !important;
}

/* Frosted Luxury Glass Navbar - #2c1623 THEMED */
.navbar {
    background: #2c1623 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    min-height: 70px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
}

.navbar .text-dark,
.navbar .navbar-icon-link,
.navbar i {
    color: #ffffff !important;
    transition: color 0.25s, transform 0.2s;
}

.navbar .text-dark:hover,
.navbar .navbar-icon-link:hover {
    color: #dfb350 !important;
    transform: scale(1.08);
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px;
    padding: 6px 10px;
}

.navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2) !important;
}

/* Premium Offcanvas Sidenav - #2c1623 THEMED */
.offcanvas {
    background-color: #2c1623 !important;
    color: #ffffff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    color: #ffffff !important;
    font-family: 'HeadingFont', serif;
}

.offcanvas .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    border-radius: 10px;
    transition: all 0.25s ease;
    margin-bottom: 4px;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #dfb350 !important;
    padding-left: 20px !important;
}

.offcanvas .btn-close {
    filter: invert(1) grayscale(1) brightness(2) !important;
    opacity: 1;
}

/* Footer Section - #2c1623 THEMED */
footer {
    background: #2c1623 !important;
    color: #ffffff !important;
    border-top: 4px solid #dfb350;
    box-shadow: 0 -10px 40px rgba(44, 22, 35, 0.15);
}

footer h5 {
    color: #ffffff !important;
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 28px;
    height: 2px;
    background: #dfb350;
}

footer p, footer li, footer span {
    color: rgba(255, 255, 255, 0.9) !important;
}

footer a {
    transition: all 0.25s;
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer-link-item {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.25s ease;
}

.footer-link-item:hover {
    color: #dfb350 !important;
    padding-left: 6px;
}

footer a:hover {
    color: #dfb350 !important;
    padding-left: 6px;
}

footer .bi {
    transition: all 0.25s;
    color: #ffffff !important;
}

footer .d-flex a:hover {
    transform: translateY(-4px);
    color: #dfb350 !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Form Styles - Light Theme */
.form-control,
.form-select {
    background: #ffffff !important;
    border: 1.5px solid rgba(31, 36, 70, 0.15) !important;
    color: #2c121e !important;
    border-radius: 12px;
    padding: 10px 16px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.form-control::placeholder {
    color: #a0848f !important;
}

.form-control:focus,
.form-select:focus {
    background: #ffffff !important;
    border-color: #1f2446 !important;
    box-shadow: 0 0 10px rgba(31, 36, 70, 0.1) !important;
    outline: none;
    color: #2c121e !important;
}

/* Buttons and Interactive Accessories */
.btn-warning {
    background: linear-gradient(135deg, #dfb350 0%, #ecd081 50%, #dfb350 100%) !important;
    border: none !important;
    color: #1a030f !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 15px rgba(223, 179, 80, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(223, 179, 80, 0.4) !important;
    filter: brightness(1.05);
}

.btn-outline-warning {
    border: 1.5px solid #1f2446 !important;
    background: transparent !important;
    color: #1f2446 !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    padding: 8px 20px !important;
    transition: all 0.3s ease !important;
}

.btn-outline-warning:hover {
    background: rgba(31, 36, 70, 0.05) !important;
    color: #1f2446 !important;
    border-color: #1f2446 !important;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 1.5px solid rgba(31, 36, 70, 0.2) !important;
    background: #ffffff !important;
    color: #1f2446 !important;
    border-radius: 12px;
}

.btn-outline-light:hover {
    background: rgba(31, 36, 70, 0.05) !important;
    border-color: #1f2446 !important;
    color: #1f2446 !important;
}

/* Profile Chip */
.about-chip {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(31, 36, 70, 0.05);
    color: #1f2446;
    border: 1px solid rgba(31, 36, 70, 0.15);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Stat Blocks */
.about-stat {
    padding: 1.5rem;
    text-align: center;
}

.about-stat strong {
    display: block;
    color: #1f2446;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(31, 36, 70, 0.05);
}

/* Sweet Pink & Rose Details */
.sweet-pink-glow {
    text-shadow: 0 0 8px rgba(31, 36, 70, 0.1);
}

.text-pink-soft {
    color: #1f2446 !important;
}

/* Sizing option radio pills */
.size-option {
    border: 2px solid rgba(31, 36, 70, 0.2);
    background: #ffffff;
    color: #1f2446;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    user-select: none;
}

.size-option:hover {
    border-color: #1f2446;
    background: rgba(31, 36, 70, 0.05);
    color: #1f2446;
    transform: scale(1.08);
}

.size-option.active {
    border-color: #1f2446;
    background: linear-gradient(135deg, #1f2446 0%, #dfb350 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(31, 36, 70, 0.2);
    transform: scale(1.1);
}

/* Colors Selection Swatches */
.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.color-option:hover {
    transform: scale(1.15);
}

.color-option.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px #1f2446, 0 4px 12px rgba(0,0,0,0.15);
    transform: scale(1.15);
}

.color-option.active::after {
    content: "\F272";
    font-family: "bootstrap-icons";
    color: #fff;
    font-size: 0.85rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.color-option.light-color.active::after {
    color: #212529;
    text-shadow: none;
}

/* Purchase Call-to-Actions */
.btn-buy-now {
    background: linear-gradient(135deg, #1f2446 0%, #313970 45%, #dfb350 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    border-radius: 30px !important;
    padding: 14px 28px !important;
    box-shadow: 0 6px 20px rgba(31, 36, 70, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative;
    overflow: hidden;
}

.btn-buy-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(31, 36, 70, 0.25);
    filter: brightness(1.05);
}

.btn-buy-now:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(31, 36, 70, 0.1);
}

.btn-add-to-cart-outline {
    border: 2px solid #1f2446 !important;
    background: transparent !important;
    color: #1f2446 !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    padding: 13px 28px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(31, 36, 70, 0.03) !important;
}

.btn-add-to-cart-outline:hover {
    background: rgba(31, 36, 70, 0.05) !important;
    color: #1f2446 !important;
    border-color: #1f2446 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(31, 36, 70, 0.1) !important;
}

/* Trust Badges - Light mode */
.trust-badge-card {
    background: #ffffff;
    border: 1px dashed rgba(31, 36, 70, 0.25);
    border-radius: 20px;
    padding: 20px;
    margin-top: 30px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-badge-icon {
    font-size: 1.4rem;
    color: #1f2446;
    background: rgba(31, 36, 70, 0.06);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(31, 36, 70, 0.03);
}

/* Size Chart Modal - Light mode background */
.modal-content-pink {
    background: #ffffff !important;
    border: 1px solid rgba(31, 36, 70, 0.18) !important;
    color: #2c121e !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 40px rgba(31, 36, 70, 0.06) !important;
}

.modal-content-pink .modal-header {
    border-bottom: 1px solid rgba(31, 36, 70, 0.12);
}

.modal-content-pink .modal-footer {
    border-top: 1px solid rgba(31, 36, 70, 0.12);
}

.modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(31, 36, 70, 0.15) !important;
    color: #2c121e !important;
    border-radius: 20px !important;
}

.modal-header {
    border-bottom: 1px solid rgba(31, 36, 70, 0.1) !important;
}

.modal-footer {
    border-top: 1px solid rgba(31, 36, 70, 0.1) !important;
}

.modal-body .btn-close-white, .btn-close {
    filter: none;
}

.size-link {
    color: #1f2446;
    text-decoration: none;
    transition: all 0.25s;
    font-size: 0.85rem;
    font-weight: 500;
}

.size-link:hover {
    color: #dfb350;
    text-shadow: 0 0 8px rgba(31, 36, 70, 0.1);
}

/* Elegant Floating Luxury Toast System (Replaces disruptive alerts) */
.luxury-toast-container {
    position: fixed;
    top: 85px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.luxury-toast {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(31, 36, 70, 0.2);
    border-radius: 16px;
    color: #2c121e;
    padding: 14px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(31, 36, 70, 0.05), 0 0 15px rgba(31, 36, 70, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
}

.luxury-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.luxury-toast-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.luxury-toast-icon {
    color: #1f2446;
    font-size: 1.3rem;
}

.luxury-toast-content {
    font-size: 0.88rem;
    line-height: 1.3;
}

.luxury-toast-content strong {
    color: #1f2446;
}

.luxury-toast-btn {
    background: #1f2446;
    border: none;
    border-radius: 20px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 7px 14px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.luxury-toast-btn:hover {
    background: #dfb350;
    transform: scale(1.05);
    color: #ffffff;
}

/* Table Style matching */
.table-dark {
    background-color: #ffffff !important;
    --bs-table-bg: #ffffff !important;
    color: #2c121e !important;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    --bs-table-accent-bg: rgba(31, 36, 70, 0.03) !important;
    color: #2c121e !important;
}

/* Home Carousel Indicators styling */
.carousel-dark .carousel-indicators [data-bs-target] {
    background-color: #1f2446 !important;
}

.carousel-indicators .active {
    background: linear-gradient(135deg, #1f2446 0%, #dfb350 100%) !important;
    width: 24px !important;
}

/* Specific product detail page custom tweaks to ensure text matches light theme */
.about-card h1, .about-card h5 {
    color: #1f2446 !important;
}

.about-card p {
    color: #5c3c48 !important;
}

/* Category grid filters cards header and backgrounds */
main h1, main h5 {
    color: #1f2446 !important;
}

/* Align checkout right summary side cards to look luxurious with light modes */
aside.about-card, article.about-card {
    background: #ffffff !important;
    border: 1.5px solid rgba(31, 36, 70, 0.15) !important;
    box-shadow: 0 10px 30px rgba(31, 36, 70, 0.03) !important;
}

#checkout-items div span {
    color: #2c121e !important;
}

.hr-luxury {
    border-color: rgba(31, 36, 70, 0.1) !important;
}

/* Form product label descriptions */
label.form-label {
    color: #1f2446 !important;
    font-weight: 600;
}

/* ----------------------------------------------------
   Mobile-First Optimization Overrides (For Viewports < 576px)
   ---------------------------------------------------- */
@media (max-width: 575.98px) {
    body {
        font-size: 0.95rem;
        padding-top: 60px !important;
    }
    
    /* Elegant scaled headers on mobile for better breathing space and hierarchy */
    h1, .display-5 {
        font-size: 1.85rem !important;
        line-height: 1.25 !important;
    }
    h2, .display-6 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    h3 {
        font-size: 1.35rem !important;
    }
    h4 {
        font-size: 1.2rem !important;
    }
    
    /* Touch target optimizations for mobile boutique shopping */
    .color-option {
        width: 42px !important;
        height: 42px !important;
        margin: 6px !important;
    }
    
    .size-option {
        width: 44px !important;
        height: 44px !important;
        font-size: 0.95rem !important;
        margin: 4px !important;
    }

    /* Boost button sizes for single-hand screen sweeps */
    .btn-buy-now, .btn-add-to-cart-outline, .btn-warning, .btn {
        min-height: 44px;
        display-inline-flex: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Small screen branding safety: shrink logo badge slightly to prevent overlap */
    .navbar-brand {
        max-width: 140px;
        padding: 4px 10px !important;
    }
    .navbar-brand img {
        height: 32px !important;
    }

    /* Container adjustments for clean edge spacing */
    .container, .container-fluid {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* Luxury offcanvas menu density spacing */
    .offcanvas .nav-link {
        padding: 12px 16px !important;
        font-size: 1.05rem !important;
    }
    
    /* Floating toast position for eyes/fingers */
    .luxury-toast-container {
        top: auto;
        bottom: 20px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
    }
    .luxury-toast {
        min-width: 100%;
        max-width: 100%;
    }
}

