:root {
  --ink: #202124;
  --muted: #74767b;
  --line: #e5e7eb;
  --soft: #f5f7fb;
  --paper: #ffffff;
  --accent: #0f766e;
  --accent-2: #134e4a;
  --sale: #dc3545;
  --warn: #b7791f;
  --green: #168a45;
  --shadow: 0 12px 30px rgba(23, 31, 42, .08);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Manrope, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.section,
.detail-tabs,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px clamp(16px, 5vw, 58px);
  color: #6b7280;
  background: #f1f5f9;
  font-size: 12px;
}
.topline div { display: flex; gap: 18px; flex-wrap: wrap; }
.topline a:hover { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(180px, 1fr) minmax(170px, auto);
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  padding: 14px clamp(16px, 5vw, 58px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.search-shell {
  display: grid;
  grid-template-columns: 1fr 54px;
  height: 38px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 999px;
  background: #f8fafc;
  overflow: hidden;
}
.search-shell:focus-within {
  border-color: rgba(15, 118, 110, .42);
  background: white;
  box-shadow: 0 5px 16px rgba(15, 118, 110, .06);
}
.search-shell input {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
}
.search-shell button {
  color: white;
  background: var(--accent);
  border: 0;
  font-size: 13px;
  font-weight: 700;
}
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(8px, 1.5vw, 16px); }
.header-actions a {
  display: grid;
  gap: 2px;
  min-width: clamp(52px, 7vw, 72px);
  color: var(--muted);
  font-size: 12px;
}
.header-actions strong { color: var(--ink); font-size: 13px; }
.cart-link strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: white;
  background: var(--accent);
  border-radius: 50%;
  font-size: 12px;
}

.category-rail {
  position: sticky;
  top: 77px;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 32px);
  padding: 8px 16px;
  background: white;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  white-space: nowrap;
}
.category-rail a, .category-rail button {
  flex: 0 1 auto;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.category-rail a:hover, .category-rail button:hover { color: var(--accent); }

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 28px;
  background: linear-gradient(135deg, #e6fffb 0%, #fff 52%, #eef2ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-copy { display: grid; align-content: center; gap: 14px; }
.hero-copy span, .catalog-head span, .section-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
.hero-copy h1 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.02;
}
.hero-copy p { max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.hero-showcase a {
  display: grid;
  align-content: end;
  min-height: 170px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-showcase a:first-child { grid-row: span 2; }
.hero-showcase img { width: 100%; height: 230px; object-fit: cover; }
.hero-showcase a:first-child img { height: 420px; }
.hero-showcase strong, .hero-showcase span { padding: 0 12px; }
.hero-showcase strong { margin-top: 10px; line-height: 1.35; }
.hero-showcase span { padding-bottom: 12px; color: var(--accent); font-weight: 800; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), #0e8f80);
  box-shadow: 0 8px 18px rgba(15, 118, 110, .16);
}
.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.28) 45%, transparent 62%);
  transform: translateX(-130%);
  animation: buttonSheen 4.2s ease-in-out infinite;
}
.primary:hover {
  background: linear-gradient(135deg, #0e8177, #0aa08d);
  box-shadow: 0 10px 22px rgba(15, 118, 110, .22);
}
.primary > *, .primary {
  isolation: isolate;
}
.ghost { color: var(--accent-2); background: white; border-color: var(--line); }
.full { width: 100%; }
.text-btn { padding: 0; color: #b42318; background: transparent; border: 0; font-weight: 800; }

.deal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
}
.deal-strip div {
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.deal-strip strong { display: block; color: var(--accent-2); }
.deal-strip span { color: var(--muted); font-size: 13px; }

.catalog-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  align-items: start;
}
.follow-strip {
  display: flex;
  justify-content: flex-end;
  width: min(1180px, calc(100% - 32px));
  margin: 10px auto -6px;
}
.catalog-sidebar {
  position: sticky;
  top: 128px;
  display: grid;
  gap: 2px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.catalog-sidebar strong { margin-bottom: 8px; }
.catalog-sidebar button {
  min-height: 34px;
  padding: 0 10px;
  text-align: left;
  background: white;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.catalog-sidebar button:hover, .catalog-sidebar button.active {
  color: var(--accent);
  background: #ecfdf5;
  border-color: #bbf7d0;
}
.catalog-main {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.instagram-pulse {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  max-width: 100%;
  padding: 5px 9px;
  overflow: hidden;
  color: #0f3f3b;
  background: rgba(240, 253, 250, .72);
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(15, 118, 110, .045);
  transform: translateZ(0);
}
.instagram-pulse::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.5) 46%, transparent 62%);
  transform: translateX(-120%);
  animation: instaShine 8s ease-in-out infinite;
}
.instagram-pulse::after {
  display: none;
}
.instagram-pulse img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 50%;
}
.instagram-pulse span {
  display: block;
  color: #35615d;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.instagram-pulse strong {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.instagram-pulse span::after {
  content: " ";
}
@keyframes instaShine {
  0%, 42% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}
