:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --gray-color: #777;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --header-height: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

  /*Notification */
        .notification {
            position: fixed;
            bottom: 70px;
            right: 20px;
            background: var(--secondary-color);
            color: white;
            padding: 12px 20px;
            border-radius: 10px;
            box-shadow: var(--shadow);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .notification.show {
            opacity: 1;
        }

/* Header Styles */
.desktop-nav {
    background: var(--gray-color);
    padding: 6px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
}

.desktop-nav a {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--accent-color);
    /* subtle highlight */
}

.desktop-nav i {
    font-size: 0.9rem;
    color: #fff;

}

.header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Top bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}

/* Hamburger button */
.hamburger {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    display: none;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: 40px;
    border-radius: 50%;
}

.accent {
    color: var(--accent-color);
}

/* Search section (desktop) */
.search-section {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 500px;
    margin: 0 15px;
    position: relative;
}

.search-section input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px 0 0 20px;
    outline: none;
}

.search-section button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 20px 20px 0;
    background: #eee;
    cursor: pointer;
}

/* Suggestions dropdown */
.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0;
  display: none;
}

.suggestions-box li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.suggestions-box li:hover {
  background: #f9fafb;
}

.suggestions-box li img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.suggestions-box .suggestion-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.suggestions-box .suggestion-name {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestions-box .suggestion-price {
  font-size: 13px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 2px;
}

/* User icon */
.user-icon {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    
}

.user-icon-text {
    font-size: 1rem;
    margin-top: 5px;
}
/* Mobile nav */
.mobile-nav {
    position: absolute;
    display: none;
    flex-direction: column;
    padding: 10px 15px;
    background: #f9f9f9;
    left: 2px;
}

.mobile-nav a {
    padding: 8px 0;
    color: #333;
    text-decoration: none;
}

.mobile-nav a:hover {
    color: #007bff;
}

/* User dropdown */
.user-dropdown {
    display: none;
    position: absolute;
    right: 15px;
    top: 60px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 160px;
    z-index: 1001;
}

.user-dropdown a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
}

.user-dropdown a:hover {
    background: #f9f9f9;
}

/* Mobile search section */
.search-section-mobile {
    display: none;
    background: #fff;
    width: 100%;
    display: none;
    justify-content: center;
    padding-bottom: 10px;
}

.search-section-mobile input {
    width: 80%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px 0 0 20px;
}

.search-section-mobile button {
    color: red;
    padding: 9px 14px;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 20px 20px 0;
    background: #eee;
    cursor: pointer;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .search-section {
        display: none;

    }

    .search-section-mobile {
        display: flex;

    }

    .top-bar {
        justify-content: space-between;
    }
}
/* Hero Section */

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 90vw;
    height: 280px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    /* dark purple gradient */

}

.slideshow-bg {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

.slideshow-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;

}

.slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}


.slide .static-img {
    width: 100% !important; 
    height:280px !important; 
    object-fit:fill !important;
}

.product-row {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px;
}

