/* ============================================
   Handicraft International - Main Stylesheet
   Theme: Clean & Minimal | Artisan Aesthetic
   ============================================ */

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

/* CSS Variables */
:root {
  --cream: #FAF8F4;
  --warm-white: #FFFFFF;
  --stone: #F2EDE6;
  --sand: #E8DDD0;
  --clay: #C4A882;
  --terracotta: #B5714A;
  --earth: #8B5E3C;
  --charcoal: #2C2416;
  --text: #3D3020;
  --text-light: #7A6A55;
  --text-muted: #A89880;
  --border: #E0D5C5;
  --border-light: #EEE7DC;
  --shadow: rgba(44, 36, 22, 0.08);
  --shadow-md: rgba(44, 36, 22, 0.14);
  --gold: #C49A3C;
  --success: #4A7C59;
  --danger: #C0392B;
  --warning: #E67E22;
  --info: #2980B9;
  --radius: 4px;
  --radius-lg: 8px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', -apple-system, sans-serif;
  --transition: all 0.25s ease;
  --container: 1240px;
}

/* 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;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  padding: 8px 0;
  letter-spacing: 0.03em;
}
.topbar__inner { display: flex; align-items: center; gap: 24px; }
.topbar__inner i { margin-right: 5px; color: var(--clay); }
.topbar__right { margin-left: auto; }
.topbar a { color: rgba(255,255,255,0.75); }
.topbar a:hover { color: var(--clay); }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 4px 24px var(--shadow); }
.header-spacer { height: 73px; }
.header__inner { display: flex; align-items: center; gap: 40px; padding: 16px 24px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { font-size: 1.4rem; color: var(--gold); line-height: 1; }
.logo__name { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.05em; color: var(--charcoal); line-height: 1.1; }
.logo__sub { display: block; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.logo--white .logo__name { color: white; }
.logo--white .logo__sub { color: rgba(255,255,255,0.6); }
.logo--white .logo__mark { color: var(--clay); }

/* Nav */
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--terracotta); }
.nav__dropdown { position: relative; }
.nav__dropdown .nav__link { display: flex; align-items: center; gap: 5px; }
.nav__dropdown .nav__link i { font-size: 0.65rem; transition: var(--transition); }
.nav__dropdown:hover .nav__link i { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 200px;
  padding: 8px; box-shadow: 0 8px 32px var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition); z-index: 100;
}
.nav__dropdown:hover .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__menu a {
  display: block; padding: 10px 14px;
  font-size: 0.85rem; color: var(--text-light);
  border-radius: var(--radius);
}
.dropdown__menu a:hover { background: var(--stone); color: var(--terracotta); }

/* Header Actions */
.header__actions { display: flex; align-items: center; gap: 4px; }
.action-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--text-light); font-size: 0.9rem;
  transition: var(--transition); position: relative;
}
.action-btn:hover { background: var(--stone); color: var(--terracotta); }
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--terracotta); color: white;
  font-size: 0.6rem; font-weight: 600; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: var(--transition); }