@keyframes instaBreath {
  0%, 100% { opacity: .38; transform: scale(.992); }
  50% { opacity: .72; transform: scale(1); }
}
@keyframes buttonSheen {
  0%, 48% { transform: translateX(-130%); }
  72%, 100% { transform: translateX(130%); }
}
.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.catalog-head h2, .section-head h2 { margin: 4px 0 0; font-size: clamp(22px, 3vw, 30px); }
.catalog-head small { color: var(--muted); font-weight: 800; white-space: nowrap; }
.quick-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.quick-filters button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--accent-2);
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.catalog-main .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.product-card:hover {
  border-color: rgba(15, 118, 110, .35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.product-card.is-hidden { display: none; }
.product-media { position: relative; display: block; overflow: hidden; background: #f8fafc; }
.product-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .25s ease;
}
.product-card:hover img { transform: scale(1.03); }
.discount-badge, .cargo-badge {
  position: absolute;
  left: 8px;
  padding: 5px 8px;
  color: white;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}
.discount-badge { top: 8px; background: var(--sale); }
.cargo-badge { bottom: 8px; background: rgba(19, 78, 74, .92); }
.product-body { display: grid; gap: 7px; padding: 10px; }
.seller-line { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.seller-line b, .seller-score, .store-box b { color: white; background: var(--green); border-radius: 4px; padding: 2px 6px; }
.product-body h3 { min-height: 38px; margin: 0; font-size: 13px; line-height: 1.35; }
.product-body p { margin: 0; color: var(--muted); font-size: 12px; }
.rating-row { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.rating-row span { color: #f59e0b; letter-spacing: 0; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-row strong { color: var(--accent); font-size: 18px; }
.price-row del { color: #9ca3af; font-size: 13px; text-decoration-thickness: 2px; }

.section, .cart-page, .product-page, .detail-tabs, .checkout, .breadcrumb, .success, .admin {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}
.section { padding: 42px 0; }
.soft {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - 1180px) / 2));
  background: #eef6f8;
}
.section-head { margin-bottom: 18px; }
.review-grid, .value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review-grid blockquote, .faq details {
  margin: 0;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review-grid strong { color: var(--green); font-size: 24px; }
.review-grid p, .faq p, .note { color: var(--muted); line-height: 1.6; }
.review-grid cite { font-style: normal; font-weight: 800; }
.faq details { margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 800; }

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}
.product-page {
  display: flex;
  gap: 18px;
  align-items: start;
}

.product-page > .gallery {
  flex: 0 0 min(500px, 42%);
}

.product-page > .product-info {
  flex: 1 1 0;
  min-width: 0;
}
.gallery, .product-info, .detail-tabs, .seller-card, .cart-summary, .address-card, .payment-box, .checkout-summary, .empty-cart {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(23, 31, 42, .04);
}
.gallery {
  padding: 12px;
  overflow: hidden;
}
.main-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: default;
  transform: none !important;
}
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; overflow: hidden; background: white; border: 2px solid var(--line); border-radius: 6px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-info { display: grid; gap: 14px; padding: 18px; }
.product-titleline { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 800; }
.product-titleline button { width: 38px; height: 38px; background: white; border: 1px solid var(--line); border-radius: 50%; font-size: 22px; }
.product-info h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); line-height: 1.1; }
.product-info > p { color: var(--muted); line-height: 1.6; }
.product-rating a { color: var(--accent); font-weight: 800; }
.store-box {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.store-box span { display: block; color: var(--muted); font-size: 12px; }
.store-box a { color: var(--accent); font-weight: 800; }
.large strong { font-size: 30px; }
.discount-chip { padding: 5px 8px; color: var(--sale); background: #fff1f2; border-radius: 5px; font-weight: 800; }
.market-meta, .assurance-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.market-meta span, .assurance-list span {
  padding: 10px;
  color: var(--accent-2);
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.buy-box { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
label { display: grid; gap: 7px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
textarea { min-height: 96px; resize: vertical; }
.measure-guide-button.prominent { color: white; background: var(--accent-2); border-color: var(--accent-2); }
.detail-tabs { display: grid; gap: 8px; margin-top: 18px; padding: 14px; }
.detail-tabs details { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.detail-tabs summary { cursor: pointer; font-weight: 800; }
.review-list { display: grid; gap: 10px; margin-top: 12px; }
.review-list article { padding: 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius); }
.review-list div { display: flex; justify-content: space-between; gap: 8px; }
.review-list span { color: #f59e0b; }
.review-list p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }

.measure-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; }
.measure-modal[hidden] { display: none; }
.measure-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .7); border: 0; }
.measure-modal-panel { position: relative; z-index: 1; width: min(980px, 100%); max-height: 86vh; overflow: auto; background: white; border-radius: var(--radius); }
.measure-modal-close { position: sticky; top: 10px; float: right; z-index: 2; width: 38px; height: 38px; margin: 10px 10px -48px 0; color: white; background: rgba(15, 23, 42, .85); border: 0; border-radius: 50%; font-size: 22px; }

.cart-page { padding: 26px 0 70px; }
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.checkout-steps span {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}
.checkout-steps .active { color: white; background: var(--accent); border-color: var(--accent); }
.cart-layout, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.cart-main h1 { margin: 0 0 14px; font-size: 26px; }
.cart-login-note { padding: 12px 14px; margin-bottom: 10px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); }
.cart-login-note p { margin: 0; color: #854d0e; }
.seller-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.seller-head label { display: flex; align-items: center; gap: 8px; }
.seller-head input, .item-check input, .check input { width: auto; min-height: auto; accent-color: var(--accent); }
.shipping-progress {
  padding: 10px 14px;
  color: #854d0e;
  background: #fffbeb;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: 13px;
}
.cart-product {
  display: grid;
  grid-template-columns: 24px 86px minmax(0, 1fr) 86px 112px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.cart-product img { width: 76px; height: 100px; object-fit: cover; border-radius: var(--radius); }
.cart-product-info { display: grid; gap: 5px; }
.cart-product-info span { color: var(--muted); font-size: 12px; }
.cart-product-info small { color: var(--green); font-weight: 700; }
.qty-control span { color: var(--muted); font-size: 12px; }
.qty-control input { min-height: 38px; text-align: center; }
.line-total { justify-self: end; color: var(--accent); font-size: 17px; }
.update-cart-btn { width: calc(100% - 28px); margin: 0 14px 14px; }
.summary { display: grid; gap: 12px; padding: 16px; }
.sticky { position: sticky; top: 132px; }
.summary h2 { margin: 0 0 4px; font-size: 20px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary .saving { padding: 8px 10px; color: var(--green); background: #ecfdf5; border-radius: 6px; }
.summary .total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 17px; }
.summary .total strong { color: var(--accent); font-size: 20px; }
.summary small { color: var(--muted); line-height: 1.45; }
.coupon-btn { min-height: 34px; color: var(--accent-2); background: white; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
.empty-cart { display: grid; justify-items: center; gap: 12px; padding: 34px; text-align: center; }
.empty-cart img { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; }

.checkout { padding: 26px 0 70px; }
.checkout-main { display: grid; gap: 14px; }
.checkout-form { display: grid; gap: 14px; }
.address-card, .payment-box { display: grid; gap: 14px; padding: 18px; }
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-head h1, .form-head h2 { margin: 0; font-size: 22px; }
.form-head span { color: var(--accent); font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wide { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; }
.payment-box { background: white; }
.payment-box p { margin: 0; }

.footer {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 28px;
  padding: 42px clamp(16px, 5vw, 58px) 78px;
  color: white;
  background: #0f172a;
}
.footer img { width: 70px; height: 70px; object-fit: cover; border-radius: 50%; }
.footer div { display: grid; gap: 8px; align-content: start; }
.footer p, .footer a { color: rgba(255, 255, 255, .72); }
.footer span, .footer strong { font-weight: 800; }
.mobile-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mobile-nav a { display: grid; place-items: center; min-height: 40px; font-size: 13px; font-weight: 700; }
.toast {
  position: fixed;
  right: 16px;
  top: 96px;
  z-index: 60;
  padding: 12px 16px;
  color: white;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin, .success { padding: 34px 0 80px; }
.admin-login { display: grid; place-items: center; min-height: 66vh; padding: 42px 16px; }
.login-panel, .admin-form, .admin-list, .orders {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.login-panel { width: min(420px, 100%); }
.login-panel img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; }
.admin-top, .admin-grid, .admin-stats { display: grid; gap: 18px; }
.admin-grid { grid-template-columns: 430px 1fr; align-items: start; }
.admin-stats { grid-template-columns: repeat(3, 1fr); }
.admin-stats div { padding: 14px; background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head, .row-actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.admin-list article, .orders article { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-list img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); }
.image-manager { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.image-manager img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.success { max-width: 760px; text-align: center; }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; color: white; background: var(--accent); border-radius: 50%; font-size: 30px; }

@media (min-width: 1240px) {
  .catalog-main .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .topline { display: none; }
  .site-header {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    top: 0;
  }
  .brand {
    min-width: 0;
  }
  .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .search-shell {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) 58px;
    height: 36px;
    border-radius: 10px;
  }
  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: end;
  }
  .header-actions a:not(.cart-link) {
    display: none;
  }
  .cart-link {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 36px;
    padding: 0 9px 0 11px;
    color: var(--accent-2) !important;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 999px;
  }
  .cart-link span {
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 800;
  }
  .cart-link strong {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .category-rail { top: 0; justify-content: start; }
  .market-hero, .catalog-shell, .product-page, .cart-layout, .checkout {
    grid-template-columns: 1fr;
  }
  .hero-showcase { grid-template-columns: repeat(3, 1fr); }
  .hero-showcase a:first-child { grid-row: auto; }
  .hero-showcase img, .hero-showcase a:first-child img { height: 180px; }
  .catalog-sidebar { display: none; }
  .product-grid, .catalog-main .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sticky { position: static; }
  .footer { grid-template-columns: 1fr; }
  .admin-grid, .admin-stats { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .brand strong { font-size: 13px; }
  .search-shell input {
    min-width: 0;
    padding-inline: 12px 8px;
    font-size: 13px;
  }
  .search-shell button {
    min-width: 58px;
    font-size: 12px;
    border-radius: 0 9px 9px 0;
  }
  .category-rail { font-size: 13px; }
  .market-hero { padding: 18px; }
  .market-hero, .deal-strip { display: none; }
  .hero-copy h1 { font-size: 30px; }
  .hero-showcase { display: none; }
  .hero-showcase, .deal-strip, .review-grid, .market-meta, .assurance-list, .form-grid, .checkout-steps {
    grid-template-columns: 1fr;
  }
  .product-grid, .catalog-main .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-main { padding: 10px; }
  .catalog-head, .quick-filters { display: none; }
  .follow-strip {
    justify-content: center;
    margin: 8px auto -6px;
  }
  .instagram-pulse {
    gap: 5px;
    min-height: 30px;
    padding: 4px 7px;
  }
  .instagram-pulse img {
    width: 20px;
    height: 20px;
  }
  .instagram-pulse strong {
    font-size: 10px;
  }
  .instagram-pulse span {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
}

@media (max-width: 360px) {
  .instagram-pulse span {
    font-size: 9px;
  }
  .instagram-pulse strong {
    font-size: 9px;
    line-height: 1.2;
  }
  .quick-filters { gap: 6px; margin-bottom: 10px; }
  .quick-filters button { min-height: 28px; padding: 0 9px; }
  .catalog-head { align-items: start; }
  .catalog-head small { white-space: normal; }
  .product-body { padding: 9px; }
  .product-body h3 { font-size: 12px; min-height: 34px; }
  .product-body .btn { min-height: 40px; font-size: 12px; }
  .product-info {
    gap: 7px;
    padding: 8px;
    box-shadow: none;
  }
  .product-titleline { font-size: 12px; }
  .product-titleline button {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .product-info h1 { font-size: 22px; }
  .product-info > p {
    display: -webkit-box;
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .store-box {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 7px;
    box-shadow: none;
  }
  .store-box span { font-size: 10px; }
  .store-box strong { font-size: 12px; }
  .store-box b {
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 5px;
  }
  .store-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 8px;
    color: var(--accent-2);
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }
  .large {
    align-items: center;
    gap: 6px;
    padding: 0;
  }
  .large strong { font-size: 22px; }
  .large del { font-size: 12px; }
  .discount-chip {
    padding: 3px 6px;
    font-size: 10px;
    border-radius: 999px;
  }
  .market-meta, .assurance-list {
    gap: 5px;
  }
  .market-meta span, .assurance-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 6px;
    font-size: 9px;
    font-weight: 650;
    border-radius: 7px;
  }
  .market-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .assurance-list {
    grid-template-columns: 1fr;
  }
  .assurance-list span {
    min-height: 23px;
    background: #f8fafc;
    border-color: var(--line);
    color: #475569;
  }
  .measure-guide-button.prominent {
    min-height: 30px;
    height: 30px;
    padding-inline: 10px;
    font-size: 10px;
    border-radius: 6px;
  }
  .buy-box {
    grid-template-columns: 58px minmax(96px, 124px);
    gap: 6px;
    align-items: end;
    justify-content: start;
  }
  .buy-box label {
    gap: 3px;
    font-size: 10px;
  }
  .buy-box input {
    min-height: 30px;
    padding: 4px 6px;
    font-size: 11px;
    text-align: center;
    border-radius: 7px;
  }
  .buy-box .btn {
    width: 100%;
    min-height: 30px;
    height: 30px;
    padding-inline: 10px;
    border-radius: 6px;
    font-size: 10px;
  }
  .cart-product {
    grid-template-columns: 22px 70px 1fr;
    align-items: start;
    padding: 12px 10px;
  }
  .cart-product img { width: 64px; height: 82px; }
  .qty-control { grid-column: 2 / 3; }
  .line-total { grid-column: 3 / 4; justify-self: end; }
  .mobile-nav { display: grid; }
}

@media (max-width: 920px) {
  .product-info {
    gap: 11px;
    padding: 12px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
  }
  .store-box {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border-color: #e8edf2;
    border-radius: 8px;
    box-shadow: none;
  }
  .store-box span { font-size: 11px; }
  .store-box strong {
    display: block;
    margin-top: 1px;
    font-size: 13px;
    line-height: 1.15;
  }
  .store-box b {
    align-self: start;
    padding: 3px 7px;
    font-size: 11px;
    border-radius: 5px;
  }
  .store-box a {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    color: var(--accent-2);
    background: white;
    border: 1px solid #d5e7e5;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
  }
  .large {
    align-items: center;
    gap: 8px;
    padding: 2px 0;
  }
  .large strong {
    color: var(--accent);
    font-size: 28px;
    line-height: 1;
  }
  .large del {
    color: #9ca3af;
    font-size: 13px;
  }
  .discount-chip {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 999px;
  }
  .market-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .assurance-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .market-meta span, .assurance-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 9px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
  }
  .assurance-list span {
    justify-content: flex-start;
    min-height: 30px;
    background: #f8fafc;
    border-color: var(--line);
    color: #475569;
    text-align: left;
  }
  .measure-guide-button.prominent {
    min-height: 38px;
    height: 38px;
    padding-inline: 12px;
    color: var(--accent-2);
    background: #ecfdf5;
    border-color: #bbf7d0;
    font-size: 12px;
    border-radius: 8px;
    box-shadow: none;
  }
  .buy-box {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    align-items: end;
    justify-content: stretch;
    padding-top: 2px;
  }
  .buy-box label {
    gap: 5px;
    color: #334155;
    font-size: 11px;
  }
  .buy-box input {
    min-height: 38px;
    padding: 6px 8px;
    font-size: 13px;
    text-align: center;
    border-radius: 8px;
  }
  .buy-box .btn {
    width: 100%;
    min-height: 38px;
    height: 38px;
    padding-inline: 12px;
    border-radius: 8px;
    font-size: 12px;
    letter-spacing: 0;
  }
}

/* Trendyol-style commerce density: proportions, spacing and responsive rhythm. */
body {
  background: #f5f5f5;
}

.topline {
  justify-content: center;
  padding: 6px 16px;
}

.topline > div,
.topline > span,
.site-header,
.category-rail {
  max-width: 1200px;
}

.topline > div {
  width: 100%;
}

.site-header {
  grid-template-columns: 210px minmax(360px, 1fr) 278px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 12px;
  border-bottom: 0;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.search-shell {
  grid-template-columns: 1fr 50px;
  height: 40px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #f3f3f3;
}

.search-shell:focus-within {
  border-color: var(--accent);
  box-shadow: none;
}

.search-shell input {
  padding: 0 16px;
  font-size: 13px;
}

.search-shell button {
  color: var(--accent);
  background: transparent;
  font-size: 0;
}

.search-shell button::before {
  content: "Ara";
  font-size: 13px;
  font-weight: 800;
}

.header-actions {
  gap: 18px;
}

.header-actions a {
  min-width: 70px;
  font-size: 12px;
}

.header-actions a:hover strong,
.header-actions a:hover span {
  color: var(--accent);
}

.cart-link strong {
  display: inline;
  width: auto;
  height: auto;
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  font-size: 13px;
}

.category-rail {
  top: 72px;
  width: 100%;
  margin: 0 auto;
  gap: 0;
  min-height: 35px;
  padding: 0 16px;
  border-top: 0;
}

.category-rail a,
.category-rail button {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 0 13px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 700;
}

.category-rail a:hover,
.category-rail button:hover {
  border-bottom-color: var(--accent);
}

.follow-strip,
.catalog-shell,
.cart-page,
.product-page,
.detail-tabs,
.checkout,
.breadcrumb,
.success,
.admin {
  width: min(1200px, calc(100% - 32px));
}

.section {
  width: min(1200px, calc(100% - 32px));
}

.section.soft {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 42px 0;
}

.section.soft > .section-head,
.section.soft > .product-grid {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.catalog-shell {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.catalog-sidebar,
.catalog-main,
.review-grid blockquote,
.faq details,
.gallery,
.product-info,
.detail-tabs,
.seller-card,
.cart-summary,
.address-card,
.payment-box,
.checkout-summary,
.empty-cart {
  border-radius: 6px;
  box-shadow: none;
}

.catalog-sidebar {
  top: 122px;
  padding: 10px;
}

.catalog-sidebar button {
  min-height: 32px;
  border-radius: 4px;
}

.catalog-main {
  padding: 0;
  border: 0;
  background: transparent;
}

.catalog-head {
  min-height: 42px;
  margin: 0 0 10px;
  padding: 0 2px;
}

.catalog-main > .catalog-head,
.catalog-main > .quick-filters {
  display: none;
}

.catalog-head h2,
.section-head h2 {
  font-size: 22px;
}

.quick-filters {
  margin-bottom: 12px;
}

.quick-filters button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 15px;
}

.catalog-main .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.section:not(.soft) > .product-grid,
.section.soft > .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  border-color: #e6e6e6;
  border-radius: 6px;
  min-width: 0;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(32, 33, 36, .10);
  transform: none;
}

.product-media img {
  aspect-ratio: 3 / 4;
}

.discount-badge,
.cargo-badge {
  left: 6px;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.discount-badge {
  top: 6px;
}

.cargo-badge {
  bottom: 6px;
}

.product-body {
  gap: 5px;
  min-height: 178px;
  padding: 8px;
  min-width: 0;
}

.seller-line {
  font-size: 11px;
}

.product-body h3 {
  min-height: 36px;
  font-size: 12px;
  overflow: hidden;
}

.product-body p,
.rating-row,
.price-row del {
  font-size: 11px;
}

.price-row strong {
  font-size: 17px;
}

.product-body form {
  margin-top: auto;
}

.btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  box-shadow: none;
}

.primary {
  background: var(--accent);
  box-shadow: none;
}

.primary::after {
  content: none;
}

.primary:hover {
  background: var(--accent-2);
  box-shadow: none;
}

.product-body .btn {
  min-height: 32px;
  height: 32px;
  font-size: 12px;
  font-weight: 800;
}

.breadcrumb {
  margin-top: 14px;
  margin-bottom: 12px;
}

.product-page {
  gap: 16px;
}

.product-info {
  gap: 12px;
  padding: 18px;
}

.product-info h1 {
  font-size: 22px;
  line-height: 1.25;
}

.large strong {
  font-size: 32px;
}

.buy-box {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
}

.buy-box .btn {
  min-height: 48px;
  height: 48px;
  font-size: 18px;
  font-weight: 800;
}

.buy-box input {
  min-height: 48px;
  border-radius: 6px;
}

.measure-guide-button.prominent {
  min-height: 40px;
  border-radius: 6px;
}

.market-meta span,
.assurance-list span {
  border-radius: 6px;
}

.cart-layout,
.checkout {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
}

.summary .btn.primary,
.checkout-form > .btn.primary {
  min-height: 44px;
  font-size: 15px;
}

@media (min-width: 1240px) {
  .catalog-main .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    padding: 10px 12px 8px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 14px;
  }

  .search-shell {
    height: 38px;
    border-radius: 6px;
  }

  .cart-link {
    min-height: 34px;
    border-radius: 6px;
  }

  .category-rail {
    top: 92px;
    justify-content: start;
    min-height: 36px;
    padding: 0 8px;
  }

  .category-rail a,
  .category-rail button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .follow-strip,
  .catalog-shell,
  .cart-page,
  .product-page,
  .detail-tabs,
  .checkout,
  .breadcrumb {
    width: min(100%, calc(100% - 16px));
  }

  .section {
    width: min(100%, calc(100% - 16px));
  }

  .section.soft {
    width: 100%;
    padding-inline: 0;
  }

  .section.soft > .section-head,
  .section.soft > .product-grid {
    width: min(100%, calc(100% - 16px));
  }

  .catalog-shell {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .cart-layout,
  .checkout {
    grid-template-columns: 1fr;
  }

  .catalog-main .product-grid,
  .section:not(.soft) > .product-grid,
  .section.soft > .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-page {
    flex-direction: column;
    gap: 10px;
  }

  .product-page > .gallery,
  .product-page > .product-info {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 84px;
  }

  .catalog-main .product-grid,
  .section:not(.soft) > .product-grid,
  .section.soft > .product-grid {
    grid-template-columns: repeat(2, minmax(0, calc((100vw - 24px) / 2)));
    gap: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    overflow: hidden;
  }

  .product-card,
  .product-media,
  .product-body {
    width: 100%;
    max-width: 100%;
  }

  .product-body {
    min-height: 164px;
    padding: 7px;
  }

  .product-body h3 {
    min-height: 34px;
    font-size: 11px;
  }

  .product-body .btn {
    min-height: 30px;
    height: 30px;
    border-radius: 5px;
    font-size: 11px;
  }

  .section {
    padding: 28px 0;
  }

  .gallery,
  .product-info {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .product-page,
  .breadcrumb,
  .detail-tabs {
    width: 100%;
  }

  .breadcrumb {
    padding-inline: 10px;
  }

  .product-info h1 {
    font-size: 19px;
  }

  .buy-box {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 14px rgba(32, 33, 36, .10);
  }

  .buy-box label {
    font-size: 10px;
  }

  .buy-box input,
  .buy-box .btn {
    min-height: 42px;
    height: 42px;
    border-radius: 6px;
  }

  .buy-box .btn {
    font-size: 15px;
  }

  .mobile-nav {
    display: none;
  }

  .cart-layout,
  .checkout {
    width: min(100%, calc(100% - 16px));
  }

  .cart-product {
    grid-template-columns: 20px 72px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .cart-product img {
    width: 66px;
    height: 88px;
    border-radius: 5px;
  }

  .qty-control input {
    min-height: 34px;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-inline: 8px;
  }

  .product-body {
    min-height: 158px;
  }

  .product-body .btn {
    min-height: 28px;
    height: 28px;
  }

  .buy-box {
    grid-template-columns: 62px minmax(0, 1fr);
  }
}

.easy-buy-panel {
  gap: 14px;
}

.easy-buy-panel .product-titleline {
  align-items: center;
}

.easy-buy-panel .product-titleline span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--accent-2);
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-size: 12px;
}

.easy-buy-panel h1 {
  max-width: 720px;
  font-size: 25px;
  line-height: 1.25;
}

.simple-description {
  margin-bottom: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
}

.easy-price-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #f8fffd;
  border: 1px solid #b9ece3;
  border-radius: 8px;
}

.easy-step,
.easy-buy-box button span,
.easy-buy-box label b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: white;
  background: var(--accent);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.easy-price-card small {
  display: block;
  margin-bottom: 4px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.easy-price-card .price-row strong {
  font-size: 36px;
}

.easy-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.easy-benefits span,
.easy-benefits a {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 10px;
  color: var(--accent-2);
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.easy-buy-box {
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: white;
  border: 2px solid #d8f3ee;
  border-radius: 10px;
}

.easy-buy-box label {
  gap: 8px;
  color: #111827;
  font-size: 14px;
}

.easy-buy-box label span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.easy-buy-box input {
  height: 54px;
  min-height: 54px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.easy-buy-box .btn {
  align-self: end;
  gap: 10px;
  height: 54px;
  min-height: 54px;
  border-radius: 8px;
  font-size: 20px;
}

.easy-help-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.easy-help-actions .measure-guide-button,
.easy-help-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.easy-help-actions .measure-guide-button {
  color: var(--accent-2);
  background: #f0fdfa;
  border-color: #b9ece3;
}

.easy-help-actions a {
  color: var(--accent-2);
  background: white;
  border: 1px solid #d1d5db;
}

.easy-trust-list {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.easy-trust-list span {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 920px) {
  .easy-buy-panel h1 {
    font-size: 22px;
  }

  .easy-buy-box {
    position: static;
    grid-template-columns: 1fr;
    box-shadow: none;
  }

  .easy-buy-box .btn,
  .easy-buy-box input {
    height: 48px;
    min-height: 48px;
  }
}

@media (max-width: 640px) {
  .easy-buy-panel {
    gap: 10px;
    padding: 12px;
  }

  .easy-buy-panel h1 {
    font-size: 20px;
    line-height: 1.2;
  }

  .simple-description {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .easy-price-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .easy-price-card .price-row strong {
    font-size: 26px;
  }

  .easy-price-card small {
    font-size: 12px;
  }

  .easy-step,
  .easy-buy-box label b {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .easy-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .easy-benefits span,
  .easy-benefits a {
    min-height: 34px;
    padding: 0 6px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.15;
  }

  .easy-help-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .easy-help-actions .measure-guide-button,
  .easy-help-actions a {
    min-height: 38px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.15;
  }

  .easy-trust-list {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px;
  }

  .easy-trust-list span {
    font-size: 11px;
    line-height: 1.25;
  }

  .easy-trust-list span:first-child {
    grid-column: 1 / -1;
  }

  .easy-buy-box {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: end;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 0 -4px 14px rgba(32, 33, 36, .10);
  }

  .easy-buy-box label {
    gap: 4px;
    font-size: 11px;
  }

  .easy-buy-box label span {
    gap: 5px;
    line-height: 1.05;
  }

  .easy-buy-box label b {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .easy-buy-box input {
    height: 42px;
    min-height: 42px;
    font-size: 18px;
  }

.easy-buy-box .btn {
    height: 42px;
    min-height: 42px;
    font-size: 18px;
  }
}

/* Compact polish pass: smaller controls without losing clarity. */
body {
  font-size: 13px;
}

.site-header {
  grid-template-columns: 190px minmax(320px, 1fr) 250px;
  padding: 12px 0 9px;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand strong {
  font-size: 16px;
}

.search-shell {
  height: 36px;
}

.header-actions {
  gap: 14px;
}

.header-actions a,
.header-actions strong {
  font-size: 12px;
}

.category-rail {
  top: 59px;
  min-height: 32px;
}

.category-rail a,
.category-rail button {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12px;
}

.breadcrumb {
  font-size: 12px;
}

.product-page {
  gap: 14px;
}

.gallery,
.product-info,
.detail-tabs,
.cart-summary,
.seller-card,
.address-card,
.payment-box,
.checkout-summary {
  border-radius: 6px;
}

.product-info {
  padding: 14px;
}

.easy-buy-panel {
  gap: 10px;
}

.easy-buy-panel .product-titleline span {
  min-height: 24px;
  padding: 0 9px;
  font-size: 11px;
}

.product-titleline button {
  width: 34px;
  height: 34px;
  font-size: 19px;
}

.easy-buy-panel h1 {
  font-size: 22px;
}

.product-rating,
.simple-description {
  font-size: 13px;
}

.easy-price-card {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
}

.easy-step,
.easy-buy-box label b {
  width: 25px;
  height: 25px;
  font-size: 12px;
}

.easy-price-card small {
  font-size: 12px;
}

.easy-price-card .price-row strong,
.large strong {
  font-size: 30px;
}

.discount-chip {
  padding: 4px 7px;
  font-size: 12px;
}

.easy-benefits,
.easy-help-actions {
  gap: 7px;
}

.easy-benefits span,
.easy-benefits a {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12px;
}

.easy-buy-box {
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border-width: 1px;
  border-radius: 8px;
}

.easy-buy-box label {
  gap: 6px;
  font-size: 12px;
}

.easy-buy-box input,
.easy-buy-box .btn {
  height: 46px;
  min-height: 46px;
  border-radius: 7px;
}

.easy-buy-box input {
  font-size: 18px;
}

.easy-buy-box .btn {
  font-size: 18px;
}

.easy-help-actions .measure-guide-button,
.easy-help-actions a {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
}

.easy-trust-list {
  gap: 5px;
  padding: 9px 10px;
  border-radius: 7px;
}

.easy-trust-list span {
  font-size: 12px;
}

.product-body .btn {
  min-height: 29px;
  height: 29px;
}

@media (max-width: 920px) {
  .site-header {
    padding: 8px 10px 7px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .search-shell {
    height: 34px;
  }

  .category-rail {
    top: 81px;
    min-height: 32px;
  }

  .category-rail a,
  .category-rail button {
    min-height: 32px;
    padding: 0 9px;
    font-size: 11px;
  }

  .product-info {
    padding: 10px;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 64px;
  }

  .easy-buy-panel {
    gap: 8px;
  }

  .easy-buy-panel h1 {
    font-size: 18px;
  }

  .easy-price-card .price-row strong,
  .large strong {
    font-size: 24px;
  }

  .easy-benefits span,
  .easy-benefits a {
    min-height: 30px;
    font-size: 10px;
  }

  .easy-help-actions .measure-guide-button,
  .easy-help-actions a {
    min-height: 34px;
    font-size: 10px;
  }

  .easy-buy-box {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 7px;
    padding: 6px 9px calc(6px + env(safe-area-inset-bottom));
  }

  .easy-buy-box label {
    font-size: 10px;
  }

  .easy-buy-box label b {
    width: 19px;
    height: 19px;
    font-size: 10px;
  }

  .easy-buy-box input,
  .easy-buy-box .btn {
    height: 38px;
    min-height: 38px;
  }

  .easy-buy-box input {
    font-size: 16px;
  }

  .easy-buy-box .btn {
    font-size: 16px;
  }
}

/* Minimalist v10: quieter spacing and smaller controls. */
:root {
  --radius: 6px;
}

.topline {
  min-height: 26px;
  padding-block: 4px;
  font-size: 11px;
}

.topline > div,
.topline > span,
.site-header,
.category-rail {
  max-width: 1120px;
}

.site-header {
  grid-template-columns: 174px minmax(300px, 1fr) 224px;
  width: min(1120px, calc(100% - 28px));
  padding: 9px 0 7px;
}

.brand {
  gap: 8px;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand strong {
  font-size: 15px;
  line-height: 1.05;
}

.search-shell {
  height: 32px;
  border-radius: 5px;
}

.search-shell input {
  padding-inline: 12px;
  font-size: 12px;
  height: 100%;
  line-height: 32px;
}

.search-shell button::before {
  font-size: 12px;
}

.header-actions {
  gap: 11px;
}

.header-actions a {
  min-width: 58px;
  font-size: 11px;
}

.header-actions strong {
  font-size: 11px;
}

.category-rail {
  top: 49px;
  min-height: 29px;
  padding-inline: 10px;
}

.category-rail a,
.category-rail button {
  min-height: 29px;
  padding-inline: 9px;
  font-size: 11px;
  font-weight: 700;
}

.follow-strip,
.catalog-shell,
.cart-page,
.product-page,
.detail-tabs,
.checkout,
.breadcrumb,
.success,
.admin,
.section,
.section.soft > .section-head,
.section.soft > .product-grid {
  width: min(1120px, calc(100% - 28px));
}

.breadcrumb {
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: 11px;
}

.catalog-shell {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
}

.catalog-sidebar {
  padding: 8px;
}

.catalog-sidebar button {
  min-height: 28px;
  padding-inline: 8px;
  font-size: 12px;
}

.catalog-main .product-grid,
.section:not(.soft) > .product-grid,
.section.soft > .product-grid {
  gap: 10px;
}

.product-body {
  min-height: 156px;
  padding: 7px;
}

.product-body h3 {
  min-height: 32px;
  font-size: 11px;
}

.product-body p,
.seller-line,
.rating-row,
.price-row del {
  font-size: 10px;
}

.price-row strong {
  font-size: 15px;
}

.product-body .btn {
  min-height: 27px;
  height: 27px;
  font-size: 10px;
}

.product-page {
  gap: 12px;
}

.product-page > .gallery {
  flex-basis: min(430px, 39%);
}

.gallery {
  padding: 10px;
}

.thumbs {
  gap: 6px;
  margin-top: 6px;
}

.thumbs button {
  border-width: 1px;
}

.product-info {
  padding: 12px;
}

.easy-buy-panel {
  gap: 8px;
}

.easy-buy-panel h1 {
  font-size: 20px;
}

.simple-description,
.product-rating {
  font-size: 12px;
}

.easy-price-card {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 10px;
}

.easy-step,
.easy-buy-box label b {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.easy-price-card small {
  font-size: 11px;
}

.easy-price-card .price-row strong,
.large strong {
  font-size: 26px;
}

.discount-chip {
  padding: 3px 6px;
  font-size: 11px;
}

.easy-benefits span,
.easy-benefits a {
  min-height: 30px;
  font-size: 11px;
}

.easy-buy-box {
  grid-template-columns: 126px minmax(0, 1fr);
  padding: 8px;
}

.easy-buy-box input,
.easy-buy-box .btn {
  height: 40px;
  min-height: 40px;
}

.easy-buy-box input,
.easy-buy-box .btn {
  font-size: 16px;
}

.quick-order-box {
  display: block;
}

.quick-order-box .btn {
  width: 100%;
}

.luxury-order-button {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 58px;
  width: 100%;
  padding: 0 18px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .28), transparent 28%),
    linear-gradient(135deg, #315f58 0%, #3d9f91 48%, #2f8d78 100%);
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 12px;
  box-shadow:
    0 14px 28px rgba(47, 141, 120, .24),
    0 0 0 1px rgba(95, 184, 169, .2) inset,
    0 -10px 22px rgba(255, 255, 255, .12) inset;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.luxury-order-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  background: conic-gradient(from 0deg, #5fb8a9, #b7d7c9, #3d9f91, #74b7aa, #5fb8a9);
  animation: luxurySpin 6.2s linear infinite;
}

.luxury-order-button::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255,255,255,.2) 45%, transparent 62%),
    linear-gradient(135deg, rgba(49, 95, 88, .98), rgba(61, 159, 145, .96) 48%, rgba(47, 141, 120, .98));
  border-radius: 10px;
  transform: translateX(-115%);
  animation: luxurySheen 5.2s ease-in-out infinite;
}

.luxury-order-button__glow {
  position: absolute;
  inset: auto 8% -42% 8%;
  z-index: -1;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(183, 215, 201, .34), transparent 68%);
  filter: blur(10px);
  animation: luxuryPulse 2.4s ease-in-out infinite;
}

.luxury-order-button__icon,
.luxury-order-button__arrow {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: #064e3b;
  background: rgba(255, 255, 255, .94);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(3, 7, 18, .16);
  transition: transform .18s ease;
}

.luxury-order-button__text {
  min-width: 0;
  line-height: 1.05;
  text-shadow: 0 1px 8px rgba(3, 7, 18, .22);
}

.luxury-order-button:hover {
  box-shadow:
    0 18px 34px rgba(47, 141, 120, .3),
    0 0 0 1px rgba(183, 215, 201, .34) inset,
    0 -10px 22px rgba(255, 255, 255, .14) inset;
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.luxury-order-button:active {
  transform: translateY(1px) scale(.99);
}

.luxury-order-button:focus-visible {
  outline: 3px solid rgba(250, 204, 21, .72);
  outline-offset: 3px;
}

.quick-order-box {
  display: none;
}

@keyframes luxurySpin {
  to { transform: rotate(1turn); }
}

@keyframes luxurySheen {
  0%, 42% { transform: translateX(-115%); }
  72%, 100% { transform: translateX(115%); }
}

@keyframes luxuryPulse {
  0%, 100% { opacity: .5; transform: scaleX(.88); }
  50% { opacity: 1; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .luxury-order-button,
  .luxury-order-button::before,
  .luxury-order-button::after,
  .luxury-order-button__glow {
    animation: none;
  }
}

.premium-product-card {
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 24px rgba(15, 23, 42, .035);
}

.premium-product-card .product-media {
  position: relative;
  background: #eef4f2;
}

.premium-product-card .product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, transparent 42%, rgba(15, 23, 42, .18) 100%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .28), transparent 26%);
  opacity: .72;
  transition: opacity .2s ease;
}

.premium-product-card .product-media img {
  aspect-ratio: 3 / 4.15;
  filter: saturate(.96) contrast(.98);
  transform-origin: center;
}

.premium-product-card .product-body {
  min-height: 140px;
  gap: 6px;
  padding: 9px;
}

.premium-product-card .seller-line {
  align-items: center;
  color: #64748b;
  font-size: 10px;
}

.premium-product-card .seller-line b {
  color: white;
  background: linear-gradient(135deg, #4c9f8e, #2f8d78);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  box-shadow: 0 4px 10px rgba(47, 141, 120, .18);
}

.premium-product-card h3 {
  min-height: 34px;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.premium-product-card .rating-row {
  min-height: 16px;
  gap: 4px;
  color: #94a3b8;
  font-size: 10px;
}

.premium-product-card .rating-row span {
  color: #f3a929;
  font-size: 10px;
}

.premium-product-card .price-row {
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

.premium-product-card .price-row strong {
  color: #0f766e;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.premium-product-card .price-row del {
  color: #a8b0ba;
  font-size: 10px;
  font-weight: 600;
}

.premium-product-card .btn {
  margin-top: 4px;
  background: linear-gradient(135deg, #5aaea0 0%, #3d9f91 48%, #2f8d78 100%);
  border-radius: 7px;
  box-shadow: 0 8px 14px rgba(47, 141, 120, .16), 0 1px 0 rgba(255, 255, 255, .28) inset;
}

.premium-product-card .btn.primary {
  border-color: rgba(255, 255, 255, .52);
  color: white;
  text-shadow: 0 1px 6px rgba(3, 7, 18, .18);
}

.premium-product-card .btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .2) 45%, transparent 62%);
  transform: translateX(-130%);
  animation: buttonSheen 6.4s ease-in-out infinite;
}

.premium-product-card .btn.primary:hover {
  background: linear-gradient(135deg, #6ac1b3 0%, #45aa9b 48%, #349680 100%);
  box-shadow: 0 9px 18px rgba(47, 141, 120, .24), 0 1px 0 rgba(255, 255, 255, .32) inset;
  transform: translateY(-1px);
}

.premium-product-card .cargo-badge {
  background: linear-gradient(135deg, rgba(95, 184, 169, .94), rgba(47, 141, 120, .92));
  box-shadow: 0 7px 14px rgba(47, 141, 120, .2);
}

.premium-product-card .discount-badge,
.premium-product-card .cargo-badge {
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .48);
  backdrop-filter: blur(8px);
}

.premium-product-card .discount-badge {
  background: linear-gradient(135deg, rgba(225, 40, 68, .96), rgba(190, 24, 93, .92));
  box-shadow: 0 8px 14px rgba(190, 24, 93, .22);
}

.premium-product-card:hover {
  border-color: rgba(47, 141, 120, .2);
  box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 16px 34px rgba(47, 141, 120, .1);
  transform: translateY(-2px);
}

.premium-product-card:hover .product-media::after {
  opacity: .48;
}

.easy-help-actions .measure-guide-button,
.easy-help-actions a {
  min-height: 32px;
  font-size: 11px;
}

.easy-trust-list {
  padding: 7px 8px;
}

.easy-trust-list span {
  font-size: 11px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
    padding: 7px 9px 6px;
  }

  .search-shell {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) 54px;
    min-width: 0;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .brand strong {
    font-size: 13px;
  }

  .search-shell {
    height: 31px;
  }

  .category-rail {
    top: 74px;
    min-height: 29px;
  }

  .category-rail a,
  .category-rail button {
    min-height: 29px;
    font-size: 10px;
  }

  .catalog-shell {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 58px;
  }

  .follow-strip,
  .catalog-shell,
  .catalog-main,
  .cart-page,
  .product-page,
  .detail-tabs,
  .checkout,
  .breadcrumb,
  .section,
  .section.soft > .section-head,
  .section.soft > .product-grid {
    width: min(100%, calc(100% - 12px));
  }

  .catalog-main .product-grid,
  .section:not(.soft) > .product-grid,
  .section.soft > .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  .product-info {
    padding: 8px;
  }

  .easy-buy-panel h1 {
    font-size: 17px;
  }

  .easy-price-card {
    padding: 8px;
  }

  .easy-price-card .price-row strong,
  .large strong {
    font-size: 22px;
  }

  .easy-benefits span,
  .easy-benefits a {
    min-height: 28px;
    font-size: 9px;
  }

  .easy-buy-box {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
  }

  .easy-buy-box label span {
    display: none;
  }

  .easy-buy-box input,
  .easy-buy-box .btn {
    height: 34px;
    min-height: 34px;
  }

  .easy-buy-box input,
  .easy-buy-box .btn {
    font-size: 15px;
  }
}

.header-actions a[href*="wa.me"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  padding: 4px 8px;
  background: rgba(240, 253, 250, .86);
  border: 1px solid rgba(20, 184, 166, .2);
  border-radius: 999px;
}

.header-actions a[href*="wa.me"] span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  color: #334155;
  font-size: 0;
  line-height: 1;
}

.header-actions a[href*="wa.me"] span::before {
  content: "☎";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: white;
  background: linear-gradient(135deg, #25d366, #0f9f54);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .48), 0 5px 12px rgba(15, 159, 84, .24);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  animation: whatsappIconPulse 1.65s ease-in-out infinite;
}

.header-actions a[href*="wa.me"] span::after {
  content: "WhatsApp";
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.header-actions a[href*="wa.me"] strong {
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.header-actions a[href*="wa.me"]:hover span::before {
  animation-duration: .85s;
  transform: scale(1.08);
}

@keyframes whatsappIconPulse {
  0%, 100% {
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .48), 0 5px 12px rgba(15, 159, 84, .24);
    transform: scale(1);
  }
  45% {
    filter: brightness(1.2);
    box-shadow: 0 0 0 7px rgba(37, 211, 102, 0), 0 7px 16px rgba(15, 159, 84, .36);
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-actions a[href*="wa.me"] span::before {
    animation: none;
  }
}

@media (min-width: 921px) {
  .topline {
    justify-content: space-between;
    padding-inline: max(36px, calc((100vw - 1120px) / 2));
    align-items: center;
  }

  .topline > div {
    width: auto;
  }

  .topline > span {
    white-space: nowrap;
  }

  .site-header {
    grid-template-columns: 210px minmax(0, 1fr) 210px;
    gap: 18px;
    width: min(1120px, calc(100% - 72px));
    align-items: center;
    justify-content: center;
    margin-inline: auto;
  }

  .brand,
  .header-actions {
    min-width: 0;
    height: 34px;
  }

  .brand {
    justify-content: flex-start;
  }

  .search-shell {
    width: 100%;
    justify-self: center;
  }

  .search-shell input {
    align-self: stretch;
    height: auto;
    min-height: 0;
    padding-block: 0;
    line-height: normal;
  }

  .search-shell button {
    display: grid;
    place-items: center;
    min-height: 0;
    line-height: 1;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .category-rail {
    width: min(1120px, calc(100% - 72px));
    justify-content: center;
    margin-inline: auto;
    padding-inline: 0;
  }
}

.search-shell {
  align-items: center;
}

.search-shell input {
  align-self: stretch;
  height: auto;
  min-height: 0;
  padding-block: 0;
  line-height: normal;
}

.search-shell button {
  display: grid;
  place-items: center;
  min-height: 0;
  line-height: 1;
}

.simple-admin,
.simple-admin input,
.simple-admin textarea,
.simple-admin select,
.simple-admin button {
  font-family: Manrope, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 12px;
}

.simple-admin h1,
.simple-admin h2 {
  color: #111827;
  font-weight: 700;
  letter-spacing: 0;
}

.simple-admin h1 {
  font-size: 24px;
  line-height: 1.12;
}

.simple-admin h2 {
  font-size: 18px;
  line-height: 1.18;
}

.simple-admin label,
.simple-admin legend,
.admin-product-search,
.simple-product-list strong,
.admin-category-list strong {
  font-weight: 650;
}

.simple-admin input,
.simple-admin textarea,
.simple-admin select {
  color: #1f2937;
  font-size: 12px;
  font-weight: 500;
}

.simple-admin .btn,
.simple-admin .text-btn {
  font-size: 12px;
  font-weight: 700;
}

.simple-admin .eyebrow,
.simple-admin p,
.simple-admin small,
.simple-admin span {
  font-size: 11px;
}

/* Simple admin panel. */
.simple-admin {
  padding: 18px 0 64px;
}

.simple-admin-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.simple-admin-top h1,
.simple-product-form h2,
.simple-product-list h2 {
  margin: 2px 0 0;
}

.simple-admin-top p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.simple-admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.compact-stats {
  gap: 8px;
  margin-bottom: 12px;
}

.compact-stats div {
  padding: 10px 12px;
}

.compact-stats strong {
  display: block;
  font-size: 20px;
}

.compact-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.simple-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 12px;
  align-items: start;
}

.simple-product-form,
.simple-product-list,
.simple-orders,
.simple-login {
  box-shadow: none;
}

.simple-settings-form {
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  box-shadow: none;
}

.admin-category-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.category-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.category-add-form label {
  gap: 5px;
  font-size: 12px;
}

.category-add-form input {
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 5px;
  font-size: 13px;
}

.admin-category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-category-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-category-list article > div {
  min-width: 0;
}

.admin-category-list strong {
  display: block;
  overflow: hidden;
  color: var(--accent-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-category-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.settings-grid {
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: end;
}

.simple-settings-form input {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 5px;
}

.simple-product-form {
  gap: 10px;
  padding: 12px;
}

.simple-product-form fieldset {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.simple-product-form legend {
  padding: 0 6px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.simple-product-form label {
  gap: 5px;
  font-size: 12px;
}

.simple-product-form label small {
  color: var(--muted);
  font-weight: 600;
}

.simple-product-form input,
.simple-product-form textarea,
.simple-product-form select,
.simple-orders select {
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 5px;
  font-size: 13px;
}

.simple-product-form textarea {
  min-height: 72px;
}

.mini-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-switches .check {
  min-height: 32px;
  padding: 0 9px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.simple-image-manager {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.simple-image-manager label {
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.simple-image-manager span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.simple-image-manager input[type="number"] {
  width: 64px;
  min-height: 28px;
  padding: 4px 6px;
  text-align: center;
}

.simple-product-list {
  position: sticky;
  top: 90px;
  gap: 8px;
  padding: 12px;
}

.admin-product-search {
  gap: 5px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.admin-product-search input {
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
}

.simple-product-list article {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
  padding: 8px;
}

.simple-product-list article.admin-product-hidden {
  display: none !important;
}

.simple-product-list img {
  width: 58px;
  height: 72px;
}

.simple-product-list article > div:nth-child(2) {
  min-width: 0;
}

.simple-product-list strong {
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.simple-product-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.simple-product-list .row-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.simple-product-list .btn,
.simple-orders .btn,
.simple-admin-actions .btn,
.simple-product-form > .btn {
  min-height: 32px;
  padding-inline: 10px;
  font-size: 12px;
}

.simple-orders {
  margin-top: 12px;
  padding: 12px;
}

.simple-orders summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

.simple-orders article {
  margin-top: 10px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.simple-orders form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.simple-login {
  width: min(360px, 100%);
}

@media (max-width: 920px) {
  .simple-admin {
    width: min(100%, calc(100% - 12px));
    padding-top: 12px;
  }

  .simple-admin-top {
    align-items: start;
    flex-direction: column;
  }

  .simple-admin-actions {
    width: 100%;
  }

  .simple-admin-actions .btn,
  .simple-admin-actions form {
    flex: 1;
  }

  .simple-admin-layout {
    grid-template-columns: 1fr;
  }

  .category-add-form,
  .admin-category-list {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .simple-product-list {
    position: static;
  }

  .mini-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .simple-orders article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .compact-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .compact-stats div {
    padding: 8px;
  }

  .compact-stats strong {
    font-size: 18px;
  }

  .simple-product-form,
  .simple-product-list,
  .simple-orders {
    padding: 9px;
  }

  .simple-product-form fieldset {
    padding: 8px;
  }

  .mini-form-grid,
  .simple-image-manager {
    grid-template-columns: 1fr;
  }

  .simple-product-list article {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .simple-product-list img {
    width: 52px;
    height: 66px;
  }

  .simple-product-list .row-actions {
    justify-content: stretch;
  }

  .simple-product-list .row-actions .btn,
  .simple-product-list .row-actions form,
  .simple-product-list .row-actions button {
    width: 100%;
  }

  .simple-orders form {
    grid-template-columns: 1fr;
  }
}

.simple-admin {
  font-size: 12px;
}

.simple-admin-top h1 {
  font-size: 24px;
  font-weight: 700;
}

.simple-product-form h2,
.simple-product-list h2,
.simple-settings-form h2,
.admin-category-panel h2 {
  font-size: 18px;
  font-weight: 700;
}

.simple-admin label,
.simple-product-form legend,
.admin-product-search,
.compact-stats span,
.admin-category-list strong,
.simple-product-list strong {
  font-size: 11px;
  font-weight: 650;
}

.simple-product-list span,
.admin-category-list span,
.simple-admin-top p {
  font-size: 10px;
}

.simple-admin input,
.simple-admin textarea,
.simple-admin select {
  font-size: 12px;
  font-weight: 500;
}

.compact-stats strong {
  font-size: 19px;
  font-weight: 700;
}

.category-rail {
  gap: 6px;
  min-height: 38px;
  padding-block: 6px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-rail a,
.category-rail button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  color: #334155;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.category-rail a:first-child {
  color: #0f766e;
  background: #f0fdfa;
  border-color: rgba(95, 184, 169, .34);
  box-shadow: 0 5px 12px rgba(47, 141, 120, .08);
}

.category-rail a:hover,
.category-rail button:hover {
  color: #0f766e;
  background: #f8fffd;
  border-color: rgba(95, 184, 169, .38);
  box-shadow: 0 6px 14px rgba(47, 141, 120, .1);
  transform: translateY(-1px);
}

.catalog-sidebar {
  gap: 6px;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border-color: rgba(15, 23, 42, .08);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
}

.catalog-sidebar strong {
  margin-bottom: 3px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.catalog-sidebar button {
  min-height: 32px;
  padding: 0 11px;
  color: #334155;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.catalog-sidebar button:hover,
.catalog-sidebar button.active {
  color: #0f766e;
  background: #f0fdfa;
  border-color: rgba(95, 184, 169, .34);
  transform: translateX(2px);
}

/* Final mobile product polish: keep the photo useful without hiding the order actions. */
@media (max-width: 640px) {
  .category-rail {
    justify-content: flex-start;
    gap: 5px;
    min-height: 40px;
    padding: 6px 8px;
  }

  .category-rail a,
  .category-rail button {
    flex: 0 0 auto;
    min-height: 28px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .product-page {
    gap: 8px;
  }

  .product-page > .gallery {
    padding: 8px;
  }

  .main-image {
    height: min(56vh, 360px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .thumbs button {
    width: 44px;
    min-width: 44px;
  }

  .product-info.easy-buy-panel {
    padding: 10px;
  }
}
