/* ============================================================
   GiftZone – Complete Stylesheet
   Premium gift certificate store – cream/gold design system
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --bg:          #fdf8f0;
  --bg-card:     #ffffff;
  --gold:        #c9a84c;
  --gold-light:  #e8c96a;
  --gold-dark:   #8B6914;
  --bronze:      #9d7b3a;
  --text:        #2c1f0e;
  --text-muted:  #7a6248;
  --border:      #e8d9b8;
  --shadow:      rgba(139,105,20,0.12);
  --shadow-lg:   rgba(139,105,20,0.22);
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --transition:  0.22s ease;
  --font-head:   'Cormorant Garamond', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --gold-grad:   linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, var(--bronze) 100%);
  --gold-grad-h: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 60%, #6b4f10 100%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Grids ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Flex Utilities ───────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-1        { gap: 0.5rem; }
.gap-2        { gap: 1rem; }
.gap-3        { gap: 1.5rem; }


/* ════════════════════════════════════════════════════════════
   HEADER & NAV
   ════════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 240, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

/* Logo */
.logo {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  line-height: 1;
}

.logo span {
  color: var(--gold);
}

/* Main nav */
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav a.active {
  color: var(--gold-dark);
  background: rgba(201, 168, 76, 0.1);
}

/* Header right actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switcher a {
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: background var(--transition), color var(--transition);
}

.lang-switcher a:hover,
.lang-switcher a.active {
  background: var(--gold);
  color: var(--text);
}

/* Cart icon */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(201,168,76,0.08);
  color: var(--gold-dark);
  font-size: 1.2rem;
  transition: background var(--transition);
}

.cart-btn:hover {
  background: rgba(201,168,76,0.18);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: var(--text);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* User nav */
.user-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.user-nav a,
.user-nav button {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.38rem 0.8rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.user-nav a:hover { color: var(--gold-dark); background: rgba(201,168,76,0.1); }

.user-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background: rgba(201,168,76,0.08);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(44,31,14,0.5);
}

.mobile-nav.open { display: block; }

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--bg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.mobile-nav-close {
  align-self: flex-end;
  font-size: 1.5rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-links a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════════════
   FLASH MESSAGES
   ════════════════════════════════════════════════════════════ */
.flash-messages {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}

.flash {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  animation: slideIn 0.3s ease;
}

.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash-info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}


/* ════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--text);
  color: var(--bg);
  padding: 0.85rem 1.2rem 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 240px;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  pointer-events: all;
  animation: toastIn 0.3s ease forwards;
}

.toast-icon { font-size: 1.1rem; }
.toast.success .toast-icon::before { content: '✓'; }
.toast.error   .toast-icon::before { content: '✕'; }
.toast.info    .toast-icon::before { content: 'ℹ'; }

.toast.removing { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn  { from { opacity:0; transform: translateX(30px); } to { opacity:1; transform:none; } }
@keyframes toastOut { to   { opacity:0; transform: translateX(40px); } }


/* ════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════ */
.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #fdf8f0 0%, #f5ead4 40%, #ede0c0 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative gold accents */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-accent {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 45%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.2rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--bronze);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-dark);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}


/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold-grad);
  color: var(--text);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.btn-primary:hover {
  background: var(--gold-grad-h);
  box-shadow: 0 6px 24px rgba(201,168,76,0.45);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--gold-dark);
  border-color: var(--gold);
}

.btn-secondary:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold-dark);
}

.btn-ghost {
  background: rgba(201,168,76,0.06);
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(201,168,76,0.12);
  color: var(--text);
  border-color: var(--gold);
}

.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.btn-danger:hover {
  background: #b91c1c;
  color: white;
  border-color: #b91c1c;
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}


/* ════════════════════════════════════════════════════════════
   CATEGORY CARDS (Home)
   ════════════════════════════════════════════════════════════ */
.categories-section {
  padding: 5rem 0;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.2rem 1.5rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px var(--shadow-lg);
  transform: translateY(-4px);
}

.category-icon {
  font-size: 2.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(201,168,76,0.1);
  border-radius: 20px;
}

.category-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}


