/* =========================================================
   Woo Product Carousel  —  assets/carousel.css
   Brand: #704b32 (warm brown)  |  #fef7f0 (cream)
   ========================================================= */

:root {
  --wpc-brown:       #704b32;
  --wpc-brown-dark:  #4e3220;
  --wpc-brown-light: #9a7056;
  --wpc-cream:       #fef7f0;
  --wpc-cream-dark:  #f5e9dc;
  --wpc-gradient:    linear-gradient(135deg, #704b32 0%, #9a6845 50%, #c49a72 100%);
  --wpc-gradient-rev:linear-gradient(135deg, #c49a72 0%, #9a6845 50%, #704b32 100%);
  --wpc-shadow:      0 4px 24px rgba(112, 75, 50, .14);
  --wpc-shadow-lg:   0 12px 40px rgba(112, 75, 50, .22);
  --wpc-radius:      14px;
  --wpc-transition:  .35s cubic-bezier(.4,0,.2,1);
  --wpc-font:        'Georgia', 'Times New Roman', serif;
}

/* ── Wrapper ───────────────────────────────────────────── */
.wpc-carousel-wrapper {
  width: 100%;
  padding: 30px 0;
  background: var(--wpc-cream);
  font-family: var(--wpc-font);
  box-sizing: border-box;
}

/* ── Header ────────────────────────────────────────────── */
.wpc-header {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}
.wpc-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--wpc-brown);
  letter-spacing: .04em;
  margin: 0 0 12px;
  background: var(--wpc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wpc-title-line {
  width: 60px;
  height: 3px;
  background: var(--wpc-gradient);
  border-radius: 99px;
  margin: 0 auto;
}

/* ── Stage / Track ─────────────────────────────────────── */
.wpc-stage {
  position: relative;
  overflow: hidden;
  padding: 12px 0 20px;
}
.wpc-track {
  display: flex;
  gap: 20px;
  transition: transform var(--wpc-transition);
  will-change: transform;
  padding: 4px 4px 12px;
}

/* ── Card ──────────────────────────────────────────────── */
.wpc-card {
  flex: 0 0 calc(25% - 15px);   /* desktop: 4 */
  min-width: 0;
  background: #fff;
  border-radius: var(--wpc-radius);
  overflow: hidden;
  box-shadow: var(--wpc-shadow);
  transition: transform var(--wpc-transition), box-shadow var(--wpc-transition);
  border: 1.5px solid var(--wpc-cream-dark);
  display: flex;
  flex-direction: column;
}
.wpc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--wpc-shadow-lg);
  border-color: var(--wpc-brown-light);
}

/* Image */
.wpc-card-img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--wpc-cream-dark);
}
.wpc-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
  display: block;
}
.wpc-card:hover .wpc-card-img { transform: scale(1.08); }

/* Overlay */
.wpc-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(112, 75, 50, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--wpc-transition);
  backdrop-filter: blur(2px);
}
.wpc-card:hover .wpc-card-overlay { opacity: 1; }
.wpc-view-btn {
  color: #fff;
  border: 2px solid #fff;
  padding: 8px 20px;
  border-radius: 99px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Badges */
.wpc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
}
.wpc-badge-sale {
  background: var(--wpc-gradient);
  color: #fff;
}
.wpc-badge-out {
  background: #888;
  color: #fff;
  left: auto; right: 10px;
}

/* Body */
.wpc-card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.wpc-card-cat {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--wpc-brown-light);
  font-family: sans-serif;
  margin-bottom: 6px;
}
.wpc-card-name {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wpc-card-name a {
  color: var(--wpc-brown-dark);
  text-decoration: none;
  transition: color var(--wpc-transition);
}
.wpc-card-name a:hover { color: var(--wpc-brown); }

.wpc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.wpc-card-price {
  font-size: .95rem;
  font-weight: 700;
  color: var(--wpc-brown);
  line-height: 1;
}
.wpc-card-price .woocommerce-Price-amount { color: var(--wpc-brown); }
.wpc-card-price del { opacity: .5; font-size: .8em; margin-right: 4px; }
.wpc-card-price ins { text-decoration: none; }

/* Add to cart button */
.wpc-add-to-cart {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--wpc-gradient);
  color: #fff;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--wpc-transition), transform var(--wpc-transition);
  white-space: nowrap;
  font-family: sans-serif;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
}
.wpc-add-to-cart svg { width: 14px; height: 14px; flex-shrink: 0; }
.wpc-add-to-cart:hover { opacity: .88; transform: scale(1.04); color: #fff; }

/* ── Nav Buttons ───────────────────────────────────────── */
.wpc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wpc-gradient);
  color: #fff;
  box-shadow: var(--wpc-shadow);
  transition: opacity var(--wpc-transition), transform var(--wpc-transition);
  padding: 0;
}
.wpc-btn svg { width: 20px; height: 20px; }
.wpc-btn:hover { transform: translateY(-50%) scale(1.1); }
.wpc-btn:disabled { opacity: .35; cursor: not-allowed; transform: translateY(-50%); }
.wpc-btn-prev { left: -10px; }
.wpc-btn-next { right: -10px; }

/* ── Dots ──────────────────────────────────────────────── */
.wpc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.wpc-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--wpc-cream-dark);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--wpc-transition), width var(--wpc-transition);
}
.wpc-dot.is-active {
  background: var(--wpc-gradient-rev);
  width: 24px;
  background: var(--wpc-brown);
}

/* ── No Products ───────────────────────────────────────── */
.wpc-no-products {
  text-align: center;
  color: var(--wpc-brown-light);
  padding: 24px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1023px) {
  /* Tablet: 3 per view */
  .wpc-card { flex: 0 0 calc(33.333% - 14px); }
}

@media (max-width: 767px) {
  /* Mobile: 2 per view */
  .wpc-card { flex: 0 0 calc(50% - 10px); }
  .wpc-track { gap: 16px; }
  .wpc-btn-prev { left: -6px; }
  .wpc-btn-next { right: -6px; }
  .wpc-btn { width: 36px; height: 36px; }
  .wpc-btn svg { width: 16px; height: 16px; }
  .wpc-carousel-wrapper { padding: 32px 0; }
}

@media (max-width: 480px) {
  .wpc-card-footer { flex-direction: column; align-items: flex-start; }
  .wpc-add-to-cart { width: 100%; justify-content: center; }
}
