:root { --bs-success-rgb: 25, 135, 84; }
body { font-family: 'Poppins', sans-serif; }
main { overflow-x: hidden; }

/* Card Styles */
.product-card { transition: all 0.3s ease; border: 1px solid #e9ecef; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important; }
.product-card-img-container { overflow: hidden; position: relative; }
.product-card .card-img-top { height: 220px; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .card-img-top { transform: scale(1.05); }
.category-card { border: none; transition: transform 0.3s ease; }
.category-card:hover { transform: translateY(-5px); }
.category-card .card-img-top { height: 150px; object-fit: cover; border-radius: .375rem; }

/* Cart Page Styles */
.cart-item-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}
@media (max-width: 576px) {
    .cart-item-card .d-flex {
        flex-wrap: wrap;
    }
    .cart-item-card .flex-grow-1 {
        flex-basis: 100%;
        margin-left: 0 !important;
        margin-top: 1rem;
    }
    .cart-item-card .text-end {
       width: 100%;
       text-align: left !important;
       margin-left: 0 !important;
       margin-top: 0.5rem;
    }
}

/* Swiper Slider */
.category-slider { width: 100%; height: 100%; }
.swiper-button-next, .swiper-button-prev {
    color: var(--bs-success) !important; background-color: rgba(255,255,255,0.8);
    border-radius: 50%; width: 40px !important; height: 40px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.swiper-button-next:after, .swiper-button-prev:after { font-size: 1.2rem !important; font-weight: 800; }

/* Floating Buttons */
.whatsapp-icon, #backToTopBtn {
    position: fixed; width: 55px; height: 55px; right: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2); transition: all 0.3s ease; z-index: 150;
}
.whatsapp-icon { bottom: 65px; background-color: #25d366; color: #FFF; font-size: 30px; }
#backToTopBtn { display: none; bottom: 125px; background-color: #343a40; color: white; cursor: pointer; border: none; font-size: 20px; }
.whatsapp-icon:hover, #backToTopBtn:hover { transform: scale(1.1); box-shadow: 2px 2px 15px rgba(0,0,0,0.3); }

/* Toast Notification */
.toast-notification {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    padding: 12px 25px; border-radius: 50px; color: white; z-index: 1050;
    font-weight: 500; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0; transition: opacity 0.3s ease, bottom 0.3s ease;
}
.toast-notification.show { bottom: 30px; opacity: 1; }
.toast-notification.success { background-color: #198754; }
.toast-notification.error { background-color: #dc3545; }

/* Responsive Header */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem; border-top: 1px solid #eee; padding-top: 1rem;
    }
}

#product-grid-container .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
#product-grid-container .loading-overlay.d-none {
    opacity: 0;
    pointer-events: none;
}


/* ** NEW: Use CSS Variables for Dynamic Theming ** */
.text-success { color: var(--primary-color) !important; }
.btn-success { background-color: var(--primary-color); border-color: var(--primary-color); }
.btn-success:hover { background-color: color-mix(in srgb, var(--primary-color), black 10%); border-color: color-mix(in srgb, var(--primary-color), black 10%); }
.btn-outline-success { color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline-success:hover { color: #fff; background-color: var(--primary-color); border-color: var(--primary-color); }
.bg-success-subtle { background-color: color-mix(in srgb, var(--primary-color), white 85%) !important; }

/* Hero Slider */
.hero-slider .swiper-slide {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slider .hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: .5rem;
}
/* Testimonials Slider */
.testimonials-slider img {
    object-fit: cover;
}

.sticky-top-head {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.viewef:hover {
  transform: translateY(-5px);
}
.viewef {
  transition: all 0.3s ease;
}

.or-separator {
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
    color: #555;
}

/* Premium Shopping Experience Additions */
.premium-container { padding-top: 3rem; padding-bottom: 5rem; }
.glass-summary {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.modern-cart-item {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    overflow: hidden;
}
.modern-cart-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}
.cart-item-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 15px;
}
.qty-control {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 5px;
    display: inline-flex;
    align-items: center;
}
.qty-control input {
    width: 45px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
}
.qty-control .btn-qty {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    transition: all 0.2s;
}
.qty-control .btn-qty:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

.checkout-step-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #111;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.checkout-step-title .step-num {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-right: 12px;
}

.premium-input-group .form-control, .premium-input-group .form-select {
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e9ecef;
    background: #fdfdfd;
    transition: all 0.2s;
}
.premium-input-group .form-control:focus, .premium-input-group .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color), transparent 90%);
    background: #fff;
}
.premium-input-group .form-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-left: 5px;
}

.btn-premium-pay {
    border-radius: 15px;
    padding: 1rem;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
}
.btn-razorpay { background: linear-gradient(135deg, #2b6cb0 0%, #1a365d 100%); color: #fff; }
.btn-whatsapp { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); color: #fff; }
.btn-premium-pay:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); color: #fff; }

.order-summary-item {
    padding: 0.8rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.order-summary-total {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: #111;
}