/* ============================================================
   Pera Çanta — Premium Design System CSS v2
   Refined: cream / tan / terracotta / mustard / espresso
   2026 — Artisan Leather E-commerce
   ============================================================ */

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

/* ---- Variables ---- */
:root {
  --bg:          hsl(37, 45%, 96%);
  --bg2:         hsl(36, 40%, 94%);
  --fg:          hsl(20, 35%, 12%);
  --card:        hsl(0, 0%, 100%);
  --card-fg:     hsl(20, 30%, 15%);
  --primary:     hsl(15, 52%, 38%);
  --primary-fg:  hsl(37, 100%, 97%);
  --secondary:   hsl(27, 38%, 56%);
  --muted:       hsl(35, 22%, 88%);
  --muted-fg:    hsl(20, 12%, 48%);
  --accent:      hsl(43, 68%, 52%);
  --border:      hsl(30, 18%, 84%);
  --border-soft: hsl(30, 15%, 90%);
  --destructive: hsl(0, 72%, 56%);
  --radius:      0.5rem;
  --radius-lg:   0.875rem;
  --radius-xl:   1.25rem;
  --shadow-sm:   0 1px 3px rgba(62,35,11,.07), 0 1px 2px rgba(62,35,11,.04);
  --shadow:      0 4px 16px rgba(62,35,11,.08), 0 1px 4px rgba(62,35,11,.04);
  --shadow-lg:   0 12px 40px rgba(62,35,11,.12), 0 4px 12px rgba(62,35,11,.06);
  --tan:         hsl(27, 38%, 56%);
  --terracotta:  hsl(15, 52%, 38%);
  --mustard:     hsl(43, 68%, 52%);
  --cream:       hsl(37, 100%, 97%);
  --espresso:    hsl(20, 35%, 12%);
  --transition:  .22s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

/* ---- Container ---- */
.container { max-width: 1300px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1400px) { .container { padding: 0 2.5rem; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .65rem 1.4rem; border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .8125rem; font-weight: 500; line-height: 1;
  letter-spacing: .04em; cursor: pointer; border: 1px solid transparent;
  transition: all var(--transition); white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: var(--primary-fg); border-color: var(--primary);
  box-shadow: 0 2px 8px hsl(15,52%,38%,.25);
}
.btn-primary:hover {
  background: hsl(15,52%,33%); border-color: hsl(15,52%,33%);
  box-shadow: 0 4px 16px hsl(15,52%,38%,.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 6px hsl(15,52%,38%,.2); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: hsl(15,52%,38%,.04); }
.btn-stitch { background: transparent; border: 1.5px dashed var(--border); color: var(--fg); }
.btn-stitch:hover { border-color: var(--mustard); color: var(--fg); background: hsl(43,68%,52%,.05); }
.btn-sm { padding: .4rem .875rem; font-size: .8rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: .9375rem; letter-spacing: .12em; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-danger { background: var(--destructive); color: #fff; border-color: var(--destructive); box-shadow: 0 2px 8px hsl(0,72%,56%,.25); }
.btn-success { background: #16a34a; color: #fff; border-color: #16a34a; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted-fg); }
.btn-ghost:hover { background: var(--muted); color: var(--fg); }

/* ---- Inputs ---- */
.input, .textarea, .select {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: white; color: var(--fg); font-size: .875rem;
  font-family: 'Inter', inherit; transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--secondary); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px hsl(15,52%,38%,.12);
}
.textarea { resize: vertical; min-height: 110px; }
.label { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; margin-bottom: .4rem; color: var(--fg); }
.form-group { margin-bottom: 1.375rem; }
.form-error { color: var(--destructive); font-size: .8rem; margin-top: .3rem; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .input { padding-left: 2.625rem; }
.input-icon-wrap .icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted-fg); pointer-events: none; }

/* ---- Cards ---- */
.card {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 1.625rem;
  box-shadow: var(--shadow-sm);
}
.card-stitch { border: 1.5px dashed var(--border); }
.card-stitch-accent { border: 2px dashed var(--mustard); }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; padding: .25rem .7rem;
  border-radius: 9999px; font-size: .72rem; font-weight: 600; letter-spacing: .05em;
  font-family: 'Inter', sans-serif;
}
.badge-warning  { background: hsl(43,100%,92%); color: hsl(43,80%,28%); }
.badge-info     { background: hsl(220,100%,94%); color: hsl(220,70%,38%); }
.badge-primary  { background: hsl(15,60%,92%); color: var(--primary); }
.badge-success  { background: hsl(142,72%,90%); color: hsl(142,60%,22%); }
.badge-danger   { background: hsl(0,90%,94%); color: hsl(0,70%,42%); }
.badge-secondary{ background: var(--muted); color: var(--muted-fg); }

/* ---- Stitch Borders ---- */
.stitch-border        { border: 2px dashed var(--mustard); }
.stitch-border-subtle { border: 1.5px dashed var(--border); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 244, 236, 0.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(180,155,120,.18);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(62,35,11,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.125rem 0; gap: 1.5rem;
}
.logo {
  display: flex; align-items: center; gap: .75rem;
}
.logo img { height: 38px; width: auto; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem; font-weight: 700;
  color: var(--espresso); letter-spacing: -.02em;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500;
  color: var(--muted-fg); transition: color var(--transition);
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--primary); border-radius: 9999px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .25rem; }
.icon-btn {
  position: relative; padding: .625rem;
  background: none; border: none; color: var(--fg);
  transition: color var(--transition), background var(--transition);
  font-size: 0; line-height: 0; border-radius: .5rem;
}
.icon-btn:hover { color: var(--primary); background: hsl(15,52%,38%,.07); }
.badge-count {
  position: absolute; top: 2px; right: 2px;
  min-width: 17px; height: 17px; border-radius: 9999px;
  background: var(--primary); color: var(--primary-fg);
  font-size: .625rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
}
.badge-count-accent { background: var(--destructive); }
.mobile-menu-btn { display: none; }
@media (max-width: 767px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; align-items: center; }
  .mobile-nav {
    position: fixed; inset: 0; z-index: 50;
    background: var(--bg); display: flex; flex-direction: column;
    padding: 1.5rem;
  }
  .mobile-nav .nav-links { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
  .mobile-nav .nav-links a { font-size: 1rem; letter-spacing: .1em; }
  .mobile-nav-close { align-self: flex-end; }
}

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 56vh;
  display: flex; align-items: center; overflow: hidden;
}
@media (min-width: 768px) { .hero { min-height: 72vh; } }
@media (min-width: 1280px) { .hero { min-height: 80vh; } }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; scale: 1.02;
  transition: scale 8s ease-out;
}
.hero:hover .hero-img { scale: 1.06; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, hsla(20,30%,8%,.82) 0%, hsla(20,30%,8%,.5) 45%, hsla(20,30%,8%,.18) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 3rem 0; max-width: 44rem; }
.hero-eyebrow {
  display: inline-block; font-family: 'Inter', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--mustard);
  margin-bottom: 1.25rem;
  border: 1px solid hsl(43,68%,52%,.4); border-radius: 9999px;
  padding: .35rem .875rem;
}
.hero-title {
  font-size: clamp(2.25rem, 6.5vw, 5.5rem);
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
  line-height: 1.1;
}
.hero-subtitle { color: var(--mustard); }
.hero-desc {
  color: hsla(37,100%,97%,.75); margin-top: 1.5rem;
  max-width: 30rem; font-size: 1.0625rem; line-height: 1.75;
  font-family: 'Inter', sans-serif; font-weight: 300;
}
.hero-cta-row {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  margin-top: 2.5rem;
}
.hero-cta-row .btn-lg {
  box-shadow: 0 6px 24px hsl(15,52%,38%,.4);
  text-transform: uppercase; letter-spacing: .18em;
}
.hero-trust {
  color: hsla(37,100%,97%,.55);
  font-family: 'Inter', sans-serif; font-size: .8125rem;
  font-weight: 300; letter-spacing: .04em;
}

