/* ============================================================
   LittleRoots — Shop / Product styles (extends styles.css tokens)
   ============================================================ */

.shop {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 1180px);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.25rem) 0 clamp(3.5rem, 8vw, 5rem);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Category filter chips */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(6px);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.chip:hover { color: var(--brown-deep); border-color: rgba(140,109,77,0.35); transform: translateY(-1px); }
.chip.active {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
}
.chip .count { font-size: 0.72rem; opacity: 0.7; }

/* Category section heading */
.cat-block { margin-bottom: clamp(2.5rem, 6vw, 3.75rem); }
.cat-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}
.cat-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--brown-deep);
  margin: 0;
}
.cat-head .cat-line { flex: 1; height: 1px; background: var(--line); }
.cat-head .cat-desc {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(92, 70, 50, 0.12);
  border-color: rgba(140, 109, 77, 0.25);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 35%, #fff, #f0ebe1);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.product-card:hover .product-media img { transform: scale(1.06); }

.badge-featured {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--mustard);
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.badge-off {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: var(--sage-deep);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.product-body { padding: 0.95rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.product-meta { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.02em; }
.product-price { margin-top: auto; display: flex; align-items: baseline; gap: 0.5rem; padding-top: 0.4rem; }
.product-price .now { font-size: 1.1rem; font-weight: 600; color: var(--brown-deep); }
.product-price .was { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; }

/* Empty */
.shop-empty { text-align: center; color: var(--muted); padding: 3rem 0; }

/* ---------- Product detail ---------- */
.pd {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 1080px);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem) 0 clamp(3.5rem, 8vw, 5rem);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.pd-back { display: inline-block; margin-bottom: 1.25rem; color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.pd-back:hover { color: var(--brown-deep); }

.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

.pd-gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #fff, #f0ebe1);
  border: 1px solid var(--line);
}
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; flex-wrap: wrap; }
.pd-thumb {
  width: 68px; height: 68px; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: #f0ebe1; padding: 0;
}
.pd-thumb.active { border-color: var(--sage-deep); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-info .eyebrow { justify-content: flex-start; margin-bottom: 0.8rem; }
.pd-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--brown-deep); margin: 0 0 0.5rem; line-height: 1.15; }
.pd-short { color: var(--muted); font-weight: 300; margin-bottom: 1.1rem; }
.pd-price { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 1.25rem; }
.pd-price .now { font-size: 1.7rem; font-weight: 600; color: var(--olive); }
.pd-price .was { font-size: 1.05rem; color: var(--muted); text-decoration: line-through; }
.pd-price .save { font-size: 0.78rem; background: rgba(138,154,117,0.18); color: var(--sage-deep); padding: 0.2rem 0.5rem; border-radius: 6px; }

.pd-specs { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.pd-specs li { font-size: 0.85rem; color: var(--ink); background: var(--cream-soft); border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem; }
.pd-specs li span { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.15rem; }

.pd-desc { color: var(--muted); font-weight: 300; line-height: 1.75; margin-bottom: 1.5rem; }

.btn-enquire {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--brown); color: #fff; border: none;
  padding: 0.85rem 1.6rem; border-radius: 999px; font-family: var(--font-body);
  font-size: 0.95rem; letter-spacing: 0.03em; cursor: pointer; text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-enquire:hover { background: var(--brown-deep); transform: translateY(-1px); }

@media (max-width: 780px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-specs { grid-template-columns: 1fr 1fr; }
}
