* {
  -webkit-tap-highlight-color: transparent !important;
}

/* HERO */
.hero-swiper {
    width: 100%;
    height: 420px;              /* desktop default */
    margin-top: 25px;
    margin-bottom: 16px;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.hero-pagination {
    bottom: 8px !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--highlight);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    height: 28px;
    background: var(--primary);
}

.hero-swiper .swiper-wrapper {
    height: 100%;
}

.hero-slide {
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ✅ Mobile override */
@media (max-width: 768px) {
    .hero-swiper {
        height: 480px;          /* FIXED px height for mobile */
    }
}


.hero-slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.hero-slide a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.hero-slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.hero-slide a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Second hero hidden on desktop */
.second-hero {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
    .second-hero {
        display: block;
        height: 220px;          /* mobile height */
        width: 100%;
        border-radius: 6px;

        background-color: var(--secondary);

        /* make the background image cover the div */
        background-image: inherit; /* already set inline with style="" */
        background-size: cover;      /* scales image to cover div */
        background-position: center; /* centers the image */
        background-repeat: no-repeat;/* don’t tile */
    }
    .mobile-hero-link {
        display: block;       /* make link wrap the div properly */
        text-decoration: none; /* remove underline if any */
    }

}


/* hide mobile slider on desktop */
.mobile-only { display: none; }

/* hide desktop slider on mobile */
@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
}

.feature-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feature-media:nth-child(1) { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 2 / 1; }
.feature-media:nth-child(2) { grid-column: 3 / 4; grid-row: 1; aspect-ratio: 1 / 1; }
.feature-media:nth-child(3) { grid-column: 1 / 2; grid-row: 2; aspect-ratio: 1 / 1; }
.feature-media:nth-child(4) { grid-column: 2 / 4; grid-row: 2; aspect-ratio: 2 / 1; }

.feature-media {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {

  .feature-layout {
    display: none;
  }

  .feature-section {
    display: none;
  }

  .feature-media:nth-child(1),
  .feature-media:nth-child(2),
  .feature-media:nth-child(3),
  .feature-media:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .feature-media {
    aspect-ratio: 1;
  }

  .promo-section {
    flex-direction: column;
    gap: 14px;
  }

  .sidebar-products-promo {
    display: none;
  }

  .promo-cards-wrap {
    display: flex;
  }

  .promo-card {
    height: 320px;
  }

}

  .feature-media {
    aspect-ratio: 1;
  }



.feature-layout {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: stretch;
  justify-content: center;
  max-width: 1870px;
  margin: 20px auto;
  padding: 0 32px;
}

.feature-layout .feature-section {
  flex: 1;
  min-width: 0;
  max-width: none;
  padding: 0;
  overflow: hidden;
}



.promo-section {
  width: 100%;
  max-width: 1850px;
  margin: 30px auto;
  padding: 0 24px;
  
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: stretch;
}

.sidebar-products-promo {
  flex: 0 0 590px;
  background: var(--bg-dark);
  border-radius: 14px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.sidebar-products-promo .sidebar-products-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-products-promo .sidebar-products-label {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.sidebar-products-promo .sidebar-products-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.sidebar-products-promo .sidebar-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
}

.sidebar-products-promo .product-card-desktop {
  padding: 8px;
  gap: 4px;
  height: 100%;
}

.sidebar-products-promo .product-card-desktop .product-image-container {
  flex: 1;
  background: transparent;
}

.sidebar-products-promo .product-card-desktop .product-info {
  justify-content: flex-end;

}

.sidebar-products-promo .product-card-desktop .product-price,
.sidebar-products-promo .product-card-desktop .product-price .original-price,
.sidebar-products-promo .product-card-desktop .product-price .discounted-price {
  font-size: 0.75rem;
}

.sidebar-products-promo .product-card-desktop .product-image-container img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 0;
}

.sidebar-swiper-promo {
  background: var(--bg-dark);
  border-radius: 14px;
  padding: 10px 30px 10px;
  overflow: hidden;
}
.sidebar-swiper-promo .product-info {
  font-size: 0.9rem;
}
.sidebar-swipers-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-swiper-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px;
  padding: 0;
}

.sidebar-product-swiper {
  width: 100%;
}