/* ---- Product Grid ---- */
.product-grid { display: grid; gap: 1.5rem; }
.product-grid-2 { grid-template-columns: repeat(2, minmax(220px, 280px)); }
/* Boxed grid: fixed-size columns, left-aligned inside container */
.product-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, 260px);
  justify-content: start;
}
@media (max-width: 480px) {
  .product-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }
}

/* ---- Product Card (Boxed Compact) ---- */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: .875rem;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(62,35,11,.06), 0 0 0 1px rgba(62,35,11,.04);
  transition: box-shadow .25s ease, transform .25s ease;
  /* cap width so cards don't blow up when few items */
  max-width: 300px;
  width: 100%;
}
.product-card:hover {
  box-shadow: 0 8px 28px rgba(62,35,11,.13), 0 0 0 1px rgba(62,35,11,.07);
  transform: translateY(-3px);
}
/* Image container — square keeps cards compact */
.product-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--muted);
  border-bottom: 1px solid var(--border-soft);
}
.product-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-card-img { transform: scale(1.07); }
/* Subtle dark vignette on hover */
.product-card-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(16,8,3,.28);
  opacity: 0; transition: opacity .28s ease;
  pointer-events: none;
}
.product-card:hover .product-card-img-wrap::after { opacity: 1; }
/* Fav button */
.product-card-fav {
  position: absolute; top: .6rem; right: .6rem;
  width: 2rem; height: 2rem; border-radius: 9999px;
  background: rgba(255,252,245,.92); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(180,155,120,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-fg); transition: all var(--transition);
  opacity: 0; box-shadow: 0 1px 6px rgba(0,0,0,.12);
}
.product-card:hover .product-card-fav { opacity: 1; }
.product-card-fav.active,
.product-card-fav:focus { opacity: 1; color: var(--destructive); }
@media (max-width: 767px) { .product-card-fav { opacity: 1; } }
/* Card body */
.product-card-body {
  padding: .875rem 1rem 1rem;
  display: flex; flex-direction: column; gap: .25rem;
  flex: 1;
  border-top: none;
}
.product-card-cat {
  font-family: 'Inter', sans-serif;
  font-size: .65rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--secondary);
}
.product-card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .9375rem; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--transition); line-height: 1.3;
  color: var(--espresso);
}
.product-card:hover .product-card-name { color: var(--primary); }
.product-card-price {
  font-family: 'Inter', sans-serif;
  color: var(--primary); font-weight: 700; font-size: .9375rem;
  letter-spacing: -.01em; margin-top: .125rem;
}
.product-card-footer {
  display: flex; align-items: center; gap: .5rem; margin-top: .375rem;
}
/* Sepete Ekle button — clean dark row */
.product-card .btn-stitch {
  width: 100%;
  background: var(--espresso);
  border: none;
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: .1em;
  font-size: .67rem;
  text-transform: uppercase;
  padding: .55rem .75rem;
  border-radius: .5rem;
  margin-top: .5rem;
  transition: background .2s ease;
  cursor: pointer;
}
.product-card .btn-stitch:hover {
  background: var(--primary);
}


