/* products page -mobile page  */

.filter-sidebar h5 {
  font-size: 1.2rem;
}

.filter-sidebar h6 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
}

.filter-sidebar ul li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-body);
}

.filter-sidebar ul li input {
  margin-right: 0.5rem;
}

.filter-sidebar.p-4.rounded.shadow-sm.bg-white{
  margin: auto;
/* margin-right: 292px;
  margin-left: -310px; */
  margin-top: -48px;
}

/*  Product Cards  */
.product-card {
  /* border: 1px solid var(--border-light); */
  border-radius: 0.5rem;
  overflow: hidden;
  height: 100%; 
  display: flex;
  flex-direction: column;
  background: var(--surface-color);
  position: relative;
  opacity: 1;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.products-slider {
  max-width: 1420px;
  margin: 20px auto;
  padding: 0 20px;
}

.product-card img {
  width: 100%;
  height: 320px; 
  object-fit: contain; 
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  padding: 32px; 
}

.product-card .p-3 {
  flex-grow: 1; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 0.5rem !important; 
  padding-bottom: 16px !important; 
}

.product-card h6 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem !important;
}

.product-card .text-primary {
  color: var(--product-text) !important;
  font-size: 0.9rem;
}

.product-card .text-muted {
  font-size: 0.8rem;
}

.product-card .text-warning {
  color: var(--btn-primary-bg) !important;
  font-size: 0.8rem;
}

.product-card .btn {
  font-size: 0.8rem;
  transition: 0.3s ease;
  margin-top: 0.5rem;
}

.product-img {
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.07);
}

.btn-primary {
  background: linear-gradient(135deg, var(--link-color), var(--accent));
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg,var(--link-color), var(--accent) );
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25%, 75% { transform: scale(1.3); }
  50% { transform: scale(1); }
}


/* Mobile category bar */
.mobile-category-bar {
  border-bottom: 1px solid var(--border-light);
}

.category-nav-mobile {
  gap: 55px; 
  scrollbar-width: none; 
}

.category-nav-mobile::-webkit-scrollbar {
  display: none;
}

.category-link {
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  color: var(--text-body);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
}

.category-link:hover {
  color: var(--text-dark);
}

.category-link.active {
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 2px solid var(--btn-primary-border);
}

/* .col-lg-9{
flex: 0 0 auto;
  width: 124%;
  margin-left: 86px;
  margin-top: -1401px;
} */

/* extra product card css  */

.product-card img {
  transition: transform 0.4s ease;
}
.product-card:hover img {
  transform: scale(1.05);
}
/* .btn-light.btn-sm i {
  color: #dc3545;
}
.btn-light.btn-sm:hover i {
  color: #b02a37;
} */
.text-warning i {
  font-size: 12px;
}

span.badge.bg-danger.position-absolute.m-2.px-2.py-1{
  z-index: 2;
  top: -2px;
}


/* hide content while loading */
.product-card.loading *:not(.card-spinner) {
  visibility: hidden;
}

.card-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border: 4px solid var(--border-default);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.product-card.loading .card-spinner {
  display: block;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* for category search bar  */

#categorySuggestions {
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  border-radius: 6px;
  background-color: var(--surface-color);
  margin-top: -124px;
}

#categorySuggestions .list-group-item {
  cursor: pointer;
  transition: background-color 0.2s;
}

#categorySuggestions .list-group-item:hover {
  background-color: var(--background-color);
}

.filter-sidebar {
  position: relative;
  overflow: visible;
}

/* filter sidebar  */

.product-card.highlight {
  border: 2px solid var(--accent) !important;
  background-color: var(--background-color);
}

html body.index-page main.main section#electronics.section.py-5.light-background div.container.aos-init.aos-animate div.row div.col-lg-9 div.mt-4{
  display: flex;
  justify-content: center;
}

/* === CLEAR FILTER BUTTON === */
#clearFilters.btn.btn-outline-secondary {
  background: linear-gradient(135deg, var(--primary), var(--focus-border));
  color: var(--surface-color);
  font-size: 0.8rem;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  box-shadow: 0 2px 6px var(--focus-ring);
  transition: all 0.25s ease;
  white-space: nowrap; /* keeps text in one line */
}

.btn-clear-filters:hover {
  background: linear-gradient(135deg,var(--primary), var(--focus-border));
  box-shadow: 0 3px 8px var(--focus-ring);
  transform: translateY(-1px);
}

.btn-clear-filters:active {
  transform: scale(0.97);
}