.sidebar-product-swiper-2 {
  width: 100%;
}

.sidebar-product-swiper .swiper-slide,
.sidebar-product-swiper-2 .swiper-slide {
  width: auto;
  height: auto;
  flex-shrink: 0;
}

.sidebar-product-swiper .swiper-wrapper,
.sidebar-product-swiper-2 .swiper-wrapper {
  align-items: stretch;
}

.product-card-product-swiper {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border-muted);
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  width: 320px;
  min-width: 0;
}

.product-card-product-swiper:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.product-card-product-swiper .product-image-container {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--info);
}

.product-card-product-swiper .product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.product-card-product-swiper .product-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 0 4px;
}

.product-card-product-swiper .product-name {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.product-card-product-swiper .product-price {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: auto;
  font-weight: 800;
  font-size: 0.95rem;
}

.product-card-product-swiper .original-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.product-card-product-swiper .discounted-price {
  color: var(--primary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .sidebar-swiper-promo {
    display: none;
  }
}

.mobile-promo-swipers {
  display: none;
}

.promo-cards-wrap {
  flex: 1;
  display: none;
  flex-direction: column;
  gap: 20px;
}

.promo-card {
  position: relative;
  display: block;
  height: 620px;
  border-radius: 14px;
  overflow: hidden;
}

.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.promo-card:hover img {
  transform: scale(1.06);
}

.promo-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 32px;

  background: linear-gradient(
    to top,
    rgba(0,0,0,.7),
    rgba(0,0,0,.2),
    transparent
  );

  color: white;
}

.promo-overlay h3 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 6px;
}

.promo-overlay span {
  font-size: 14px;
  opacity: .9;
}
@media (max-width: 768px) {

  .promo-section {
    flex-direction: column;
    gap: 14px;
  }

  .sidebar-products-promo {
    display: none;
  }

  .mobile-promo-swipers {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .product-swiper-mobile {
    background-color: var(--bg);
    padding: 12px;
    border-radius: 8px;
    margin: 5px;
  }

  .product-swiper-mobile .swiper-slide {
    width: 240px;
    height: auto;
  }

  .product-swiper-mobile .swiper-wrapper {
    align-items: stretch;
  }

  .product-swiper-mobile .product-card {
    background-color: var(--bg-dark) !important;
    overflow: hidden;
    border-radius: 6px;
    margin-right: 0;
    flex-shrink: 0;
    border: 1px solid var(--border-muted);
  }

  .product-swiper-mobile .product-card .product-image-container {
    border-radius: 4px;
  }

  .product-swiper-mobile .product-card .product-info {
    padding: 4px;
  }

  .product-swiper-mobile .product-card .product-price {
    font-size: 0.82rem;
  }

  .product-swiper-mobile .card-discount-badge {
    background: var(--bg-light);
  }

  .promo-cards-wrap {
    display: flex;
  }

  .promo-card {
    height: 320px;
  }

}









.products-section {
  padding:48px;
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 4px;
}


.view-all-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg) !important;
  padding: 8px;


  border: 1px solid var(--border-muted);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
    border-radius: 5px;
  background: var(--muted);
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-name {
  font-size: 16px;
  font-weight: 500;
}

.product-category {
  font-size: 13px;
  color: var(--text-muted);
}

.product-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);

}

/* Responsive */

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

.desktop-tag-swipers {
  max-width: 1850px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.desktop-swiper-promo {
  background: var(--bg-dark);
  border-radius: 14px;
  padding: 10px 30px 10px;
  overflow: hidden;
}

.desktop-tag-swiper {
  width: 100%;
}

.desktop-tag-swiper .swiper-slide {
  width: auto;
  height: auto;
  flex-shrink: 0;
}

.desktop-tag-swiper .swiper-wrapper {
  align-items: stretch;
}

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



.products-section {
    display: none;
  }


}

.product-grid .product-price {

  align-self: flex-end;
}
.product-grid .product-category {
  align-self: flex-start;

}












/* CATEGORIES ROW */
.categories-row { margin-bottom: 8px; }
.categories-row .swiper-slide { width: auto; }
.category-card { 
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px; 
  background: var(--bg-light);
  border: 1px solid var(--border-muted);

  color: var(--text); 
  border-radius: 20px; 
  font-weight: 500; 
  white-space: nowrap; 
  font-size: 1rem; 
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
}


