@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Dancing+Script:wght@700&display=swap');

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
.preloader-logo {
    width: 150px;
    height: auto;
    animation: pulseLogo 1.5s infinite ease-in-out;
}
@keyframes pulseLogo {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

:root {
    --primary: #101c3d; /* Dark Navy Blue */
    --secondary: #ffb800; /* Yellow / Gold */
    --text-dark: #333333;
    --text-muted: #777777;
    --bg-light: #fdfbf7; /* Very light beige/white for hero */
    --border-color: #e5e5e5;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #ffffff;
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* Utilities */
.text-primary-theme { color: var(--primary) !important; }
.bg-primary-theme { background-color: var(--primary) !important; color: #fff; }
.text-secondary-theme { color: var(--secondary) !important; }
.bg-secondary-theme { background-color: var(--secondary) !important; color: var(--primary); }

@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid var(--border-color) !important;
    }
}

.btn-primary-theme {
    background-color: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary-theme:hover {
    background-color: transparent;
    color: var(--primary);
}

/* Header & Topbar */
.topbar {
    background-color: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
}
.topbar a {
    color: #fff;
    margin-left: 15px;
}
.topbar a:hover {
    color: var(--secondary);
}

.middle-header {
    padding: 20px 0;
    background: #fff;
}
.search-form {
    border: 2px solid var(--secondary);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
}
.search-form select {
    background-color: #f8f9fa;
    border: none;
    border-right: 1px solid #ddd;
    padding: 0 15px;
    font-size: 13px;
    color: var(--text-dark);
    outline: none;
}
.search-form input {
    border: none;
    padding: 12px 20px;
    width: 100%;
    outline: none;
}
.search-form button {
    background-color: var(--secondary);
    color: #fff;
    border: none;
    padding: 0 25px;
    font-size: 18px;
    cursor: pointer;
}

.header-actions .action-item {
    display: flex;
    align-items: center;
    margin-left: 25px;
    color: var(--primary);
}
.header-actions .icon-wrap {
    position: relative;
    font-size: 24px;
    margin-right: 10px;
}
.header-actions .badge-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--secondary);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.header-actions .text-wrap span {
    display: block;
    font-size: 12px;
    line-height: 1.2;
}
.header-actions .text-wrap strong {
    font-size: 14px;
    color: var(--primary);
}

/* Navbar */
.main-nav-wrapper {
    background-color: var(--primary);
}
.nav-all-cat {
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-transform: uppercase;
}
.main-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.main-nav li a {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    padding: 18px 15px;
    display: block;
}
.main-nav li a:hover {
    color: var(--secondary);
}
.nav-offers {
    background-color: var(--secondary);
    color: var(--primary) !important;
    font-weight: 700;
}

/* Mega Menu (Simple CSS version for demo) */
.mega-menu-wrapper {
    /* removed position: relative to allow child to span container */
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0; 
    right: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    border-top: 2px solid var(--secondary);
}
.mega-menu-wrapper:hover .mega-menu {
    display: flex;
}
.mega-sidebar {
    width: 250px;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}
.mega-sidebar ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}
.mega-sidebar li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 13px;
}
.mega-sidebar li a:hover {
    color: var(--primary);
    background: #f8f9fa;
}
.mega-sidebar li a img {
    width: 20px;
    margin-right: 15px;
}
.mega-content {
    flex: 1;
    padding: 30px;
    display: flex;
    justify-content: space-between;
}
.mega-col {
    flex: 1;
    padding: 0 10px;
}
.mega-col h6 {
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 15px;
    color: var(--primary);
}
.mega-col ul {
    list-style: none;
    padding: 0;
}
.mega-col li a {
    color: var(--text-muted);
    font-size: 13px;
    padding: 5px 0;
    display: block;
}
.mega-col li a:hover {
    color: var(--secondary);
}
.mega-promo {
    width: 250px;
    padding-left: 20px;
}

/* Hero Section */
.hero-section {
    background-color: var(--bg-light);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}
.hero-content h4 {
    color: var(--secondary);
    font-family: 'Dancing Script', cursive; /* A cursive font fallback */
    font-size: 24px;
    margin-bottom: 10px;
}
.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary);
}
.hero-content h1 span {
    color: var(--secondary);
}

/* Trust Bar */
.trust-bar {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    background: #fff;
}
.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-item i {
    font-size: 24px;
    color: var(--primary);
    margin-right: 15px;
}
.trust-item h6 {
    margin: 0;
    font-size: 13px;
}
.trust-item p {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
}

/* Section Titles */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.section-title h3 {
    text-transform: uppercase;
    font-size: 18px;
    margin: 0;
    position: relative;
}
.section-title h3::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

/* Product Card */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.product-img-wrap {
    position: relative;
    padding: 15px;
    background: #f8f9fa;
    text-align: center;
}
.product-img-wrap img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
}
.badge-new {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e91e63;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
}
.btn-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: var(--transition);
}
.btn-wishlist:hover {
    color: #e91e63;
}
.product-info {
    padding: 15px;
}
.product-title {
    font-size: 14px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 5px;
}
.product-rating i {
    color: var(--secondary);
    font-size: 11px;
}

/* Shop By Category Circles */
.cat-circle {
    text-align: center;
}
.cat-circle-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.cat-circle-img img {
    width: 40px;
}
.cat-circle:hover .cat-circle-img {
    border-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(251, 176, 59, 0.2);
}
.cat-circle h6 {
    font-size: 12px;
    font-weight: 600;
}

/* Promo Banners */
.promo-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    padding: 30px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.promo-card h5 { font-size: 12px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px;}
.promo-card h2 { font-size: 22px; margin-bottom: 15px; }
.promo-card .btn { font-size: 12px; padding: 8px 20px; }

/* Newsletter */
.newsletter-section {
    background-color: var(--primary);
    border-radius: 10px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.newsletter-section h3 { color: var(--secondary); }
.newsletter-form {
    display: flex;
    margin-top: 20px;
}
.newsletter-form input {
    border: none;
    padding: 12px 20px;
    width: 100%;
    outline: none;
}
.newsletter-form button {
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 0 25px;
    font-weight: 700;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: #fff;
    padding-top: 60px;
}
.footer-title {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li a {
    color: #a0a8b5;
    font-size: 13px;
    padding: 5px 0;
    display: block;
}
.footer-links li a:hover {
    color: var(--secondary);
}
.contact-info li {
    display: flex;
    margin-bottom: 15px;
    color: #a0a8b5;
    font-size: 13px;
}
.contact-info li i {
    margin-right: 15px;
    margin-top: 3px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 12px;
    color: #a0a8b5;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1030;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 15px 0; /* Extra padding at bottom for safe area on modern phones */
}
.mobile-bottom-nav .nav-item {
    text-align: center;
    color: var(--text-muted);
    font-size: 10px;
    flex: 1;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}
.mobile-bottom-nav .nav-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 3px;
}
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--primary);
}
.mobile-bottom-nav .badge {
    position: absolute;
    top: -5px;
    right: 20px;
    background-color: var(--secondary);
    color: #fff;
    font-size: 9px;
    padding: 3px 5px;
    border-radius: 50%;
}

/* Add padding to body on mobile so content isn't hidden behind the fixed nav */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }
}
