/* 
   XLXL Custom Stylesheet
   Designed to match the reference design exactly.
*/

:root {
    --primary-green: #143525;
    --primary-green-hover: #0D261A;
    --accent-green: #2B5741;
    --light-bg: #F4F1EA;
    --card-bg: #EBE6DD;
    --text-dark: #1A1A1A;
    --text-muted: #555555;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', 'Inter', system-ui, sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Site Animated Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0A1C13;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
    color: #FFFFFF;
}

.preloader-logo-icon {
    width: 70px;
    height: 70px;
    color: var(--primary-green);
    animation: pulsePreloader 1.5s ease-in-out infinite alternate;
}

.preloader-brand-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #FFFFFF;
    margin-top: 10px;
    margin-bottom: 20px;
}

.preloader-spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    margin: 0 auto;
    animation: spinPreloader 0.8s linear infinite;
}

@keyframes spinPreloader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulsePreloader {
    0% { transform: scale(1); opacity: 0.85; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Typography */
h1, h2, h3, h4, .serif-font {
    font-family: var(--font-heading);
}

/* Top Announcement Bar */
.top-bar {
    background-color: var(--primary-green);
    color: #E2EBE5;
    font-size: 0.825rem;
    padding: 7px 0;
    font-weight: 400;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .top-bar {
        font-size: 0.75rem;
        padding: 5px 0;
    }
    .top-bar .icon-item {
        font-size: 0.72rem;
    }
}

.top-bar a {
    color: #E2EBE5;
    text-decoration: none;
    transition: opacity 0.2s;
}

.top-bar a:hover {
    color: #FFFFFF;
    opacity: 0.9;
}

.top-bar .icon-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Main Navigation Bar */
.main-nav {
    background-color: #FFFFFF;
    padding: 14px 0;
    border-bottom: 1px solid #EEEEEE;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-icon {
    width: 36px;
    height: 36px;
    color: var(--primary-green);
}

.brand-logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: 2.5px;
    color: var(--primary-green);
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 3.5px;
    color: var(--primary-green);
    font-weight: 600;
    margin-top: 2px;
}

.nav-link-custom {
    color: #222222;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px !important;
    transition: color 0.2s;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--primary-green);
    font-weight: 600;
}

.header-icons .btn-icon {
    background: none;
    border: none;
    color: #222222;
    font-size: 1.15rem;
    padding: 6px 10px;
    position: relative;
    transition: color 0.2s;
}

.header-icons .btn-icon:hover {
    color: var(--primary-green);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--primary-green);
    color: white;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Redesigned Video Background Hero */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-bottom-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.hero-bottom-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    opacity: 0.85;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 28, 19, 0.88) 0%, rgba(10, 28, 19, 0.65) 50%, rgba(10, 28, 19, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 60px 0;
}

.hero-subtitle-tag {
    font-size: 0.9rem;
    font-weight: 600;
    color: #88E0B0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    background: rgba(20, 53, 37, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(136, 224, 176, 0.3);
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.12;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-desc {
    color: #E0EBE5;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 32px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-primary-green {
    background-color: var(--primary-green);
    color: #FFFFFF;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-primary-green:hover {
    background-color: var(--primary-green-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-badges {
    display: flex;
    gap: 14px;
    margin-top: 38px;
    flex-wrap: wrap;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #FFFFFF;
}

/* Carousel Control Custom Buttons */
.carousel-btn-prev, .carousel-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.carousel-btn-prev { left: 20px; }
.carousel-btn-next { right: 20px; }

.carousel-btn-prev:hover, .carousel-btn-next:hover {
    background-color: var(--primary-green);
    color: #FFFFFF;
    border-color: var(--primary-green);
}

/* Exact Category Promos Section Matching Reference Screenshot */
.category-promo-card {
    background-color: #EBE6DD;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 195px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.category-promo-content {
    padding: 24px 18px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cat-title-sub {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
    line-height: 1.2;
}

.cat-title-main {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 4px;
    line-height: 1;
    letter-spacing: 0.5px;
}

.cat-subtitle {
    font-size: 0.76rem;
    color: #555555;
    margin-bottom: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.btn-outline-dark-pill {
    border: 1.5px solid #222222;
    background: transparent;
    color: #111111;
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-dark-pill:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: #FFFFFF;
}

.category-promo-img-wrapper {
    width: 48%;
    height: 100%;
    min-height: 195px;
    align-self: stretch;
}

.category-promo-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Floating Herbal Leaves Background Animation */
.bg-leaf-container {
    position: relative;
    overflow: hidden;
}

.floating-leaf {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
    animation: floatLeaf 8s ease-in-out infinite alternate;
}

.floating-leaf-1 {
    top: 5%;
    right: 4%;
    width: 160px;
    animation-duration: 10s;
}

.floating-leaf-2 {
    bottom: 8%;
    left: 2%;
    width: 200px;
    animation-duration: 14s;
    animation-delay: -4s;
    transform: rotate(-25deg);
}

.floating-leaf-3 {
    top: 45%;
    right: 6%;
    width: 120px;
    animation-duration: 8s;
    animation-delay: -2s;
}

.floating-leaf-4 {
    top: 20%;
    left: 5%;
    width: 110px;
    animation-duration: 11s;
    animation-delay: -6s;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #FFFFFF;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1050;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6C757D;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    flex-grow: 1;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-green);
    font-weight: 700;
}

.mobile-cart-badge {
    position: absolute;
    top: 6px;
    right: 28%;
    background: #E53935;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure padding on mobile body so content is not hidden by bottom nav */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }
}

/* Why Choose XLXL Section */
.why-choose-section {
    padding: 60px 0 40px;
    background-color: #FFFFFF;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 40px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #F3F7F4;
    border: 1px solid #D8E4DD;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.2;
}

.feature-desc {
    font-size: 0.75rem;
    color: #666666;
    margin: 2px 0 0;
    line-height: 1.3;
}

/* Top Selling Products Section */
.products-section {
    padding: 30px 0 60px;
    background-color: #FFFFFF;
}

.product-card {
    border: none;
    background: transparent;
    border-radius: 12px;
    transition: transform 0.25s ease;
}

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

.product-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #F8F7F4;
    margin-bottom: 12px;
    aspect-ratio: 1 / 1;
}

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

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

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.wishlist-btn:hover {
    background-color: var(--primary-green);
    color: #FFFFFF;
}

.product-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111111;
}

.btn-view-all {
    border: 1px solid #D5CEC0;
    background-color: #FAF9F5;
    color: #333333;
    border-radius: 20px;
    padding: 5px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view-all:hover {
    background-color: var(--primary-green);
    color: #FFFFFF;
    border-color: var(--primary-green);
}

/* Bottom Feature Footer Bar */
.footer-banner {
    background-color: var(--primary-green);
    color: #FFFFFF;
    padding: 24px 0;
}

.footer-banner-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-banner-icon {
    font-size: 1.8rem;
    color: #FFFFFF;
    opacity: 0.95;
}

.footer-banner-title {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: uppercase;
}

.footer-banner-subtitle {
    font-size: 0.78rem;
    color: #C0D6C9;
    margin: 2px 0 0;
}
