/* ============================================================
   TARA SFANTA - Design System
   Inspired by Tishfy5 + Orthodox Christian aesthetics
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Colors - OKLCH */
  --color-bg:              oklch(96% 0.03 168);
  --color-bg-card:         oklch(100% 0 0);
  --color-bg-section-alt:  oklch(98% 0.01 168);

  --color-primary:         oklch(35% 0.12 20);
  --color-primary-hover:   oklch(28% 0.14 20);
  --color-primary-light:   oklch(94% 0.03 20);

  --color-gold:            oklch(68% 0.14 72);
  --color-gold-light:      oklch(90% 0.09 72);
  --color-gold-dark:       oklch(48% 0.12 72);
  --color-announce-bg:     oklch(88% 0.10 72);
  --color-announce-text:   oklch(28% 0.08 55);

  --color-charcoal:        oklch(22% 0.01 250);
  --color-charcoal-light:  oklch(30% 0.01 250);

  --color-text:            oklch(18% 0.01 20);
  --color-text-muted:      oklch(50% 0.01 20);
  --color-text-light:      oklch(65% 0.01 20);
  --color-border:          oklch(88% 0.02 168);
  --color-white:           oklch(100% 0 0);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  --size-xs:   0.75rem;
  --size-sm:   0.875rem;
  --size-md:   1rem;
  --size-lg:   1.125rem;
  --size-xl:   1.375rem;
  --size-2xl:  1.75rem;
  --size-3xl:  2.25rem;
  --size-4xl:  3rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Effects */
  --shadow-sm:   0 1px 4px oklch(0% 0 0 / 0.06);
  --shadow-card: 0 2px 12px oklch(0% 0 0 / 0.08);
  --shadow-hover:0 6px 24px oklch(0% 0 0 / 0.14);
  --shadow-lg:   0 12px 40px oklch(0% 0 0 / 0.16);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  --transition: all 0.2s ease;
  --transition-slow: all 0.35s ease;

  /* Layout */
  --max-width: 1280px;
  --header-h: 70px;
  --announce-h: 40px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-md);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: var(--size-4xl); font-weight: 700; }
h2 { font-size: var(--size-3xl); font-weight: 600; }
h3 { font-size: var(--size-2xl); font-weight: 600; }
h4 { font-size: var(--size-xl);  font-weight: 600; }
h5 { font-size: var(--size-lg);  font-weight: 500; }
h6 { font-size: var(--size-md);  font-weight: 500; }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

/* ── Layout helpers ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section { padding: var(--sp-16) 0; }
.section-sm { padding: var(--sp-10) 0; }
.section-lg { padding: var(--sp-24) 0; }

.section-title {
  font-size: var(--size-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--sp-4);
  color: var(--color-text);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--size-lg);
  margin-bottom: var(--sp-10);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Announcement Bar ── */
.announcement-bar {
  background: var(--color-announce-bg);
  color: var(--color-announce-text);
  text-align: center;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--size-sm);
  font-weight: 500;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}

.announcement-bar a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-6);
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.site-logo__name {
  font-family: var(--font-display);
  font-size: var(--size-xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.site-logo__tagline {
  font-size: var(--size-xs);
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Main nav */
.main-nav { display: flex; align-items: center; gap: var(--sp-1); }

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--transition);
  z-index: 200;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--size-sm);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-dropdown a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--size-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.lang-switcher:hover { border-color: var(--color-primary); color: var(--color-primary); }
.lang-switcher img { width: 18px; height: 12px; border-radius: 2px; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--size-sm);
  font-weight: 500;
  transition: var(--transition);
}

.cart-btn:hover { background: var(--color-primary-hover); transform: translateY(-1px); }