.category-card {
    height: 36px;
    font-size: 1rem;
}


/* PRODUCT SECTIONS */
.product-section { margin-bottom: 24px;  }
.product-section h2 { 
    font-size: 1.1rem;
     margin-bottom: 10px;
      color: var(--text);
 }

.product-swiper .swiper-slide { width: 190px; height: auto; }
.product-card {
    background: var(--bg-dark);

    overflow: hidden;
    margin-right: 2px;
    flex-shrink: 0;
    border-radius: 4px;

}


.product-card .image {
    aspect-ratio: 4 / 4.4;
    width: 100%;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
    border-radius: 4px;

}


.product-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}





.product-card .info {
    padding: 2px 0;
    display: flex;
    flex-direction: column;
    gap: 4px; /* spacing between title and price */
    
}



.product-title-box {
    display: flex;
    justify-content: start;
    align-items: center;
    height: 40px; /* same as Vortex */
    text-align: center;
    padding: 4px;
}
 .product-description-box {
  display: flex;
  justify-content: start;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 450;
  height: 10px;
  position: relative;
  padding: 4px;
  z-index: 3;
 }
 .product-category-box {
  display: flex;
  justify-content: end;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  height: 10px;
  position: relative;
  margin: 0.5rem;
  z-index: 3;
 }

.product-title {
    font-size: 0.85rem;      /* Vortex uses 15px → ~0.94rem */
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;   
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title:hover {
    color: var(--primary);
}





.product-price-box {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    height: 15px;
    gap: 4px;
    margin-top: auto !important;
}

.product-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}





.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}





.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger);
    color: #fff;
    font-size: 0.625rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 8px;
}







.product-list {
    font-size: 0; /* removes inline-block gaps */
    width: 100%;
    
}

.product-list .product-card {
    display: inline-block;
    width: 49%;          /* two per row */
    margin: 0.5%;        /* spacing between cards */
    vertical-align: top;
    box-sizing: border-box;

    /* keep your styles */
    background: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;

    margin-bottom: 4px;

}











.product-filters {
  position: relative; 
  width: 200px;
  margin-bottom: 12px;
}

.filter-button {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.filter-options {
  position: absolute;
  top: 100%;  /* directly below button */
  left: 0;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 4px;
  list-style: none;
  padding: 0;
  display: none;  /* hidden by default */
  z-index: 10;
}

.filter-options li {
  padding: 6px 10px;
  cursor: pointer;
}

.filter-options li:hover {
  background: var(--secondary);
  color: var(--text);
}

/* pagination */


.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.pagination button {
  background: transparent;
  border: 1px solid var(--highlight);
  color: var(--text);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
  background: var(--border);
  color: var(--bg-dark);
}

.pagination .active {
  background: var(--border);
  color: var(--bg-dark);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
} 







/* mobile filters row */
.mobile-filters-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* left-right alignment */
  align-items: center;            /* vertically centered */
  gap: 0.5rem;
  width: 100%;
  padding: 5px;
}

.mobile-dropdown-wrapper {
  flex: 0 0 auto;
}
.mobile-filter-btn-wrapper {
  flex: 0 0 auto;   /* keeps it compact */
}







.main-layout{
    display: none;
}


@media (min-width: 768px) {

    .product-list {
        display: none;
    }

    .filter-button {
        display: none;
    }

  .categories-row {
      display: none !important;
  }  
  .mobile-filters-row { display: none; }

    .hero-swiper {
        height: 880px;
        border-radius: 12px;
        max-width: 1850px;   /* <— controls how wide it gets */
        margin: 0 auto;     /* <— centers it */
        margin-top: 5px;
    }

    .hero-slide {
        border-radius: 12px;
        background: var(--primary);
        font-size: 22px;
    }




 


    

    /* ===== Main Layout ===== */
.main-layout {
  display: flex;
  align-items: flex-start;

}

/* Main section */
.main-layout main {
   flex: 5;
    order: 2;
    align-items: flex-start;
    margin: 5px;
    border-radius: 8px;
 }

/* Card container grid */
.main-layout .card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  justify-content: start;
  width: 100%;           
  box-sizing: border-box; /* important */
  padding: 0;             
}
.main-layout {
  display: flex;
  padding: 1rem;
  max-width: 1845px;    /* ensure container doesn’t overflow screen */
  box-sizing: border-box;

  margin: 0 auto;       /* center the container itself */
  justify-content: center;  /* center the items inside horizontally */
  align-items: center;      /* center items vertically if needed */
}