.slide-product-container {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.slide-header {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    color: #fff;
    padding: 35px;
    height: 100%;
    width: 100%;
    z-index: 2;
}

.slide-header h5 {
    font-size: 40px;
    background: linear-gradient(90deg, var(--accent-color), red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.slide-header p {
    font-size: 16px;
    margin: 6px 0;
    font-weight: 500;
}

.slide-header .tagline {
    font-size: 13px;
    font-style: italic;
    color: #ddd;
}


.slide-product-card {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    width: 220px;
    border-radius: 12px;
    padding: 16px 10px 0 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 2;
    cursor: pointer;
}


.slide-product-card img {
    width: 100%;
    height: 100px !important;
    object-fit: cover;
    border-radius: 8px;
}


.slide-product-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-product-card h3 a {
    text-decoration: none;
    color: white;
}


.slide-product-card .discount {
    font-size: 20px;
    font-weight: 700;
    color: #e63946;
    margin-right: 6px;
}


.slide-product-card .old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.slide-product-card .save {
    position: absolute;
    top: 0%;
    background: #28a745;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 6px;
}


/* dots */
.dots-container {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 3;
}

.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    width: 25px;
    background-color: #333;
}


@media (min-width: 768px) and (max-width: 1024px) {
    .slideshow-container {
        min-width: 95vw;
        padding: 0;
        height: 240px;
    }
    
    .slide .static-img {
        height:240px !important; 
    }

    .slide-header h5 {
        font-size: 25px;
        font-weight: 500;
    }

    .slide-header p {
        font-size: 15px;
    }

    .slide-product-card {
        width: 180px;
        height: 160px;
        padding: 12px;
    }

    .slide-product-card img {
        height: 90px !important;
    }

    .slide-product-card h3 {
        font-size: 10px;
    }

    .slide-product-card .discount {
        font-size: 14px;
    }

    .slide-product-card .old-price {
        font-size: 8px;
    }

    .slide-product-card .save {
        font-size: 11px;
        padding: 2px 6px;
    }
}


@media (max-width: 768px) {
    .slideshow-container {
        min-width: 95vw;
        padding: 0;
        height: 180px;
    }
    
    .slide .static-img {
        height:180px !important; 
    }
    
    .slide-header h5 {
        font-size: 17px;
    }

    .slide-header p {
        font-size: 10px;
    }
    .slide-header .tagline {
        font-size: 7px !important;
    }


    .slide-product-card {
        width: 130px;
        height: 130px;
        padding: 10px;
    }

    .slide-product-card img {
        height: 60px !important;
    }

    .slide-product-card h3 {
        font-size: 9px;
    }

    .slide-product-card .discount {
        font-size: 7px;
    }

    .slide-product-card .old-price {
        font-size: 7px;
    }

    .slide-product-card .save {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        min-width: 95vw;
        padding: 0;
        height: 130px;
    }
    
    .slide .static-img {
        height:130px !important; 
    }


    .slide-header {
        padding: 0;
        width: 100%;
    }

    .slide-header h5 {
        font-size: 15px;
    }

    .slide-header p {
        font-size: 6px;
    }

    .slide-header .tagline {
        font-size: 7px !important;
    }

    .slide-product-card {
        width: 90px;
        height: 95px;
        margin-bottom: 2px;
        padding-top: 5px;
    }

    .slide-product-card img {
        height: 45px !important;
        width: 70px !important;
    }

    .slide-product-card h3 {
        font-size: 6px;
    }

    .slide-product-card .discount {
        font-size: 7px;
    }

    .slide-product-card .old-price {
        font-size: 7px;
    }

    .slide-product-card .save {
        font-size: 6px;
        padding: 1px 5px;
    }
}


.essentials-section {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scrollbar-width: none

}
.essentials-section::-webkit-scrollbar {
    display: none;    /* Chrome, Safari, Edge */
}

.essential-grid {
    display: flex;
    gap: 30px;
    padding: 0 20px;
    width: max-content;
    min-width: 100%;
}



.essential-card {
    flex: 0 0 auto;
    width: 200px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.essential-image-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--dark-color);

}

.essential-image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.essential-product-image {
    width: 99%;
    height: 95%;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-top: 2px;
    border-radius: 12px;
}


.essential-product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.essential-product-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.essential-product-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}


.essential-product-price {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
}

.essential-product-seller {
    font-size: 12px;
    color: #666;
}

.essential-product-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cart-btn {
    position: absolute;
    top: 45%;
    right: 0;
    background: green;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    z-index: 700;
}

.cart-btn:active {
    transform: scale(0.95);
}

.cart-btn i {
    margin-right: 2px;
    font-size: 12px;
}

/* Scrollbar styling */
.essentials-section::-webkit-scrollbar {
    height: 6px;
}

.essentials-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.essentials-section::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.essentials-section::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .essential-card {
        width: 180px;
    }

    .essential-image-container {
        height: 130px;
    }

    .essential-product-info {
        padding: 12px;
    }

    .essential-grid {
        padding: 0 16px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .essential-card {
        width: 160px;
    }

    .essential-image-container {
        height: 120px;
    }

    .essential-product-info {
        padding: 10px;
    }

    .essential-grid {
        padding: 0 12px;
        gap: 10px;
    }

    .essential-product-title {
        font-size: 13px;
    }

    .essential-product-price {
        font-size: 15px;
    }
    .cart-btn {
        top: 40%;
    }
}



