/**
 * public/css/store.css — Digital journal store styles.
 * Extends theme.css. Uses zen-spa variables.
 */

/* ========= JOURNALS LISTING ========= */
.journals-hero {
  padding: 80px 48px 64px;
  text-align: center;
  background: rgba(245, 239, 230, 0.6);
}
.journals-hero-inner { max-width: 600px; margin: 0 auto; }
.journals-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--slate);
  line-height: 1.15;
  margin: 16px 0 20px;
}
.journals-sub {
  font-size: 18px;
  color: var(--text-mid);
  font-weight: 300;
}

.journals-grid-section {
  padding: 0 48px 96px;
  background: rgba(245, 239, 230, 0.4);
}
.journals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.journal-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(27, 27, 47, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.journal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(27, 27, 47, 0.1);
}
.journal-card-image { aspect-ratio: 1; overflow: hidden; }
.journal-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.journal-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.journal-card-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--slate);
  line-height: 1.2;
}
.journal-card-tagline { font-size: 13px; color: var(--terracotta); font-weight: 500; }
.journal-card-desc { font-size: 14px; color: var(--text-mid); line-height: 1.65; font-weight: 300; flex: 1; }
.journal-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(27, 27, 47, 0.06); }
.journal-price { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--slate); }
.journal-cta {
  background: var(--terracotta);
  color: white;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.journal-cta:hover { background: #b85a26; }

.journals-guarantee { padding: 64px 48px; background: var(--cream-mid); }
.guarantee-inner { max-width: 600px; margin: 0 auto; display: flex; gap: 20px; align-items: flex-start; }
.guarantee-icon { flex-shrink: 0; color: var(--terracotta); margin-top: 4px; }
.guarantee-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.guarantee-sub { font-size: 15px; color: var(--text-mid); line-height: 1.65; font-weight: 300; }

/* ========= PRODUCT PAGE ========= */
.product-page { padding: 80px 48px; background: rgba(245, 239, 230, 0.4); }
.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.product-image-col { position: sticky; top: 40px; }
.product-image-frame { border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(27, 27, 47, 0.12); }
.product-image-frame img { width: 100%; display: block; }
.product-badges { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.product-badge {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(27, 27, 47, 0.08);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
}

.product-detail-col { padding-top: 16px; }
.product-name { font-family: var(--font-head); font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--slate); line-height: 1.15; margin: 16px 0 8px; }
.product-tagline { font-size: 18px; color: var(--terracotta); font-weight: 500; margin-bottom: 24px; }
.product-price-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.product-price { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--slate); }
.product-price-note { font-size: 14px; color: var(--text-light); }
.product-description { font-size: 16px; color: var(--text-mid); line-height: 1.75; font-weight: 300; margin-bottom: 40px; }

/* Buy form */
.buy-form { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 500; color: var(--slate); }
.form-input {
  padding: 14px 16px;
  border: 1.5px solid rgba(27, 27, 47, 0.12);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--slate);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--terracotta); }
