:root {
    --primary: #2d6a4f;
    --green: #2d6a4f;
    --green-dark: #1b4332;
    --green-light: #40916c;
    --cream: #f8f9fa;
    --text: #333333;
    --primary-dark: #512e75;
    --secondary: #e74c3c;
    --gold: #d4a373;
    --gold-light: #f8c471;
    --bg-light: #f9f0ff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --border: #e8daef;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(108,52,131,0.12);
    --shadow-hover: 0 8px 30px rgba(108,52,131,0.22);
    --radius: 12px;
    --radius-lg: 18px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: var(--text-dark); background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; }

/* Top Bar */

/* Navbar */
#mainNav { background: white; box-shadow: 0 2px 20px rgba(0,0,0,0.08); padding: 12px 0; transition: var(--transition); }
.navbar-brand { font-size: 1.6rem; font-weight: 800; color: var(--primary) !important; }
.navbar-brand span { color: var(--gold); }
.nav-link { font-weight: 500; font-size: 0.9rem; color: var(--text-dark) !important; padding: 6px 14px !important; border-radius: 6px; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; background: var(--bg-light); }
.cart-icon { position: relative; }
.cart-badge { position: absolute; top: -8px; right: -8px; background: var(--secondary); color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.dropdown-menu { border: none; box-shadow: var(--shadow); border-radius: var(--radius); }
.dropdown-item:hover { background: var(--bg-light); color: var(--primary); }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: none; border-radius: 8px; font-weight: 600; letter-spacing: 0.3px; transition: var(--transition); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(108,52,131,0.35); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); border-radius: 8px; font-weight: 600; }
.btn-outline-primary:hover { background: var(--primary); color: white; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #e67e22); color: white; border: none; border-radius: 8px; font-weight: 600; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(243,156,18,0.4); color: white; }

/* Hero Section */
















.hero-stats { display: flex; gap: 30px; margin-top: 25px; }
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.hero-stat .label { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* Section Headers */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text-muted); }
.section-divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--gold)); border-radius: 2px; margin: 10px auto; }

/* Category Cards */
.category-card { background: white; border-radius: var(--radius); padding: 30px 20px; text-align: center; box-shadow: 0 2px 15px rgba(0,0,0,0.06); border: 2px solid transparent; transition: var(--transition); cursor: pointer; }
.category-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.category-icon { width: 70px; height: 70px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; transition: var(--transition); }
.category-card:hover .category-icon { background: var(--primary); }
.category-icon i { font-size: 1.8rem; color: var(--primary); transition: var(--transition); }
.category-card:hover .category-icon i { color: white; }
.category-card h6 { font-weight: 700; margin: 0; color: var(--text-dark); }
.category-card small { color: var(--text-muted); }