/* Categories Section */
.categories-container {
    position: relative;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-behavior: smooth;
    z-index:800;
    transition: background-color 0.1s ease-in;
}

.categories-wrapper {
    position: relative;
    width: 100vw;
    display: flex;
    justify-content: space-around;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    margin: 5px 0 10px 0px;
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 120px;
    text-align: center;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.1s;
    border-radius: 10px;
    border: 1px solid gray;
}

.category-card.active {
    border: 2px solid #007bff;
    /* or your theme color */
}

.category-card img {
    width: 40px;
    height: 40px;
    object-fit: cover;

}

.category-card p {
    margin-top: 5px;
    font-size: 14px;
    text-overflow: ellipsis;
}


.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    font-size: 1.5rem;
    margin-top: 0.4rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
}


/* filters */
/* =======================
   Filters Wrapper
   ======================= */
#filtersWrapper {
    display: none;
}

#filtersWrapper:not(.hidden) {
    display: flex;
}

.filters-wrapper {
    width: 90%;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

/* hidden scrollbar */
#filtersWrapper::-webkit-scrollbar {
    display: none;
}

#filtersWrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/*    Seller Filter */
.seller-filter select {
    min-width: 200px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    white-space: normal;
}

/* =======================
   Price Filter Button
   ======================= */
.filter-btn {
    background: #3498db;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.filter-btn:hover {
    background: #2980b9;
}

/* =======================
   Price Box (popup)
   ======================= */
.price-box {
    position: absolute;
    z-index: 100;
    width: 250px;
    height: 110px;
    margin-top: 12px;
    padding: 15px;
    background: var(--dark-color, #222);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none !important;
}

/* Buttons inside price box */
.price-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.set-btn,
.close-btn {
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    flex-shrink: 0;
}

.set-btn {
    background: #2ecc71;
    color: white;
}

.set-btn:hover {
    background: #27ae60;
}

.close-btn {
    background: #e74c3c;
    color: white;
}

.close-btn:hover {
    background: #c0392b;
}

.subcategory-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.subcategory-wrapper::-webkit-scrollbar {
    height: 5px;
}

.subcategory-card {
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.subcategory-card:hover {
    background: #eee;
}

.subcategory-card.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}


/* custom slider styling */

.irs--flat .irs-handle {
    border-radius: 50% !important;
    background: #3498db !important;
    /* primary color */
    width: 20px !important;
    height: 20px !important;
    cursor: pointer;
}

.irs--flat .irs-bar {
    background-color: #007bff !important;
    /* green for active range */
}

/* Round the track */
.irs--flat .irs-line {
    border-radius: 8px !important;
}

@media (max-width: 479px) {
    .filters-wrapper {
        width: 95vw;
        padding: 4px;
    }
}



/* Products Section */
.products-section {
    margin-bottom: 2rem;
    background-color: #f9f9f9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 25px;
}

.product-card {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    height: 400px;
}

.product-image-container {
    padding: 0;
    background-color: #fafafa;
    border-bottom: 1px solid #eee;
    text-align: center;
    height: 50%;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 50%;
}

.product-title {
    height: 1.5em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.product-title a {
    font-size: 1rem;
    font-weight: 600;
    color: #4a4a4a;
    text-decoration: none;
}

.product-price {
    margin: 8px 0 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.final-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #5d9b5d;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.8rem;
}

.product-seller {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 10px;
}

.add-to-cart {
    width: 100%;
    background-color: #a4c6a4;
    color: #333;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.add-to-cart:hover {
    background-color: #8bb18b;
    transform: scale(1.03);
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 200, 255, 0.8);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 0.8rem;
    z-index: 2;
    padding: 0.5rem;
}

.no-products {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #666;
    padding: 20px;
}

.no-products img {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
    opacity: 0.8;
}

.no-products-suggestion {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    text-align: center;
}

.no-products-suggestion h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.no-products-suggestion p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
}

