/* shop.css — Faune e-commerce styles */

.shop-header {
  background: var(--fg);
  color: var(--bg);
  padding: 0 5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.shop-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.shop-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.shop-nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.shop-nav-links a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B8C4BC;
  text-decoration: none;
  transition: color 0.2s;
}

.shop-nav-links a:hover { color: var(--bg); }

.shop-intro {
  padding: 7rem 5rem 5rem;
  background: var(--bg);
}

.shop-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-top: 1rem;
}

.shop-section {
  padding: 0 5rem 8rem;
  background: var(--bg);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.2s;
}

.product-card:hover { opacity: 0.85; }

.product-image {
  aspect-ratio: 3/4;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-image img { transform: scale(1.03); }

.product-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--surface) 0%, var(--accent) 100%);
}

.product-collection {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.product-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.product-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

/* Cart page */
.cart-page { padding: 7rem 5rem 8rem; }

.cart-empty { text-align: center; padding: 4rem 0; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--surface);
}

.cart-item-image { width: 120px; height: 160px; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }

.cart-item-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--fg);
  text-decoration: none;
}

.cart-item-name:hover { text-decoration: underline; }
.cart-item-price { font-weight: 700; margin-top: 0.4rem; }

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
  padding: 0.5rem;
}

.cart-item-remove:hover { color: var(--accent); }

.cart-summary {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 2px;
  position: sticky;
  top: 5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
}

.summary-row:last-of-type { border-bottom: none; }

.summary-total {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.summary-note { font-size: 0.85rem; color: var(--muted); }

.free-shipping-msg {
  font-size: 0.85rem;
  color: var(--accent);
  text-align: center;
  margin: 1rem 0;
  font-style: italic;
}

.btn-checkout {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: background 0.2s;
}

.btn-checkout:hover { background: var(--accent-warm); }

.shop-footer {
  padding: 4rem 5rem;
  border-top: 1px solid var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-back {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.footer-back:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .shop-header { padding: 0 2rem; }
  .shop-intro, .shop-section, .cart-page { padding-left: 2rem; padding-right: 2rem; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .shop-footer { flex-direction: column; gap: 1rem; text-align: center; }
}

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