/* ── Store CSS — extends theme.css design tokens ── */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #e64400; }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--fg-muted); }

/* ── Nav enhancements ── */
.nav-links-desktop {
  display: flex;
  gap: 32px;
}
.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-cart {
  color: var(--fg-muted);
  position: relative;
  transition: color 0.2s;
}
.nav-cart:hover { color: var(--fg); }
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--fg-muted);
  text-decoration: none;
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--fg); }

/* ── Hero enhancements ── */
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
}
.hero-trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ── Section container ── */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ── Product grid ── */
.featured-products {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}
.product-grid-small {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.product-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.product-card-img {
  aspect-ratio: 4/3;
  background: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card-img-sm { aspect-ratio: 1; }
.product-card-placeholder {
  color: var(--fg-muted);
  opacity: 0.3;
}
.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.product-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-card-sub {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 12px;
  line-height: 1.5;
  flex: 1;
}
.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.price-old {
  text-decoration: line-through;
  color: var(--fg-muted);
  font-size: 14px;
}
.price-current {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
}
.price-old-lg { font-size: 18px; }
.price-current-lg { font-size: 28px; }
.price-ttc {
  font-size: 13px;
  color: var(--fg-muted);
  margin-left: 4px;
}
.product-card-delivery {
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Catalog page ── */
.page-section { padding: 120px 0 80px; }
.page-header { margin-bottom: 48px; }
.catalog-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  color: var(--fg);
  border-color: var(--accent);
  background: var(--accent-dim);
}
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--fg-muted);
}
.empty-state p { margin-bottom: 24px; }

/* ── Product detail page ── */
.breadcrumb {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 32px;
  padding-top: 0;
}
.breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb span { margin: 0 8px; }
.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.product-gallery-main {
  background: #1A1A1A;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-placeholder-large {
  color: var(--fg-muted);
  opacity: 0.2;
}
.product-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}
.product-subtitle {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,77,0,0.2);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.product-badge svg { color: var(--accent); flex-shrink: 0; }
.product-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.product-guarantee svg { color: var(--accent); flex-shrink: 0; }
.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.product-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-muted);
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }
.trust-item--oos { color: var(--fg-muted); }
.trust-item--oos svg { color: #888; }
.btn-add-cart {
  width: 100%;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 16px;
  padding: 16px;
}
.product-description {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.75;
}
.product-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  margin-bottom: 64px;
}
.product-detail-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 32px;
}
.product-detail-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--fg);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-table td:first-child {
  color: var(--fg-muted);
  padding-right: 16px;
  white-space: nowrap;
}
.spec-table td:last-child { color: var(--fg); }
.exercise-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exercise-item {
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.exercise-item strong {
  display: block;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 4px;
}
.exercise-meta {
  font-size: 13px;
  color: var(--fg-muted);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--fg-muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '-';
}
.faq-item p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}
.upsell-section {
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.upsell-section .section-title {
  font-size: 24px;
  margin-bottom: 24px;
}

/* ── Cart page ── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item-img {
  width: 80px;
  height: 80px;
  background: #1A1A1A;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-img svg { color: var(--fg-muted); opacity: 0.3; }
.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.cart-item-price {
  color: var(--fg-muted);
  font-size: 14px;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-qty-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.cart-qty-btn:hover { border-color: var(--fg-muted); }
.cart-qty { font-size: 15px; min-width: 24px; text-align: center; }
.cart-remove {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  margin-left: 12px;
  transition: color 0.2s;
}
.cart-remove:hover { color: var(--accent); }
.cart-summary {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 32px;
  position: sticky;
  top: 100px;
}
.cart-summary h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.cart-shipping-note {
  color: var(--fg-muted);
  font-size: 13px;
}
.cart-total {
  font-weight: 700;
  font-size: 16px;
  border-bottom: none;
  padding-top: 16px;
}
.btn-checkout {
  width: 100%;
  justify-content: center;
  margin-top: 24px;
  font-size: 16px;
}
.cart-secure-note {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--fg-muted);
}
.cart-upsell {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.cart-upsell h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

/* ── Info pages ── */
.info-page { max-width: 800px; }
.info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 2px;
}
.info-card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--fg);
}
.info-card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.info-card p:last-child { margin-bottom: 0; }
.info-card a { color: var(--accent); }
.info-list {
  padding-left: 20px;
  margin: 12px 0;
}
.info-list li {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 4px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.cgv-update {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

/* ── Footer enhancements ── */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 48px 40px;
}
.footer-brand { }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-trust {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-trust span::before {
  content: '\2713 ';
  color: var(--accent);
}
/* Override old footer styles */
.footer { padding: 0; border-top: 1px solid var(--border); }
.footer-logo { margin-bottom: 8px; }
.footer-sub { margin-bottom: 0; font-size: 14px; }
.footer-links { display: none; }
.footer-copy { font-size: 12px; color: var(--fg-muted); margin: 0; }

/* ── Product images ── */
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.product-thumb {
  width: 72px;
  height: 72px;
  background: #1A1A1A;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}
.product-thumb:hover,
.product-thumb.active {
  border-color: var(--accent);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Button states ── */
.btn-success {
  background: #1a7a3a !important;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Checkout message ── */
.checkout-message {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,77,0,0.25);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .product-main { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links-desktop { display: none; }
  .nav-burger { display: flex; }
  .section-container { padding: 0 24px; }
  .page-section { padding: 100px 0 60px; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 40px 24px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; padding: 16px 24px; text-align: center; }
  .footer-trust { flex-wrap: wrap; justify-content: center; }
  .product-gallery-thumbs { flex-wrap: wrap; }
  .product-thumb { width: 56px; height: 56px; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-actions { width: 100%; justify-content: flex-end; margin-top: 8px; }
}