/* ════════════════════════════════════════════════════════════
   CERTIFICATE CARDS
   ════════════════════════════════════════════════════════════ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.cert-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px var(--shadow-lg);
  transform: translateY(-4px);
}

.cert-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #f5ead4, #e8d9b8);
}

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

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

.cert-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f0e6d0, #e2d0a8);
  color: var(--bronze);
}

.cert-card-placeholder .placeholder-icon {
  font-size: 2.5rem;
}

.price-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--gold-grad);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  letter-spacing: 0.01em;
}

.category-pill {
  position: absolute;
  bottom: 0.6rem;
  left: 0.75rem;
  background: rgba(44,31,14,0.65);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

.cert-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cert-card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.cert-card-provider {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cert-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.cert-price {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.cert-price .currency {
  font-size: 0.85rem;
  font-weight: 600;
}


/* ════════════════════════════════════════════════════════════
   CATALOG PAGE
   ════════════════════════════════════════════════════════════ */
.catalog-hero {
  background: linear-gradient(135deg, var(--bg) 0%, #f0e6d4 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.catalog-hero h1 { margin-bottom: 0.4rem; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.filter-btn.active {
  background: var(--gold-grad);
  border-color: transparent;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(201,168,76,0.3);
  font-weight: 600;
}

.catalog-content {
  padding: 3rem 0 5rem;
}

.catalog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.catalog-count {
  font-size: 0.875rem;
  color: var(--text-muted);
}


/* ════════════════════════════════════════════════════════════
   CERTIFICATE DETAIL PAGE
   ════════════════════════════════════════════════════════════ */
.detail-page {
  padding: 3rem 0 5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a { color: var(--gold-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--border); }

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

.detail-image-wrap {
  position: sticky;
  top: 88px;
}

.detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f0e6d0, #e2d0a8);
  border: 1px solid var(--border);
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--bronze);
}

.detail-image-placeholder .icon { font-size: 4rem; }
.detail-image-placeholder .label { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }

.detail-info {}

.detail-category {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  color: var(--bronze);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.detail-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.detail-provider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
}

.detail-price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

.detail-price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.validity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

/* Quantity selector */
.qty-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.qty-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(201,168,76,0.05);
  transition: background var(--transition), color var(--transition);
  border: none;
  cursor: pointer;
}

.qty-btn:hover { background: rgba(201,168,76,0.15); color: var(--text); }

.qty-input {
  width: 52px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: white;
  padding: 0.4rem;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--gold-grad);
  color: var(--text);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  transition: all var(--transition);
  margin-bottom: 1.5rem;
}

.add-to-cart-btn:hover {
  background: var(--gold-grad-h);
  box-shadow: 0 6px 28px rgba(201,168,76,0.5);
  transform: translateY(-1px);
}