/* for the product detail page css */


.product-container {
      background: var(--surface-color);
      border-radius: 10px;
      padding: 16px;
    }

    /* Image gallery */
    #productImage {
      max-height: 400px;
    }

    /* Buy Box */
    .buy-box {
      border: 1px solid var(--border-default);
      border-radius: 10px;
      padding: 1rem;
      background-color: var(--background-color);
      position: sticky;
      top: 151px;
/* margin-right: -144px; */
  margin-left: 127px;
  width: 273px !important;
    }

    /* for the buy box  */

    html body.index-page main.main div.container.mb-5 div#product-detail.product-container div.row.g-4 div.col-md-3{
      width: 17%;
    }
    .buy-btn {
      width: 100%;
      margin-bottom: 0.5rem;
    }

    /* Product specs */
    .spec-table th {
      width: 35%;
      color: var(--text-muted);
    }
    .spec-table td {
      color: var(--text-body);
    }

    /* Related products */
    .related-products-wrapper {
      scrollbar-width: thin;
      scrollbar-color: var(--border-default) transparent;
    }
    .related-products-wrapper::-webkit-scrollbar {
      height: 8px;
    }
    .related-products-wrapper::-webkit-scrollbar-thumb {
      background-color: var(--border-default);
      border-radius: 10px;
    }
    .related-card {
      min-width: 160px;
      max-width: 180px;
      border-radius: 10px;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      background-color: var(--surface-color);
    }
    /* .related-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-sm);
    } */

    /* Reviews section */
    .review-card {
      background-color: var(--surface-color);
      border-radius: 10px;
      padding: 1rem;
      box-shadow: var(--shadow-sm);
      margin-bottom: 1rem;
    }

    .badge-discount {
font-size: x-large;
  padding: 4px 6px;
  color: var(--danger) !important;
  font-weight: 300;
    }

    /* image gallery same as alibaba  */

/* Container for the main image */
.product-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Styles for the main image */
#productImage {
  max-width: 100%;
}

/* Container for the thumbnails */
#productGallery {
  overflow-x: auto;
  white-space: nowrap; 
  padding: 10px 4px;
  justify-content: center;
}

/* Styles for individual thumbnails */
.thumbnail {
  flex-shrink: 0; 
}

.thumbnail:hover {
  border-color: var(--accent);
}

/* Hide scrollbar for aesthetics (optional) */
#productGallery::-webkit-scrollbar {
  display: none;
}
#productGallery {
  -ms-overflow-style: none; 
  scrollbar-width: none; 
}

/* Main image styling */
/* Allow full width for main image container */
.main-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 679px !important;
  height: 679px !important;
  margin: 0 auto;
}

html body.index-page main.main div.container.mb-5 div#product-detail.product-container div.row.g-4 div.col-md-5{
  margin-left: 181px;
}

.main-image {
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

/* Vertical gallery on left */
.vertical-gallery-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.vertical-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px; 
  overflow: hidden;
}

.scroll-btn {
width: 41px;
  height: 41px;
  border: none;
  background-color: var(--background-color);
  cursor: pointer;
  border-radius: 21px;
  margin: 2px 0;
    margin-bottom: 2px;
  font-size: 18px;
  line-height: 28px;
  margin-bottom: -14px;
}

.scroll-btn:hover {
  background-color: var(--border-default);
}


/* Thumbnails */

.thumbnail:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

/* Fade animation for main image change */
.fade-in {
  opacity: 0;
  transform: scale(1.03);
}

.product-container div.row.g-4 div.col-md-5 h3#productName.fw-semibold.mb-1{
  margin-top: -6px;
  font-size: 24px !important;
}

/* When changing image */
.main-image.fade {
  opacity: 0;
}

/* for the image zoomed in  */

/* Lens styling */
#magnifierLens {
  border-radius: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.6;
}

/* Zoom result window */
#zoomResult {
  box-shadow: var(--shadow-sm);
}

/* Main product image (fixed max size 679x679) */
#productImage {
  max-width: 600px !important;
  max-height: 600px !important;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s ease-in-out;
  display: block;
  margin: 0 auto;
}

#productImage.fade {
  opacity: 0;
}

/* Vertical thumbnails */
#productGallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 11px;
  transition: border-color 0.2s;
}
.thumbnail.active,
.thumbnail:hover {
  border-color: var(--accent);
}

/* Hide lens and zoom panel initially */
#magnifierLens,
#zoomResult {
  display: none;
}