.cart-btn svg { width: 18px; height: 18px; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.cart-badge.hidden { display: none; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero Slider ── */
.hero-slider {
  position: relative;
  height: 540px;
  overflow: hidden;
  background: var(--color-charcoal);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(0% 0 0 / 0.62) 0%,
    oklch(0% 0 0 / 0.25) 60%,
    transparent 100%
  );
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 560px;
  color: var(--color-white);
  padding: 0 var(--sp-8);
}

.hero-content .eyebrow {
  font-size: var(--size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: var(--sp-3);
  font-weight: 500;
}

.hero-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--sp-5);
  line-height: 1.2;
  font-family: var(--font-display);
}

.hero-controls {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-2);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: oklch(100% 0 0 / 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--color-white);
  width: 28px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: oklch(100% 0 0 / 0.15);
  border: 1px solid oklch(100% 0 0 / 0.3);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.hero-arrow:hover { background: oklch(100% 0 0 / 0.3); }
.hero-arrow--prev { left: var(--sp-5); }
.hero-arrow--next { right: var(--sp-5); }
.hero-arrow svg { width: 20px; height: 20px; }

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.product-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}

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

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg);
}

.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__img-wrap img {
  transform: scale(1.05);
}

.product-card__body {
  padding: var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--size-md);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--sp-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-card__price {
  font-size: var(--size-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
  padding-top: var(--sp-3);
}

.product-card__price .from {
  font-size: var(--size-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-right: var(--sp-1);
}

.product-card__footer {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  border-top: 1px solid var(--color-border);
}

/* ── Category Grid ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  box-shadow: var(--shadow-card);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover img { transform: scale(1.06); }

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0% 0 0 / 0.65) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-5);
  color: var(--color-white);
  transition: var(--transition);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(to top, oklch(0% 0 0 / 0.75) 0%, transparent 60%);
}

.category-card__name {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 600;
}

.category-card__count {
  font-size: var(--size-sm);
  opacity: 0.8;
  margin-top: var(--sp-1);
}

/* ── Why Us Section ── */
.why-us {
  background: var(--color-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  text-align: center;
}

.why-item__icon {
  width: 64px;
  height: 64px;
  background: var(--color-gold-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
  color: var(--color-gold-dark);
}

.why-item__icon svg { width: 28px; height: 28px; }

.why-item__title {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.why-item__text {
  color: var(--color-text-muted);
  font-size: var(--size-sm);
  line-height: 1.7;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.testimonial-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-gold-light);
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-5);
  line-height: 1;
}

.testimonial-card__text {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
  font-size: var(--size-sm);
  line-height: 1.7;
  padding-top: var(--sp-6);
}

.testimonial-card__author {
  font-weight: 600;
  font-size: var(--size-sm);
  color: var(--color-text);
}

.testimonial-card__location {
  font-size: var(--size-xs);
  color: var(--color-text-light);
}

/* ── Services Banner ── */
.services-banner {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--sp-12) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.service-card {
  background: oklch(100% 0 0 / 0.08);
  border: 1px solid oklch(100% 0 0 / 0.15);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  background: oklch(100% 0 0 / 0.14);
  transform: translateY(-3px);
}

.service-card__icon {
  font-size: 3rem;
  margin-bottom: var(--sp-4);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--size-xl);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--sp-3);
}

.service-card__desc {
  color: oklch(100% 0 0 / 0.75);
  font-size: var(--size-sm);
  margin-bottom: var(--sp-5);
}

/* ── Newsletter ── */
.newsletter {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--sp-12) 0;
  text-align: center;
}

.newsletter h3 {
  font-family: var(--font-display);
  font-size: var(--size-2xl);
  color: var(--color-white);
  margin-bottom: var(--sp-2);
}

.newsletter p {
  color: oklch(100% 0 0 / 0.65);
  margin-bottom: var(--sp-6);
}

.newsletter-form {
  display: flex;
  gap: var(--sp-3);
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-full);
  border: 1px solid oklch(100% 0 0 / 0.2);
  background: oklch(100% 0 0 / 0.08);
  color: var(--color-white);
  font-size: var(--size-sm);
}

.newsletter-form input::placeholder { color: oklch(100% 0 0 / 0.45); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-gold);
}

