/* ============================================
   Kamyab Products Store — Design System
   ============================================ */

:root {
  --color-bg: #0a0a0f;
  --color-surface: #14141f;
  --color-surface-hover: #1a1a2e;
  --color-border: #2a2a3e;
  --color-text: #e4e4eb;
  --color-text-muted: #8888a0;
  --color-primary: #c8382e;
  --color-primary-hover: #e04439;
  --color-accent: #fbbf24;
  --color-success: #22c55e;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

/* Header */
.store-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.store-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.store-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
}

.store-logo img { height: 32px; }

.store-badge {
  padding: 0.2rem 0.6rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: #fff;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-nav-links {
  display: flex;
  gap: 1.5rem;
}

.store-nav-link {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.store-nav-link:hover { color: var(--color-text); }

/* Hero */
.store-hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.store-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.store-hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.product-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-surface-hover);
}

.product-card__body {
  padding: 1.5rem;
}

.product-card__category {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--color-surface-hover);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.product-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.product-card__price .old {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-weight: 400;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-store:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: scale(1.02);
}

/* Product Detail */
.product-detail {
  padding: 2rem 0 4rem;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail__image {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  min-height: 400px;
  object-fit: cover;
}

.product-detail__info h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-detail__price {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.product-detail__desc {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Checkout island area */
.checkout-island {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
}

/* FAQ section */
.faq-section {
  padding: 3rem 0;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  background: var(--color-surface);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::marker { display: none; }

.faq-item div {
  padding: 0 1.25rem 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Footer */
.store-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
}

.store-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.store-footer p { font-size: 0.85rem; color: var(--color-text-muted); }
.store-footer .muted { font-size: 0.75rem; margin-top: 0.25rem; opacity: 0.6; }

.store-footer-links {
  display: flex;
  gap: 1.5rem;
}

.store-footer-links a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .store-hero h1 { font-size: 1.75rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-detail__grid { grid-template-columns: 1fr; gap: 2rem; }
  .store-footer-grid { flex-direction: column; gap: 1rem; text-align: center; }
}
