/* ============================================
   Kamyab Products Store — Design System
   Light Mode · Professional · Scalable
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-surface-hover: #f0f2f5;
  --color-surface-alt: #f3f4f6;
  --color-border: #e2e5ea;
  --color-border-light: #eef0f3;
  --color-text: #1a1a2e;
  --color-text-secondary: #4a4a5a;
  --color-text-muted: #6b7280;
  --color-primary: #c8382e;
  --color-primary-hover: #b02e25;
  --color-primary-light: #fef2f1;
  --color-accent: #f59e0b;
  --color-success: #059669;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --container-max: 1200px;
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', -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; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }

/* ============ Header ============ */
.store-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.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.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

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

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

/* ============ Hero ============ */
.store-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
}

.store-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

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

/* ============ Category Filter ============ */
.category-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 0;
}

.category-filter__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
}

.category-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.category-filter__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.category-filter__btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(200, 56, 46, 0.2);
}

.category-filter__btn .count {
  font-size: 0.7rem;
  opacity: 0.7;
}

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

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

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

.product-card[data-hidden="true"] {
  display: none;
}

.product-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border-light);
}

.product-card__body {
  padding: 1.5rem;
}

.product-card__category {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--color-primary-light);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.product-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

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

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

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

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

/* ============ Buttons ============ */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-store:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 56, 46, 0.2);
}

/* ============ 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-alt);
  border: 1px solid var(--color-border-light);
  min-height: 400px;
  object-fit: cover;
}

.product-detail__info h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.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-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.product-detail__desc h3 {
  color: var(--color-text);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
}

.product-detail__desc ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.product-detail__desc li {
  margin-bottom: 0.4rem;
  color: var(--color-text-secondary);
}

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

/* ============ FAQ ============ */
.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);
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--color-primary);
}

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

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

.faq-item[open] summary span {
  transform: rotate(45deg);
}

.faq-item summary span {
  transition: transform var(--transition);
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

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

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

.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;
  font-weight: 500;
  transition: color var(--transition);
}

.store-footer-links a:hover {
  color: var(--color-primary);
}

/* ============ Empty State ============ */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  grid-column: 1 / -1;
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.empty-state__sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .store-hero h1 { font-size: 1.65rem; }
  .store-hero p { font-size: 0.95rem; }
  .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; }
  .category-filter { justify-content: center; }
  .product-detail__image { min-height: 250px; }
}