.form-hint { font-size: 12px; color: var(--text-light); }
.form-error { font-size: 14px; color: #C4622D; }

.buy-button {
  background: var(--terracotta);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}
.buy-button:hover:not(:disabled) { background: #b85a26; transform: translateY(-1px); }
.buy-button:disabled { opacity: 0.65; cursor: not-allowed; }

.product-trust { display: flex; flex-direction: column; gap: 10px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-mid); font-weight: 400; }
.trust-item svg { color: var(--green); flex-shrink: 0; }

/* Other journals */
.other-journals { padding: 80px 48px; background: rgba(245, 239, 230, 0.6); }
.other-inner { max-width: 1100px; margin: 0 auto; }
.other-title { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--slate); margin-bottom: 32px; }
.other-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.other-card {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(27, 27, 47, 0.06);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.other-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(27, 27, 47, 0.08); }
.other-card-img { width: 80px; height: 80px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.other-card-img img { width: 100%; height: 100%; object-fit: cover; }
.other-card-body { display: flex; flex-direction: column; justify-content: center; }
.other-card-name { font-size: 15px; font-weight: 600; color: var(--slate); }
.other-card-price { font-size: 14px; color: var(--text-mid); margin-top: 4px; font-family: var(--font-head); font-weight: 600; }

/* ========= SUCCESS PAGE ========= */
.success-page { padding: 80px 24px; background: rgba(245, 239, 230, 0.4); min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.success-inner { max-width: 520px; margin: 0 auto; text-align: center; }
.success-icon { margin-bottom: 24px; }
.success-title { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--slate); margin-bottom: 12px; }
.success-sub { font-size: 18px; color: var(--text-mid); font-weight: 300; line-height: 1.65; margin-bottom: 40px; }

.success-download-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(27, 27, 47, 0.06);
  margin-bottom: 24px;
}
.download-label { font-size: 12px; font-weight: 500; color: var(--text-light); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.download-btn {
  display: inline-block;
  background: var(--terracotta);
  color: white;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}
.download-btn:hover { background: #b85a26; }

.success-note { font-size: 14px; color: var(--text-light); margin-bottom: 32px; }
.success-browse { font-size: 15px; color: var(--terracotta); font-weight: 500; text-decoration: none; }

/* ========= BUNDLE CARD ========= */
.bundle-card {
  background: var(--slate);
  border-radius: 24px;
  overflow: hidden;
  margin-top: 48px;
  position: relative;
}
.bundle-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--terracotta);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 100px;
}
.bundle-inner { display: grid; grid-template-columns: auto 1fr; gap: 48px; padding: 48px; align-items: center; }
.bundle-left { display: flex; align-items: center; }
.bundle-cover-stack { position: relative; width: 160px; height: 160px; }
.bundle-cover { position: absolute; width: 100px; height: 100px; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.bundle-cover-1 { top: 0; left: 0; z-index: 3; transform: rotate(-6deg); }
.bundle-cover-2 { top: 30px; left: 30px; z-index: 2; transform: rotate(0deg); }
.bundle-cover-3 { top: 60px; left: 60px; z-index: 1; transform: rotate(6deg); }
.bundle-label { font-size: 11px; font-weight: 500; color: rgba(245,239,230,0.5); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.bundle-title { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--cream); margin-bottom: 4px; }
.bundle-tagline { font-size: 16px; color: var(--terracotta); font-weight: 500; margin-bottom: 12px; }
.bundle-desc { font-size: 15px; color: rgba(245,239,230,0.65); line-height: 1.7; font-weight: 300; margin-bottom: 24px; max-width: 480px; }
.bundle-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.bundle-price { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--cream); }
.bundle-compare { font-size: 14px; color: rgba(245,239,230,0.4); }
.bundle-cta { display: inline-block; background: var(--cream); color: var(--terracotta); padding: 14px 28px; border-radius: 100px; font-size: 16px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.bundle-cta:hover { background: white; transform: translateY(-1px); }

/* ========= FREE WORKSHEET PAGE ========= */
.free-page { padding: 80px 48px; background: rgba(245, 239, 230, 0.4); min-height: 80vh; }
.free-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.free-left { }
.free-badge { display: inline-block; background: rgba(196, 98, 45, 0.1); color: var(--terracotta); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; margin-bottom: 24px; }
.free-title { font-family: var(--font-head); font-size: clamp(36px, 4vw, 52px); font-weight: 700; color: var(--slate); line-height: 1.1; margin-bottom: 20px; }
.free-desc { font-size: 17px; color: var(--text-mid); line-height: 1.7; font-weight: 300; margin-bottom: 32px; }
.free-includes { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.free-include-item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-mid); }
.free-include-item svg { color: var(--green); flex-shrink: 0; }
.free-worksheet-preview { display: flex; flex-direction: column; gap: 10px; }
.worksheet-thumb { width: 200px; border-radius: 10px; box-shadow: 0 8px 24px rgba(27,27,47,0.1); }
.free-preview-label { font-size: 12px; color: var(--text-light); }

