/* Layout: gift-box turquoise band up top, white shelf of products below, black serif accents from the logo */
:root {
  --brand: #80d6d5;        /* box turquoise from the logo */
  --brand-soft: #e8f7f6;
  --brand-deep: #237a77;
  --ink: #141617;
  --muted: #5d6e6d;
  --line: #d6ebe9;
  --paper: #ffffff;
  --sale: #b2445a;
  --ok: #2f8a57;
  --warn: #b7791f;
  --font-body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --font-latin: "Cormorant Garamond", "Times New Roman", serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 60, 60, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  font-weight: 600; text-decoration: none; transition: background .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--brand-soft); border-color: var(--brand-deep); color: var(--brand-deep); }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--sale); border-color: var(--sale); }
.btn.danger:hover, .btn.danger.armed { background: var(--sale); color: #fff; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand-deep); }

.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); font-weight: 400; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(128, 214, 213, .35); }
textarea.input { resize: vertical; min-height: 90px; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.error-msg { color: var(--sale); font-size: 13px; min-height: 1em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 26px; }
.brand-name { font-family: var(--font-latin); font-size: 30px; font-weight: 500; letter-spacing: .18em; line-height: 1; }
.brand-sub { font-family: var(--font-latin); font-size: 10px; letter-spacing: .4em; color: var(--muted); display: block; margin-top: 2px; }
.header-spacer { flex: 1; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -4px; left: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--brand); color: var(--ink); font-size: 12px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

/* ---------- hero ---------- */
.hero { background: var(--brand); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding-block: 48px;
}
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.35; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
.hero p { margin: 0 0 24px; font-size: 17px; max-width: 34ch; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13px; }
.hero-tags span::before { content: "◆"; font-size: 9px; margin-left: 6px; vertical-align: 2px; }
.hero-img {
  width: 100%; max-width: 420px; justify-self: center; aspect-ratio: 1; object-fit: cover;
  border-radius: 6px; box-shadow: 0 24px 50px rgba(10, 70, 70, .28); transform: rotate(-3deg);
}

/* ---------- toolbar ---------- */
.shop { padding-block: 36px 60px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.shop-head h2 { margin: 0; font-size: 24px; }
.shop-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-tools .input { width: auto; min-width: 0; }
.search { width: 220px !important; max-width: 100%; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 6px 16px; cursor: pointer; font-size: 14px;
}
.chip:hover { border-color: var(--brand-deep); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 20px; }
.card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-align: right; background: none; border: 0; padding: 0; color: inherit; text-decoration: none; }
.card-img {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--brand-soft);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.badge {
  position: absolute; top: 10px; right: 10px; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--sale); color: #fff;
}
.badge.out { background: var(--ink); }
.card h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.6; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price small { font-weight: 400; font-size: 12px; color: var(--muted); }
.price s { color: var(--muted); font-weight: 400; font-size: 13px; }
.price .now { color: var(--sale); }
.swatches { display: flex; gap: 4px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); }
.empty { text-align: center; color: var(--muted); padding: 50px 0; }
.placeholder-img { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand-deep); }

