/* ============================================
   STORE & PRODUCT — css/store.css
   ============================================ */

/* ── STORE PAGE ──────────────────────────── */

.store-section {
  padding: 60px 0 100px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card.hidden { display: none; }

.product-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--light);
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 0 2px;
}

.product-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
}

.product-price {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--gray);
  white-space: nowrap;
}

/* card entrance */
.product-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- FILTER BAR --- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.filter-btn {
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 100px;
  padding: 8px 22px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--gray);
  transition: all 0.18s;
}

.filter-btn:hover {
  border-color: var(--black);
  color: var(--black);
}

.filter-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
/* ── BREADCRUMB ───────────────────────────── */

.breadcrumb {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.breadcrumb a {
  font-size: 0.88rem;
  color: var(--gray);
  font-weight: 300;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--black); }

/* ── PRODUCT DETAIL ───────────────────────── */

.product-detail {
  padding: 60px 0 80px;
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

/* Images */
.pd-images { position: sticky; top: 90px; }

.pd-main-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  background: var(--light);
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
}

.pd-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.pd-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pd-thumb {
  width: calc(25% - 8px);
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--light);
  transition: border-color 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.active { border-color: var(--black); }

/* Info panel */
.pd-category {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 400;
  margin-bottom: 10px;
}

.pd-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}

.pd-price {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--black);
}

.pd-desc {
  font-size: 0.97rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Options (size/color) */
.pd-options { margin-bottom: 32px; }

.pd-option-group { margin-bottom: 20px; }

.pd-option-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
  font-weight: 400;
}

.pd-option-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pd-opt-btn {
  padding: 8px 18px;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--black);
  transition: all 0.15s;
}

.pd-opt-btn:hover { border-color: var(--black); }
.pd-opt-btn.selected { background: var(--black); color: var(--white); border-color: var(--black); }

/* Actions */
.pd-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 36px;
}

.pd-add-btn { flex: 1; padding: 16px; font-size: 1rem; }

.pd-wish-btn {
  width: 52px;
  height: 52px;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: var(--radius);
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--black);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-wish-btn:hover,
.pd-wish-btn.active { border-color: #e74c3c; color: #e74c3c; }

/* Meta */
.pd-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.pd-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.pd-meta-label {
  color: var(--gray);
  font-weight: 300;
}

/* ── RELATED SECTION ─────────────────────── */

.related-section {
  padding: 0 0 100px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 72px;
}

/* ── RESPONSIVE ──────────────────────────── */

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-layout { grid-template-columns: 1fr; gap: 40px; }
  .pd-images { position: static; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
}