/* Magnifier lens */
#magnifierLens {
  position: absolute;
  border: 2px solid var(--overlay-bg);
  width: 100px;
  height: 100px;
  cursor: crosshair;
  z-index: 10;
}

/* Zoom panel on right */
#zoomResult {
  position: absolute;
  top: 0;
  left: 100%; 
  margin-left: 15px;
  width: 1034px;
  height: 681px;
  border: 1px solid var(--border-default);
  overflow: hidden;
  z-index: 20;
  background: var(--surface-color);
  box-shadow: var(--shadow-sm);
}

#zoomResult img {
  position: absolute;
  width: auto;
  height: 251%;
  object-fit: cover;
  pointer-events: none;
}

html body.index-page main.main div.container.mb-5 div#product-detail.product-container div.row.g-4 div.col-md-5 p#productBrand.text-muted.mb-2{
  font-size: large;
  color: var(--link-color) !important;
  margin-top: 11px;
}
#product-detail.product-container div.row.gx-4.gy-3.align-items-start div.col-12.custom-info-col div.product-info-section div.mb-3 span#productPrice.fw-bold.fs-4{
  color: var(--text-dark);
}

/* for the offer card showing in all pages same  */

.offers-section {
  position: relative;
}

.offers-container-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.offers-container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0px;
  scrollbar-width: none;
}

.offers-container::-webkit-scrollbar {
  display: none;
}

.offer-card {
  min-width: 183px;
  background: var(--surface-color);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: var(--shadow-md);
}

.offer-card h6 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.offer-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.offer-card a {
  font-size: 12px;
  color: var(--link-alt);
  text-decoration: none;
}

.offers-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 60px;
  background: var(--background-color);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offers-scroll-btn:hover {
  background: var(--background-color);
}

.offers-scroll-btn.prev-btn {
  left: -20px;
}

.offers-scroll-btn.next-btn {
  right: -20px;
}

/* ---------- FEATURE ROW SECTION ---------- */
.features-container-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.features-container {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; 
}

.features-container::-webkit-scrollbar {
  display: none; 
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface-color);
  border-radius: 8px;
  padding: 10px 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* .feature-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
} */

.feature-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.feature-item:hover img {
  filter: brightness(1);
}

/* ---------- SCROLL BUTTONS ---------- */
.features-scroll-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
width: 27px;
  height: 41px;
  background: var(--background-color);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.features-scroll-btn:hover {
  background: var(--background-color);
}

.features-scroll-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.features-scroll-btn.prev-btn {
  left: -25px;
}

.features-scroll-btn.next-btn {
  right: -25px;
}

/* for the color selection palletes  */

.color-options-section {
  margin-top: 15px;
}

.color-options {
  display: flex;
  gap: 10px;
  margin-top: 11px;
}

.color-option {
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  text-align: center;
  transition: border 0.2s;
  width: auto;
}

.color-option:hover {
  border-color: var(--link-alt);
}

.color-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 6px;
  border: 1px solid var(--border-default);
}

.color-option.active {
  border: 2px solid var(--link-alt);
}

.color-price {
  font-size: 13px;
  font-weight: 600;
}

.color-oldprice {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* for the small product heading detail  */

.quick-specs {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  font-size: 14px;
  max-width: 360px;
}

.quick-specs h6 {
  display: none; 
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-item {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}

/* Label (left column) */
.spec-item strong {
flex-basis: 45%;
  min-width: 140px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
  font-size: 14px !important;
  line-height: 20px !important;
}

/* Value (right column) */
.spec-item span {
flex: 1;
  color: var(--text-dark);
  text-align: left;
  word-break: break-word;
  font-size: 14px !important;
  line-height: 20px !important;
}


/* for the page layout position  */

html body.index-page main.main div.container.mb-5 div#product-detail.product-container div.row.g-4 div.col-md-5.d-flex.align-items-start{
margin-left: -167px;
}

/* Product info section (wrapper inside col-md-5) */
.product-info-section {
  width: 601px;
  margin: 0 auto;
  padding: 12px 20px;
  margin-left: 11px;
}

/* Example: tweak internal spacing */
.product-info-section h3#productName {
  margin-top: 20px;
  font-size: 24px;
  line-height: 32px;
}

#ratingValue.me-1{
  font-size: 12px;
}

/* .product-info-section .offers-section {
  margin-top: 20px;
} */

