/* ===== Shared Page Styles (shop, product, cart, checkout, experiences, contact, policies, 404) ===== */

/* ===== Page Hero (reusable across pages) ===== */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(44,40,37,.7) 0%, rgba(44,40,37,.5) 100%),
    url('https://images.unsplash.com/photo-1565193566173-7a0ee3dbe261?w=1400&q=80') center/cover no-repeat;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 4rem 0;
}
.page-hero-content .hero-tag { color: var(--color-clay); margin-bottom: 0.75rem; }
.page-hero-content h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero-content p { color: rgba(255,255,255,.75); max-width: 560px; }
.page-hero-content .hero-tag,
.page-hero-content h1 {
  opacity: 0; transform: translateY(22px);
  animation: heroIn 0.8s cubic-bezier(.22,1,.36,1) forwards;
}
.page-hero-content .hero-tag { animation-delay: 0.15s; }
.page-hero-content h1 { animation-delay: 0.3s; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.breadcrumb a { color: var(--color-terracotta); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.5rem; }

/* ===== Shop / Collection Grid ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.shop-sidebar {
  position: sticky;
  top: 90px;
}
.filter-group { margin-bottom: 2rem; }
.filter-group h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.filter-group input[type="checkbox"] {
  accent-color: var(--color-terracotta);
  width: 16px; height: 16px;
}
.filter-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: #fff;
  color: var(--color-text);
}
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.shop-header p { font-size: 0.9rem; color: var(--color-text-light); }
.shop-sort select {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: #fff;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.4s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.product-card-img {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--color-sand);
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  color: #fff;
}
.badge-sold-out { background: var(--color-text-light); }
.badge-sale { background: var(--color-accent); }
.product-card-info { padding: 1.25rem; }
.product-card-info h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.product-card-info h3 a { transition: color var(--transition); }
.product-card-info h3 a:hover { color: var(--color-terracotta); }
.product-price {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}
.price-original {
  text-decoration: line-through;
  color: var(--color-text-light);
  margin-left: 0.5rem;
  font-weight: 400;
}

/* ===== Product Detail ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.product-gallery { position: relative; }
.product-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--color-sand);
}
.product-gallery-main img { width: 100%; height: 500px; object-fit: cover; }
.product-gallery-thumbs {
  display: flex; gap: 0.75rem;
}
.product-gallery-thumbs img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active { border-color: var(--color-terracotta); }
.product-info .section-tag { margin-bottom: 0.5rem; }
.product-info h1 { margin-bottom: 1rem; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.product-info .product-price {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-installment {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}
.quantity-selector button {
  width: 40px; height: 40px;
  border: 1px solid var(--color-sand);
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.quantity-selector button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.quantity-selector button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.quantity-selector button:hover { background: var(--color-cream); }
.quantity-selector input {
  width: 56px; height: 40px;
  border: 1px solid var(--color-sand);
  border-left: none; border-right: none;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.product-actions .btn { width: 100%; }
.product-description { margin-top: 2rem; border-top: 1px solid var(--color-sand); padding-top: 2rem; }
.product-description h3 { margin-bottom: 1rem; }
.product-description p { color: var(--color-text-light); line-height: 1.8; margin-bottom: 0.75rem; }
.product-specs { margin-top: 1.5rem; }
.product-specs dt { font-weight: 600; font-size: 0.85rem; color: var(--color-text); }
.product-specs dd { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 0.75rem; }

/* You May Also Like */
.also-like { background: var(--color-warm-white); }
.also-like .product-grid { grid-template-columns: repeat(4, 1fr); }

/* ===== Cart ===== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 1.5rem; }
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cart-item-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-sand);
}
.cart-item-img img { width: 100px; height: 100px; object-fit: cover; }
.cart-item-details h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.cart-item-details p { font-size: 0.85rem; color: var(--color-text-light); }
.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.cart-item-price { font-weight: 600; font-size: 1.05rem; }
.cart-item-remove {
  font-size: 0.8rem;
  color: var(--color-text-light);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: var(--transition);
}
.cart-item-remove:hover { color: var(--color-terracotta); }
.cart-summary {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}
.cart-summary h3 { margin-bottom: 1.5rem; }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.cart-summary-row.total {
  border-top: 2px solid var(--color-sand);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}
.cart-summary .btn { width: 100%; margin-top: 1.5rem; }
.cart-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 1rem;
}
.cart-empty {
  text-align: center;
  padding: 4rem 0;
}
.cart-empty h2 { margin-bottom: 1rem; }
.cart-empty p { color: var(--color-text-light); margin-bottom: 2rem; }

/* ===== Checkout (mock handoff) ===== */
.checkout-layout {
  max-width: 640px;
  margin: 0 auto;
}
.checkout-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.checkout-section h3 { margin-bottom: 1.5rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-row.full { grid-template-columns: 1fr; }
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}
.form-field input,
.form-field select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}
.form-field input:focus,
.form-field select:focus { border-color: var(--color-terracotta); outline: none; }
.checkout-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--color-sand);
  margin-top: 1rem;
}
.checkout-notice {
  background: var(--color-accent-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1.5rem;
}

/* ===== Experiences / Classes ===== */
.experience-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.experience-detail-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.4s ease;
}
.experience-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.experience-detail-img {
  height: 240px;
  overflow: hidden;
  background: var(--color-sand);
}
.experience-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.experience-detail-body { padding: 1.75rem; }
.experience-detail-body h3 { margin-bottom: 0.5rem; }
.experience-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.experience-meta span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-terracotta);
  background: rgba(184,101,58,.08);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}