/* ── Footer ── */
.site-footer {
  background: var(--color-charcoal);
  color: oklch(100% 0 0 / 0.7);
  padding: var(--sp-12) 0 var(--sp-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-10);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--sp-5);
}

.footer-col p {
  font-size: var(--size-sm);
  line-height: 1.8;
  color: oklch(100% 0 0 / 0.6);
}

.footer-links { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-links a {
  font-size: var(--size-sm);
  color: oklch(100% 0 0 / 0.6);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--color-gold); }

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--size-sm);
  color: oklch(100% 0 0 / 0.6);
  margin-bottom: var(--sp-2);
}

.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--color-gold); }

.footer-bottom {
  border-top: 1px solid oklch(100% 0 0 / 0.1);
  padding-top: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--size-sm);
  color: oklch(100% 0 0 / 0.4);
}

/* ── Page Hero (for inner pages) ── */
.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--sp-10) 0;
  text-align: center;
}

.page-hero h1 {
  font-size: var(--size-3xl);
  color: var(--color-white);
  margin-bottom: var(--sp-2);
}

.page-hero .breadcrumb {
  font-size: var(--size-sm);
  color: oklch(100% 0 0 / 0.65);
}

.breadcrumb a { color: var(--color-gold); }
.breadcrumb span { margin: 0 var(--sp-2); }

/* ── Filters bar (magazin.php) ── */
.filters-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-4) 0;
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}

.filters-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.filter-chip {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-white);
  transition: var(--transition);
  text-decoration: none;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ── Product Detail Page ── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
  padding: var(--sp-10) 0;
}

.product-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-3);
  align-items: start;
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--color-primary);
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.gallery-main {
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; padding: var(--sp-4); }

.product-info__name {
  font-size: var(--size-3xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  line-height: 1.2;
}

.product-info__price {
  font-size: var(--size-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--sp-6);
}

.product-info__price .currency {
  font-size: var(--size-md);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: var(--sp-1);
}

.variant-select {
  margin-bottom: var(--sp-5);
}

.variant-select label {
  display: block;
  font-size: var(--size-sm);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--color-text);
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.qty-selector label {
  font-size: var(--size-sm);
  font-weight: 600;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-control button {
  width: 36px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--size-lg);
  color: var(--color-text);
  transition: var(--transition);
  background: var(--color-bg);
}

.qty-control button:hover { background: var(--color-primary-light); color: var(--color-primary); }

.qty-control input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-size: var(--size-md);
  font-weight: 600;
  background: var(--color-white);
}

.qty-control input:focus { outline: none; }

/* Accordion */
.accordion { margin-top: var(--sp-6); border-top: 1px solid var(--color-border); }

.accordion-item { border-bottom: 1px solid var(--color-border); }

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) 0;
  font-size: var(--size-sm);
  font-weight: 600;
  text-align: left;
  background: none;
  color: var(--color-text);
  transition: var(--transition);
}

.accordion-trigger:hover { color: var(--color-primary); }

.accordion-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }

