/* =========================================================
   فروشگاه مدرن — قالب HTML چندصفحه‌ای
   تمام استایل‌ها داخلی و بدون هیچ لینک خارجی
   ========================================================= */

:root {
  --primary: #6c3ef8;
  --primary-2: #8a5cf6;
  --accent: #ff6b35;
  --accent-2: #ff9a5a;
  --success: #22c55e;
  --dark: #0f1424;
  --dark-2: #171e35;
  --light: #f5f6fb;
  --white: #ffffff;
  --text: #1c2233;
  --muted: #6b7390;
  --border: #e7e9f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(20, 26, 60, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 26, 60, 0.16);
  --gradient: linear-gradient(135deg, var(--primary), var(--primary-2));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-2));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.8;
  direction: rtl;
  overflow-x: hidden;
}

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

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

section { padding: 64px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-top {
  background: var(--dark);
  color: #fff;
  font-size: 13px;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.header-top .free-ship { display: flex; align-items: center; gap: 8px; }
.header-top .free-ship strong { color: var(--accent-2); }
.top-links { display: flex; gap: 16px; }
.top-links a:hover { color: var(--accent-2); }

.header-main .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo .logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}
.logo span { color: var(--primary); }

.search-box {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 6px 8px;
  overflow: hidden;
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.search-box button {
  background: var(--gradient);
  color: #fff;
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  gap: 2px;
  position: relative;
}
.header-actions a i { font-size: 20px; color: var(--dark); font-style: normal; }
.header-actions .cart-count {
  position: absolute;
  top: -6px;
  inset-inline-start: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  min-width: 17px;
  height: 17px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.main-nav { border-top: 1px solid var(--border); background: #fff; }
.main-nav .container {
  display: flex;
  align-items: center;
  height: 48px;
  gap: 4px;
}
.main-nav a {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  transition: all .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: rgba(108, 62, 248, .08); }

.nav-toggle {
  display: none;
  background: transparent;
  font-size: 24px;
  color: var(--dark);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(138, 92, 246, 0.18), transparent 60%),
    radial-gradient(50% 80% at 10% 90%, rgba(255, 107, 53, 0.14), transparent 60%),
    linear-gradient(135deg, #f9f8ff, #eef1ff);
  padding: 40px 0 72px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 16px;
}
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 16px; max-width: 460px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: all .25s;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 26px rgba(108, 62, 248, .35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(108, 62, 248, .45); }
.btn-outline { background: #fff; color: var(--dark); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--gradient-accent); color: #fff; }
.btn-accent:hover { transform: translateY(-3px); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual .hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  transform: rotate(-2deg);
}
.hero-visual .hero-card img { border-radius: 16px; }
.floating-badge {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.floating-badge .emoji {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.fb-1 { top: -8px; inset-inline-start: -6px; }
.fb-1 .emoji { background: rgba(34, 197, 94, .15); }
.fb-2 { bottom: 30px; inset-inline-end: -10px; }
.fb-2 .emoji { background: rgba(255, 107, 53, .15); }

/* ---------- Features strip ---------- */
.features-strip { padding: 34px 0; background: #fff; border-bottom: 1px solid var(--border); }
.features-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-item .fi-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.feature-item h4 { font-size: 14px; }
.feature-item p { font-size: 12px; color: var(--muted); }

/* ---------- Section headers ---------- */
.section-head { text-align: center; margin-bottom: 36px; }
.section-head .eyebrow {
  display: inline-block;
  background: rgba(108, 62, 248, .1);
  color: var(--primary);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 30px; font-weight: 800; }
.section-head h2 span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p { color: var(--muted); margin-top: 8px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all .3s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card .cat-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--light);
}
.cat-card:nth-child(1) .cat-icon { background: rgba(108, 62, 248, .12); }
.cat-card:nth-child(2) .cat-icon { background: rgba(255, 107, 53, .12); }
.cat-card:nth-child(3) .cat-icon { background: rgba(34, 197, 94, .12); }
.cat-card:nth-child(4) .cat-icon { background: rgba(14, 165, 233, .12); }
.cat-card h3 { font-size: 16px; margin-bottom: 4px; }
.cat-card p { font-size: 13px; color: var(--muted); }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--light);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-img img { transform: scale(1.08); }
.product-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 2;
}
.product-badge.new { background: var(--success); }
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-cat { font-size: 12px; color: var(--muted); }
.product-body h3 { font-size: 15px; font-weight: 700; }
.product-rating { color: #f5b301; font-size: 13px; }
.product-rating span { color: var(--muted); font-size: 12px; margin-inline-start: 6px; }
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.price .amount { font-size: 17px; font-weight: 800; color: var(--dark); }
.price .unit { font-size: 12px; color: var(--muted); }
.price .old { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-inline-end: 6px; }
.add-cart {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.add-cart:hover { transform: scale(1.1); box-shadow: 0 8px 18px rgba(108, 62, 248, .4); }

/* ---------- Banner ---------- */
.banner {
  background: var(--gradient);
  border-radius: 24px;
  padding: 46px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.banner h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.banner p { opacity: .9; font-size: 15px; }
.banner .btn { background: #fff; color: var(--primary); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.testi-card .stars { color: #f5b301; font-size: 15px; margin-bottom: 12px; }
.testi-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-person .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.testi-person h4 { font-size: 14px; }
.testi-person span { font-size: 12px; color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--dark); border-radius: 24px; padding: 40px; color: #fff; text-align: center; }
.newsletter h2 { font-size: 26px; margin-bottom: 8px; }
.newsletter p { opacity: .75; margin-bottom: 22px; }
.newsletter-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  background: #fff;
  border-radius: 50px;
  padding: 6px;
  gap: 6px;
}
.newsletter-form input { flex: 1; border: none; outline: none; padding: 8px 16px; border-radius: 50px; font-size: 14px; }
.newsletter-form button {
  background: var(--gradient);
  color: #fff;
  border-radius: 50px;
  padding: 11px 22px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cdd3ea; margin-top: 64px; }
.footer-main .container { padding: 48px 20px 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p { font-size: 13px; opacity: .8; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13px; opacity: .85; transition: all .2s; }
.footer-col ul a:hover { color: var(--accent-2); padding-inline-start: 4px; }
.footer-logo { font-size: 22px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .logo-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--gradient); display: flex; align-items: center; justify-content: center; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all .2s;
}
.socials a:hover { background: var(--gradient); transform: translateY(-3px); }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icons span {
  background: #fff;
  color: var(--dark);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
}
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom .container { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 8px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--gradient); color: #fff; padding: 46px 0; }
.page-hero .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-hero h1 { font-size: 28px; }
.page-hero p { opacity: .9; font-size: 14px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; opacity: .85; flex-wrap: wrap; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Shop page ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.shop-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 132px;
}
.filter-group { margin-bottom: 22px; }
.filter-group h4 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.filter-group h4::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 7px 0;
  cursor: pointer;
  color: var(--text);
}
.filter-group input[type="checkbox"], .filter-group input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; }
.filter-group .count { margin-inline-start: auto; font-size: 12px; color: var(--muted); }
.range-output { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
input[type="range"] { width: 100%; accent-color: var(--primary); }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 14px;
  flex-wrap: wrap;
}
.shop-toolbar .result-count { font-size: 14px; color: var(--muted); }
.shop-toolbar .result-count strong { color: var(--dark); }
.sort-select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  background: #fff;
  outline: none;
}

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd-gallery { position: sticky; top: 132px; }
.pd-main-img {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
}
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pd-thumb {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  padding: 0;
  transition: all .2s;
  background: var(--light);
}
.pd-thumb.active, .pd-thumb:hover { border-color: var(--primary); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.pd-meta { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; margin-bottom: 16px; flex-wrap: wrap; }
.pd-meta .sku { direction: ltr; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.pd-price .amount { font-size: 30px; font-weight: 800; color: var(--dark); }
.pd-price .unit { font-size: 15px; color: var(--muted); }
.pd-price .old { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.pd-desc { color: var(--muted); font-size: 14px; margin-bottom: 22px; line-height: 2; }
.pd-features { margin-bottom: 22px; }
.pd-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 7px 0; }
.pd-features .check { color: var(--success); font-weight: 800; }

.pd-quantity { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.quantity-box { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.quantity-box button {
  width: 40px;
  height: 42px;
  background: var(--light);
  font-size: 18px;
  color: var(--dark);
  transition: all .2s;
}
.quantity-box button:hover { background: var(--primary); color: #fff; }
.quantity-box input {
  width: 52px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
}
.quantity-box input::-webkit-outer-spin-button, .quantity-box input::-webkit-inner-spin-button { -webkit-appearance: none; }

.pd-buy { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-buy .btn { flex: 1; justify-content: center; min-width: 180px; }
.pd-share { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.pd-share a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all .2s;
}
.pd-share a:hover { background: var(--gradient); color: #fff; border-color: transparent; }

.pd-tabs { margin-top: 56px; }
.tabs-head { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tabs-head button {
  background: transparent;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.tabs-head button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel p { color: var(--muted); line-height: 2; margin-bottom: 14px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { border: 1px solid var(--border); padding: 12px 16px; font-size: 14px; }
.spec-table tr td:first-child { background: var(--light); font-weight: 600; width: 200px; }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 30, .5);
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 200;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0;
  inset-inline-end: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100%;
  background: #fff;
  z-index: 201;
  transition: inset-inline-end .35s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .2);
}
.cart-drawer.open { inset-inline-end: 0; }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.cart-head h3 { font-size: 18px; }
.cart-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--light);
  font-size: 18px;
}
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.cart-item img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.cart-item h4 { font-size: 13px; margin-bottom: 4px; }
.cart-item .price { font-size: 13px; color: var(--primary); font-weight: 700; }
.cart-item .remove { margin-inline-start: auto; align-self: flex-start; background: transparent; color: var(--muted); font-size: 16px; }
.cart-item .remove:hover { color: var(--accent); }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.cart-empty .emoji { font-size: 48px; display: block; margin-bottom: 12px; }
.cart-foot { padding: 20px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 14px; }
.cart-total strong { font-size: 20px; color: var(--dark); }
.cart-foot .btn { width: 100%; justify-content: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(50%) translateY(80px);
  background: var(--dark);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  transition: all .35s;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(50%) translateY(0); opacity: 1; }
.toast i { color: var(--success); font-style: normal; }

/* ---------- About / Contact pages ---------- */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-story img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-story h2 { font-size: 26px; margin-bottom: 14px; }
.about-story h2 span { color: var(--primary); }
.about-story p { color: var(--muted); margin-bottom: 14px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 28px 16px;
}
.stat-card .num { font-size: 34px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 26px 16px;
  transition: all .3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card .avatar { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; }
.team-card h3 { font-size: 16px; }
.team-card span { color: var(--muted); font-size: 13px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-card .cc-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-card h4 { font-size: 15px; margin-bottom: 4px; }
.contact-card p { font-size: 13px; color: var(--muted); direction: ltr; text-align: right; }
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-form h3 { font-size: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border .2s;
  background: var(--light);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-success {
  display: none;
  background: rgba(34, 197, 94, .12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---------- Map placeholder ---------- */
.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  background:
    linear-gradient(rgba(108, 62, 248, .85), rgba(15, 20, 36, .92)),
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255,255,255,.06) 30px, rgba(255,255,255,.06) 31px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid, .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-main .container { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
}

@media (max-width: 768px) {
  section { padding: 44px 0; }
  .hero .container { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 28px; }
  .product-grid, .cat-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .features-strip .container { grid-template-columns: repeat(2, 1fr); }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .about-story { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .banner { flex-direction: column; text-align: center; padding: 34px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .header-actions a span { display: none; }
  .search-box { display: none; }
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; inset: 0 0 auto 0; background: #fff; padding: 10px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .main-nav.open .container { flex-direction: column; align-items: stretch; height: auto; }
  .main-nav.open a { display: block; padding: 14px; }
  .page-hero .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .product-grid, .cat-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .header-main .container { gap: 12px; height: 64px; }
  .logo { font-size: 20px; }
  .logo .logo-icon { width: 36px; height: 36px; }
}
