/* ==========================================================================
   Shared product-card + section-header components.

   These classes live in partials that are reused across the site
   (best-sellers, category listings, search results, product detail), so the
   styling has to be global rather than scoped to one page.
   Loaded after style.css and before any page-specific sheet, so home.css can
   still override with its higher-specificity .home-page rules.
   ========================================================================== */

:root {
  --hsc-gold: #C9A961;
  --hsc-brown: #6B4423;
  --hsc-ink: #2C1810;
  --hsc-muted: #6C757D;
  --hsc-line: #EDE5DC;
  --hsc-ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #8A6B2F;
  background: rgba(201, 169, 97, .14);
  border: 1px solid rgba(201, 169, 97, .38);
  padding: 6px 15px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-header h2 {
  position: relative;
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  line-height: 1.15;
  margin: 0 0 18px;
  padding-bottom: 18px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 62px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hsc-gold), #B5715A);
}

.section-header p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--hsc-muted);
  /* auto margins keep it centred: style.css caps it at 600px wide */
  max-width: 620px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */
.product-card,
.sale-item {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid var(--hsc-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(44, 24, 16, .05);
  transition: transform .4s var(--hsc-ease), box-shadow .4s var(--hsc-ease), border-color .4s var(--hsc-ease);
}

.product-card:hover,
.sale-item:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--tint, #C9A961) 45%, transparent);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--tint, #C9A961) 22%, transparent);
}

.product-image {
  position: relative;
  height: 215px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%,
      color-mix(in srgb, var(--tint, #C9A961) 16%, #FFFFFF) 0%,
      color-mix(in srgb, var(--tint, #C9A961) 6%, #FFFFFF) 100%);
}

.product-image > a { display: block; height: 100%; }

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--hsc-ease);
}

.product-image .no-image-found {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--hsc-muted) !important;
  font-size: 13px;
}

.product-card:hover .product-image img,
.sale-item:hover .product-image img { transform: scale(1.06); }

/* discount badge */
.sale-badge {
  top: 12px;
  left: 12px;
  right: auto;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  border-radius: 999px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #C0563F, #A8442F) !important;
  box-shadow: 0 6px 14px rgba(168, 68, 47, .3);
}

/* quick-view button */
.product-actions {
  top: 12px;
  right: 12px;
  left: auto;
  transform: none;
  opacity: 0;
  transition: opacity .35s var(--hsc-ease);
}

.product-card:hover .product-actions,
.sale-item:hover .product-actions { opacity: 1; }

.action-btn {
  width: 38px;
  height: 38px;
  color: var(--hsc-ink);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
  text-decoration: none;
}

.action-btn:hover {
  background: var(--hsc-gold);
  color: #FFFFFF;
}

/* body */
.product-info,
.sale-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 18px 20px;
}

.product-info h4,
.sale-content h5 {
  min-height: 0;
  margin: 0 0 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--hsc-ink);
  /* keep every card the same height regardless of title length */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-container,
.price-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.price-inc-vat,
.sale-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hsc-brown);
}

.price-inc-vat small,
.sale-price small {
  font-size: 11.5px;
  font-weight: 500;
}

.original-price,
.original-price s {
  font-size: 13px;
  color: #A79C93;
}

.price-exc-vat {
  font-size: 12px;
  color: var(--hsc-muted);
}

/* footer call to action */
.hs-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--hsc-ink);
  background: color-mix(in srgb, var(--tint, #C9A961) 16%, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--tint, #C9A961) 38%, transparent);
  transition: background .3s var(--hsc-ease), color .3s var(--hsc-ease), box-shadow .3s var(--hsc-ease);
}

.hs-card-cta i { transition: transform .3s var(--hsc-ease); }

.hs-card-cta:hover {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--tint, #C9A961), color-mix(in srgb, var(--tint, #C9A961) 72%, #2C1810));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--tint, #C9A961) 34%, transparent);
}

.hs-card-cta:hover i { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Carousel controls
   -------------------------------------------------------------------------- */
.product-swiper { padding: 6px 4px 52px; }

.product-swiper .swiper-button-next,
.product-swiper .swiper-button-prev {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--hsc-line);
  color: var(--hsc-brown);
  box-shadow: 0 4px 14px rgba(44, 24, 16, .1);
  transition: background .3s var(--hsc-ease), color .3s var(--hsc-ease);
}

.product-swiper .swiper-button-next::after,
.product-swiper .swiper-button-prev::after {
  font-size: 15px;
  font-weight: 700;
}

.product-swiper .swiper-button-next:hover,
.product-swiper .swiper-button-prev:hover {
  background: var(--hsc-gold);
  color: #FFFFFF;
}

.product-swiper .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: #C9BCAE;
  opacity: 1;
}

.product-swiper .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 999px;
  background: var(--hsc-gold);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (hover: none) {
  .product-actions { opacity: 1; }
}

@media (max-width: 767px) {
  .product-image { height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .sale-item,
  .product-image img { transition: none; }
}

/* Fallback for browsers without color-mix() */
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .product-image { background: #FBF8F4; }
  .hs-card-cta { background: rgba(201, 169, 97, .16); border-color: rgba(201, 169, 97, .4); }
  .hs-card-cta:hover { background: #C9A961; }
  .product-card:hover,
  .sale-item:hover { border-color: rgba(201, 169, 97, .5); box-shadow: 0 20px 40px rgba(44, 24, 16, .14); }
}