/* ---------- modal & drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(15, 30, 30, .45);
  display: grid; place-items: center; padding: 16px; animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--paper); border-radius: 18px; width: min(920px, 100%); max-height: calc(100dvh - 32px);
  overflow: auto; position: relative; box-shadow: var(--shadow);
}
.modal-close { position: absolute; top: 12px; left: 12px; z-index: 2; }
.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd-gallery { padding: 18px; background: var(--brand-soft); min-width: 0; }
.pd-main { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--paper); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-thumbs button { flex: none; width: 60px; height: 60px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--paper); }
.pd-thumbs button[aria-current="true"] { border-color: var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 34px 28px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-info h2 { margin: 0; font-size: 22px; line-height: 1.5; }
.pd-cat { font-size: 13px; color: var(--brand-deep); font-weight: 600; }
.pd-desc { margin: 0; color: var(--muted); white-space: pre-line; }
.pd-label { font-size: 13px; font-weight: 700; }
.color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 13px;
}
.color-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.pd-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.drawer-overlay { place-items: stretch; justify-content: start; padding: 0; }
.drawer {
  width: min(420px, 100vw); height: 100%; background: var(--paper); display: flex; flex-direction: column;
  box-shadow: var(--shadow); animation: slide .2s ease;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
@keyframes slide { from { transform: translateX(-30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px; display: grid; gap: 10px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.line-item img, .line-item .ph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--brand-soft); }
.line-item h4 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.6; }
.line-item .sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.line-item .qty button { width: 28px; height: 28px; font-size: 15px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; padding: 0; }
.totals { display: grid; gap: 4px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 17px; font-weight: 800; }
.checkout-form { display: grid; gap: 12px; }
.success { text-align: center; padding: 30px 10px; display: grid; gap: 10px; justify-items: center; }
.success .big { font-size: 40px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #dfeeed; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-block: 30px; font-size: 14px; }
.site-footer .brand-name { color: #fff; font-size: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

/* WhatsApp */
.btn.wa-btn { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn.wa-btn:hover { background: #178a45; border-color: #178a45; }
.wa-float {
  position: fixed; z-index: 40; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px;
  background: #1fa855; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(20, 90, 50, .35);
}
.wa-float:hover { background: #178a45; }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 760px) { .wa-float { padding: 12px; } .wa-float-text { display: none; } }

.toast {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; z-index: 80;
  font-size: 14px; box-shadow: var(--shadow); animation: fade .2s ease;
}

/* ================= admin ================= */
.admin-body { background: #f5fbfb; min-height: 100vh; }
.login-box {
  width: min(380px, 100%); margin: 12vh auto 0; background: var(--paper); border-radius: 18px;
  padding: 32px 28px; box-shadow: var(--shadow); display: grid; gap: 16px; text-align: center;
}
.login-box .brand { justify-content: center; }
.admin-top { background: var(--ink); color: #fff; }
.admin-top .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: 12px; }
.admin-top .brand-name { color: #fff; font-size: 24px; }
.admin-top .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.admin-top .btn.ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 24px 0 20px; overflow-x: auto; overflow-y: hidden; }
.tab {
  border: 0; background: none; padding: 10px 16px; cursor: pointer; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--brand-deep); }
.tab .pill { background: var(--brand); color: var(--ink); border-radius: 999px; padding: 0 8px; font-size: 12px; margin-right: 4px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 20px; }
.admin-list { display: grid; gap: 10px; padding-bottom: 40px; }
.admin-row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.admin-row img, .admin-row .ph { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--brand-soft); }
.admin-row h3 { margin: 0; font-size: 15px; }
.admin-row .meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.admin-row .meta s { margin-inline-end: 6px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.status-pill { font-size: 12px; padding: 1px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; }
.status-pill.off { background: #f3e5e8; color: var(--sale); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 26px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid h2 { margin: 0; font-size: 20px; }
.color-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px dashed var(--line);
  border-radius: 999px; background: var(--paper); cursor: pointer; font-size: 12px; font-weight: 400; color: var(--ink);
}
.preset:hover { border-color: var(--brand-deep); }
.custom-color { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.custom-color input[type="color"] { width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: var(--paper); }
.custom-color .input { flex: 1; min-width: 120px; }
.selected-colors { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; }
.sel-color { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--brand-soft); font-size: 13px; font-weight: 400; color: var(--ink); }
.sel-color button { border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; color: var(--muted); }
.dropzone {
  border: 2px dashed var(--brand); border-radius: 12px; padding: 20px; text-align: center; cursor: pointer;
  background: var(--brand-soft); color: var(--brand-deep); font-weight: 600;
}
.dropzone.over { background: #d3f1ef; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.thumb { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); }
.thumb.main { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .tag { position: absolute; bottom: 0; inset-inline: 0; background: rgba(20, 22, 23, .75); color: #fff; font-size: 11px; text-align: center; }
.thumb .x, .thumb .star {
  position: absolute; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); font-size: 13px; line-height: 1; display: grid; place-items: center;
}
.thumb .x { left: 4px; color: var(--sale); }
.thumb .star { right: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-deep); }
.form-actions { display: flex; gap: 10px; justify-content: end; flex-wrap: wrap; }

.order-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; }
.order-card.is-new { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.order-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.order-top h3 { margin: 0; font-size: 16px; }
.order-top .date { font-size: 12px; color: var(--muted); }
.order-cust { font-size: 14px; display: grid; gap: 2px; }
.order-items { display: grid; gap: 6px; font-size: 13px; border-top: 1px dashed var(--line); padding-top: 10px; }
.order-items div { display: flex; justify-content: space-between; gap: 10px; }
.order-total { font-weight: 800; display: flex; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 8px; }
.filter-select { width: auto; }
.settings-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 20px; }
.settings-card .form-grid { padding: 22px; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 30px; gap: 26px; }
  .hero-img { max-width: 280px; }
  .pd { grid-template-columns: 1fr; }
  .pd-info { padding: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .card h3 { font-size: 14px; }
  .card-meta { flex-direction: column; align-items: start; gap: 4px; }
  .search { width: 100% !important; }
  .shop-tools { width: 100%; }
  .form-grid { grid-template-columns: 1fr; padding: 20px; }
  .admin-row { grid-template-columns: 56px minmax(0, 1fr); }
  .admin-row img, .admin-row .ph { width: 56px; height: 56px; }
  .row-actions { grid-column: 1 / -1; justify-content: start; }
  .brand-name { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= SEO pages: nav, categories, FAQ, articles ================= */
.site-nav { flex: 1; display: flex; gap: 4px 18px; overflow-x: auto; scrollbar-width: none; font-size: 14px; font-weight: 600; padding-inline: 8px; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav:empty { visibility: hidden; }
.site-nav a { text-decoration: none; white-space: nowrap; padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--brand-deep); }
.site-nav a[aria-current="page"] { border-color: var(--brand-deep); color: var(--brand-deep); }
a.chip { text-decoration: none; color: inherit; }
.hero-eyebrow { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--ink); opacity: .75; }

.cat-hero { background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.cat-hero .wrap { padding-block: 26px 30px; }
.cat-hero h1 { margin: 6px 0 8px; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.4; text-wrap: balance; }
.cat-hero p { margin: 0; max-width: 70ch; color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--brand-deep); text-decoration: none; }

.seo-text { padding-block: 10px 50px; }
.seo-text > h2, .seo-text > p, .seo-text > ul { max-width: 75ch; }
.seo-text h2 { font-size: 19px; margin: 26px 0 8px; }
.seo-text p { margin: 0 0 12px; color: #3c4a49; line-height: 2; }
.faq { margin-top: 30px; max-width: 75ch; }
.faq h2 { font-size: 19px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; background: var(--paper); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 0; }

.cat-tiles-wrap { padding-block: 10px 30px; }
.cat-tiles-wrap h2 { font-size: 20px; margin: 0 0 14px; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.cat-tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--brand-soft); text-decoration: none; color: #fff; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile span { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; font-weight: 800; background: linear-gradient(transparent, rgba(10, 30, 30, .75)); }

.price.ask { color: var(--brand-deep); font-size: 14px; }
.ig-link { font-size: 13px; color: var(--brand-deep); }

.page { padding-block: 26px 60px; }
.page-title { font-size: clamp(24px, 3.4vw, 32px); margin: 8px 0 22px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px 20px; }
.post-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.post-card img, .post-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--brand-soft); }
.post-card h3 { margin: 0; font-size: 17px; line-height: 1.6; }
.post-card:hover h3 { color: var(--brand-deep); }
.post-card p { margin: 0; font-size: 14px; color: var(--muted); }
.post-date { font-size: 12px; color: var(--muted); }
.latest-posts { padding-block: 10px 30px; }
.latest-posts h2 { font-size: 20px; }
.latest-posts .shop-head a { color: var(--brand-deep); font-weight: 600; }
.article { max-width: 760px; margin: 0 auto 40px; }
.article h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.5; margin: 10px 0 6px; text-wrap: balance; }
.article .cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 16px 0 24px; }
.article-body { font-size: 17px; line-height: 2.1; margin-bottom: 26px; }
.article-body h2 { font-size: 21px; margin: 30px 0 8px; }
.article-body p { margin: 0 0 16px; }

@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 4px; }
  .site-nav { order: 3; flex-basis: 100%; padding-inline: 0; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================= admin: Instagram, articles, phone layout ================= */
.card-box { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; display: grid; gap: 12px; }
.card-box h2 { margin: 0; font-size: 18px; }
.card-box p { margin: 0; }
.steps { margin: 0; padding-right: 20px; display: grid; gap: 4px; font-size: 14px; }
.ig-status { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; }
.kw-list { display: flex; flex-wrap: wrap; gap: 6px; }
.kw { background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.preview-out { background: #f5fbfb; border-radius: 10px; padding: 12px; font-size: 14px; display: grid; gap: 4px; }
.log-list { display: grid; gap: 6px; font-size: 13px; }
.log-list div { border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.source-pill { font-size: 11px; padding: 0 8px; border-radius: 999px; background: #fde9f1; color: #a2316a; font-weight: 700; }
.fab { display: none; }
.install-tip { font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .admin-body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .admin-body .tabs {
    position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; margin: 0; background: var(--paper);
    border-top: 1px solid var(--line); border-bottom: 0; justify-content: space-around; gap: 0;
    padding: 4px max(4px, env(safe-area-inset-left, 0px)) calc(4px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 20px rgba(20, 60, 60, .08);
  }
  .admin-body .tab { flex: 1; padding: 10px 2px; font-size: 12px; border-bottom: 0; border-top: 3px solid transparent; margin: 0; }
  .admin-body .tab[aria-selected="true"] { border-top-color: var(--brand-deep); }
  .admin-body .tab .pill { display: none; }
  .admin-body main.wrap { padding-top: 16px; }
  .admin-top .btn.small { padding: 6px 10px; }
  .admin-label { display: none; }
  .panel-head .btn { display: none; }
  .fab {
    display: grid; place-items: center; position: fixed; z-index: 31; left: calc(16px + env(safe-area-inset-left, 0px));
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%;
    background: var(--ink); color: #fff; border: 0; font-size: 28px; line-height: 1; box-shadow: var(--shadow); cursor: pointer;
  }
  .fab[hidden] { display: none !important; }
  #form-overlay, #post-overlay { padding: 0; }
  #form-overlay .modal, #post-overlay .modal { width: 100% !important; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .admin-body .input { font-size: 16px; } /* stops iPhone zooming into fields */
}
