/* Shop page styles — Blush Tide */

.shop-main { padding-top: 72px; }

/* ---- Hero ---- */
.shop-hero {
  position: relative;
  padding: 5rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}

.shop-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245,208,197,0.4) 0%, transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--linen) 100%);
}

.shop-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.shop-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.25rem;
}

.shop-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ocean);
  margin-bottom: 1rem;
}

.shop-headline em {
  font-style: italic;
  color: var(--blush-deep);
}

.shop-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Filters ---- */
.shop-filters {
  padding: 0 2rem 2rem;
  border-bottom: 1px solid rgba(201,162,126,0.15);
}

.shop-filters-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(201,162,126,0.3);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--sand); color: var(--ocean); }

.filter-btn.active {
  background: var(--ocean);
  border-color: var(--ocean);
  color: white;
}

/* ---- Product Grid ---- */
.shop-grid-section { padding: 3rem 2rem; }

.shop-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(201,162,126,0.2);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(29,58,79,0.08);
}

.product-img-link {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--linen);
}

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

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

.product-sale-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--blush-deep);
  color: white;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

.product-info { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ocean);
  line-height: 1.3;
}

.product-name a { color: inherit; text-decoration: none; }

.product-pricing { display: flex; align-items: baseline; gap: 0.5rem; }

.product-price {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ocean);
}

.product-compare {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--sand);
}

.add-to-cart-btn {
  margin-top: auto;
  padding: 0.65rem 1rem;
  background: var(--ocean);
  color: white;
  border: none;
  border-radius: 2px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.add-to-cart-btn:hover { background: var(--ocean-light); }

.shop-empty {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Pickup Banner ---- */
.pickup-banner {
  padding: 3rem 2rem;
  background: var(--linen);
  border-top: 1px solid rgba(201,162,126,0.15);
}

.pickup-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pickup-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean);
  flex-shrink: 0;
}

.pickup-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ocean);
  margin-bottom: 0.25rem;
}

.pickup-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Cart Sidebar ---- */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 100vw;
  height: 100%;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-sidebar.open { right: 0; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29,58,79,0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(201,162,126,0.2);
}

.cart-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ocean);
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(201,162,126,0.1);
  font-size: 0.9rem;
}

.cart-item span:first-child { font-weight: 400; color: var(--ocean); }
.cart-item span:last-child { color: var(--text-muted); font-weight: 300; }

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(201,162,126,0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
}

.cart-subtotal span:last-child { font-weight: 500; color: var(--ocean); }

.checkout-btn {
  display: block;
  text-align: center;
  padding: 0.875rem;
  background: var(--ocean);
  color: white;
  border-radius: 2px;
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: background 0.2s;
}

.checkout-btn:hover { background: var(--ocean-light); }

/* ---- Nav links ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-shop-active { color: var(--ocean) !important; }

.nav-cart { cursor: pointer; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .shop-hero { padding: 3rem 1.5rem 2.5rem; }
  .pickup-banner-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .shop-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
}