/* PRODUCT PAGE LAYOUT */

.product-layout .card {
  border-radius: 0;
  border: 1px solid var(--color-border);
}

/* GALLERY — Stacked (leon theme) */

.product-gallery-stack img {
  display: block;
  width: 100%;
  border-radius: 0;
  object-fit: contain;
  background: #fff;
}

/* Desktop: stacked images, hide carousel */
.product-gallery-stack-desktop {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-gallery-carousel-mobile {
  display: none;
}

/* Mobile: carousel, hide stacked */
@media (max-width: 767.98px) {
  .product-gallery-stack-desktop {
    display: none;
  }

  .product-gallery-carousel-mobile {
    display: block;
  }

  .product-gallery-carousel-mobile .carousel-indicators {
    bottom: -0.5rem;
  }

  .product-gallery-carousel-mobile .carousel-indicators button {
    background-color: var(--color-primary);
  }

  .product-gallery-carousel-mobile .carousel-control-prev-icon,
  .product-gallery-carousel-mobile .carousel-control-next-icon {
    filter: invert(0.4);
  }
}

/* STICKY DETAILS (desktop only) */

@media (min-width: 768px) {
  .product-details-sticky {
    position: sticky;
    top: 100px;
  }
}

/* DETAILS */

.product-details {
  padding: 0;
}

.product-details-header .small {
  color: var(--color-muted);
}

/* BADGES */

.product-badges {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: 100%;
  gap: 0.25rem;
  justify-content: space-between;
}

.product-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.product-badge-pill--discount {
  background: var(--color-primary-700);
  color: #ffffff;
}

.product-badge-pill--package {
  background: #0d6efd;
  color: #ffffff;
}

.product-badge-pill--new {
  background: var(--color-primary-500);
  color: #ffffff;
}

/* rating */

.product-rating i {
  font-size: 0.7rem;
  color: var(--color-primary-300);
}

/* PRICE */

.product-price-block {
  border-radius: 0;
  background: var(--primary-a06);
  padding: 0.75rem 0.9rem;
}

.product-price-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
  flex-direction: column;
}

#product-price-current {
  font-size: 1.15rem;
  font-weight: 700;
}

#product-price-current.is-highlight {
  color: var(--color-primary);
}

.product-price-old {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: var(--color-muted);
}

/* ACTIONS */

.product-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: stretch;
}

.product-qty-group {
  max-width: 120px;
}

.product-actions .btn,
.product-actions .input-group-text,
.product-actions .form-control {
  border-radius: 0;
}

/* FEATURES / EXTRA */

.product-features ul {
  padding-left: 1.1rem;
}

.product-card-section {
  border-radius: 0;
  border: 1px solid var(--color-border);
}

.product-specs dt {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted);
}

.product-specs dd {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

/* RELATED PRODUCTS */

.product-related-slider {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (min-width: 768px) {
  .product-related-slider {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-related-item {
  display: flex;
}

/* reuse card style from index/products */

.product-related-item .home-product-card.card {
  border-radius: 0;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.product-related-item .home-product-card img {
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4/3;
}

.product-related-item .home-product-card h6 {
  font-size: 0.85rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.2em * 2);
}

/* hero-style price block reuse */

.product-related-item .home-product-card .price-block {
  min-height: calc(1.2em * 2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.product-related-item .home-product-card .price-main {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.product-related-item .home-product-card .price-main.is-discounted {
  color: var(--color-primary);
}

.product-related-item .home-product-card .price-old {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-decoration: line-through;
}

/* small tweak mobile spacing */

@media (max-width: 767.98px) {
  .product-details {
    margin-top: 0.25rem;
  }
}


/* Variant config */
.product-variant-config .variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.variant-chip {
  border: 1px solid var(--primary-a18);
  background: #fff;
  border-radius: 0;
  padding: .35rem .7rem;
  font-size: .875rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  transition: transform .06s ease, border-color .12s ease;
}

.variant-chip:hover { transform: translateY(-1px); }

.variant-chip.is-active {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--primary-a12);
}

.variant-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--primary-a25);
  display: inline-block;
}

.variant-image-dot {
  width: 18px;
  height: 18px;
  border-radius: 0;
  object-fit: cover;
  border: 1px solid var(--primary-a18);
}

/* ACCORDION (leon product page) */

.product-accordion .accordion-item {
  border: none;
  border-top: 1px solid var(--color-border);
  background: transparent;
}

.product-accordion .accordion-button {
  background: transparent;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 0;
  box-shadow: none;
  color: var(--color-ink);
}

.product-accordion .accordion-button:not(.collapsed) {
  color: var(--color-primary);
  background: transparent;
}

.product-accordion .accordion-button::after {
  filter: none;
}

.product-accordion .accordion-body {
  padding: 0 0 1rem 0;
}
.breadcrumb-item i{
  color: var(--color-primary);
}

/*Page loading*/
.page-loading-overlay{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, visibility .15s ease;
}

.page-loading-overlay.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.page-loading-box{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 18px;
  border-radius: 0;
}
.variant-chip.is-disabled {
  opacity: 0.45;
  text-decoration: line-through;
  /*cursor: not-allowed;*/
}
