/* ============================================================
   SHOP.CSS — Storefront pages (catalog, product, checkout, pages)
   Inherits design tokens from theme.css
   ============================================================ */

/* ---- NAV ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-deep);
  text-decoration: none;
}
.nav-brand img { height: 36px; width: auto; }
.nav-brand:hover { color: var(--purple-rich); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-link:hover { color: var(--purple-deep); }
.nav-cta {
  display: inline-block; padding: 9px 20px;
  background: var(--gradient-purple); color: #fff;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.2s;
}
.nav-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(74, 29, 110, 0.25); }

/* ---- CATALOG PAGE ---- */
.catalog-page { max-width: 1200px; margin: 0 auto; padding: 60px 6vw 100px; }
.catalog-header { margin-bottom: 64px; }
.catalog-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 900; line-height: 1.1;
  color: var(--purple-deep);
  margin: 16px 0 16px;
}
.catalog-header h1 em { font-style: italic; color: var(--purple-rich); }
.catalog-sub { font-size: 1.1rem; color: var(--muted); }

/* ---- PRODUCT GRID ---- */
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 80px; }
.product-card {
  border-radius: 20px; overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(74, 29, 110, 0.12); }
.product-card-link { text-decoration: none; color: inherit; display: block; }
.product-visual { height: 280px; position: relative; overflow: hidden; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-visual img { transform: scale(1.05); }
.product-visual.swatch-warm { background: linear-gradient(160deg, var(--green-faint) 0%, var(--green-light) 100%); }
.product-visual.swatch-cool { background: linear-gradient(160deg, var(--purple-faint) 0%, var(--purple-light) 100%); }
.product-visual.swatch-bold { background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold-accent) 100%); }
.product-visual.swatch-earth { background: linear-gradient(160deg, var(--bg-warm) 0%, var(--green-sage) 100%); }
.product-info { padding: 28px 28px 24px; }
.product-meta { margin-bottom: 20px; }
.product-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--purple-deep); margin-bottom: 4px; }
.product-tagline { font-size: 0.9rem; color: var(--muted); }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--purple-deep); }
.product-cta-text { font-size: 0.85rem; font-weight: 600; color: var(--purple-rich); letter-spacing: 0.02em; transition: letter-spacing 0.2s; }
.product-card:hover .product-cta-text { letter-spacing: 0.06em; }

/* ---- TRUST STRIP ---- */
.catalog-promise { border-top: 1px solid var(--border-subtle); padding-top: 60px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.promise-item { display: flex; flex-direction: column; gap: 6px; }
.promise-icon { font-size: 1rem; color: var(--purple-rich); margin-bottom: 4px; }
.promise-item strong { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--purple-deep); }
.promise-item span { font-size: 0.88rem; color: var(--muted); }

/* ---- PRODUCT DETAIL ---- */
.product-page { max-width: 1200px; margin: 0 auto; padding: 40px 6vw 100px; }
.back-link { display: inline-flex; align-items: center; font-size: 0.85rem; font-weight: 500; color: var(--muted); text-decoration: none; margin-bottom: 48px; transition: color 0.2s; }
.back-link:hover { color: var(--purple-deep); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-bottom: 80px; }
.product-detail-visual { border-radius: 24px; overflow: hidden; min-height: 520px; position: relative; }
.product-detail-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 520px; }
.product-detail-visual.swatch-warm { background: linear-gradient(160deg, var(--green-faint) 0%, var(--green-light) 100%); }
.product-detail-visual.swatch-cool { background: linear-gradient(160deg, var(--purple-faint) 0%, var(--purple-light) 100%); }
.product-detail-visual.swatch-bold { background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold-accent) 100%); }
.product-detail-visual.swatch-earth { background: linear-gradient(160deg, var(--bg-warm) 0%, var(--green-sage) 100%); }
.product-detail-info { padding-top: 8px; }
.product-detail-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900; color: var(--purple-deep);
  line-height: 1.1; margin: 12px 0 8px;
}
.product-detail-tagline { font-size: 1.05rem; color: var(--green-sage); font-weight: 500; margin-bottom: 24px; }
.product-detail-desc { font-size: 1rem; color: var(--fg-secondary); line-height: 1.8; margin-bottom: 36px; }

/* ---- SPECS ---- */
.product-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; margin-bottom: 36px; }
.spec-item { padding: 16px 20px; border-bottom: 1px solid var(--border-subtle); border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 3px; }
.spec-item:nth-child(even) { border-right: none; }
.spec-item:nth-last-child(-n+2) { border-bottom: none; }
.spec-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.spec-value { font-size: 0.9rem; color: var(--fg); font-weight: 500; }

/* ---- BUY BOX ---- */
.product-buy { background: var(--bg-purple); border-radius: 16px; padding: 28px 28px 24px; border: 1px solid var(--border-subtle); }
.product-buy-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.price-amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--purple-deep); }
.price-note { font-size: 0.8rem; color: var(--muted); }
.buy-tiers { margin-bottom: 20px; }
.buy-tier {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border: 1px solid var(--border-subtle);
  border-radius: 8px; margin-bottom: 8px; font-size: 0.88rem;
  transition: border-color 0.2s;
}
.buy-tier:hover { border-color: var(--purple-light); }
.buy-tier-label { color: var(--fg-secondary); font-weight: 500; }
.buy-tier-price { font-weight: 700; color: var(--purple-deep); }
.buy-tier-save { font-size: 0.75rem; color: var(--green-sage); font-weight: 600; margin-left: 8px; }