/* Delivery options */
.delivery-options {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.delivery-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 0.75rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.delivery-option .icon { font-size: 1.4rem; }

/* Description block */
.detail-desc {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.detail-desc h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.detail-desc p {
  font-size: 0.925rem;
  line-height: 1.7;
}


/* ════════════════════════════════════════════════════════════
   CART PAGE
   ════════════════════════════════════════════════════════════ */
.cart-page {
  padding: 3rem 0 5rem;
}

.cart-page h1 { margin-bottom: 2rem; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: box-shadow var(--transition);
}

.cart-item:hover { box-shadow: 0 4px 20px var(--shadow); }

.cart-item-image {
  width: 100px;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0e6d0, #e2d0a8);
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.cart-item-provider { font-size: 0.8rem; color: var(--text-muted); }

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.cart-item-price {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.cart-remove {
  font-size: 0.78rem;
  color: #b91c1c;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: opacity var(--transition);
}
.cart-remove:hover { opacity: 0.75; }

/* Cart summary */
.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  position: sticky;
  top: 88px;
}

.cart-summary h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.summary-row .label { color: var(--text-muted); }
.summary-row .value { font-weight: 600; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--border);
}

.summary-total .label { font-weight: 600; font-size: 1rem; }
.summary-total .value { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--gold-dark); }

.cart-note {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 1.2rem 0;
  display: flex;
  gap: 0.5rem;
}

/* Cart empty state */
.cart-empty {
  text-align: center;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.cart-empty-icon { font-size: 4rem; opacity: 0.4; }
.cart-empty h2 { font-size: 1.5rem; color: var(--text-muted); }
.cart-empty p { color: var(--text-muted); margin: 0; }


/* ════════════════════════════════════════════════════════════
   CHECKOUT PAGE
   ════════════════════════════════════════════════════════════ */
.checkout-page {
  padding: 3rem 0 5rem;
}

.checkout-page h1 { margin-bottom: 0.4rem; }
.checkout-subtitle { color: var(--text-muted); margin-bottom: 2.5rem; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

.checkout-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.form-section {
  padding: 1.8rem 2rem;
  border-bottom: 1px solid var(--border);
}

.form-section:last-child { border-bottom: none; }

.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-section-num {
  width: 28px;
  height: 28px;
  background: var(--gold-grad);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-section-title h3 { font-size: 1rem; margin: 0; }

/* Delivery cards */
.delivery-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.delivery-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-card);
  position: relative;
}

.delivery-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.delivery-card.selected,
.delivery-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
  box-shadow: 0 0 0 1px var(--gold);
}

.delivery-card-icon { font-size: 1.6rem; flex-shrink: 0; }
.delivery-card-label { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.delivery-card-desc  { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Payment cards */
.payment-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.payment-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.payment-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.payment-card.selected,
.payment-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
}

.payment-card-icon { font-size: 1.8rem; flex-shrink: 0; }
.payment-card-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.payment-card-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }

.payment-card-check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.payment-card.selected .payment-card-check,
.payment-card:has(input:checked) .payment-card-check {
  background: var(--gold);
  border-color: var(--gold);
}

.payment-card.selected .payment-card-check::after,
.payment-card:has(input:checked) .payment-card-check::after {
  content: '✓';
  font-size: 0.7rem;
  color: var(--text);
  font-weight: 700;
}

.bank-details {
  margin-top: 0.75rem;
  padding: 1rem 1.2rem;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: none;
}

.bank-details.visible { display: block; }
.bank-details .bank-row { margin-bottom: 0.4rem; display: flex; gap: 0.5rem; }
.bank-details .bank-key { color: var(--text-muted); min-width: 120px; }
.bank-details .bank-val { font-weight: 600; }

/* Checkout summary */
.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.checkout-summary-header {
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid var(--border);
  background: rgba(201,168,76,0.04);
}

.checkout-summary-header h3 { font-size: 1.1rem; margin: 0; }

.checkout-summary-items {
  padding: 1rem 1.8rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.875rem;
}

.checkout-summary-item-name {
  color: var(--text);
  font-weight: 500;
  flex: 1;
  padding-right: 1rem;
  line-height: 1.4;
}

.checkout-summary-item-price {
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}

.checkout-summary-total {
  padding: 1.2rem 1.8rem;
}


/* ════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════ */
.form-grid { display: grid; gap: 1rem; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-input::placeholder,
.form-textarea::placeholder { color: #bbb0a0; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6248' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.form-hint { font-size: 0.75rem; color: var(--text-muted); }
.form-error { font-size: 0.75rem; color: #b91c1c; }

.form-input.is-invalid { border-color: #f87171; }

/* Checkbox / Radio custom */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--gold-dark);
}

.form-check-label { font-size: 0.875rem; color: var(--text-muted); line-height: 1.4; }


/* ════════════════════════════════════════════════════════════
   AUTH PAGES (Login / Register)
   ════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(145deg, var(--bg) 0%, #f0e6d4 100%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.5rem;
  box-shadow: 0 8px 48px rgba(139,105,20,0.12);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.auth-logo a span { color: var(--gold); }

.auth-title {
  text-align: center;
  margin-bottom: 0.4rem;
  font-size: 1.6rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.auth-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 1.2rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 0.75rem;
}

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.auth-switch a { color: var(--gold-dark); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.auth-error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  display: none;
}


/* ════════════════════════════════════════════════════════════
   PERSONAL CABINET
   ════════════════════════════════════════════════════════════ */
.cabinet-page { padding: 3rem 0 5rem; }

.cabinet-header {
  background: linear-gradient(135deg, var(--bg) 0%, #f0e6d4 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.4rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cabinet-avatar {
  width: 60px;
  height: 60px;
  background: var(--gold-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.cabinet-header-info h1 { font-size: 1.6rem; margin-bottom: 0.2rem; }
.cabinet-header-info p  { margin: 0; font-size: 0.875rem; }

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-status-pending    { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.badge-status-paid       { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.badge-status-cancelled  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.badge-status-processing { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }


/* ════════════════════════════════════════════════════════════
   TABLES
   ════════════════════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

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

thead th {
  padding: 0.9rem 1.2rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(201,168,76,0.04);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 1rem 1.2rem;
  font-size: 0.875rem;
  color: var(--text);
  border-bottom: 1px solid rgba(232, 217, 184, 0.5);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover { background: rgba(201,168,76,0.03); }

.td-actions { display: flex; gap: 0.5rem; align-items: center; }

/* Empty table state */
.table-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.table-empty .icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }


/* ════════════════════════════════════════════════════════════
   ADMIN PANEL
   ════════════════════════════════════════════════════════════ */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 68px);
  align-items: start;
}

/* Admin Sidebar */
.admin-sidebar {
  background: var(--text);
  min-height: calc(100vh - 68px);
  padding: 1.5rem 0;
  position: sticky;
  top: 68px;
}

.admin-sidebar-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.5rem;
}

.admin-sidebar-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.admin-nav { display: flex; flex-direction: column; }

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.admin-nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.08);
}

.admin-nav-link.active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.1);
  border-left-color: var(--gold);
}