/* ===== FLASH MESSAGES ===== */
.flash {
  position: fixed; top: 80px; right: 20px; z-index: 9999;
  padding: 14px 20px; border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 4px 20px var(--shadow-md);
  animation: slideIn 0.3s ease;
  max-width: 380px;
}
.flash--success { background: #F0F9F4; border-left: 4px solid var(--success); color: var(--success); }
.flash--error { background: #FEF0F0; border-left: 4px solid var(--danger); color: var(--danger); }
.flash--info { background: #EFF6FF; border-left: 4px solid var(--info); color: var(--info); }
.flash button { margin-left: auto; color: inherit; opacity: 0.6; font-size: 0.8rem; }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ===== HERO ===== */
.hero {
  min-height: 88vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--stone) 0%, var(--cream) 60%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 800"><rect fill="%23E8DDD0" width="600" height="800"/><circle cx="300" cy="400" r="280" fill="none" stroke="%23C4A882" stroke-width="1" opacity="0.4"/><circle cx="300" cy="400" r="200" fill="none" stroke="%23C4A882" stroke-width="1" opacity="0.3"/></svg>') center/cover no-repeat;
  opacity: 0.6;
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.hero__eyebrow { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--terracotta); font-weight: 500; margin-bottom: 16px; }
.hero__title { margin-bottom: 20px; color: var(--charcoal); }
.hero__title em { font-style: italic; color: var(--terracotta); }
.hero__desc { color: var(--text-light); font-size: 1.05rem; line-height: 1.8; margin-bottom: 36px; max-width: 460px; }
.hero__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.stat__num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--charcoal); }
.stat__label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.hero__image { position: relative; }
.hero__img-wrap { border-radius: 12px; overflow: hidden; box-shadow: 0 24px 64px var(--shadow-md); aspect-ratio: 4/5; background: var(--sand); display: flex; align-items: center; justify-content: center; }
.hero__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--charcoal); color: white; padding: 16px 20px;
  border-radius: var(--radius-lg); text-align: center;
}
.hero__badge strong { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.hero__badge span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  transition: var(--transition); cursor: pointer; border: none;
}
.btn--primary { background: var(--charcoal); color: white; }
.btn--primary:hover { background: var(--terracotta); color: white; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(181,113,74,0.35); }
.btn--outline { border: 1.5px solid var(--charcoal); color: var(--charcoal); background: transparent; }
.btn--outline:hover { background: var(--charcoal); color: white; }
.btn--gold { background: var(--gold); color: white; }
.btn--gold:hover { background: #a87e2f; transform: translateY(-1px); }
.btn--danger { background: var(--danger); color: white; }
.btn--danger:hover { background: #a93226; }
.btn--sm { padding: 8px 18px; font-size: 0.75rem; }
.btn--lg { padding: 16px 36px; font-size: 0.88rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--icon { width: 40px; height: 40px; padding: 0; justify-content: center; }

/* ===== SECTION HEADERS ===== */
.section { padding: 80px 0; }
.section--gray { background: var(--stone); }
.section--dark { background: var(--charcoal); color: white; }
.section__header { text-align: center; margin-bottom: 56px; }
.section__eyebrow {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--terracotta); font-weight: 500;
  margin-bottom: 12px;
}
.section__title { color: var(--charcoal); margin-bottom: 14px; }
.section--dark .section__title { color: white; }
.section__sub { color: var(--text-light); font-size: 1rem; max-width: 520px; margin: 0 auto; }
.section__divider {
  width: 60px; height: 2px; background: linear-gradient(to right, var(--clay), var(--terracotta));
  margin: 16px auto 0;
}

/* ===== CATEGORY GRID ===== */
.categories__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer; group: true;
}
.category-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; background: var(--sand); }
.category-card:hover .category-card__img { transform: scale(1.06); }
.category-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,36,22,0.75) 0%, transparent 60%);
}
.category-card__body { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; color: white; }
.category-card__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.category-card__count { font-size: 0.78rem; opacity: 0.75; letter-spacing: 0.05em; }
.category-card__arrow {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; background: rgba(255,255,255,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; opacity: 0; transform: translateY(-8px);
  transition: var(--transition);
}
.category-card:hover .category-card__arrow { opacity: 1; transform: translateY(0); }

/* ===== PRODUCT CARDS ===== */
.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.products__grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border-light);
  transition: var(--transition); position: relative;
}
.product-card:hover { border-color: var(--sand); box-shadow: 0 12px 40px var(--shadow-md); transform: translateY(-4px); }
.product-card__image { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--stone); }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__image img { transform: scale(1.04); }
.product-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--terracotta); color: white;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 2px;
}
.product-card__badge--new { background: var(--charcoal); }
.product-card__actions {
  position: absolute; right: 12px; top: 12px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(10px); transition: var(--transition);
}
.product-card:hover .product-card__actions { opacity: 1; transform: translateX(0); }
.product-card__action-btn {
  width: 34px; height: 34px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--text-light); box-shadow: 0 2px 8px var(--shadow);
  transition: var(--transition);
}
.product-card__action-btn:hover { background: var(--terracotta); color: white; }
.product-card__body { padding: 18px 20px 20px; }
.product-card__cat { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.product-card__name { font-family: var(--font-display); font-size: 1.1rem; color: var(--charcoal); margin-bottom: 8px; line-height: 1.3; }
.product-card__name a:hover { color: var(--terracotta); }
.product-card__artisan { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light); }
.price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--charcoal); }
.price__original { text-decoration: line-through; color: var(--text-muted); font-size: 0.9rem; font-weight: 400; margin-left: 6px; }
.price--sale { color: var(--terracotta); }