.accordion-content {
  display: none;
  padding-bottom: var(--sp-4);
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.accordion-item.open .accordion-content { display: block; }

/* ── Cart Page ── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-8);
  align-items: start;
  padding: var(--sp-10) 0;
}

.cart-table { width: 100%; border-collapse: collapse; }

.cart-table th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cart-table td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.cart-item__img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.cart-item__name {
  font-weight: 500;
  font-size: var(--size-sm);
}

.cart-item__remove {
  color: var(--color-text-muted);
  font-size: var(--size-xs);
  transition: var(--transition);
  margin-top: var(--sp-1);
  display: inline-block;
}

.cart-item__remove:hover { color: var(--color-primary); }

.cart-summary {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
}

.cart-summary h3 {
  font-size: var(--size-xl);
  margin-bottom: var(--sp-5);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  font-size: var(--size-sm);
  border-bottom: 1px solid var(--color-border);
}

.summary-row:last-of-type { border-bottom: none; }

.summary-row.total {
  font-size: var(--size-lg);
  font-weight: 700;
  color: var(--color-primary);
  border-top: 2px solid var(--color-border);
  padding-top: var(--sp-4);
}

.delivery-options { margin: var(--sp-5) 0; }

.delivery-options label {
  font-size: var(--size-sm);
  font-weight: 600;
  display: block;
  margin-bottom: var(--sp-3);
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-2);
  cursor: pointer;
  transition: var(--transition);
}

.delivery-option:hover,
.delivery-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.delivery-option input[type="radio"] { accent-color: var(--color-primary); }

.delivery-option__label {
  flex: 1;
  font-size: var(--size-sm);
  font-weight: 500;
}

.delivery-option__price {
  font-size: var(--size-sm);
  font-weight: 700;
  color: var(--color-primary);
}

/* ── Checkout Form ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-8);
  align-items: start;
  padding: var(--sp-10) 0;
}

.checkout-form h2 {
  font-size: var(--size-2xl);
  margin-bottom: var(--sp-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-group {
  margin-bottom: var(--sp-4);
}

.form-group label {
  display: block;
  font-size: var(--size-sm);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--color-text);
}

.form-group label .required { color: var(--color-primary); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--size-md);
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(35% 0.12 20 / 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: oklch(55% 0.18 28);
}

.form-group .error-msg {
  font-size: var(--size-xs);
  color: oklch(55% 0.18 28);
  margin-top: var(--sp-1);
}

.order-summary-box {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
}

.order-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--size-sm);
}

.order-item:last-of-type { border-bottom: none; }

.order-item img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.order-item__name { flex: 1; font-weight: 500; line-height: 1.3; }
.order-item__qty { color: var(--color-text-muted); font-size: var(--size-xs); margin-top: 2px; }
.order-item__price { font-weight: 700; color: var(--color-primary); white-space: nowrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  font-size: var(--size-sm);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.btn-gold:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.btn-ghost:hover { background: var(--color-bg); color: var(--color-text); }

.btn-sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--size-xs);
}

.btn-lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--size-md);
}

.btn-full { width: 100%; }

/* ── Alert / Flash ── */
.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-5);
  font-size: var(--size-sm);
  font-weight: 500;
}

.alert-success {
  background: oklch(90% 0.08 150);
  color: oklch(30% 0.12 150);
  border: 1px solid oklch(75% 0.12 150);
}

.alert-error {
  background: oklch(92% 0.06 25);
  color: oklch(35% 0.14 25);
  border: 1px solid oklch(75% 0.14 25);
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: var(--sp-20) var(--sp-8);
}

.empty-state__icon {
  font-size: 4rem;
  margin-bottom: var(--sp-5);
  opacity: 0.4;
}

.empty-state h3 {
  font-size: var(--size-2xl);
  margin-bottom: var(--sp-3);
}

.empty-state p {
  color: var(--color-text-muted);
  margin-bottom: var(--sp-6);
}

/* ── Confirmation page ── */
.confirm-box {
  max-width: 560px;
  margin: var(--sp-16) auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-12);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.confirm-box__icon {
  width: 72px;
  height: 72px;
  background: oklch(90% 0.08 150);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
  color: oklch(40% 0.14 150);
}

.confirm-box__icon svg { width: 36px; height: 36px; }

.confirm-box h2 {
  font-size: var(--size-2xl);
  margin-bottom: var(--sp-3);
  color: oklch(35% 0.14 150);
}

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  padding: var(--sp-10) 0;
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 400px;
}

.contact-map iframe { width: 100%; height: 100%; border: 0; }

.contact-info { display: flex; flex-direction: column; gap: var(--sp-5); }

.contact-card {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-5);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-card__icon svg { width: 20px; height: 20px; }

.contact-card h5 {
  font-size: var(--size-sm);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}

.contact-card p, .contact-card a {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-8) 0;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--size-sm);
  font-weight: 500;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: var(--transition);
  text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