/* ---- Product Detail ---- */
.product-detail-grid { display: grid; gap: 3.5rem; align-items: start; }
@media (min-width: 1024px) { .product-detail-grid { grid-template-columns: 1fr 1fr; } }
.product-img-main {
  aspect-ratio: 4/5; border-radius: var(--radius-xl); overflow: hidden;
  cursor: zoom-in; background: var(--muted);
  box-shadow: var(--shadow-lg);
}
.product-img-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.product-img-main.zoomed { cursor: zoom-out; }
.product-img-main.zoomed img { transform: scale(1.5); }
.product-gallery { display: flex; gap: .625rem; margin-top: 1rem; overflow-x: auto; }
.product-thumb {
  flex-shrink: 0; width: 76px; height: 96px; border-radius: .625rem;
  overflow: hidden; border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.product-thumb:hover { border-color: var(--secondary); transform: translateY(-2px); }
.product-thumb.active { border-color: var(--primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Cart Drawer ---- */
.cart-overlay {
  position: fixed; inset: 0; background: hsla(20,35%,12%,.45);
  z-index: 100; display: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cart-overlay.open { display: block; animation: overlayIn .2s ease; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 101;
  width: min(420px, 100vw); background: white;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(62,35,11,.12);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  padding: 1.375rem 1.625rem; border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-items { flex: 1; overflow-y: auto; padding: 1.25rem 1.625rem; display: flex; flex-direction: column; gap: 1.25rem; }
.cart-item { display: flex; gap: 1rem; align-items: flex-start; }
.cart-item-img { width: 76px; height: 96px; border-radius: .625rem; overflow: hidden; flex-shrink: 0; background: var(--muted); box-shadow: var(--shadow-sm); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-family: 'Playfair Display', serif; font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.cart-item-price { font-size: .875rem; color: var(--muted-fg); margin-top: .25rem; font-family: 'Inter', sans-serif; }
.cart-item-qty { display: flex; align-items: center; gap: .5rem; margin-top: .625rem; }
.qty-btn { width: 30px; height: 30px; border: 1.5px solid var(--border); border-radius: var(--radius); background: transparent; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); background: hsl(15,52%,38%,.06); }
.cart-footer { padding: 1.375rem 1.625rem; border-top: 1px solid var(--border-soft); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.0625rem; font-weight: 600; margin-bottom: 1rem; font-family: 'Inter', sans-serif; }
.cart-empty { text-align: center; padding: 3.5rem 1.5rem; color: var(--muted-fg); }

/* ---- Checkout ---- */
.checkout-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .checkout-grid { grid-template-columns: 3fr 2fr; } }
.checkout-sticky { position: sticky; top: 6rem; }
.shipping-option, .payment-option {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1.125rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: all var(--transition); margin-bottom: .75rem;
}
.shipping-option:has(input:checked), .payment-option:has(input:checked) {
  border-color: var(--primary); background: hsl(15,52%,38%,.05);
}
.shipping-option label, .payment-option label { cursor: pointer; flex: 1; }

/* ---- Order Tracking ---- */
.tracking-timeline { position: relative; padding-left: 2rem; }
.tracking-timeline::before {
  content: ''; position: absolute; left: .6875rem; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-dot {
  position: absolute; left: -2rem; top: .125rem;
  width: 1.25rem; height: 1.25rem; border-radius: 9999px;
  border: 2px solid var(--border); background: var(--card);
  display: flex; align-items: center; justify-content: center;
}
.timeline-dot.active { border-color: var(--primary); background: var(--primary); }
.timeline-dot.done { border-color: #16a34a; background: #16a34a; }
.timeline-dot svg { width: 10px; height: 10px; }

/* ---- Filter Pills ---- */
.filter-pills { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; }
.filter-pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0; padding: .45rem 1.1rem; border-radius: 9999px;
  border: 1.5px solid var(--border); font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  background: transparent; color: var(--muted-fg); cursor: pointer;
  transition: all var(--transition); font-family: 'Inter', sans-serif;
}
.pill:hover { border-color: var(--secondary); color: var(--fg); background: hsl(27,38%,56%,.06); }
.pill.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); box-shadow: 0 2px 8px hsl(15,52%,38%,.25); }

/* ---- Star Rating ---- */
.stars { display: flex; gap: 2px; }
.star { color: var(--muted); }
.star.filled { color: var(--accent); fill: var(--accent); }

/* ---- Toast ---- */
#toast-container { position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 9999; display: flex; flex-direction: column; gap: .625rem; }
.toast {
  min-width: 270px; max-width: 400px; padding: .9rem 1.375rem;
  border-radius: var(--radius-lg); font-size: .875rem;
  box-shadow: 0 8px 32px rgba(62,35,11,.18), 0 2px 8px rgba(62,35,11,.08);
  animation: toastIn .3s cubic-bezier(.4,0,.2,1);
  display: flex; align-items: center; gap: .75rem;
  font-family: 'Inter', sans-serif;
}
.toast-success { background: #f0fdf4; border-left: 4px solid #16a34a; color: #14532d; }
.toast-error   { background: #fef2f2; border-left: 4px solid #ef4444; color: #991b1b; }
.toast-info    { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e40af; }
@keyframes toastIn { from { transform: translateX(2rem); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, var(--muted) 25%, hsl(35,30%,93%) 50%, var(--muted) 75%);
  background-size: 200% 100%; border-radius: var(--radius);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Trust Badges ---- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.trust-item { text-align: center; }
.trust-title { font-size: .6875rem; font-weight: 600; }
.trust-sub { font-size: .625rem; color: var(--muted-fg); margin-top: 2px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--espresso); color: hsla(35,40%,92%,.75);
  padding: 4rem 0 2rem; margin-top: 5rem;
  font-size: .875rem; font-family: 'Inter', sans-serif;
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem; color: var(--cream); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: .875rem;
}
.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase;
  color: hsla(37,100%,97%,.55); margin-bottom: 1.125rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.footer-links a {
  color: hsla(35,40%,92%,.6); transition: color var(--transition);
  font-size: .875rem;
}
.footer-links a:hover { color: var(--mustard); }
.footer-divider {
  height: 1px; background: hsla(37,100%,97%,.08);
  margin: 2.5rem 0 1.75rem;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  color: hsla(35,40%,92%,.4); font-size: .8rem;
}
.footer-trust {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.footer-trust span {
  font-size: .78rem; color: hsla(35,40%,92%,.45);
  display: flex; align-items: center; gap: .375rem;
}

/* ---- Spinner ---- */
.spinner { width: 2rem; height: 2rem; border: 3px solid var(--muted); border-top-color: var(--primary); border-radius: 9999px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Misc ---- */
.section { padding: 5rem 0; }
.section-sm { padding: 2.5rem 0; }
.divider {
  width: 3.5rem; height: 2.5px;
  background: linear-gradient(90deg, var(--mustard), var(--accent));
  margin: .875rem auto 1.75rem; border-radius: 9999px;
}
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted-fg); }
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.hidden { display: none !important; }

/* ---- Brand Strip (Zanaatkarlar) ---- */
.brand-strip {
  background: var(--espresso); color: var(--cream);
  padding: 6rem 0; position: relative; overflow: hidden;
}
.brand-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, hsl(15,52%,38%,.22) 0%, transparent 70%);
  pointer-events: none;
}
.brand-strip-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic; font-weight: 400;
  color: var(--cream); max-width: 42rem; margin: 0 auto 1.5rem;
  line-height: 1.5; text-align: center;
}
.brand-strip-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 300;
  color: hsla(37,100%,97%,.6);
  max-width: 38rem; margin: 0 auto 2.5rem; line-height: 1.8;
  text-align: center;
}

/* ---- Features Row ---- */
.features-row {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 767px) { .features-row { grid-template-columns: 1fr; gap: 1.25rem; } }
.feature-card {
  background: white; border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl); padding: 2rem 1.75rem;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: hsl(15,52%,38%,.09);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-size: 1.5rem;
}
.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem; font-weight: 600; color: var(--fg);
  margin-bottom: .5rem;
}
.feature-desc {
  font-family: 'Inter', sans-serif;
  font-size: .875rem; color: var(--muted-fg); line-height: 1.7;
}