/* ===== SHOP PAGE ===== */
.shop__layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.sidebar { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.sidebar__section { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border-light); }
.sidebar__section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar__title { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.sidebar__link { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 0.9rem; color: var(--text-light); border-bottom: 1px solid var(--border-light); }
.sidebar__link:last-child { border-bottom: none; }
.sidebar__link:hover, .sidebar__link.active { color: var(--terracotta); }
.sidebar__link span { font-size: 0.75rem; color: var(--text-muted); }

.shop__toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.shop__count { font-size: 0.88rem; color: var(--text-light); }
.shop__sort select { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.85rem; background: white; color: var(--text); }

/* ===== PRODUCT DETAIL ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding: 60px 0; }
.product-gallery__main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--stone); margin-bottom: 12px; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__cat { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 10px; }
.product-detail__title { margin-bottom: 8px; line-height: 1.15; }
.product-detail__artisan { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; }
.product-detail__artisan span { color: var(--terracotta); }
.product-detail__price { margin-bottom: 24px; }
.product-detail__price .price { font-size: 1.8rem; }
.product-detail__desc { color: var(--text-light); line-height: 1.85; margin-bottom: 28px; font-size: 0.95rem; }
.product-detail__qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); width: fit-content; margin-bottom: 20px; }
.qty-btn { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--text-light); transition: var(--transition); }
.qty-btn:hover { color: var(--terracotta); }
.qty-input { width: 56px; height: 44px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-family: var(--font-body); font-size: 0.95rem; color: var(--text); }
.product-detail__actions { display: flex; gap: 12px; margin-bottom: 32px; }
.product-meta { background: var(--stone); border-radius: var(--radius-lg); padding: 24px; }
.meta-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.meta-row:last-child { border-bottom: none; }
.meta-label { font-weight: 500; color: var(--text); width: 110px; flex-shrink: 0; }
.meta-value { color: var(--text-light); }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 60px 0; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 14px 16px; text-align: left; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.cart-table td { padding: 20px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.cart-product { display: flex; gap: 16px; align-items: center; }
.cart-product__img { width: 72px; height: 72px; border-radius: var(--radius); object-fit: cover; background: var(--stone); flex-shrink: 0; }
.cart-product__name { font-family: var(--font-display); font-size: 1rem; color: var(--charcoal); margin-bottom: 4px; }
.cart-product__meta { font-size: 0.78rem; color: var(--text-muted); }
.cart-remove { color: var(--text-muted); font-size: 0.85rem; }
.cart-remove:hover { color: var(--danger); }
.order-summary { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 100px; }
.order-summary h3 { font-size: 1.2rem; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 8px 0; color: var(--text-light); }
.summary-row--total { font-weight: 600; color: var(--charcoal); font-size: 1rem; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; }
.summary-row--total .price { font-size: 1.3rem; color: var(--charcoal); }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; padding: 60px 0; }
.checkout-section { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px; }
.checkout-section h3 { font-size: 1.15rem; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-light); margin-bottom: 7px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
  background: white; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(196,168,130,0.15); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A6A55' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.payment-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; cursor: pointer; transition: var(--transition); }
.payment-option:has(input:checked) { border-color: var(--clay); background: var(--stone); }
.payment-option input { accent-color: var(--terracotta); }

/* ===== AUTH FORMS ===== */
.auth-page { min-height: 80vh; display: flex; align-items: center; }
.auth-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; max-width: 460px; width: 100%; margin: 0 auto; }
.auth-card__logo { text-align: center; margin-bottom: 32px; }
.auth-card h2 { text-align: center; margin-bottom: 8px; }
.auth-card p { text-align: center; color: var(--text-light); font-size: 0.9rem; margin-bottom: 32px; }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--charcoal); color: white; flex-shrink: 0; padding: 0; }
.admin-sidebar__logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 20px; font-size: 0.85rem; color: rgba(255,255,255,0.65); transition: var(--transition); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.08); color: white; }
.admin-nav a i { width: 18px; color: var(--clay); }
.admin-content { flex: 1; background: #F6F4F0; overflow: auto; }
.admin-topbar { background: white; padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.admin-main { padding: 32px; }
.admin-page-title { font-size: 1.6rem; margin-bottom: 28px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: white; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); }
.stat-card__icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 16px; }
.stat-card__num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--charcoal); line-height: 1; margin-bottom: 4px; }
.stat-card__label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.table-wrap { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 14px 20px; text-align: left; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--stone); border-bottom: 1px solid var(--border); color: var(--text); }
.data-table td { padding: 15px 20px; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; color: var(--text-light); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--cream); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.badge--success { background: #EAF4EE; color: var(--success); }
.badge--warning { background: #FEF9EC; color: var(--warning); }
.badge--danger { background: #FEF0F0; color: var(--danger); }
.badge--info { background: #EBF4FB; color: var(--info); }
.badge--gray { background: var(--stone); color: var(--text-light); }

/* ===== PAGE BANNER ===== */
.page-banner {
  background: linear-gradient(135deg, var(--charcoal), #4A3728);
  color: white; padding: 64px 0; text-align: center;
}
.page-banner h1 { color: white; margin-bottom: 10px; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--clay); }
.breadcrumb span { color: var(--clay); }

/* ===== WHY US / FEATURES ===== */
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature { text-align: center; padding: 32px 24px; }
.feature__icon { width: 64px; height: 64px; border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--terracotta); margin: 0 auto 20px; }
.feature__title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 10px; }
.feature__desc { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.testimonial__stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 16px; }
.testimonial__text { font-style: italic; color: var(--text-light); line-height: 1.8; margin-bottom: 24px; font-family: var(--font-display); font-size: 1.05rem; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.1rem; color: var(--terracotta); }
.testimonial__name { font-weight: 500; font-size: 0.9rem; color: var(--charcoal); }
.testimonial__location { font-size: 0.78rem; color: var(--text-muted); }

/* ===== NEWSLETTER ===== */
.newsletter { background: var(--charcoal); color: white; padding: 80px 0; text-align: center; }
.newsletter h2 { color: white; margin-bottom: 14px; }
.newsletter p { color: rgba(255,255,255,0.65); margin-bottom: 32px; }
.newsletter__form { display: flex; gap: 0; max-width: 480px; margin: 0 auto; }
.newsletter__input { flex: 1; padding: 14px 20px; border: none; border-radius: var(--radius) 0 0 var(--radius); font-family: var(--font-body); font-size: 0.9rem; background: rgba(255,255,255,0.1); color: white; outline: none; }
.newsletter__input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter__btn { padding: 14px 28px; background: var(--terracotta); color: white; border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.newsletter__btn:hover { background: #9b5e3b; }

/* ===== ABOUT PAGE ===== */
.about-hero { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 80px; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 16px 48px var(--shadow-md); background: var(--sand); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.value-card { text-align: center; padding: 32px 24px; background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.value-icon { font-size: 2rem; margin-bottom: 16px; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; padding: 80px 0; }
.contact-info__item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info__icon { width: 48px; height: 48px; background: var(--stone); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--terracotta); font-size: 1.1rem; flex-shrink: 0; }
.contact-form { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; }
.page-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.88rem; color: var(--text-light); transition: var(--transition); }
.page-link:hover, .page-link.active { background: var(--charcoal); color: white; border-color: var(--charcoal); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state__icon { font-size: 3rem; color: var(--text-muted); margin-bottom: 20px; }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { color: var(--text-light); margin-bottom: 24px; }

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }
.alert--success { background: #EAF4EE; color: var(--success); border-left: 4px solid var(--success); }
.alert--error { background: #FEF0F0; color: var(--danger); border-left: 4px solid var(--danger); }
.alert--info { background: #EBF4FB; color: var(--info); border-left: 4px solid var(--info); }

/* ===== SEARCH ===== */
.search-bar { display: flex; gap: 0; margin-bottom: 32px; }
.search-bar input { flex: 1; padding: 13px 18px; border: 1.5px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); font-family: var(--font-body); font-size: 0.95rem; outline: none; }
.search-bar input:focus { border-color: var(--clay); }
.search-bar button { padding: 13px 24px; background: var(--charcoal); color: white; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.9rem; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 16px; } .gap-3 { gap: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__image { display: none; }
  .hero { min-height: auto; padding: 80px 0; }
}

@media (max-width: 768px) {
  .nav { display: none; position: fixed; top: 73px; left: 0; right: 0; background: white; padding: 20px; flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--border); gap: 0; box-shadow: 0 8px 24px var(--shadow); }
  .nav.open { display: flex; }
  .hamburger { display: flex; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .shop__layout { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 200px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .products__grid { grid-template-columns: 1fr; }
  .categories__grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 20px; }
  .section { padding: 56px 0; }
  .topbar { display: none; }
}