/* Product Cards */
.product-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.07); transition: var(--transition); position: relative; height: 100%; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-img-wrap { position: relative; overflow: hidden; padding-top: 100%; }
.product-img-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.badge-sale { background: var(--secondary); color: white; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.badge-new { background: var(--primary); color: white; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.product-actions { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(10px); transition: var(--transition); }
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn { width: 35px; height: 35px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); cursor: pointer; border: none; font-size: 14px; color: var(--text-dark); }
.product-action-btn:hover { background: var(--primary); color: white; }
.product-body { padding: 15px; }
.product-category { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-current { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.price-original { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }
.price-discount { background: #ffe0e0; color: var(--secondary); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.product-rating { display: flex; align-items: center; gap: 4px; margin: 8px 0; }
.product-rating .fa-star { color: var(--gold); font-size: 12px; }
.product-rating .fa-star.empty { color: #ddd; }
.product-rating small { color: var(--text-muted); }
.product-footer { padding: 12px 15px; border-top: 1px solid #f0f0f0; }

/* Banner Strip */
.offer-strip { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 60px 0; margin: 60px 0; }
.offer-strip h2 { font-size: 2.2rem; font-weight: 800; }
.offer-strip .countdown { display: flex; gap: 15px; margin-top: 20px; }
.countdown-item { background: rgba(255,255,255,0.15); border-radius: 10px; padding: 10px 18px; text-align: center; backdrop-filter: blur(5px); }
.countdown-item .num { font-size: 2rem; font-weight: 800; line-height: 1; }
.countdown-item .lbl { font-size: 11px; opacity: 0.8; }

/* Cart Page */
.cart-item { background: white; border-radius: var(--radius); padding: 20px; margin-bottom: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-summary { background: white; border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow); position: sticky; top: 80px; }
.qty-btn { width: 32px; height: 32px; border: 1.5px solid var(--border); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; background: white; transition: var(--transition); }
.qty-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Checkout */
.checkout-card { background: white; border-radius: var(--radius); padding: 25px; box-shadow: 0 2px 15px rgba(0,0,0,0.06); margin-bottom: 10px; }
.payment-option { border: 2px solid var(--border); border-radius: 10px; padding: 15px 20px; cursor: pointer; transition: var(--transition); }
.payment-option.active, .payment-option:hover { border-color: var(--primary); background: var(--bg-light); }

/* Auth Pages */
.auth-section { min-height: calc(100vh - 200px); display: flex; align-items: center; background: linear-gradient(135deg, var(--bg-light), #f0e6ff); }
.auth-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); padding: 40px; max-width: 440px; width: 100%; }
.auth-logo { text-align: center; margin-bottom: 30px; font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.form-control, .form-select { border-radius: 8px; border: 1.5px solid var(--border); padding: 10px 14px; font-size: 0.9rem; transition: var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,52,131,0.1); }
.form-label { font-weight: 600; font-size: 0.85rem; color: var(--text-dark); }

/* Profile */
.profile-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.profile-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 30px; text-align: center; }
.profile-avatar { width: 80px; height: 80px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 2rem; }
.nav-pills .nav-link { color: var(--text-dark); border-radius: 8px; font-weight: 500; padding: 10px 16px; }
.nav-pills .nav-link.active { background: var(--primary); color: white; }
.order-card { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.status-badge { font-size: 11px; padding: 4px 12px; border-radius: 20px; font-weight: 600; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cff4fc; color: #055160; }
.status-shipped { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* Product Detail */
.product-detail-img { border-radius: var(--radius-lg); width: 100%; height: 500px; object-fit: cover; }
.size-option { border: 2px solid var(--border); border-radius: 8px; padding: 8px 18px; cursor: pointer; font-weight: 600; font-size: 0.85rem; transition: var(--transition); display: inline-block; }
.size-option:hover, .size-option.active { border-color: var(--primary); background: var(--primary); color: white; }
.qty-control { display: flex; align-items: center; gap: 10px; }
.qty-control input { width: 60px; text-align: center; border: 1.5px solid var(--border); border-radius: 8px; padding: 8px; }
.review-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 15px; }

/* Filter Sidebar */
.filter-card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 15px rgba(0,0,0,0.06); }
.filter-card h6 { font-weight: 700; color: var(--text-dark); border-bottom: 2px solid var(--bg-light); padding-bottom: 10px; margin-bottom: 15px; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.price-range input[type=range] { accent-color: var(--primary); }

/* Alert / Notification */
.alert { border-radius: var(--radius); border: none; font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }
.alert-info { background: #d1ecf1; color: #0c5460; }

/* Footer */
.footer { background: var(--text-dark); color: #bdc3c7; padding: 60px 0 30px; }
.footer-brand { color: white; font-size: 1.4rem; font-weight: 800; margin-bottom: 15px; }
.footer-heading { color: white; font-weight: 700; margin-bottom: 18px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { padding: 5px 0; font-size: 0.88rem; }
.footer-links a { color: #bdc3c7; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 38px; height: 38px; background: rgba(255,255,255,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; transition: var(--transition); }
.social-icons a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 30px 0 20px; }

/* Scroll To Top */
.scroll-top { position: fixed; bottom: 25px; right: 25px; width: 45px; height: 45px; background: var(--primary); color: white; border: none; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; box-shadow: 0 4px 15px rgba(108,52,131,0.4); z-index: 999; transition: var(--transition); }
.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* Breadcrumb */
.page-header { background: linear-gradient(120deg, #e0f2e9 0%, #f4fbf7 100%); padding: 20px 0; margin-bottom: 35px; border-bottom: 1px solid rgba(45,106,79,0.1); box-shadow: 0 4px 20px rgba(0,0,0,0.02); border-radius: 0 0 16px 16px; }
.page-header .breadcrumb { font-weight: 600; font-size: 14px; letter-spacing: 0.3px; }
.breadcrumb-item a { color: var(--green-dark); text-decoration: none; transition: 0.2s; }
.breadcrumb-item a:hover { color: var(--green); text-decoration: underline; }
.breadcrumb-item + .breadcrumb-item::before { color: #9abfa7; }
.breadcrumb-item.active { color: #555; font-weight: 700; }

/* Pagination */
.pagination .page-link { border-radius: 8px !important; margin: 0 3px; color: var(--primary); border-color: var(--border); font-weight: 600; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.pagination .page-link:hover { background: var(--bg-light); color: var(--primary); }

/* Toast */
.toast { background: var(--primary); }

/* Skeleton Loader */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; border-radius: 6px; }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Offer Banner */
.offer-banner { background: var(--bg-light); border: 2px dashed var(--primary); border-radius: var(--radius); padding: 15px 20px; text-align: center; color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    










    
    .hero-stats { justify-content: center; }
    .product-detail-img { height: 300px; }
    .offer-strip { text-align: center; }
    .offer-strip .countdown { justify-content: center; }
    .cart-summary { margin-top: 20px; }
    .auth-card { padding: 25px; }
}
@media (max-width: 576px) {
    .product-detail-img { height: 350px; }
    
    .product-card .product-name { font-size: 0.82rem; }
}

/* Whatsapp Float */
.whatsapp-float { position: fixed; bottom: 80px; right: 25px; background: #25d366; color: white; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; z-index: 999; box-shadow: 0 4px 15px rgba(37,211,102,0.4); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }




/* Hero Banner Style inspired by VCK Greens */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0; /* pull up behind navbar if navbar is transparent */
}

.hero-section .container {
    position: relative;
    z-index: 2;
}
.hero-text {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}
.hero-title span {
    color: var(--gold);
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    opacity: 0.95;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}




/* PREMIUM PRODUCTS GRID */
.products-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:20px; }
.product-card-new { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,0.04); border:1px solid #f2f2f2; transition:all .3s; display:flex; flex-direction:column; height:100%; }
.product-card-new:hover { transform:translateY(-4px); box-shadow:0 12px 30px rgba(0,0,0,.08); border-color:var(--green-light); }
.product-img-wrap { display:block; position:relative; overflow:hidden; aspect-ratio:1/1; background:var(--cream); }
.product-img-wrap img { width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(0.25, 1, 0.5, 1); }
.product-card-new:hover .product-img-wrap img { transform:scale(1.08); }

.discount-badge { position:absolute; top:10px; left:10px; background:#e53e3e; color:#fff; padding:3px 10px; border-radius:12px; font-size:11px; font-weight:700; z-index:2; box-shadow:0 2px 8px rgba(229, 62, 62, 0.2); }
.out-of-stock-overlay { position:absolute; inset:0; background:rgba(255,255,255,.85); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; color:#333; letter-spacing:0.5px; z-index:4; }

.product-hover-actions { position:absolute; bottom:0; left:0; right:0; padding:10px; background:linear-gradient(transparent,rgba(0,0,0,.5)); transform:translateY(100%); transition:.3s; z-index:3; }
.product-card-new:hover .product-hover-actions { transform:translateY(0); }
.quick-cart-btn { background:#fff; color:var(--green-dark); border:none; width:100%; padding:8px; border-radius:8px; font-weight:700; font-size:12px; cursor:pointer; transition:.2s; }
.quick-cart-btn:hover { background:var(--green); color:#fff; }

.product-info { padding:14px; display:flex; flex-direction:column; flex-grow:1; }
.product-name { font-weight:600; font-size:13px; color:var(--text); text-decoration:none; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; height:36px; margin-bottom:10px; }
.product-name:hover { color:var(--green); }
.product-pricing { display:flex; align-items:center; gap:6px; margin-bottom:14px; margin-top:auto; }
.product-price { font-size:16px; font-weight:700; color:var(--green-dark); }
.product-original { font-size:12px; color:#999; text-decoration:line-through; }

.add-cart-btn-full { width:100%; background:var(--green); color:#fff; border:none; padding:10px; border-radius:8px; font-weight:700; font-size:13px; cursor:pointer; transition:.3s; display:block !important; }
.add-cart-btn-full:hover { background:var(--green-dark); box-shadow:0 4px 12px rgba(45,106,79,.2); }
.add-cart-btn-full:disabled { background:#ccc; cursor:not-allowed; box-shadow:none; }

@media(max-width:768px){
    .products-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
    .product-info { padding:10px; }
    .product-name { font-size:12px; height:34px; margin-bottom:6px; }
    .product-price { font-size:15px; }
    .add-cart-btn-full { padding:8px; font-size:12px; border-radius:6px; }
}
@media(max-width:768px){
    .page-header { padding: 12px 0; margin-bottom: 10px; border-radius: 0 0 12px 12px; }
    .page-header .breadcrumb { font-size: 13px; flex-wrap: nowrap; overflow: hidden; }
    .breadcrumb-item { white-space: nowrap; }
    .breadcrumb-item.active { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; max-width: 150px; vertical-align: bottom; }
}
/* === GLOBAL OVERFLOW FIX === */
html, body { overflow-x: hidden !important; max-width: 100vw; }
.footer { overflow-x: hidden !important; }
.footer .col-6, .footer .col-lg-2, .footer .col-lg-3, .footer .col-lg-4 { overflow: hidden; }
img { max-width: 100%; height: auto; }
@media(max-width:576px) { .row { margin-right: 0; margin-left: 0; } .container { padding-left: 12px; padding-right: 12px; } }

/* Payment logos in footer */
.payment-logo {
    height: 20px;
    width: auto;
    max-width: 55px;
    background: #fff;
    padding: 3px 5px;
    border-radius: 5px;
    object-fit: contain;
}
@media(max-width:768px){
    .payment-logo { height: 16px; max-width: 44px; }
}
