/* ========== Manila Horizon — Shop Page Styles ========== */

/* ---------- Shop Hero ---------- */
.shop-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.shop-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(212,169,104,0.07) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  z-index: 0;
}

/* Subtle animated shimmer in the hero */
.shop-hero-bg::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(180deg, transparent 0%, rgba(212,169,104,0.04) 100%);
}

.shop-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
}

.shop-hero-title {
  margin-top: 20px;
  max-width: 640px;
}

.shop-hero-sub {
  margin-top: 24px;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.shop-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}

.shop-hero-sep { color: var(--gold); opacity: 0.5; }

/* Logo showcase */
.shop-logo-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* SVG Logo showcase panels */
.shop-logo-svg-wrap,
.shop-story-svg-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--bg-3);
  border: 1px solid var(--hairline-strong);
  padding: 48px 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(212,169,104,0.08);
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.3s;
  width: 100%;
  max-width: 320px;
  color: var(--gold);
}

.shop-logo-svg-wrap:hover,
.shop-story-svg-wrap:hover {
  transform: scale(1.025) rotate(-0.5deg);
  box-shadow: 0 32px 100px rgba(0,0,0,0.45), 0 0 0 1px rgba(212,169,104,0.3);
  border-color: var(--gold);
}

.shop-logo-svg,
.shop-story-svg {
  width: 96px;
  height: 96px;
  color: var(--gold);
}

.shop-logo-wordmark {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.45em;
  color: var(--ink);
  text-transform: uppercase;
}

.shop-logo-label {
  text-align: center;
  color: var(--muted);
}

/* ---------- Shop Section Head ---------- */
.shop-products {
  padding: 120px 0;
}

.shop-head {
  text-align: center;
  margin-bottom: 20px;
}

.shop-head-sub {
  color: var(--ink-soft);
  font-size: 16px;
  margin-top: 12px;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
}

/* ---------- Filter Bar ---------- */
.shop-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 56px;
  flex-wrap: wrap;
}

.shop-filter {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.shop-filter:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.shop-filter.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* ---------- Product Grid ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ---------- Product Card ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.4s;
  position: relative;
}

.product-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-6px);
}

/* --- Image Wrapper --- */
.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-3);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  display: block;
}

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

/* Badge */
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--bg);
  padding: 5px 12px;
  z-index: 2;
}

.product-badge-new {
  background: var(--teal);
  color: #fff;
}

.product-badge-limited {
  background: rgba(14, 26, 36, 0.85);
  color: var(--gold);
  border: 1px solid var(--gold);
}

/* Hover overlay */
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 26, 36, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.product-card:hover .product-overlay { opacity: 1; }

.product-quick-btn {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.product-quick-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

/* --- Product Info --- */
.product-info {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category { margin-bottom: 6px; }

.product-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.2;
}

.product-desc {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 22px;
}

/* --- Sizes --- */
.product-sizes,
.product-colors {
  margin-bottom: 16px;
}

.size-label { margin-bottom: 10px; display: block; }

.size-options,
.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-btn {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 42px;
  text-align: center;
}

.size-btn:hover { border-color: var(--gold); color: var(--gold); }
.size-btn.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* --- Colors --- */
.color-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  outline-offset: 3px;
}

.color-btn:hover { transform: scale(1.15); }
.color-btn.active { border-color: var(--gold); }

/* --- Footer row --- */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.product-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: 28px;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.product-cart-btn {
  padding: 12px 20px;
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Brand Story Banner ---------- */
.shop-story {
  background: var(--bg-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 120px 0;
}

.shop-story-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: center;
}

.shop-story-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-story-logo-img {
  width: 100%;
  max-width: 300px;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  box-shadow: 0 16px 64px rgba(0,0,0,0.3);
}

.shop-story-body {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 20px;
}

/* ---------- Cart FAB ---------- */
.cart-fab {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 40;
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(212,169,104,0.4);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.cart-fab:hover {
  background: var(--gold-soft);
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(212,169,104,0.5);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--teal);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  border: 2px solid var(--bg);
  transition: transform 0.2s;
}

.cart-count.bump {
  transform: scale(1.4);
}

/* ---------- Cart Drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(14, 26, 36, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(420px, 90vw);
  background: var(--bg-2);
  border-left: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--hairline);
}

.cart-close {
  background: none;
  border: 1px solid var(--hairline);
  color: var(--muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s, border-color 0.2s;
}

.cart-close:hover { color: var(--ink); border-color: var(--ink-soft); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  padding: 60px 0;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: var(--bg-3);
}

.cart-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--ink);
}

.cart-item-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.cart-item-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: 18px;
  color: var(--gold);
  margin-top: 4px;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0;
  transition: color 0.2s;
  margin-top: 6px;
  text-align: left;
  width: fit-content;
}

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

.cart-footer {
  padding: 20px 28px 32px;
  border-top: 1px solid var(--hairline);
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cart-total {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: 32px;
  color: var(--ink);
}

.cart-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 14px;
  text-align: center;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 110px;
  right: 36px;
  z-index: 80;
  background: var(--bg-3);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 22px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 280px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Quick View Modal ---------- */
#qv-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 20, 30, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.qv-modal {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,169,104,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#qv-overlay.open .qv-modal {
  transform: translateY(0) scale(1);
}

.qv-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: var(--bg-3);
  border: 1px solid var(--hairline-strong);
  color: var(--muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  border-radius: 0;
}

.qv-close:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--bg-2);
}

.qv-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-3);
}

.qv-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.qv-modal:hover .qv-img {
  transform: scale(1.04);
}

.qv-body {
  padding: 44px 40px 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.qv-category {
  margin-bottom: 8px;
}

.qv-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.2;
}

.qv-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 28px;
  flex-grow: 1;
}

.qv-sizes {
  margin-bottom: 28px;
}

.qv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

/* ---------- Card hidden for filter ---------- */

.product-card.hidden {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .shop-hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .shop-logo-showcase {
    display: none;
  }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shop-story-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .shop-story-logo { justify-content: center; }
  .shop-story-body { margin: 0 auto; max-width: 580px; }
}

@media (max-width: 640px) {
  .shop-hero {
    padding-top: 90px;
    padding-bottom: 60px;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .product-cart-btn { width: 100%; justify-content: center; }
  .cart-fab { bottom: 24px; right: 24px; }
  .toast { bottom: 90px; right: 24px; }
}