/* Individual Card */
.main-layout .card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease;
  background-color: var(--bg-dark);

  border-radius: 8px;
  overflow: hidden;
}

.main-layout .card:hover { transform: translateY(-4px); }

.main-layout .card img {
  height: 270px;      /* force height */
  background: var(--secondary);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.main-layout .card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  height: auto;         
}


.main-layout .card-info {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 1rem 1rem;
}

.main-layout .card-info .name {
  font-weight: 600;
  font-size: 1.05rem;
}

.main-layout .card-info .desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.main-layout .card-info .price {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  margin-top: 0.3rem;
}

/* Toolbar */
.main-layout .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  margin-top: 0.75rem;
  background: var(--bg-dark);
  border-radius: 8px;
  padding: 0.5rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Category info */
.main-layout .category-info {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.main-layout .category-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.main-layout .category-count {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sort container */
.main-layout .sort-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.main-layout .sort-container label {
  font-weight: 600;
  color: var(--text);
}

/* Custom select */
.main-layout .custom-select {
  position: relative;
  display: inline-block;
}

.main-layout .custom-select select {
  background: transparent;
  color: var(--text);
  border: none;
  outline: none;
  padding: 0.5rem 1.8rem 0.5rem 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  transition: color 0.2s ease;
}

.main-layout .custom-select:hover select { color: var(--highlight); }

.main-layout .custom-select::after {
  content: "▾";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.main-layout .custom-select:hover::after { color: var(--highlight); }

.main-layout .custom-select select option {
  background-color: var(--bg-dark);
  color: var(--text);
  padding: 0.6rem;
  font-size: 0.95rem;
  border: none;
}

.main-layout .custom-select select option:hover {
  background-color: oklch(0.2 0 20);
  color: var(--highlight);
}



.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 0.5rem;
    font-size: 0.8rem;

}

.discounted-price {
    font-weight: 700;
    color: var(--primary); /* or another accent color */
    font-size: 0.9rem;
}

.card-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-light);
    border-radius: 0.2rem;
    padding: 0.1rem 0.35rem;
    line-height: normal;
    direction: rtl;
    vertical-align: middle;
    height: fit-content;
}










  .product-swiper {
    max-width: 1800px;
    margin: 0 auto; /* center it */
  }










}
@media (max-width: 1100px) {
  .main-layout .card-container {
    grid-template-columns: repeat(3, 1fr);
  }

  
}













.product-grid-desktop {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* desktop: 3 columns */
  gap: 10px;
  max-width: 1400px !important;
  margin: 0 auto;
}

.product-card-desktop {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 5px;
  border: 1px solid var(--border-muted);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%; /* equal heights in grid */
}

.product-card-desktop:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* IMAGE */
.product-image {
  width: 100%;
  aspect-ratio: 4/4.5;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  border-radius: 7px;
  position: relative;
  background: var(--muted);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BADGE */
.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 6px;
}

/* INFO */
.product-info {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 5px;
}

.product-category {
  display: flex;
  justify-content: end;
  align-items: flex-end;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  height: 10px;
  position: relative;
  margin-top: 12px;
  z-index: 3;
}


 .product-description {
  display: flex;
  justify-content: start;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 450;
  height: 10px;
  position: relative;
  padding: 4px;
  
  z-index: 3;
 }



.product-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-top: auto;
}

