/* --- Variables & Reset --- */
:root {
    --primary: #80eb0e;
    --dark: #410200;
    --light: #f4f4f4;
    --text-grey: #666;
    --white: #ffffff;
    --border: #e1e1e1;
    --transition: all 0.3s ease;
    --font-main: "Poppins", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info span {
    margin-right: 15px;
}
.top-links a {
    margin-left: 15px;
    opacity: 0.8;
}
.top-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* --- Header --- */
#main-header {
    background: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo h1 {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -1px;
}
.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 15px;
}
.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: #5aa80a;
} /* Darker green for text readability */
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}
.nav-links a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}
.icon-btn {
    font-size: 1.2rem;
    position: relative;
}
.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: var(--dark);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Search Box */
.search-box {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
    margin-right: 10px;
}
.search-box input {
    border: none;
    padding: 5px 15px;
    outline: none;
    font-family: inherit;
}
.search-box button {
    background: none;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    transition: var(--transition);
}
.search-box button:hover {
    color: var(--primary);
}

/* --- Cart Sidebar --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
    right: 0;
}
.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-cart {
    cursor: pointer;
    font-size: 1.2rem;
}
.cart-body {
    padding: 20px;
    flex: 1;
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px; /* Vertically limited */
    overflow: hidden;
    background: #000;
}
.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.slide.active {
    opacity: 1;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}
.prev-btn:hover,
.next-btn:hover {
    background: var(--primary);
    color: var(--dark);
}
.prev-btn {
    left: 20px;
}
.next-btn {
    right: 20px;
}

/* --- Sections General --- */
.section {
    padding: 60px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Features Section --- */
.features-section {
    padding: 40px 0;
    background: #f9f9f9;
    border-bottom: 1px solid var(--border);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.feature-box {
    display: flex;
    align-items: center;
    gap: 15px;
}
.feature-box i {
    font-size: 2rem;
    color: #5aa80a; /* Darker version for icon on light bg */
}
.feature-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
}
.feature-box p {
    font-size: 0.8rem;
    color: var(--text-grey);
}

/* --- Categories --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.cat-card {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cat-card:hover img {
    transform: scale(1.1);
}
.cat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

/* --- Products --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}
.product-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}
.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}
.p-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}
.p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--dark);
    color: var(--white);
    padding: 3px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
}
.tag.sale {
    background: #e74c3c;
}
.add-cart-btn {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: bottom 0.3s ease;
}
.product-card:hover .add-cart-btn {
    bottom: 0;
}

.p-details {
    padding: 15px;
    text-align: center;
}
.p-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}
.rating {
    color: #f1c40f;
    font-size: 0.8rem;
    margin-bottom: 5px;
}
.price {
    font-weight: 700;
    color: #5aa80a;
}
.price del {
    color: var(--text-grey);
    font-weight: 400;
    font-size: 0.9rem;
    margin-right: 5px;
}

/* --- Promo Banner --- */
.promo-banner {
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("https://images.unsplash.com/photo-1472851294608-415522f96319?auto=format&fit=crop&w=1600");
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}
.promo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 20px;
}
.btn-primary:hover {
    background: var(--white);
}

/* --- Brands --- */
.brands-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    opacity: 0.6;
}
.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-grey);
}

/* --- Newsletter --- */
.newsletter-section {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0;
}
.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.news-form {
    display: flex;
    flex: 1;
    max-width: 500px;
}
.news-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.news-form button {
    background: var(--primary);
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
}

/* --- Footer --- */
footer {
    background: #310200;
    color: #ccc;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a:hover {
    color: var(--primary);
    margin-left: 5px;
}
.social-links a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background: #333;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 10px;
}
.social-links a:hover {
    background: var(--primary);
    color: var(--dark);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .search-box {
        display: none;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    .nav-links.active {
        left: 0;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-slider {
        height: 300px;
    }
    .promo-content h2 {
        font-size: 1.8rem;
    }
}

/* --- New Sections Styling --- */

/* 1. Promo Grid (Dual Banner) */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.promo-item {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.promo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.promo-item:hover img {
    transform: scale(1.1);
}
.promo-content-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    color: var(--white);
}
.promo-content-inner h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.promo-content-inner a {
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}
.promo-content-inner a:hover {
    color: var(--primary);
}

/* 2. Deal of the Week */
.deal-section {
    padding: 80px 0;
    background: #fdfdfd;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.deal-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}
.deal-content {
    flex: 1;
    min-width: 300px;
}
.deal-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
.deal-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.deal-label {
    background: var(--primary);
    color: var(--dark);
    padding: 5px 15px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: inline-block;
}
.deal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}
.timer {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}
.time-box {
    background: var(--dark);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.time-box span {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}
.time-box small {
    font-size: 0.6rem;
    text-transform: uppercase;
    margin-top: 2px;
}

/* 3. Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--transition);
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.user-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid var(--primary);
}
.user-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.review-meta h4 {
    font-size: 1rem;
    font-weight: 700;
}
.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
}

/* 4. Blog/News Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
}
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-content {
    padding: 20px;
}
.blog-content .date {
    font-size: 0.8rem;
    color: var(--text-grey);
    display: block;
    margin-bottom: 5px;
}
.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: var(--transition);
}
.blog-card:hover .blog-content h3 {
    color: var(--primary); /* Dark green for text */
    color: #5aa80a;
}
.blog-content p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--primary);
}

