/* Shop pages — shared styles across shop.html, product.html, cart.html,
   checkout.html, order.html. Uses the Feral palette tokens from base.css. */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.shop-card {
  background: var(--surface, rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.shop-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold, #c8a15a);
}

.shop-card__image {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 3rem;
  color: rgba(200, 161, 90, 0.3);
  margin-bottom: 0.75rem;
}

.shop-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.25rem;
}

.shop-card__title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin: 0 0 0.25rem 0;
}

.shop-card__price {
  color: var(--gold, #c8a15a);
  font-weight: 500;
}

.shop-card__stock-oos {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* ===== PDP ===== */

.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .pdp { grid-template-columns: 1fr; }
}

.pdp__gallery {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pdp__gallery-main {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 6rem;
  color: rgba(200, 161, 90, 0.3);
}
.pdp__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp__gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.4rem;
}
.pdp__gallery-thumb {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 0.3rem;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease;
}
.pdp__gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp__gallery-thumb.active {
  border-color: var(--gold, #c8a15a);
}

.pdp__title { font-family: "Playfair Display", serif; margin: 0 0 0.5rem; }
.pdp__price { color: var(--gold, #c8a15a); font-size: 1.5rem; margin-bottom: 1.5rem; }
.pdp__description { line-height: 1.6; color: rgba(255, 255, 255, 0.8); margin-bottom: 2rem; }

.pdp__variants { margin-bottom: 1.5rem; }
.pdp__variants h3 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.variant-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variant-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: inherit;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.variant-pill:hover { border-color: var(--gold, #c8a15a); }
.variant-pill[aria-pressed="true"] {
  background: var(--gold, #c8a15a);
  color: var(--bg, #1a0f1a);
  border-color: var(--gold, #c8a15a);
}
.variant-pill[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.pdp__qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.pdp__qty label { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.qty-input { width: 4rem; padding: 0.5rem; }

/* ===== Cart ===== */

.cart-wrap { max-width: 720px; margin: 2rem auto; }
.cart-empty { text-align: center; padding: 3rem; color: rgba(255, 255, 255, 0.6); }
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cart-line__image {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: rgba(200, 161, 90, 0.3);
}
.cart-line__title { font-weight: 500; }
.cart-line__variant { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.cart-line__qty { display: flex; gap: 0.25rem; align-items: center; }
.cart-line__qty input { width: 3.5rem; text-align: center; }
.cart-line__price { color: var(--gold, #c8a15a); font-weight: 500; }
.cart-line__remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 1.25rem;
}
.cart-line__remove:hover { color: #d88; }

.cart-totals {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.5rem 2rem;
}
.cart-totals__label { color: rgba(255, 255, 255, 0.6); }
.cart-totals__value { text-align: right; font-variant-numeric: tabular-nums; }
.cart-totals__total { font-weight: 700; font-size: 1.15rem; color: var(--gold, #c8a15a); }

/* ===== Checkout ===== */

.checkout-wrap { max-width: 560px; margin: 2rem auto; }
.checkout-section { margin-bottom: 2rem; }
.checkout-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin: 0 0 1rem;
}
.form-row { margin-bottom: 0.75rem; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
}
.form-row input, .form-row select {
  width: 100%;
  box-sizing: border-box;
}
.form-row-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.5rem; }
@media (max-width: 560px) {
  .form-row-grid { grid-template-columns: 1fr; }
}

.checkout-summary {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.checkout-summary__line {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}
.checkout-summary__total {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  font-weight: 700;
  color: var(--gold, #c8a15a);
}

.checkout-error {
  background: rgba(200, 80, 80, 0.1);
  border: 1px solid rgba(200, 80, 80, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  color: #e88;
}

/* ===== Order confirmation ===== */

.order-confirm { max-width: 560px; margin: 3rem auto; text-align: center; }
.order-confirm h1 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--gold, #c8a15a);
}
.order-confirm__number {
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.25rem;
  display: inline-block;
  margin: 0.5rem 0 1.5rem;
}
.order-confirm__details {
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  border-radius: 0.5rem;
}