.product-info-section .quick-specs {
  margin-top: 10px;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 17px;
}

 .col-md-5{
  width: 40.667% !important;
 }

 html body.index-page main.main div.container.mb-5 div#product-detail.product-container div.row.g-4 div.col-md-5 div.product-info-section p#productDescription.text-secondary.mb-3{
  margin-top: 11px;
 }

/* for the product description  */


#productDescription ul {
  margin-top: 0;
  color: var(--text-body);
}

#productDescription li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.see-more-link {
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  margin-top: 6px;
}

.see-more-link:hover {
  text-decoration: underline;
}

.offers-section h5.mb-3{
  font-weight: 600;
  font-size: 14px;
}

#productReviews.text-muted,
#productOldPrice.text-muted.text-decoration-line-through.small.ms-2{
  font-size: 12px;
}

.product-info-section h5{
  font-weight: 700;
}

/* Sticky gallery wrapper */
.sticky-gallery-wrapper {
  position: sticky;
  top: 100px;
  align-self: flex-start;
  z-index: 11;
  display: flex;
  align-items: flex-start;

}

/* Ensure main image and thumbnails fit nicely */
/* .sticky-gallery-wrapper .main-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
} */

/* for the spec and addittional information  */



.section-heading {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
}

.section-divider {
  border: 0;
  border-top: 2px solid var(--border-default);
  margin-top: -0.2rem;
  margin-bottom: 1.5rem;
}

.spec-table th,
.additional-info-table th {
  width: 40%;
  font-weight: 500;
  vertical-align: middle;
  padding: 10px 10px;
}

.spec-table td {
  color: var(--text-body);
}

.spec-table {
  border-color: var(--border-light);
  font-size: 0.95rem;
}

html body.index-page main.main section.product-info-section.mb-5 {
width: 90%;
  max-width: 1477px;
  margin: 0 auto;
  margin-right: 194px;
}

html body.index-page main.main section#productInfoSection.product-info-section.mb-5 div.bg-white.rounded.shadow-sm.p-4{
  margin-top: 31px;
}

/* for the customer review  */

.review-card {
  background-color: var(--background-color);
  transition: box-shadow 0.2s ease;
}
.review-card:hover {
  box-shadow: var(--shadow-sm);
}

/* === Related Products Card Fix === */

/* Fix image size consistency */
#relatedProductsContainer.d-flex.overflow-auto.gap-3.pb-2 div.card.related-card.border-0.shadow-sm img.card-img-top.rounded-top {
  width: 100%;
  height: 200px;           
  object-fit: contain;      
  background-color: var(--surface-color);   
  border-bottom: 1px solid var(--background-color);
}

/* Adjust product name and price layout */
#relatedProductsContainer.d-flex.overflow-auto.gap-3.pb-2 div.card.related-card.border-0.shadow-sm div.card-body.p-2 p.small.mb-1.text-truncate.fw-semibold {
font-size: 0.95rem;
  min-height: 38px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;  
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#relatedProductsContainer.d-flex.overflow-auto.gap-3.pb-2 div.card.related-card.border-0.shadow-sm div.card-body.p-2 p.text-primary.fw-bold.mb-0.small {
  font-size: 1rem;
}

/* Reduce internal padding slightly for compact look */
#relatedProductsContainer.d-flex.overflow-auto.gap-3.pb-2 div.card.related-card.border-0.shadow-sm div.card-body.p-2 {
  padding: 0.75rem !important;
}

/* Optional: Slightly smaller buttons in related section */
.d-flex.justify-content-between.align-items-center.mb-3 a.text-primary.small.text-decoration-none {
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
}

/* Keep consistent card width for horizontal scrolling */
#relatedProductsContainer.d-flex.overflow-auto.gap-3.pb-2 div.card.related-card.border-0.shadow-sm {
  flex: 0 0 auto;
  width: 230px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

#relatedProductsContainer.d-flex.overflow-auto.gap-3.pb-2 div.card.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

/* for the border showing in bottom to seprate part  */

/*  After reviews, before price */
.rating-wrapper.d-flex.align-items-center {
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* 2️ After features, above color selection */
.features-container-wrapper {
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 12px;
  margin-bottom: 15px;
}

/* 3️ After quick specs, before “About This Item” */
.product-info-section .quick-specs {
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 12px;
  margin-bottom: 15px;
  width: 100%;
  max-width: 100%;
}

/* for the new buy box  */

.buy-box {
  font-size: 14px;
  line-height: 1.4;
}

.buy-box .active-option {
  border-color: var(--accent);
  background-color: var(--background-color);
}

.buy-box .btn-orange {
  background-color: var(--focus-border);
  color: var(--surface-color);
  border: none;
}

.buy-box .btn-orange:hover {
  background-color: var(--focus-border);
}

.buy-box .btn-warning {
  background-color: var(--btn-primary-bg);
  border: none;
}

.buy-box .btn-warning:hover {
  background-color: var(--btn-primary-hover);
}

/* for load more button  */

#electronics.section.py-5.light-background div.container-fluid.aos-init.aos-animate div.row div.col-lg-9 div.mt-4{
  display: flex;
  justify-content: center;
}