/* Responsive Adjustments for new sections */
@media (max-width: 768px) {
    .deal-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .deal-content {
        width: 100%;
    }
    .deal-content h2 {
        font-size: 2rem;
    }
    .timer {
        justify-content: center;
    }
    .promo-content-inner {
        align-items: center;
        text-align: center;
    }
}

/* Logo Image Styling */
.logo a {
    display: block; /* Link ko block banata hai */
    text-decoration: none;
}

.logo img {
    height: 50px; /* Header ki height 80px hai, to logo 50px best rahega */
    width: auto; /* Width khud adjust hogi taake logo pichkay na */
    display: block;
    object-fit: contain;
}

/* Responsive: Mobile par agar logo bara lage to chota krne ke liye */
@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
}

/* Footer Logo Styling */
.footer-logo img {
    height: 50px; /* Header wala same size */
    width: auto;
    margin-bottom: 20px; /* Text se faasla */
    display: block;

    /* MAGIC TRICK: Agar apka logo black hai to yeh usay White kar dega */
    filter: brightness(0) invert(1);
}

/* --- Cart Sidebar Styling --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 2000; /* Header se upar */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);

    /* Layout Magic for Sticky Header/Footer */
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

/* 1. Header */
.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}
.cart-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}
.cart-header .count {
    color: var(--primary);
}
.close-cart {
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}
.close-cart:hover {
    color: red;
    transform: rotate(90deg);
}

/* 2. Body (Scrollable) */
.cart-body {
    flex: 1; /* Takes available space */
    overflow-y: auto; /* Enables scrolling */
    padding: 20px;
}

/* Cart Item Card */
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 15px;
    position: relative;
}
.cart-item:last-child {
    border-bottom: none;
}

.cart-img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #eee;
}
.cart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-details {
    flex: 1;
}
.cart-details h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
    line-height: 1.3;
}
.cart-details .variant {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-details .price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

/* Mini Quantity Control */
.qty-control {
    display: flex;
    border: 1px solid #eee;
    border-radius: 3px;
}
.qty-control button {
    background: #f9f9f9;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
}
.qty-control span {
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.remove-item {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1rem;
    align-self: flex-start;
}
.remove-item:hover {
    color: #e74c3c;
}

/* 3. Footer (Fixed at Bottom) */
.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fff;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.02);
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.subtotal-row .amount {
    color: var(--dark);
}

.shipping-msg {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 20px;
    text-align: center;
}

.cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.checkout-btn {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}
.checkout-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

.view-cart-btn {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--dark);
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}
.view-cart-btn:hover {
    background: #f4f4f4;
}

/* Responsive */
@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Sidebar Default (Hidden) */
.cart-sidebar {
    position: fixed;
    right: -400px; /* Screen se bahar */
    top: 0;
    width: 350px;
    height: 100%;
    background: #fff;
    transition: 0.3s;
    z-index: 9999;
}

/* Sidebar Active (Show) */
.cart-sidebar.active {
    right: 0; /* Screen ke andar */
}