.product-request-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-request-form input {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.product-request-form input:focus {
    border-color: #008f68;
    /* green vibes */
}

.product-request-form button {
    padding: 10px 18px;
    background: #008f68;
    color: #fff;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s;
}

.product-request-form button:hover {
    background: #007356;
}

.form-feedback {
    margin-top: 12px;
    font-size: 0.9rem;
}



@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .product-card {
        height: 320px;
    }
    .product-price{
        gap: 2px;
    }

    .product-title a {
        font-size: 0.65rem;
    }

    .final-price {
        font-size: 0.75rem;
    }

    .original-price {
        font-size: 0.55rem;
    }

    .product-seller {
        font-size: 0.7rem;
    }

    .product-image-container {
        height: 40%;
    }

    .product-image {
        height: 100%;
    }

    .add-to-cart {
        font-size: 0.55rem;
        padding: 8px 14px;
        border-radius: 40px;
    }
    .product-info {
        height: 60%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 18px;
    }

    .product-title a {
        font-size: 0.95rem;
    }

    .final-price {
        font-size: 1.05rem;
    }

    .add-to-cart {
        font-size: 0.95rem;
        padding: 10px 16px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}



/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
}

.pagination button {
    padding: 1rem 0.9rem;
    border: none;
    background-color: var(--gray-color);
    border: 1px solid var(--dark-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    font-size: 0.85rem;
}

/* seo section  */

.seo-section {
  background: #fff; /* subtle light background */
  padding: 3rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  font-family: "Inter", Arial, sans-serif;
  color: #374151; /* neutral gray */
  line-height: 1.6;
}

.seo-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.seo-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  text-align: center;
}

.seo-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.seo-section p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.seo-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.seo-section ul li {
  margin-bottom: 0.75rem;
  padding-left: 1.75rem;
  position: relative;
}

.seo-section ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #059669; 
  font-weight: bold;
}

.seo-section strong {
  color: #111827;
}

.seo-section em {
  font-style: italic;
  color: #6b7280;
}

@media (max-width: 768px) {
  .seo-section {
    padding: 2rem 1rem;
  }
  .seo-section h2 {
    font-size: 1.5rem;
  }
  .seo-section h3 {
    font-size: 1.2rem;
  }
}


/* Features Section */
.features {
    background-color: white;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 1.2rem;
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.feature-description {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 1rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.footer-logo img {
    height: 25px;
}

.footer-about {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-links h3 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
}

.social-links a {
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-color);
    color: white;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-text {
    flex: 1;
    min-width: 200px;
    font-size: 0.85rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.cookie-accept {
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
}

.cookie-accept:hover {
    background-color: #e67e22;
}

.cookie-essential {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.cookie-essential:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-deny {
    background-color: var(--danger-color);
    color: white;
    border: none;
}

.cookie-deny:hover {
    background-color: #c0392b;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
}

/* Loading Animation */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */


@media (max-width: 479px) {
    .filters-wrapper {
        margin: 0 0 4px 10px;
    }

    .seller-filter select {
        width: 150px;
        padding: 6px;
        border-radius: 6px;
        border: 1px solid #ccc;
        font-size: 14px;
    }

    
}

@media (min-width: 480px) and (max-width: 575px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .product-image-container {
        height: 160px;
    }

}

@media (min-width: 576px) and (max-width: 767px) {
    .hero {
        padding: 2.5rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.2rem;
    }

    
    #search-input {
        width: 200px;
    }
}

@media (min-width: 768px) {

    .categories {
        padding: 2rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }


    .features {
        padding: 2.5rem 2rem;
    }

    .footer {
        padding: 2.5rem 2rem 1.5rem;
    }

    .categories-wrapper {
        padding: 0px
    }

}

@media (min-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

   .products-section{
       padding: 1rem;
   }


    .features-grid {
        gap: 2rem;
    }

    .categories-wrapper {
        padding: 0px 40px
    }

}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .categories-wrapper {
        padding: 0px 40px
    }
}
