@font-face {
  font-family: Vazir;
  src: url('./font/vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #24252b;
  --muted: #5f616b;
  --paper: #f7f8fa;
  --surface: #fff;
  --line: #e8e9ee;
  --accent: #bc243c;
  --accent-hover: #95142a;
  --soft: #fceef1;
  --night: #25151f;
  --night-deep: #190e17;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.7 Vazir,Tahoma,sans-serif; }
:where(h1,h2,h3,p) { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { opacity: .6; cursor: default; }
button, a { touch-action: manipulation; }
img { display: block; max-width: 100%; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(calc(100% - 78px), 1360px); margin-inline: auto; }
.skip { position: fixed; inset: -100px 14px auto auto; z-index: 10; padding: 10px; background: #fff; }
.skip:focus { top: 12px; }

header { background: var(--surface); }
.head {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: clamp(20px, 4vw, 66px);
  align-items: center;
  min-height: 84px;
}
.brand { display: inline-flex; align-items: center; }
.brand-mark {
  display: block; width: 82px; aspect-ratio: 230/155;
  background: #ed0618;
  mask: url('./paradise-logo.png') center/contain no-repeat;
}
.site-search {
  display: flex; min-width: 0; overflow: hidden;
  background: #f6f7f9; border: 1px solid #e1e3e9; border-radius: 10px;
}
.site-search:focus-within { border-color: var(--accent); }
.site-search input {
  width: 100%; min-width: 0; border: 0; outline: none;
  padding: 11px 15px; background: transparent; font-size: .95rem;
}
.site-search input::placeholder { color: #6f6570; }
.site-search button {
  display: grid; flex: 0 0 52px; place-items: center;
  background: var(--accent); color: white;
}
.site-search button:hover { background: var(--accent-hover); }
.site-search button:focus-visible { outline: 2px solid white; outline-offset: -5px; }
.actions { display: flex; align-items: center; gap: 10px; }
.account-button, .cart-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 44px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 9px;
  color: var(--ink); white-space: nowrap; font-size: .9rem; font-weight: 660;
}
.account-button span { max-width: 135px; overflow: hidden; text-overflow: ellipsis; }
.account-button:hover, .cart-button:hover { color: var(--accent); border-color: #dca8b4; background: var(--soft); }
.cart-button { padding-inline: 11px; }
.badge-count {
  min-width: 24px; height: 24px; padding: 0 5px; display: grid; place-items: center;
  border-radius: 6px; background: var(--soft); color: #a32137;
  font-size: .8rem; line-height: 1; font-weight: 750;
}
.navigation { background: white; border-block: 1px solid var(--line); }
.nav { display: flex; align-items: stretch; gap: clamp(12px,2.4vw,34px); min-height: 49px; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px; position: relative; flex: none;
  white-space: nowrap; padding: 8px 5px; font-size: .92rem; font-weight: 690;
}
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.nav a[aria-current]::after { content: ''; position: absolute; inset: auto 5px 0; height: 2px; border-radius: 3px 3px 0 0; background: var(--accent); }
.nav .nav-offer { margin-inline-start: auto; color: var(--accent); }
.nav a:focus-visible { outline-offset: -3px; }

.home-page { padding-top: 21px; }
.hero {
  position: relative; display: flex; align-items: center; isolation: isolate; overflow: hidden;
  min-height: clamp(350px,32vw,425px); border-radius: 16px;
  background: #f8e9ed; color: #31212c;
}
.hero-dark { background: #211721; color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero-light .hero-bg { object-fit: contain; object-position: left center; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg,#f9edef 5%,#f9edefee 36%,#f9edef30 53%,transparent 64%); }
.hero-dark .hero-shade { background: linear-gradient(270deg,#201320 3%,#201320e8 34%,#20132058 59%,transparent 79%); }
.hero-copy { width: 56%; max-width: 640px; padding: 25px clamp(20px,4vw,65px) 64px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; color: #9b223a; font-size: .9rem; font-weight: 730; }
.hero-tag::before { content: ''; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { font-size: clamp(2.17rem,3.92vw,3.8rem); line-height: 1.23; letter-spacing: -.03em; font-weight: 900; margin: 12px 0 14px; overflow-wrap: anywhere; }
.hero h1 span { display: block; color: #ba2541; }
.hero p { max-width: 400px; color: #543e4d; font-size: .97rem; }
.hero-dark :is(.hero-tag,h1 span) { color: #ffb0cc; }
.hero-dark p { color: #f3dce8; }
.hero-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.hero-secondary { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid #bf8193; border-radius: 8px; font-size: .91rem; font-weight: 650; }
.hero-secondary:hover { background: #ffffff77; }
.hero-dark .hero-secondary:hover { background: #ffffff19; }
.carousel-controls {
  position: absolute; inset: auto 50% 13px auto; transform: translateX(50%);
  display: flex; align-items: center; direction: ltr; gap: 5px;
  border: 1px solid #dbb0c0; border-radius: 20px; padding: 1px 4px; background: #f9eff3ed; color: #862341;
}
.dots { display: flex; gap: 1px; align-items: center; }
.dots button, .carousel-toggle { display: grid; width: 28px; height: 30px; place-items: center; border-radius: 14px; }
.dots button i { background: #9e697d; width: 6px; height: 6px; border-radius: 8px; }
.dots button[aria-pressed="true"] i { background: #ba2847; width: 18px; }
.dots button:hover, .carousel-toggle:hover { background: #f2dce5; }
.hero-dark a:focus-visible { outline-color: #ffb2c5; }
.home-title { align-self: center; margin-bottom: 20px; }

.tile-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 10px; background: var(--soft); color: var(--accent);
}

.section.featured { margin-top: 24px; background: white; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.feature-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  min-height: 62px; padding: 8px 15px; border-bottom: 1px solid var(--line);
}
.feature-toolbar h2 { margin-inline-end: auto; font-size: clamp(1.31rem,2.2vw,1.75rem); line-height: 1.45; font-weight: 850; }
.feature-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.feature-filters button { padding: 5px 9px; border-radius: 7px; color: var(--muted); font-size: .88rem; font-weight: 660; }
.feature-filters button:hover, .feature-filters button[aria-pressed=true] { background: var(--soft); color: var(--accent); }
.feature-all { color: var(--accent); font-size: .87rem; font-weight: 720; }
.feature-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.feature-grid { padding: 12px; }
.feature-grid .home-paths { margin-top: 30px; }
.path-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.path-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px;
  min-height: 98px; padding: 14px; background: white; border: 1px solid #eadfe6; border-radius: 14px;
}
.path-card:hover { border-color: #bd687e; }
.path-card:hover > svg { color: var(--accent); }
.path-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 11px; background: var(--soft); color: var(--accent); }
.path-card strong, .path-card small { display: block; }
.path-card strong { font-weight: 780; line-height: 1.45; }
.path-card small { color: var(--muted); font-size: .81rem; margin-top: 4px; }
.path-card > svg { color: #8a697b; }

.product-grid { gap: 10px; }

.section { margin-top: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 {
  position: relative; padding-inline-start: 13px;
  font-size: clamp(1.42rem,2.5vw,2rem); font-weight: 880; line-height: 1.35; letter-spacing: -.025em;
}
.section-head h2::before { content: ''; position: absolute; inset: 12% 0 12% auto; width: 4px; border-radius: 4px; background: var(--accent); }
.link-btn { color: var(--accent); font-weight: 720; font-size: .92rem; }
.link-btn:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }
.section-head .link-btn { flex: none; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); background: white; }

.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.product, .article {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .16s, box-shadow .16s;
}
.product { display: flex; flex-direction: column; }
.product .photo-area { margin: 6px 6px 0; border-radius: 8px; }
.product:hover, .article:hover { border-color: #dca9b4; box-shadow: 0 7px 18px #38203209; }
.photo-area, .article-img { position: relative; display: block; background: #ece8ee; overflow: hidden; }
.photo-area img, .article-img img { width: 100%; aspect-ratio: 1.51; object-fit: cover; }
.product-tag, .article-tag {
  position: absolute; inset: 11px 11px auto auto; padding: 3px 8px;
  border-radius: 6px; background: #fff; color: #6b3f63; font-size: .78rem; font-weight: 750;
}
.product-tag.sale { background: #ffe8ed; color: #a01431; }
.product-content { display: flex; flex-direction: column; flex: 1; padding: 13px 15px 15px; }
.product-category { color: var(--muted); font-size: .8rem; margin-bottom: 4px; }
.product h3, .article h3 { font-size: 1.04rem; line-height: 1.55; font-weight: 790; }
.product h3 a:hover { color: var(--accent); }
.price-row { display: grid; align-content: end; min-height: 63px; margin: auto 0 11px; padding-top: 9px; }
.price { display: block; line-height: 1.5; font-weight: 860; font-size: 1.16rem; }
.price small { font-size: .82rem; font-weight: 540; color: var(--muted); }
.price-row del, .detail del { color: #726671; font-size: .8rem; }
.btn, .outline, .subtle, .add {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 8px; min-height: 41px; padding: 8px 14px; font-size: .93rem; font-weight: 690; line-height: 1.5;
}
.btn { background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-hover); }
.outline { border: 1px solid #d8cbd8; background: white; }
.outline:hover { border-color: var(--accent); }
.subtle, .add { background: var(--soft); color: var(--accent); }
.add { width: 100%; border: 1px solid #f3d9e0; }
.subtle:hover, .add:hover { background: var(--accent); color: #fff; }

.article-grid, .service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.article-img img { aspect-ratio: 1.99; }
.article .body { padding: 13px 15px 17px; }
.meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: .86rem; }
.service {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: white;
}
.service h3 { font-size: 1rem; margin: 1px 0 5px; }
.service p { color: var(--muted); margin-bottom: 10px; font-size: .9rem; }
.socialbox {
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 18px 24px; margin-top: 32px; border: 1px solid #f0d9e0; border-radius: 14px; background: #f9eaf0;
}
.socialbox h2 { font-size: 1.15rem; }
.socials { display: flex; flex-wrap: wrap; gap: 7px; }
.social { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: white; border: 1px solid var(--line); border-radius: 8px; font-size: .87rem; }
.social small { color: var(--muted); }

footer { margin-top: 49px; background: var(--night-deep); color: #eee5ed; }
.footer-benefits { background: #fff; color: var(--ink); border-block: 1px solid var(--line); }
.footer-benefits ul {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 16px;
  list-style: none; margin-block: 0; padding: 20px 0;
}
.footer-benefits li { display: flex; align-items: center; gap: 11px; min-width: 0; }
.benefit-icon {
  display: grid; width: 43px; height: 43px; place-items: center; flex: none;
  border-radius: 10px; background: var(--soft); color: var(--accent);
}
.benefit-icon img { width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.footer-benefits strong, .footer-benefits small { display: block; overflow-wrap: anywhere; }
.footer-benefits strong { font-size: .93rem; line-height: 1.4; }
.footer-benefits small { margin-top: 4px; color: var(--muted); font-size: .79rem; }
.footer-top { background: #352632; }
.footer-top button {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px;
  color: #fff7fe; font-size: .92rem; font-weight: 680;
}
.footer-top:hover { background: #4a3446; }
footer a:focus-visible, footer button:focus-visible { outline-color: #ffafc3; }
.footer-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; padding: 32px 0 26px; }
.footer-column h2 { color: #fff; font-size: 1.05rem; margin: 0 0 9px; }
.footer-column > a, .footer-column > button {
  display: table; color: #ddcfdc; margin-bottom: 6px; text-align: start; font-size: .92rem;
}
.footer-column a:hover, .footer-column button:hover { color: #ffc2cf; text-decoration: underline; text-underline-offset: 4px; }
.footer-socials { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.footer-socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid #6d4d64; }
.footer-apps {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding: 13px 15px; background: #2d202b; border: 1px solid #473345; border-radius: 12px;
}
.footer-apps h2 { font-size: 1rem; color: #fff; }
.app-options { display: flex; flex-wrap: wrap; gap: 8px; }
.app-option {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 5px 12px; color: #f9ebf4; background: #3d2c3b; border: 1px solid #62475c;
  border-radius: 8px; font-size: .88rem; font-weight: 700;
}
.app-option:hover { background: #59344d; border-color: #99657f; }
.app-option svg { color: #ffc7d7; }
.app-help { margin-bottom: 14px; }
.footer-bottom { min-height: 58px; display: flex; align-items: center; gap: 12px; border-top: 1px solid #493647; color: #dccddd; }
.footer-legal { min-width: 0; padding-block: 8px; }
.footer-bottom p { font-size: .88rem; overflow-wrap: anywhere; }
.footer-credit { display: inline-flex; align-items: center; flex: none; min-height: 44px; margin-inline-start: auto; }
.footer-credit img { width: auto; height: auto; max-width: 124px; max-height: 37px; object-fit: contain; }

.page { min-height: 58vh; padding-top: 30px; }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; margin-bottom: 13px; }
.crumb a:hover { color: var(--accent); }
.page-head { margin-bottom: 21px; }
.page-head h1, .detail h1, .reader h1 { font-size: clamp(1.7rem,3vw,2.5rem); letter-spacing: -.025em; line-height: 1.4; font-weight: 850; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.tab { display: inline-flex; align-items: center; padding: 6px 12px; background: white; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; }
.tab:hover { border-color: #c999a8; }
.tab.selected { background: var(--accent); border-color: var(--accent); color: white; }
.sort-control { display: flex; gap: 8px; align-items: center; font-size: .9rem; white-space: nowrap; }
select { appearance: none; padding-inline-end: 30px; }
.sort-control select { min-width: 125px; }
.catalog-count { color: var(--muted); font-size: .84rem; margin: 13px 0 8px; }
.empty, .panel { border: 1px solid var(--line); border-radius: 12px; background: white; padding: 20px; }
.empty { text-align: center; color: var(--muted); }
.detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 33px; align-items: center; }
.detail img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); }
.detail h1 { margin: 8px 0 10px; }
.detail p { margin: 12px 0; color: var(--muted); }
.detail .price { margin: 9px 0 14px; }
.model { display: block; color: var(--muted); font: 700 .72rem/1.4 Arial,sans-serif; letter-spacing: .05em; }
.reader { max-width: 850px; margin: auto; }
.reader > img { width: 100%; max-height: 365px; object-fit: cover; border-radius: var(--radius); margin: 18px 0; }
.reader section { margin: 19px 0; }
.reader h2 { font-size: 1.22rem; margin-bottom: 6px; }
.reader p { color: #574c58; line-height: 2; white-space: pre-line; }

.loading { padding: 68px; text-align: center; }
dialog { border: 0; border-radius: 15px; padding: 0; width: min(490px,calc(100vw - 24px)); max-height: 88dvh; color: var(--ink); box-shadow: 0 20px 65px #1f101b46; background: white; }
dialog::backdrop { background: #21131caa; backdrop-filter: blur(3px); }
#dialog-inner { padding: 20px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dialog-head h2 { font-size: 1.23rem; }
.ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; }
.ico:hover { background: var(--soft); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: .94rem; font-weight: 600; }
input, textarea, select { border: 1px solid #d8cdd8; border-radius: 8px; padding: 8px 10px; background-color: white; width: 100%; min-width: 0; }
select {
  padding-inline-end: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23665d67' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 9px center;
}
textarea { resize: vertical; }
.search-results { display: grid; gap: 4px; max-height: 52vh; overflow: auto; }
.result, .cart-line, .order-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.result:hover { background: var(--soft); }
.result img, .cart-line img { width: 51px; height: 51px; object-fit: cover; border-radius: 7px; }
.result b, .cart-line b { display: block; font-size: .91rem; }
.result small, .cart-line small, .hint { color: var(--muted); font-size: .85rem; }
.hint { margin-bottom: 9px; }
.quantity { display: flex; align-items: center; gap: 7px; margin-inline-start: auto; }
.quantity button { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 5px; }
.total { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; }
.wide { width: 100%; }
.center { text-align: center; }
#notice { position: fixed; inset: auto 50% 23px auto; transform: translateX(50%); max-width: 94vw; opacity: 0; pointer-events: none; z-index: 20; padding: 10px 16px; border-radius: 9px; background: var(--night); color: white; transition: opacity .18s; }
#notice.on { opacity: 1; }
.editing-site footer, .editing-site .navigation, .editing-site #site-search, .editing-site .cart-button { display: none; }
.editing-site .head { grid-template-columns: 1fr auto; }
.editing-site .head .brand { justify-self: start; }
.editing-site .head .actions { grid-column: 2; }
.editing-site header { border-bottom: 1px solid var(--line); }
.admin-page { padding-bottom: 34px; }
.admin-titlebar { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 19px; }
.admin-titlebar h1 { font-size: clamp(1.65rem,2.7vw,2.3rem); line-height: 1.32; }
.admin-back { display: inline-block; color: var(--accent); font-size: .9rem; margin-bottom: 6px; }
.admin-grid { display: grid; grid-template-columns: 215px minmax(0,1fr); gap: 16px; align-items: start; }
.admin-side { background: #2b1b29; border-radius: 13px; padding: 15px 10px; color: #f3e4ed; }
.admin-group + .admin-group { margin-top: 16px; border-top: 1px solid #543c4d; padding-top: 11px; }
.admin-group h2 { padding: 0 8px 6px; font-size: .83rem; color: #e5b2c8; }
.admin-group nav { display: grid; gap: 4px; }
.admin-group button {
  display: flex; align-items: center; gap: 8px; text-align: start;
  min-height: 39px; padding: 6px 9px; border-radius: 7px; font-size: .91rem;
}
.admin-group button:hover, .admin-group button.selected { background: #5d2d48; color: white; }
.admin-group button.selected { font-weight: 760; }
.admin-group button:focus-visible { outline-color: #ffacc6; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.admin-top h2 { font-size: clamp(1.15rem,2vw,1.45rem); }
#adminDraftNote { font-size: .85rem; margin: 3px 0 0; color: #9a2b40; }
.admin-form { min-width: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.admin-stat { background: #faf1f5; border: 1px solid #eddae5; border-radius: 10px; display: grid; justify-items: start; gap: 3px; padding: 13px; color: var(--accent); }
.admin-stat:hover { background: #f7e3ec; }
.admin-stat strong { font-size: 1.58rem; line-height: 1.2; }
.admin-stat span { color: var(--ink); font-size: .9rem; }
.admin-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.admin-list-tools { display: flex; justify-content: space-between; align-items: end; gap: 9px; margin-bottom: 11px; }
.admin-list-tools .field { width: min(350px,72%); margin: 0; }
.admin-empty { color: var(--muted); padding: 8px 0; }
.admin-form details { margin: 7px 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.admin-form details[open] { border-color: #d8aabd; }
.admin-form summary { cursor: pointer; font-weight: 680; }
.admin-form summary small { margin-inline-start: 8px; color: var(--muted); font-weight: 500; }
.admin-form details .danger { margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; margin-top: 10px; }
.span { grid-column: 1/-1; }
.danger, .error { color: #a42c33; }
.error { font-size: .92rem; }
.error:not(:empty) { margin: 7px 0 11px; }
.order-row { justify-content: space-between; align-items: flex-start; }
.order-row small { color: var(--muted); }
.login-panel, .account-panel { max-width: 470px; }
.account-panel h2 { font-size: 1.24rem; margin-bottom: 13px; }
#dialog[data-kind="account"] { width: min(435px,calc(100vw - 24px)); }
#dialog[data-kind="account"] #dialog-inner { padding: 21px clamp(15px,5vw,28px) 25px; }
#dialog[data-kind="account"] .dialog-head { margin-bottom: 10px; }
.account-greeting { margin-bottom: 14px; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: #f4f1f4; margin-bottom: 19px; }
.account-tabs :is(a,button) { display: block; border: 1px solid transparent; border-radius: 8px; padding: 6px 10px; text-align: center; font-size: .93rem; }
.account-tabs :is([aria-current],[aria-pressed="true"]) { color: var(--accent); border-color: var(--line); background: white; font-weight: 750; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.google-entry { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 13px; }
.account-google { gap: 9px; }
.google-mark { font: 800 1.15rem/1 Arial,sans-serif; color: #4285f4; }
.google-note { margin: 7px 0 0; }
.account-setup { display: inline-block; font-size: .85rem; margin-top: 13px; color: var(--accent); }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 40px); }
  .head { gap: 25px; }
  .hero { min-height: 345px; }
  .hero-copy { width: 60%; }
}
@media (max-width: 790px) {
  .wrap { width: calc(100% - 30px); }
  .head { gap: 16px; grid-template-columns: auto minmax(0,1fr) auto; min-height: 70px; }
  .brand-mark { width: 65px; }
  .account-button span { max-width: 100px; }
  .cart-label { display: none; }
  .actions { gap: 5px; }
  .hero { min-height: 312px; }
  .hero-copy { width: 65%; }
  .hero h1 { font-size: clamp(2rem,4.9vw,2.75rem); }
  .path-card { padding: 10px; gap: 6px; }
  .path-card > svg { display: none; }
  .path-card small { font-size: .75rem; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .article-grid, .service-grid { gap: 10px; }
  .service { display: block; padding: 12px; }
  .service .tile-icon { margin-bottom: 6px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-group nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-group + .admin-group { margin-top: 9px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 24px); }
  .head {
    grid-template-columns: auto 1fr auto;
    gap: 5px 10px; padding: 7px 0 11px;
  }
  .brand-mark { width: 59px; }
  .actions { grid-column: 3; }
  .account-button, .cart-button { min-height: 42px; }
  .site-search { grid-row: 2; grid-column: 1/-1; }
  .site-search input { padding-block: 7px; }
  .site-search button { flex-basis: 43px; }
  .nav { gap: 14px; min-height: 42px; overflow-x: auto; }
  .nav a { padding: 7px 1px; font-size: .84rem; }
  .nav .nav-offer { margin-inline-start: 0; }
  .home-page { padding-top: 13px; }
  .hero { min-height: 384px; align-items: end; border-radius: 14px; }
  .hero-bg, .hero-light .hero-bg { height: 60%; object-fit: cover; object-position: 16% center; }
  .hero-shade { background: linear-gradient(0deg,#f9edef 38%,#f9edefe6 48%,#f9edef27 67%,transparent 77%); }
  .hero-dark .hero-shade { background: linear-gradient(0deg,#201320 38%,#201320e6 50%,#20132027 74%,transparent 86%); }
  .hero-copy { width: 100%; padding: 162px 17px 56px; }
  .hero-tag { font-size: .79rem; }
  .hero h1 { font-size: clamp(1.69rem,7.9vw,2.23rem); margin: 5px 0 9px; }
  .hero p { font-size: .87rem; }
  .hero-links { margin-top: 12px; }
  .carousel-controls { bottom: 9px; }
  .account-button { padding-inline: 7px; gap: 4px; }
  .account-button span { max-width: 96px; font-size: .78rem; }
  .path-grid { grid-template-columns: 1fr; gap: 6px; }
  .path-card { min-height: 61px; padding: 8px 9px; gap: 8px; }
  .path-icon { width: 37px; height: 37px; }
  .path-card > svg { display: block; }
  .path-card small { margin-top: 2px; }
  .feature-toolbar { padding: 9px 10px; gap: 6px 10px; }
  .feature-toolbar h2 { font-size: 1.36rem; }
  .feature-filters { order: 1; width: 100%; gap: 2px; }
  .feature-filters button { font-size: .8rem; padding-inline: 6px; }
  .feature-grid { padding: 7px; }
  .feature-grid .product-grid { gap: 7px; }
  .tile-icon { width: 34px; height: 34px; border-radius: 8px; }
  .tile-icon svg { width: 20px; }
  .section { margin-top: 26px; }
  .section.featured { margin-top: 18px; }
  .section-head { margin-bottom: 11px; }
  .section-head h2 { font-size: 1.39rem; }
  .section-head .link-btn { font-size: .78rem; padding-inline: 7px; }
  .product-grid { gap: 8px; }
  .product, .article { border-radius: 10px; }
  .photo-area img { aspect-ratio: 1.18; }
  .product-content { padding: 9px; }
  .product-category { font-size: .72rem; }
  .product h3 { font-size: .91rem; }
  .price { font-size: 1rem; }
  .price small { font-size: .75rem; }
  .price-row { min-height: 55px; margin-bottom: 8px; }
  .add { font-size: .8rem; gap: 5px; padding-inline: 4px; }
  .product-tag { inset: 6px 6px auto auto; font-size: .72rem; }
  .article-grid, .service-grid, .detail, .form-grid { grid-template-columns: 1fr; }
  .detail { gap: 14px; }
  .socialbox { padding: 13px; }
  .footer-benefits ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 7px; padding: 14px 0; }
  .footer-benefits li { gap: 5px; }
  .benefit-icon { width: 33px; height: 33px; }
  .benefit-icon svg { width: 19px; height: 19px; }
  .footer-benefits strong { font-size: .8rem; }
  .footer-benefits small { font-size: .7rem; }
  .footer-apps { flex-direction: column; align-items: stretch; padding: 10px; }
  .app-options { gap: 5px; }
  .app-option { padding-inline: 7px; gap: 5px; font-size: .79rem; }
  .app-option svg { width: 18px; height: 18px; }
  .footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 14px; row-gap: 11px; padding: 20px 0 12px; }
  .footer-column h2 { font-size: .98rem; }
  .footer-column > a, .footer-column > button { font-size: .84rem; }
  .footer-credit img { max-width: 104px; max-height: 34px; }
  .page { padding-top: 17px; }
  .order-row { display: block; }
  .admin-list-tools .subtle, .admin-titlebar .outline { font-size: .82rem; }
  .admin-form { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