/* --- Header with Background Image (No Repeat & Auto Adjust) --- */
.page-header.dark-leaves {
    position: relative;

    /* 1. Background Image Setup */
    /* Maine aik light overlay diya hai (rgba 255,255,255, 0.9) taake dark text parha jaye */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url("/frontend/images/breadcrumb.jpg");

    /* 2. Adjustment Settings */
    background-size: cover; /* Image puri jagah cover karegi, katay gi nahi */
    background-position: center; /* Center se start hogi */
    background-repeat: no-repeat; /* Repeat nahi hogi */

    /* Text Colors & Spacing */
    padding: 60px 0;
    margin-bottom: 50px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

/* Breadcrumb Links Style */
.page-header.dark-leaves .breadcrumb {
    color: #666666; /* Grey Text */
    font-size: 0.9rem;
}

.page-header.dark-leaves .breadcrumb a {
    color: #1a1a1a; /* Dark Links */
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.page-header.dark-leaves .breadcrumb a:hover {
    color: var(--primary); /* Hover par Neon Green */
}

.page-header.dark-leaves .breadcrumb span {
    margin: 0 5px;
    color: #ccc;
}

.page-header.dark-leaves .breadcrumb .current {
    color: var(--primary);
    font-weight: 600;
}

/* --- Shop Sidebar with Background Image --- */
.shop-sidebar {
    /* 1. Background Image Setup */
    /* Pehli layer white overlay hai (0.9 opacity), doosri layer image hai */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
        url("/frontend/images/shop-bg.jpg");

    background-size: cover; /* Image puri sidebar cover karegi */
    background-position: center; /* Center focus */
    background-repeat: no-repeat;

    /* 2. Spacing & Shape */
    padding: 30px; /* Ander ka gap */
    border-radius: 8px; /* Kinare gol */
    border: 1px solid #eee; /* Halka sa border */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); /* Soft shadow */

    /* Sticky (Scroll karne par sath chale) - Optional */
    position: sticky;
    top: 100px;
}

/* Widgets ke beech gap aur border hatana (kyunke ab sidebar main container hai) */
.filter-widget {
    margin-bottom: 35px;
    border-bottom: 1px dashed #ccc; /* Halka divider */
    padding-bottom: 25px;
}

.filter-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Search Box ko Wazeh karna */
.shop-search input {
    background: #fff; /* Search input white rahe */
    border: 1px solid #ddd;
}

/* --- Top Bar News Ticker Styling --- */
.top-bar {
    background: var(--dark); /* Dark Background */
    color: #fff;
    padding: 0; /* Padding 0 kar di taake label fit aye */
    height: 40px; /* Fix height */
    overflow: hidden;
    border-bottom: 1px solid #333;
}

.news-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative; /* Stacking context ke liye */
}

/* 1. Left Static Label */
.news-label {
    background: var(--primary); /* Neon Green (#80EB0E) */
    color: var(--dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10; /* Z-index high taake news iske peeche jaye */
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%); /* Stylish Cut Shape */
    width: 140px; /* Fixed width */
    flex-shrink: 0;
}

/* 2. Scrolling Area */
.news-ticker {
    flex: 1; /* Baqi sari jagah lega */
    overflow: hidden; /* Text bahar na nikle */
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap; /* Text ko aik line mein rakhta hai */

    /* Animation Settings */
    animation: ticker-move 30s linear infinite;

    padding-left: 100%; /* Start from far right */
}

.ticker-content span {
    margin-right: 50px; /* Har news ke baad gap */
    font-size: 0.9rem;
    font-weight: 600;
    color: #ddd;
}

.ticker-content span b {
    color: var(--primary); /* Numbers ko Neon Green karna */
    margin-right: 5px;
}

/* --- Animation Keyframes --- */
@keyframes ticker-move {
    0% {
        transform: translate3d(0, 0, 0); /* Start position */
    }
    100% {
        transform: translate3d(-100%, 0, 0); /* End position (Left taraf) */
    }
}

/* Animation Mobile par slow karein */
@media (max-width: 768px) {
    .ticker-content {
        animation-duration: 15s;
    }
    .news-label {
        width: 110px;
        font-size: 0.75rem;
        padding: 0 10px;
    }
}

/* --- Mobile Settings (Slow Down) --- */
@media (max-width: 768px) {
    .ticker-content {
        /* Mobile par time barha diya taake speed slow ho jaye */
        animation-duration: 35s;
    }
}

/* =========================================
   WHATSAPP WIDGET STYLES
   ========================================= */

.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; /* Sab se upar */
    font-family: "Poppins", sans-serif;
}

/* --- Floating Button --- */
.wa-float-btn {
    width: 60px;
    height: 60px;
    background: #25d366; /* Official WA Color */
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    position: relative;
}

.wa-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Red Notification Dot */
.wa-notification {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: #ff0000;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* --- Chat Popup Box --- */
.wa-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none; /* JS se toggle hoga */
    animation: slideUp 0.3s ease;
    transform-origin: bottom right;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wa-chat-box.active {
    display: block;
}

/* Header */
.wa-header {
    background: #075e54; /* WA Dark Green */
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}
.wa-avatar img {
    width: 40px;
    height: 40px;
}
.wa-head-info h4 {
    font-size: 1rem;
    margin: 0;
}
.wa-head-info span {
    font-size: 0.75rem;
    opacity: 0.8;
}
.wa-head-info .dot {
    width: 8px;
    height: 8px;
    background: #25d366;
    border-radius: 50%;
    display: inline-block;
    margin-right: 3px;
}
.wa-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Body (Chat Area) */
.wa-body {
    padding: 20px;
    background: #e5ddd5; /* WA Chat Background Color */
    background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png"); /* Pattern */
    height: 200px;
}

.wa-msg-received {
    background: #fff;
    padding: 10px 15px;
    border-radius: 0 10px 10px 10px;
    display: inline-block;
    font-size: 0.9rem;
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}
.wa-msg-received::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    border-top: 10px solid #fff;
    border-left: 10px solid transparent;
}

/* Footer (Input Area) */
.wa-footer {
    padding: 10px;
    background: #f0f0f0;
    display: flex;
    gap: 10px;
    align-items: center;
}
.wa-footer textarea {
    flex: 1;
    resize: none;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    height: 40px;
    outline: none;
    font-family: inherit;
}
.wa-send-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #075e54;
    cursor: pointer;
    transition: 0.3s;
}
.wa-send-btn:hover {
    color: #25d366;
    transform: translateX(3px);
}

/* Mobile Adjustment */
@media (max-width: 400px) {
    .wa-chat-box {
        width: 280px;
        bottom: 75px;
        right: -10px;
    }
}