/* for active color show on price filter */

/* PRICE FILTER ACTIVE STATE */
.price-link.active-price {
  background-color: var(--focus-border);
  color: var(--surface-color) !important;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 600;
  text-decoration: none;
}

.price-link {
  display: inline-block;
  cursor: pointer;
}

/* for wishlist in detail page  */

.main-image-wrapper {
  position: relative;
}

.wishlist-outside {
  top: -14px;       
  right: -14px;     
}

/* for variant not found  */

.out-of-stock-variant {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}
.stock-label {
  font-size: 11px;
  color: var(--danger);
  margin-top: 5px;
}
.add-to-cart:disabled {
  background: var(--border-light) !important;
  cursor: not-allowed;
}

/* for the breadcrumb  */

.breadcrumbs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
}

.breadcrumbs__crumb {
  margin-right: 6px;
  white-space: nowrap;
}

.breadcrumbs__crumb a {
  text-decoration: none;
  color: var(--link-alt);
}

.breadcrumbs__crumb--divider {
  color: var(--text-muted);
}

.breadcrumbs__crumb--current span {
  color: var(--primary);
  font-weight: 500;
}

/* for the categories ui  */

.category-children.show {
  display: block;
}

.category-arrow {
  cursor: pointer;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.category-arrow.open {
  transform: rotate(90deg);
}

.category-link {
  cursor: pointer;
}

.category-item {
  cursor: pointer;
  user-select: none;
}

.category-arrow {
  font-size: 12px;
  width: 12px;
}

/* for like sharp black arrow  */

.category-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 8px;
  cursor: pointer;
  vertical-align: middle;

  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 7px solid #000; 
  transition: transform 0.2s ease;
}

.category-arrow.open {
  transform: rotate(90deg); 
}

/* breadcrumb position  */

#product-detail.product-container div.container.mb-5 div.a-section.a-spacing-medium.a-spacing-top-small{
  margin-left: -170px;
}

/* for gallery images arrow */

.scroll-btn{
  display:none;
}

/* mobile clear filter button  */

.btn-clear-filters {
background: linear-gradient(135deg, var(--primary), var(--focus-border));
  color: var(--surface-color);
  font-size: 0.8rem;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  box-shadow: 0 2px 6px var(--focus-ring);
  transition: all 0.25s ease;
  white-space: nowrap;
}

/* for bestseller  */

#bestsellerSections div.mb-5 div.d-flex.justify-content-between.align-items-center h4.section-title.fw-bold{
  padding-bottom: 30px;
}
.row aside.col-lg-2.line{
border-right:1px solid #e6e6e6;
padding-right:20px;
}

.product-scroll{
display:flex;
gap:20px;
overflow:hidden;
scroll-behavior:smooth;
padding:0;
}
.scroll-btn{
position:absolute;
top:40%;
z-index:10;
background:white;
border:1px solid #ddd;
border-radius:50%;
width:40px;
height:40px;
display:flex;
align-items:center;
justify-content:center;
}

.prev-btn{ left:5px; }
.next-btn{ right:5px; }

.department-list a{
display:block;
padding:6px 0;
color:#111;
text-decoration:none;
font-size:14px;
}

.department-list a:hover{
color:#0d6efd;
}


/* MOBILE VIEW (Default) */
.product-item {
  /* Show 1.5 cards so the user knows to scroll horizontally */
  flex: 0 0 70%; 
  max-width: 70%;
  box-sizing: border-box;
}

.product-scroll {
  display: flex;
  gap: 15px; /* Smaller gap for mobile */
  overflow-x: auto; /* Allow touch swiping on mobile */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Smooth swipe for iOS */
  padding: 10px 5px;
}

/* Hides scrollbar but keeps functionality */
.product-scroll::-webkit-scrollbar {
  display: none;
}

/* TABLET VIEW */
@media (min-width: 768px) {
  .product-item {
    flex: 0 0 calc(50% - 10px); /* 2 products per row */
    max-width: calc(50% - 10px);
  }
}