/* ---- Alert ---- */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid; margin-bottom: 1rem; font-size: .875rem; font-family: 'Inter', sans-serif; }
.alert-info    { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }
.alert-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.alert-danger  { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }

/* ---- Bank Transfer Info ---- */
.bank-info { background: #eff6ff; border: 1px solid #93c5fd; border-radius: var(--radius); padding: 1rem; }
.bank-info p { font-size: .875rem; color: #1e40af; margin-bottom: .25rem; }
.bank-info .tip { font-size: .75rem; color: #3b82f6; margin-top: .5rem; }

/* ---- Pagination ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: .375rem; margin-top: 3rem; }
.page-btn {
  width: 2.375rem; height: 2.375rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; transition: all var(--transition); cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); background: hsl(15,52%,38%,.05); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 2px 8px hsl(15,52%,38%,.3); }
.page-btn:disabled { opacity: .4; pointer-events: none; }

/* ---- Admin Base ---- */
.admin-wrap { display: flex; min-height: 100vh; background: hsl(220, 20%, 96%); }
.admin-sidebar {
  width: 260px; flex-shrink: 0; background: hsl(222, 47%, 11%); color: #94a3b8;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.admin-sidebar-logo {
  padding: 1.625rem 1.375rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-sidebar-logo h1 {
  font-family: 'Playfair Display', serif; font-size: 1.25rem; color: #f8fafc;
  letter-spacing: -.02em;
}
.admin-sidebar-logo p {
  font-size: .72rem; color: rgba(255,255,255,.35); margin-top: 2px;
  font-family: 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.admin-nav { flex: 1; overflow-y: auto; padding: 1.125rem .875rem; }
.admin-nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem; border-radius: .625rem;
  font-size: .875rem; font-weight: 500; color: #94a3b8;
  transition: all var(--transition); text-decoration: none; margin-bottom: .25rem;
  font-family: 'Inter', sans-serif;
}
.admin-nav-item:hover { background: rgba(255,255,255,.07); color: #e2e8f0; }
.admin-nav-item.active {
  background: linear-gradient(135deg, var(--terracotta) 0%, hsl(15,52%,44%) 100%);
  color: #fff; box-shadow: 0 4px 12px hsl(15,52%,38%,.35);
}
.admin-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav-section { font-size: .67rem; text-transform: uppercase; letter-spacing: .12em; color: #475569; padding: 1.125rem 1rem .375rem; font-family: 'Inter', sans-serif; }
.admin-main { flex: 1; margin-left: 260px; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky; top: 0; z-index: 30;
  background: white; border-bottom: 1px solid hsl(220,20%,92%);
  padding: 1rem 1.75rem; display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.admin-page { padding: 2rem 1.75rem; }
.admin-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.625rem; font-weight: 700; color: hsl(222,47%,11%);
  margin-bottom: 1.75rem;
}
@media (max-width: 1023px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}

/* ---- Stat Cards (Admin) ---- */
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 1.75rem; }
@media (min-width: 1024px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: white; border-radius: var(--radius-lg); padding: 1.375rem;
  border: 1px solid hsl(220,20%,92%); display: flex; gap: 1rem; align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.stat-icon {
  width: 48px; height: 48px; border-radius: .875rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.stat-icon-orange { background: hsl(15,80%,94%); color: var(--terracotta); }
.stat-icon-green  { background: hsl(142,76%,93%); color: #16a34a; }
.stat-icon-blue   { background: hsl(220,100%,95%); color: #2563eb; }
.stat-icon-purple { background: hsl(270,76%,95%); color: #7c3aed; }
.stat-label { font-size: .78rem; color: #64748b; margin-bottom: .25rem; font-family: 'Inter', sans-serif; font-weight: 500; letter-spacing: .02em; }
.stat-value { font-size: 1.625rem; font-weight: 700; color: hsl(222,47%,11%); line-height: 1; font-family: 'Inter', sans-serif; }
.stat-sub { font-size: .76rem; color: #94a3b8; margin-top: .375rem; font-family: 'Inter', sans-serif; }

/* ---- Admin Table ---- */
.admin-table-wrap { background: white; border-radius: var(--radius-lg); border: 1px solid hsl(220,20%,92%); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: .875rem 1.125rem; text-align: left; font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: #64748b; background: hsl(220,20%,98%); border-bottom: 1px solid hsl(220,20%,92%);
  white-space: nowrap; font-family: 'Inter', sans-serif;
}
.admin-table td { padding: .9375rem 1.125rem; border-bottom: 1px solid hsl(220,20%,96%); font-size: .875rem; vertical-align: middle; font-family: 'Inter', sans-serif; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: hsl(220,20%,99%); }
.admin-table-actions { display: flex; gap: .375rem; align-items: center; }

/* ---- Admin Form ---- */
.admin-form-card { background: white; border-radius: var(--radius-lg); padding: 1.75rem; border: 1px solid hsl(220,20%,92%); box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.admin-input {
  width: 100%; padding: .7rem 1rem; border: 1.5px solid hsl(220,20%,88%);
  border-radius: .625rem; font-size: .875rem; font-family: 'Inter', inherit;
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
  color: hsl(222,47%,11%);
}
.admin-input:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px hsl(15,55%,42%,.1); }
.admin-label { display: block; font-size: .8125rem; font-weight: 600; color: hsl(222,47%,22%); margin-bottom: .4rem; font-family: 'Inter', sans-serif; }
.admin-form-group { margin-bottom: 1.375rem; }

/* ---- Image Upload ---- */
.upload-zone {
  border: 2px dashed hsl(220,20%,88%); border-radius: var(--radius-lg); padding: 2.25rem;
  text-align: center; cursor: pointer; transition: all var(--transition);
  background: hsl(220,20%,99%); font-family: 'Inter', sans-serif;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--terracotta); background: hsl(15,55%,42%,.03); }
.upload-preview { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: .875rem; }
.upload-thumb {
  width: 84px; height: 84px; border-radius: .625rem; overflow: hidden;
  position: relative; border: 1.5px solid hsl(220,20%,90%);
}
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb-del {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
  border-radius: 9999px; background: rgba(239,68,68,.9); color: white;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
}

/* ---- Chart container ---- */
.chart-wrap { position: relative; }

/* ---- Search bar (admin) ---- */
.admin-search { display: flex; gap: .875rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.375rem; }
.admin-search .admin-input { max-width: 340px; }

/* ---- Modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(4px); }
.modal { background: white; border-radius: var(--radius-xl); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.modal-head { padding: 1.375rem 1.625rem; border-bottom: 1px solid hsl(220,20%,92%); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 1.625rem; }
.modal-foot { padding: 1.125rem 1.625rem; border-top: 1px solid hsl(220,20%,92%); display: flex; justify-content: flex-end; gap: .75rem; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-fg); }

/* ---- Order Timeline ---- */
.order-timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding: .5rem 0; }
.order-timeline::before { content: ''; position: absolute; left: 1.125rem; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-step { display: flex; align-items: flex-start; gap: 1rem; padding: .875rem 0; opacity: .4; }
.timeline-step.done { opacity: 1; }
.timeline-step.done .timeline-icon { background: #f0fdf4; border-color: #86efac; color: #16a34a; font-size: 1.25rem; }
.timeline-icon { width: 2.25rem; height: 2.25rem; border-radius: 9999px; border: 2px solid var(--border); background: var(--card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.0625rem; z-index: 1; }
.timeline-content { padding-top: .25rem; }

/* ---- Animations ---- */
.animate-fade { animation: fadeInUp .7s ease both; }
.animate-fade-delay-1 { animation-delay: .1s; }
.animate-fade-delay-2 { animation-delay: .2s; }
.animate-fade-delay-3 { animation-delay: .3s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(1.75rem); } to { opacity: 1; transform: none; } }

/* ---- Scroll-triggered fade in ---- */
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- Favorites Page ---- */
.fav-empty { text-align: center; padding: 5rem 0; color: var(--muted-fg); }

/* ---- Contact / SSS / Story ---- */
.page-section { padding: 3.5rem 0 6rem; }
.page-section h1 { font-size: clamp(1.875rem, 4.5vw, 3.25rem); }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.375rem 0; }
.faq-q { font-weight: 600; font-size: 1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Playfair Display', serif; }
.faq-a { color: var(--muted-fg); font-size: .9375rem; line-height: 1.75; margin-top: .875rem; display: none; font-family: 'Inter', sans-serif; }

/* ---- Product page specific ---- */
.size-btn.btn-primary, .color-btn.btn-primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

/* ---- Admin supplemental ---- */
.admin-table-search { padding: .55rem .875rem; border: 1.5px solid hsl(220,20%,88%); border-radius: .5rem; font-family: 'Inter', inherit; font-size: .875rem; }
.unread-dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--primary); display: inline-block; margin-right: .375rem; }

/* ---- Admin promo/review pages ---- */
.admin-tabs { display: flex; gap: .375rem; margin-bottom: 1.375rem; flex-wrap: wrap; }
.admin-tab {
  padding: .55rem 1.125rem; border-radius: .5rem; font-size: .875rem; cursor: pointer;
  border: 1.5px solid hsl(220,20%,90%); background: white; color: #64748b;
  transition: all var(--transition); text-decoration: none; font-family: 'Inter', sans-serif; font-weight: 500;
}
.admin-tab.active, .admin-tab:hover { background: var(--terracotta); color: white; border-color: var(--terracotta); }

/* ---- Responsive admin ---- */
@media (max-width: 767px) {
  .admin-page { padding: 1.25rem 1rem; }
  .stat-cards { grid-template-columns: 1fr 1fr; gap: .875rem; }
}

/* ---- Section header pattern ---- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
.section-eyebrow {
  display: inline-block; font-family: 'Inter', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--secondary);
  margin-bottom: .875rem;
}