.experience-detail-body p { font-size: 0.9rem; color: var(--color-text-light); line-height: 1.7; margin-bottom: 1.25rem; }
.experience-detail-body .btn { width: 100%; }

/* Pottery Party Details */
.party-details {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}
.party-details h3 { margin-bottom: 0.5rem; }
.party-details p { color: var(--color-text-light); line-height: 1.7; margin-bottom: 1rem; }
.party-details ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}
.party-details li { margin-bottom: 0.35rem; font-size: 0.9rem; }

/* ===== Contact Page ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h2 { margin-bottom: 1.5rem; }
.contact-form .form-field { margin-bottom: 1.25rem; }
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--color-cream);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--color-terracotta); outline: none; }
.contact-info-side h2 { margin-bottom: 1.25rem; }
.contact-info-side address { margin-bottom: 2rem; }
.contact-info-side address p { color: var(--color-text-light); margin-bottom: 0.5rem; line-height: 1.7; }
.contact-info-side address a { color: var(--color-terracotta); }
.contact-hours h3 { margin-bottom: 0.75rem; }
.contact-hours p { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 0.35rem; }
.contact-map {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
  background: var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* ===== Policies ===== */
.policy-content {
  max-width: 760px;
  margin: 0 auto;
}
.policy-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.policy-nav a {
  padding: 0.5rem 1.25rem;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  border: 1px solid var(--color-sand);
  transition: var(--transition);
}
.policy-nav a:hover { border-color: var(--color-terracotta); color: var(--color-terracotta); }
.policy-nav a.active { background: var(--color-terracotta); color: #fff; border-color: var(--color-terracotta); }
.policy-section { margin-bottom: 2.5rem; }
.policy-section h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 1rem; }
.policy-section h3 { font-size: 1.1rem; margin-bottom: 0.75rem; margin-top: 1.5rem; }
.policy-section p { color: var(--color-text-light); line-height: 1.8; margin-bottom: 0.75rem; }
.policy-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}
.policy-section li { margin-bottom: 0.35rem; line-height: 1.7; }
.policy-section a { color: var(--color-terracotta); }
.policy-section a:hover { text-decoration: underline; }

/* ===== 404 ===== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-content h1 {
  font-size: clamp(5rem, 12vw, 10rem);
  color: var(--color-sand);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-content h2 { margin-bottom: 1rem; }
.error-content p { color: var(--color-text-light); margin-bottom: 2rem; max-width: 420px; margin-left: auto; margin-right: auto; }
.error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Payment Icons ===== */
.payment-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.payment-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  background: var(--color-cream);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-light);
  border: 1px solid var(--color-sand);
}

/* ===== Responsive (new pages) ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .also-like .product-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .product-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery-main img { height: 350px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item-actions { flex-direction: row; align-items: center; grid-column: 1 / -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .also-like .product-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 240px; }
}