/* DESKTOP VIEW */
@media (min-width: 1024px) {
  .product-item {
    /* 4 products: (100% / 4) - (3 gaps * 20px / 4) = 25% - 15px */
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
  }
  
  .product-scroll {
    gap: 20px;
    overflow-x: hidden; /* Hide scrollbar on desktop to use buttons */
  }
}

/* for wishlist button  */

/* Detail page wishlist button */
.detail-wishlist-btn{
    position: static !important;
    width: 100%;
    border-radius: 8px;
    padding: 10px;
    font-weight: 500;
    box-shadow: none;
}

/* When product is already in wishlist */
.detail-wishlist-btn.active{
    background: #f8d7da;
    border-color: #f5c2c7;
    color: #b02a37;
}

.detail-wishlist-btn:hover{
  color: inherit;
  background-color: inherit;
  border-color: inherit;
}

.detail-wishlist-btn:active{
    color: inherit !important;
  background-color: inherit !important;
  border-color: inherit !important;
}

/* for specification  */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 10px;
}

.spec-table th {
text-align: left;
  font-weight: 700;
  padding: 6px 10px;
  width: 130px;
  line-height: 20px;
}

.spec-table td {
  padding: 6px 10px;
}

/* for delivery */

.product-delivery div span.delivery-standard,
.product-delivery div.small.text-muted{
  font-size: 14px;
}

/* for the product detail page  */

/* Breadcrumb */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  padding-left: 10px;
}

.breadcrumbs li {
  list-style: none;
}

/* Spacing cleanup */
.product-info-section h6 {
  margin-bottom: 6px;
}

#productBrand.text-muted.mb-2 {
  margin-bottom: 6px;
  color: var(--accent) !important;
}

.quick-specs {
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 991px) {
  .sticky-gallery-wrapper,
  .buy-box {
    position: static;
  }

  .vertical-gallery-wrapper {
    display: none;
  }
}

/* for offer and feature popup  */

.custom-popover {
  position: absolute;
  max-width: 500px;
  width: auto;
  display: none;
  z-index: 9999;
}

.popover-content {
  width: 260px;
  max-width: 500px;
  width: auto;
  white-space: normal;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.popover-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 5px;
}

.popover-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ddd;
  position: absolute;
  top: -8px;
  left: 20px;
}

.close-popover {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
  font-size: 16px;
}

.offers-container,
.features-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
}

/* .offer-card,
.feature-item {
  flex: 0 0 auto;
} */

.feature-item span {
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* max 2 lines */
  -webkit-box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;

  font-size: 12px;
  text-align: center;
}

/* for the price  */

.discount-text {
  color: var(--danger);
  font-size: 1.4rem;
  font-weight: 300;
}

.final-price {
  font-size: 28px;
  color: var(--text-dark);
}

#ratingStars.text-warning{
  margin-bottom: 4px;
}

.old-price {
  text-decoration: line-through;
  margin-left: 5px;
}

.custom-image-col {
  display: flex;
  flex-direction: column;
}

/* for related products  */

.related-products-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;

  padding: 0 60px; /* creates safe space for buttons */
}

.related-products-container::-webkit-scrollbar {
  display: none;
}

/* Each card fixed width (important for horizontal scroll) */
.related-card {
  flex: 0 0 auto;
  width: 220px;
}

.related-products-wrapper .scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 44px;
  height: 80px;

  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 6px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.2s ease;

  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Arrow style */
.related-products-wrapper.position-relative button.scroll-btn.prev-btn::before,
.related-products-wrapper.position-relative button.scroll-btn.next-btn::before {
  content: '';
  border: solid #333;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 6px;
}

/* Left arrow */
.prev-btn::before {
  transform: rotate(135deg);
}

/* Right arrow */
.next-btn::before {
  transform: rotate(-45deg);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  text-align: center;
  margin-right: 20px; /* spacing between items */
  cursor: pointer;
}

.feature-item span {
  white-space: normal;      /* allow wrapping */
  word-break: break-word;   /* break long words if needed */
  font-size: 14px;
  margin-top: 5px;
  overflow: visible;        /* ensure text is not hidden */
  text-overflow: clip;      /* prevent ellipsis */
  line-height: 1.3;         /* optional: better readability */
}

/* for active bestseller  */

.department-item {
  cursor: pointer;
  padding: 8px 12px;
  color: var(--text-muted);
}
 
.department-item.active {
  font-weight: 700;
  color: var(--text-dark); /* or your primary color */
}