/* RESPONSIVE */
@media (max-width: 1500px) {
  .product-grid-desktop { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1250px) {
  .product-grid-desktop { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .product-grid-desktop { display: none; } /* switch to mobile layout */
}

/* Desktop product card */
.product-card-desktop {
  display: flex;
  flex-direction: column;
  gap: 6px;                     /* less vertical gap */
  background: var(--bg-dark);
  border-radius: 8px;
  padding: 10px;                 /* slightly smaller padding */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card-desktop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Image container */
.product-card-desktop .product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  background: var(--info);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image inside container */
.product-card-desktop .product-image-container img {
  max-width: 88%;       /* leaves a bit more padding around */
  max-height: 88%;
  object-fit: contain;
  border-radius: 8px;
}

/* Card info (title + price) */
.product-card-desktop .product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.product-card-desktop .product-name {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
}

.product-card-desktop .product-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Grid layout for desktop: 3 per row */
.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: start;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row */
  gap: 14px;                             /* smaller gap to fit 4 cards nicely */
  justify-items: start;
}

.product-card-desktop {
  display: flex;
  flex-direction: column;
  gap: 4px;                     /* tighter spacing */
  background: var(--bg-dark);
  border-radius: 6px !important;           /* sharp edges */
  padding: 8px;                 /* smaller padding */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card-desktop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Image container stays “boxed” */
.product-card-desktop .product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  background: var(--info);
  border-radius: 6px !important;           /* very sharp corners */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image inside the container */
.product-card-desktop .product-image-container img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  border-radius: 6px !important;
}

/* Text info */
.product-card-desktop .product-info {
  display: flex;
  flex-direction: column;
  padding: 0 2px;
}

.product-card-desktop .product-name {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
}

.product-card-desktop .product-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  align-self: flex-end ;

}








.original-price-box {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 0.5rem;
    font-size: 0.7rem;


}

.discounted-price-box {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.88rem;
}






.product-name {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    display: block;
}










/* Swiper card - same look as product-grid but smaller */
.product-card-swiper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background: var(--bg-dark);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-muted);
}

.product-card-swiper .product-image-container {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    border-radius:5px;
    background: var(--info);
}

.product-card-swiper .product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-swiper .product-info {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px;
}

.product-card-swiper .product-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-card-swiper .product-name {
    font-size: 0.8rem;
    font-weight: 450;
    line-height: 1.2;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.product-card-swiper .product-category {
    font-size: 0.7rem;
    color: var(--text-muted);
    align-self: flex-start;
}

.product-card-swiper .product-price {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-right: auto;
}

.product-card-swiper .product-price span:not(.discounted-price):not(.card-discount-badge) {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}



.product-card-swiper .original-price{
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}
.product-card-swiper .discounted-price{
  color: var(--primary);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
    .product-swiper .swiper-slide {
        width: 320px;
        height: auto;
    }
    .product-swiper .swiper-wrapper {
        align-items: stretch;
    }
    .product-swiper {
        background-color: var(--bg-dark);
        padding: 16px;
        border-radius: 8px;
        padding-bottom: 40px;
        padding-left: 40px;
        padding-right:40px;
    }

}
@media (max-width: 768px) {
  .product-swiper {
    background-color: var(--bg);
    padding: 12px;
    border-radius: 8px;
    margin: 5px;
  }

  .product-swiper .swiper-slide {
    width: 240px;
    height: auto;
  }

  .product-swiper .swiper-wrapper {
    align-items: stretch;
  }

  .product-swiper .product-card {
    background-color: var(--bg-dark) !important;
    overflow: hidden;
    border-radius: 6px;
    margin-right: 0;
    flex-shrink: 0;
    border: 1px solid var(--border-muted);
  }

  .product-card-swiper {
    background-color: var(--bg-dark);
  }

  .product-swiper .product-card .product-image-container {
    border-radius: 4px;
  }

  .product-swiper .product-card .product-info {
    padding: 4px;
  }



  .product-swiper .product-card .product-price {
    font-size: 0.82rem;
  }

  .product-swiper .card-discount-badge {
    background: var(--bg-light);
  }
}

@media (max-width: 768px) {
  .product-title-box {
    margin-bottom: 4px;
  }

  .original-price-box {
    font-size: 0.6rem;
  }



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

  .discounted-price {
    font-size: 0.7rem;
  }

  .card-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: normal;
    font-size: 0.8rem;
    padding: 0.04rem 0.25rem;
    background: var(--bg-dark);
    border:1px solid var(--border-muted); 
    border-radius: 6px;
  }
}

@media (min-width: 768px) {
  .mobile-margin-top {
    display:none;
  }
}