.btn-buy {
  display: block; width: 100%;
  padding: 16px 24px;
  background: var(--gradient-purple); color: #fff;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  text-decoration: none; text-align: center;
  border-radius: 10px; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
}
.btn-buy:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(74, 29, 110, 0.3); }
.buy-trust { font-size: 0.78rem; color: var(--muted); text-align: center; }
.btn-outline {
  display: inline-block; padding: 12px 24px;
  border: 1.5px solid var(--purple-deep); color: var(--purple-deep);
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none; border-radius: 8px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover { background: var(--purple-deep); color: #fff; transform: translateY(-1px); }

/* ---- ALSO SECTION ---- */
.also-section { border-top: 1px solid var(--border-subtle); padding-top: 60px; display: flex; align-items: center; justify-content: space-between; }
.also-section h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--purple-deep); }

/* ---- SUCCESS PAGE ---- */
.success-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 60px 6vw; }
.success-inner { max-width: 540px; text-align: center; }
.success-icon { font-size: 3rem; color: var(--green-sage); margin-bottom: 24px; display: block; animation: pulse-in 0.6s ease; }
@keyframes pulse-in { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-inner h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--purple-deep); margin-bottom: 16px; }
.success-sub { font-size: 1.05rem; color: var(--fg); margin-bottom: 12px; line-height: 1.7; }
.success-detail { font-size: 0.95rem; color: var(--muted); margin-bottom: 40px; line-height: 1.7; }
.success-detail a { color: var(--purple-rich); }
.success-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- CONTENT PAGES (About, FAQ) ---- */
.content-page { max-width: 800px; margin: 0 auto; padding: 60px 6vw 100px; }
.content-page h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; color: var(--purple-deep); margin-bottom: 12px; }
.content-page .page-subtitle { font-size: 1.1rem; color: var(--muted); margin-bottom: 48px; }
.content-page h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--purple-deep); margin: 48px 0 16px; }
.content-page h2:first-of-type { margin-top: 0; }
.content-page p { font-size: 1rem; color: var(--fg-secondary); line-height: 1.8; margin-bottom: 16px; }
.content-page a { color: var(--purple-rich); text-decoration: underline; text-underline-offset: 3px; }

/* FAQ accordion */
.faq-list { list-style: none; padding: 0; margin: 0 0 48px; }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; background: none; border: none;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
  color: var(--purple-deep); cursor: pointer; text-align: left;
}
.faq-question:hover { color: var(--purple-rich); }
.faq-icon { font-size: 1.2rem; color: var(--muted); transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 0 20px; font-size: 0.95rem; color: var(--fg-secondary); line-height: 1.7; }

/* ---- CUSTOM CALENDAR PAGE ---- */
.custom-page { max-width: 900px; margin: 0 auto; padding: 60px 6vw 100px; }
.custom-hero { text-align: center; margin-bottom: 60px; }
.custom-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; color: var(--purple-deep); margin-bottom: 12px; }
.custom-hero p { font-size: 1.1rem; color: var(--fg-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.custom-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.custom-form { background: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: 20px; padding: 36px; }
.custom-form h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--purple-deep); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--fg-secondary); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border-subtle); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--fg); background: var(--bg); outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--purple-light); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  width: 100%; padding: 14px 24px;
  background: var(--gradient-purple); color: #fff;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  border: none; border-radius: 10px; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(74, 29, 110, 0.3); }
.custom-benefits { padding-top: 8px; }
.custom-benefits h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--purple-deep); margin-bottom: 24px; }
.benefit-item { display: flex; gap: 16px; margin-bottom: 24px; }
.benefit-icon { font-size: 1.4rem; color: var(--green-sage); flex-shrink: 0; margin-top: 2px; }
.benefit-text h4 { font-size: 0.95rem; font-weight: 600; color: var(--purple-deep); margin-bottom: 4px; }
.benefit-text p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin: 0; }
.custom-note { text-align: center; margin-top: 48px; padding: 24px; background: var(--bg-purple); border-radius: 12px; }
.custom-note p { font-size: 0.9rem; color: var(--fg-secondary); margin: 0; }
.custom-note a { color: var(--purple-rich); font-weight: 600; }
.form-message { padding: 16px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; }
.form-message.success { background: var(--green-faint); color: var(--green-dark); }
.form-message.error { background: #fde8e8; color: #991b1b; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-detail { grid-template-columns: 1fr; gap: 40px; }
  .product-detail-visual { min-height: 360px; }
  .product-detail-visual img { min-height: 360px; }
  .promise-grid { grid-template-columns: 1fr; gap: 24px; }
  .also-section { flex-direction: column; gap: 24px; text-align: center; }
  .custom-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .nav-links { gap: 16px; }
  .nav-cta { display: none; }
  .catalog-page, .product-page, .content-page, .custom-page { padding: 40px 5vw 80px; }
  .product-specs { grid-template-columns: 1fr; }
  .spec-item { border-right: none; }
  .spec-item:last-child { border-bottom: none; }
}
