/* Store pages — extends theme.css */

/* Cart badge */
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  margin-left: 6px;
}

/* Store page layout */
.store-page {
  padding-top: 80px;
  min-height: 100vh;
}

/* Store header */
.store-header {
  padding: 80px 32px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(37,99,235,0.06) 0%, transparent 100%);
}
.store-header-inner {
  max-width: 680px;
  margin: 0 auto;
}
.store-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 8px 0 16px;
}
.store-sub {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* Product grid */
.store-grid-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .store-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .store-grid { grid-template-columns: 1fr; } }

.product-card-link { text-decoration: none; color: inherit; display: block; }
.store-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.store-product-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.product-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}
.product-card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.product-card-category {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.product-card-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.product-card-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card-price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.product-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.store-product-card:hover .product-card-cta { color: var(--accent); }

/* Product detail */
.product-detail-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-preview { order: -1; }
}
.back-link {
  display: inline-block;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--fg); }
.product-detail-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 8px 0 16px;
}
.product-detail-desc {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.product-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}
.meta-item svg { color: var(--accent); flex-shrink: 0; }
.product-price-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.product-detail-price {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--fg);
}
.btn-add-cart {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-add-cart:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn-add-cart.in-cart { background: var(--bg-card); border: 1px solid var(--border-hover); color: var(--fg-muted); cursor: default; }
.btn-add-cart.in-cart:hover { transform: none; }
.go-to-cart-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

/* Preview card */
.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}
.preview-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.preview-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-dim);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 16px;
}
.preview-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.preview-category {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.preview-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
.preview-feature {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.preview-feature::before { content: '✓'; color: var(--accent); font-weight: 700; }
.preview-price {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 16px;
}

/* Cart */
.cart-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px;
}
.cart-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 32px;
}
.cart-empty {
  text-align: center;
  padding: 80px 32px;
  color: var(--fg-muted);
}
.cart-empty p { margin-bottom: 24px; font-size: 17px; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-items { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.cart-item {
  background: var(--bg-card);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.cart-item-info { flex: 1; }
.cart-item-category { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-muted); margin-bottom: 4px; }
.cart-item-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cart-item-name a { color: var(--fg); text-decoration: none; }
.cart-item-name a:hover { color: var(--accent); }
.cart-item-desc { font-size: 13px; color: var(--fg-muted); }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-price { font-family: var(--font-mono); font-size: 16px; font-weight: 600; }
.btn-remove {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.btn-remove:hover { background: rgba(220,38,38,0.1); }

/* Summary card */
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 100px;
}
.summary-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--fg-muted); margin-bottom: 10px; }
.summary-divider { height: 1px; background: var(--border); margin: 16px 0; }
.summary-total { font-size: 16px; font-weight: 700; color: var(--fg); }
.summary-total span:last-child { font-family: var(--font-mono); font-size: 18px; }
.text-accent { color: var(--accent) !important; }
.btn-checkout {
  display: block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  margin-top: 20px;
  transition: background 0.2s;
}
.btn-checkout:hover { background: #1d4ed8; }
.continue-shopping { display: block; text-align: center; color: var(--fg-muted); text-decoration: none; font-size: 13px; margin-top: 12px; }
.continue-shopping:hover { color: var(--fg); }

/* Checkout */
.checkout-wrap { max-width: 1100px; margin: 0 auto; padding: 48px 32px; }
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.form-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-muted); margin-bottom: 6px; }
.form-group input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--fg);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--accent); }
.form-hint { font-size: 12px; color: var(--fg-muted); margin-top: 5px; }
.checkout-items { margin: 20px 0 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.checkout-items-title { font-size: 13px; font-weight: 600; color: var(--fg-muted); margin-bottom: 10px; }
.checkout-item-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.checkout-item-row span:last-child { font-family: var(--font-mono); }
.checkout-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; margin: 16px 0; border-top: 1px solid var(--border); padding-top: 12px; }
.checkout-total span:last-child { font-family: var(--font-mono); font-size: 18px; }
.btn-place-order {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-place-order:hover { background: #1d4ed8; }
.checkout-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 12px;
  justify-content: center;
}
.checkout-note svg { color: var(--accent); flex-shrink: 0; }
.checkout-summary-col .summary-card { position: static; }
.summary-product { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary-product:last-of-type { border-bottom: none; }
.summary-product-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.summary-product-cat { font-size: 12px; color: var(--fg-muted); }
.summary-product-price { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }

/* Confirmation */
.confirmation-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 32px;
  text-align: center;
}
.confirmation-icon {
  width: 80px;
  height: 80px;
  background: rgba(5, 150, 105, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  margin: 0 auto 24px;
}
.confirmation-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}
.confirmation-sub {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.confirmation-orders { display: flex; flex-direction: column; gap: 16px; text-align: left; margin-bottom: 32px; }
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.order-card-header > div { display: flex; align-items: center; gap: 12px; }
.order-product-name { font-size: 16px; font-weight: 700; }
.order-price { font-family: var(--font-mono); font-size: 14px; color: var(--fg-muted); }
.order-status.delivered { background: rgba(5,150,105,0.12); color: #059669; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px; }
.order-desc { font-size: 13px; color: var(--fg-muted); margin-bottom: 20px; line-height: 1.5; }
.download-section {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 12px;
  padding: 14px 16px;
}
.download-icon { color: var(--accent); flex-shrink: 0; }
.download-text { flex: 1; }
.download-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 2px; }
.download-file { font-size: 13px; color: var(--fg-muted); }
.btn-download {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-download:hover { background: #1d4ed8; }
.confirmation-email-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 32px;
}
.confirmation-email-note svg { color: var(--accent); }
.confirmation-actions { display: flex; gap: 16px; justify-content: center; }

/* 404 */
.error-page-wrap { max-width: 500px; margin: 0 auto; padding: 120px 32px; text-align: center; }
.error-page-wrap h1 { font-size: 60px; font-weight: 800; letter-spacing: -3px; margin-bottom: 12px; }
.error-page-wrap p { color: var(--fg-muted); margin-bottom: 32px; }