.admin-nav-link .icon { font-size: 1.1rem; flex-shrink: 0; }

/* Admin main */
.admin-main { padding: 2.5rem 2rem; }

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.admin-page-header h1 { font-size: 1.6rem; margin: 0; }

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-trend {
  font-size: 0.78rem;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Admin card */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.admin-card-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(201,168,76,0.03);
}

.admin-card-header h3 { font-size: 1rem; margin: 0; }

/* Inline status update form */
.status-select {
  padding: 0.35rem 0.7rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text);
  background: white;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}

.status-select:focus { border-color: var(--gold); }

/* Certificate image preview */
.img-preview {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0e6d0, #e2d0a8);
  flex-shrink: 0;
}

.img-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #e5e7eb;
  border-radius: 22px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider { background: var(--gold); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }


/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  background: var(--text);
  color: rgba(253,248,240,0.75);
  border-top: 3px solid var(--gold);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.875rem; line-height: 1.6; color: rgba(253,248,240,0.55); margin-bottom: 1.5rem; }

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(253,248,240,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-contact { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(253,248,240,0.65);
}
.footer-contact-item .icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(253,248,240,0.35);
}


/* ════════════════════════════════════════════════════════════
   LOADING SPINNER
   ════════════════════════════════════════════════════════════ */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(201,168,76,0.3);
  border-top-color: var(--gold-dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.spinner-lg { width: 40px; height: 40px; border-width: 3px; }
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(253,248,240,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: 10;
}


/* ════════════════════════════════════════════════════════════
   MISC UTILITIES
   ════════════════════════════════════════════════════════════ */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-gold    { color: var(--gold-dark); }
.font-head    { font-family: var(--font-head); }
.font-bold    { font-weight: 700; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

.page-header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--bg) 0%, #f0e6d4 100%);
}

.page-header h1 { margin-bottom: 0.4rem; }
.page-header p  { margin: 0; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: rgba(201,168,76,0.1);
  color: var(--bronze);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(201,168,76,0.25);
}

/* sr-only for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 1024px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }

  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }

  .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .detail-image-wrap { position: static; }

  .admin-layout { grid-template-columns: 200px 1fr; }

  .stats-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :first-child { grid-column: span 2; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 768px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav     { display: none; }
  .hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .hero { min-height: 60vh; }
  .hero-accent { display: none; }

  .categories-section .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .cert-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

  .cart-item { grid-template-columns: 72px 1fr; grid-template-rows: auto auto; }
  .cart-item-controls { grid-column: 2; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-main > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .checkout-layout { grid-template-columns: 1fr; }
  .delivery-cards { grid-template-columns: 1fr; }

  .form-grid-2 { grid-template-columns: 1fr; }

  .admin-page-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 640px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .container { padding: 0 1rem; }

  .header-inner { height: 60px; }

  .logo { font-size: 1.5rem; }

  .auth-card { padding: 2rem 1.5rem; }

  .stats-grid { grid-template-columns: 1fr; }

  .section { padding: 3rem 0; }

  .hero h1 { font-size: 2.2rem; }
  .hero-desc { font-size: 1rem; }

  .detail-price-row { flex-direction: column; gap: 0.4rem; }

  table { font-size: 0.82rem; }
  thead th, tbody td { padding: 0.75rem 0.9rem; }

  .cabinet-header { flex-direction: column; text-align: center; }
}