.free-right { position: sticky; top: 40px; }
.free-form-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(27, 27, 47, 0.06);
}
.free-form-header { text-align: center; margin-bottom: 32px; }
.free-form-icon { margin-bottom: 16px; }
.free-form-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.free-form-sub { font-size: 14px; color: var(--text-light); font-weight: 300; }
.free-form-field { margin-bottom: 20px; }
.free-label { font-size: 14px; font-weight: 500; color: var(--slate); display: block; margin-bottom: 8px; }
.free-input { width: 100%; padding: 14px 16px; border: 1.5px solid rgba(27, 27, 47, 0.12); border-radius: 10px; font-size: 15px; font-family: var(--font-body); color: var(--slate); background: white; outline: none; transition: border-color 0.2s; }
.free-input:focus { border-color: var(--terracotta); }
.free-submit-btn { width: 100%; background: var(--terracotta); color: white; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: 600; font-family: var(--font-body); border: none; cursor: pointer; transition: background 0.2s; }
.free-submit-btn:hover:not(:disabled) { background: #b85a26; }
.free-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.free-error { font-size: 14px; color: #C4622D; text-align: center; margin-top: 12px; }
.free-trust-row { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.free-trust-item { font-size: 12px; color: var(--text-light); }
.free-trust-dot { font-size: 12px; color: var(--text-light); }

.free-success-card { text-align: center; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(8px); border-radius: 20px; padding: 48px 40px; border: 1px solid rgba(27, 27, 47, 0.06); }
.free-success-icon { margin-bottom: 20px; }
.free-success-title { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--slate); margin-bottom: 12px; }
.free-success-sub { font-size: 16px; color: var(--text-mid); line-height: 1.65; font-weight: 300; margin-bottom: 32px; }
.free-success-cta { display: inline-block; padding: 14px 28px; border: 1.5px solid var(--slate); color: var(--slate); border-radius: 100px; font-size: 15px; font-weight: 500; text-decoration: none; }

@media (max-width: 768px) {
  .free-page { padding: 48px 24px; }
  .free-inner { grid-template-columns: 1fr; gap: 40px; }
  .free-right { position: static; }
}

/* ========= CHECKOUT UPSELL ========= */
.upsell-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(27, 27, 47, 0.06);
  padding: 24px;
  margin-bottom: 24px;
}
.upsell-inner { display: flex; gap: 16px; align-items: flex-start; }
.upsell-icon { flex-shrink: 0; width: 48px; height: 48px; background: rgba(196, 98, 45, 0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.upsell-content { flex: 1; }
.upsell-badge { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 6px; }
.upsell-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.upsell-desc { font-size: 14px; color: var(--text-mid); line-height: 1.6; font-weight: 300; margin-bottom: 16px; }
.upsell-footer { display: flex; align-items: center; gap: 16px; }
.upsell-price { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--slate); }
.upsell-btn { background: var(--slate); color: white; padding: 10px 20px; border-radius: 100px; font-size: 14px; font-weight: 600; font-family: var(--font-body); border: none; cursor: pointer; transition: background 0.2s; }
.upsell-btn:hover:not(:disabled) { background: var(--terracotta); }
.upsell-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.upsell-success { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--green); font-weight: 500; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(27,27,47,0.06); }
.upsell-success svg { flex-shrink: 0; }

/* ========= RESPONSIVE ========= */
@media (max-width: 900px) {
  .journals-hero { padding: 64px 24px 48px; }
  .journals-grid-section { padding: 0 24px 64px; }
  .journals-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-inner { grid-template-columns: 1fr; gap: 40px; }
  .product-image-col { position: static; }
  .product-page { padding: 48px 24px; }
  .other-journals { padding: 48px 24px; }
  .other-grid { grid-template-columns: 1fr; }
}