:root {
  --blue: #28589a;
  --blue-dark: #1e477f;
  --blue-soft: #edf2fa;
  --yellow: #e9bc2c;
  --ink: #171a20;
  --muted: #7d8490;
  --line: #e6e8ed;
  --surface: #ffffff;
  --bg: #f7f7fb;
  --danger: #e45b4f;
  --green: #38b66b;
  --shadow: 0 14px 38px rgba(21, 38, 63, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.45 Inter, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; padding-bottom: 78px; }
.site-header { position: sticky; z-index: 30; top: 0; background: var(--blue); box-shadow: 0 3px 18px rgba(13, 46, 91, .18); }
.header-inner { width: min(1180px, calc(100% - 36px)); height: 76px; margin: auto; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.logo { width: 58px; height: 50px; object-fit: contain; }
.search { height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 17px; background: #fff; }
.search input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 15px; }
.search input::placeholder { color: #b0b4bc; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: inherit; }
.icon-btn:hover { background: rgba(40,88,154,.08); }
.header-action { color: white; border: 1px solid rgba(255,255,255,.24); }
.header-action:hover { background: rgba(255,255,255,.1); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.hero { margin-top: 28px; position: relative; overflow: hidden; border-radius: 20px; background: #d6dce4; aspect-ratio: 3.55 / 1; box-shadow: var(--shadow); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; left: 50%; bottom: 12px; display: flex; gap: 8px; transform: translateX(-50%); }
.hero-dot { width: 8px; height: 8px; border: 1px solid white; border-radius: 50%; background: transparent; }
.hero-dot.active { background: white; }
.catalog-trigger { width: 100%; margin: 20px 0 28px; padding: 18px 24px; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 16px; color: var(--blue); background: #eef1f7; font-weight: 600; text-align: left; }
.catalog-trigger:hover { background: #e5ebf5; }
.section-title { margin: 0 0 20px; font-size: clamp(22px, 2.4vw, 31px); text-align: center; letter-spacing: -.03em; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.product-card { position: relative; min-width: 0; overflow: hidden; border: 0; border-radius: 17px; background: white; box-shadow: 0 7px 22px rgba(27,44,72,.05); transition: transform .2s, box-shadow .2s; text-align: left; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { width: 100%; aspect-ratio: 1.58 / 1; object-fit: cover; background: #ececec; }
.product-body { padding: 14px 15px 17px; }
.product-price { color: var(--blue); font-size: 20px; font-weight: 800; }
.product-title { min-height: 48px; margin-top: 4px; font-size: 15px; font-weight: 600; }
.product-code { margin-top: 5px; color: #a0a5ad; font-size: 13px; }
.stock { display: inline-flex; margin-top: 10px; padding: 5px 9px; border-radius: 99px; color: #238a52; background: #eaf8ef; font-size: 12px; font-weight: 700; }
.heart { position: absolute; top: 12px; right: 12px; color: #9ca2aa; background: rgba(255,255,255,.92); box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.heart.active { color: #e45866; }

.empty { grid-column: 1 / -1; padding: 72px 24px; text-align: center; color: var(--muted); background: white; border-radius: var(--radius); }
.empty strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 20px; }
.footer { margin-top: 58px; color: white; background: #173f77; }
.footer-inner { width: min(1180px, calc(100% - 36px)); margin: auto; padding: 38px 0 44px; display: grid; grid-template-columns: 1.25fr .8fr .8fr; gap: 36px; }
.footer-logo { width: 92px; margin-bottom: 16px; }
.footer p { margin: 7px 0; color: rgba(255,255,255,.8); }
.footer h4 { margin: 5px 0 15px; }
.footer a { display: block; margin: 9px 0; color: rgba(255,255,255,.78); }

.bottom-nav { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; height: 68px; display: flex; justify-content: center; gap: min(10vw, 100px); border-top: 1px solid #eceaf1; background: rgba(255,250,255,.95); backdrop-filter: blur(14px); }
.nav-item { min-width: 65px; position: relative; display: grid; place-items: center; border: 0; color: #bfc1c7; background: transparent; }
.nav-item.active { color: var(--blue); }
.nav-badge { position: absolute; top: 9px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--danger); font-size: 11px; font-weight: 700; }
.whatsapp { position: fixed; z-index: 32; right: max(24px, calc((100vw - 1180px)/2)); bottom: 88px; width: 64px; height: 64px; display: grid; place-items: center; border: 5px solid white; border-radius: 50%; color: white; background: #46c95f; box-shadow: 0 10px 24px rgba(37,140,69,.28); font-weight: 800; font-size: 26px; }

.overlay { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(18,29,45,.5); backdrop-filter: blur(4px); }
.modal { width: min(720px, 100%); max-height: min(780px, 92vh); overflow: auto; border-radius: 22px; background: white; box-shadow: 0 30px 80px rgba(8,21,43,.28); }
.modal-head { position: sticky; z-index: 2; top: 0; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: white; }
.modal-head h2 { margin: 0; font-size: 22px; }
.category-list { padding: 12px; }
.category-btn { width: 100%; padding: 14px; display: flex; justify-content: space-between; border: 0; border-radius: 12px; background: transparent; text-align: left; }
.category-btn:hover { background: var(--blue-soft); }
.category-count { color: var(--muted); }

.product-page { min-height: 100vh; background: #f8f8fc; }
.product-top { position: sticky; z-index: 25; top: 0; height: 68px; display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; padding: 0 18px; color: white; background: var(--blue); }
.product-top h1 { overflow: hidden; margin: 0; font-size: 16px; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.product-detail { width: min(1080px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; padding: 24px 18px 70px; }
.detail-media, .detail-card { overflow: hidden; border-radius: 20px; background: white; box-shadow: 0 10px 26px rgba(19,38,67,.07); }
.detail-media img { width: 100%; aspect-ratio: 1.28/1; object-fit: cover; }
.detail-card { padding: 24px; }
.detail-card h2 { margin: 0 0 9px; font-size: 24px; }
.detail-price { color: var(--blue); font-size: 28px; font-weight: 800; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.primary, .secondary, .danger-btn { min-height: 46px; padding: 11px 16px; border: 0; border-radius: 12px; font-weight: 700; }
.primary { color: white; background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.secondary { color: var(--blue); background: var(--blue-soft); }
.danger-btn { color: white; background: var(--danger); }
.specs { grid-column: 1 / -1; padding: 24px; border-radius: 20px; background: white; }
.specs h3 { margin: 0 0 18px; }
.spec-row { padding: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border: 0; }
.spec-row span:first-child { color: var(--muted); }
.spec-row span:last-child { font-weight: 600; text-align: right; }

.cart-page, .simple-page { padding-top: 28px; }
.page-title { margin: 0 0 22px; font-size: 30px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.cart-list, .cart-summary, .panel { border-radius: 18px; background: white; box-shadow: 0 8px 24px rgba(22,40,67,.05); }
.cart-row { padding: 16px; display: grid; grid-template-columns: 104px 1fr auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.cart-row img { width: 104px; height: 76px; border-radius: 10px; object-fit: cover; }
.cart-row:last-child { border: 0; }
.cart-row h3 { margin: 0 0 6px; font-size: 16px; }
.cart-summary { height: max-content; padding: 22px; }
.summary-line { display: flex; justify-content: space-between; margin: 10px 0; }
.summary-total { padding-top: 14px; border-top: 1px solid var(--line); font-size: 21px; font-weight: 800; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; background: #f3f6fa; }
.admin-sidebar { padding: 24px 18px; color: white; background: #173f77; }
.admin-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; font-weight: 800; }
.admin-brand img { width: 48px; }
.admin-menu button { width: 100%; margin: 4px 0; padding: 12px 14px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; color: rgba(255,255,255,.76); background: transparent; text-align: left; }
.admin-menu button.active, .admin-menu button:hover { color: white; background: rgba(255,255,255,.11); }
.admin-main { min-width: 0; padding: 32px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-top h1 { margin: 0; font-size: 29px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.stat { padding: 20px; border-radius: 16px; background: white; box-shadow: 0 7px 20px rgba(19,39,69,.05); }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { margin-top: 5px; font-size: 28px; font-weight: 800; }
.admin-panel { overflow: hidden; border-radius: 18px; background: white; box-shadow: 0 8px 22px rgba(18,38,67,.05); }
.panel-tools { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-tools input { width: min(320px, 100%); padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { color: var(--muted); background: #fafbfd; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.admin-thumb { width: 62px; height: 45px; border-radius: 8px; object-fit: cover; }
.table-actions { display: flex; gap: 5px; }
.table-actions button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; color: var(--blue); background: var(--blue-soft); }
.table-actions button:last-child { color: var(--danger); background: #feeeee; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg,#173f77,#2f67ad); }
.login-card { width: min(430px,100%); padding: 34px; border-radius: 22px; background: white; box-shadow: 0 30px 70px rgba(2,19,48,.3); }
.login-card img { width: 72px; margin: 0 auto 14px; }
.login-card h1 { margin: 0; text-align: center; }
.login-card p { color: var(--muted); text-align: center; }
.field { margin: 14px 0; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid #dfe3ea; border-radius: 10px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,88,154,.1); }
.login-hint { padding: 10px; border-radius: 10px; background: #fff7da; color: #725b12 !important; font-size: 13px; }
.form-grid { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.form-grid .full { grid-column: 1/-1; }
.form-actions { grid-column: 1/-1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 88px; padding: 12px 18px; border-radius: 12px; color: white; background: #202a39; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%,16px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-detail { grid-template-columns: 1fr; }
  .specs { grid-column: auto; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 76px 1fr; }
  .admin-sidebar { padding-inline: 11px; }
  .admin-brand span, .admin-menu span { display: none; }
  .admin-brand { justify-content: center; }
  .admin-menu button { justify-content: center; }
  .stats { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
  .header-inner, .container { width: min(100% - 24px, 1180px); }
  .header-inner { height: 66px; grid-template-columns: 48px minmax(0,1fr) 38px; gap: 8px; }
  .logo { width: 44px; height: 40px; }
  .search { height: 44px; padding-inline: 13px; border-radius: 14px; }
  .hero { margin-top: 18px; aspect-ratio: 2.12/1; border-radius: 15px; }
  .products { gap: 14px 10px; }
  .product-body { padding: 10px 10px 13px; }
  .product-price { font-size: 17px; }
  .product-title { min-height: 57px; font-size: 13px; }
  .footer-inner { grid-template-columns: 1fr; }
  .whatsapp { right: 18px; width: 58px; height: 58px; }
  .detail-actions { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 78px 1fr; }
  .cart-row img { width: 78px; height: 62px; }
  .cart-row > :last-child { grid-column: 2; }
  .admin-shell { display: block; }
  .admin-sidebar { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
  .admin-brand { margin: 0; }
  .admin-brand img { width: 42px; }
  .admin-menu { display: flex; }
  .admin-menu button { width: 42px; margin: 0; padding: 10px; }
  .admin-main { padding: 18px 12px; }
  .admin-top h1 { font-size: 23px; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat-value { font-size: 22px; }
  .admin-table { min-width: 760px; }
  .admin-panel { overflow-x: auto; }
  .panel-tools { min-width: 640px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full, .form-actions { grid-column: auto; }
}

/* Storefront layout — desktop header, mobile navigation and catalogue */
.app-shell { padding-bottom: 0; }
.header-inner { width: min(1400px, calc(100% - 40px)); grid-template-columns: 44px max-content minmax(240px, 1fr) auto 44px; gap: 12px; }
.header-menu { color: #fff; border: 1px solid rgba(255,255,255,.2); }
.header-menu:hover { background: rgba(255,255,255,.12); }
.brand-button { padding: 0; display: flex; align-items: center; gap: 10px; border: 0; color: white; background: transparent; white-space: nowrap; }
.brand-button strong { font-size: 19px; letter-spacing: -.03em; }
.desktop-actions { display: flex; align-items: center; gap: 2px; }
.desktop-action { min-height: 48px; position: relative; padding: 6px 10px; display: grid; grid-template-columns: auto auto; align-items: center; gap: 6px; border: 0; border-radius: 12px; color: white; background: transparent; }
.desktop-action:hover { background: rgba(255,255,255,.1); }
.desktop-action span { font-size: 12px; }
.desktop-action b { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #174d3e; font-size: 10px; }
.container { width: min(1320px, calc(100% - 40px)); }
.hero { margin-top: 20px; aspect-ratio: 4.15/1; }
.hero-track { height: 100%; display: flex; transition: transform .55s cubic-bezier(.22,.8,.25,1); }
.hero-track picture, .hero-slide { width: 100%; height: 100%; flex: 0 0 100%; display: block; }
.hero-track img { width: 100%; height: 100%; object-fit: cover; }
.hero-dot { padding: 0; cursor: pointer; }
.section-title { margin-top: 30px; }
.product-open { all: unset; display: block; width: 100%; cursor: pointer; }
.bottom-nav { display: none; }

.footer { color: #24262b; background: #eef0f5; }
.footer-inner { width: min(1400px, calc(100% - 80px)); padding: 46px 0 52px; grid-template-columns: 1.15fr 1fr .8fr; gap: 70px; }
.footer-brand > div { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 78px; }
.footer-brand strong { font-size: 28px; letter-spacing: -.04em; }
.footer p { color: #34363c; }
.footer-brand p { margin-top: 32px; }
.footer-contacts p { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; margin: 0 0 20px; }
.footer-contacts .icon { margin-top: 2px; }
.footer-links { display: flex; flex-direction: column; gap: 24px; }
.footer-links a { margin: 0; color: #34363c; font-size: 17px; }
.footer-socials { margin-top: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-socials > span { flex-basis: 100%; color: #8b8f96; font-size: 15px; }
.footer-socials .social-link { width: 46px; height: 46px; margin: 0; display: grid; place-items: center; overflow: hidden; border-radius: 12px; color: white; box-shadow: 0 5px 16px rgba(31,46,68,.14); transition: transform .2s, box-shadow .2s; }
.footer-socials .social-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31,46,68,.2); }
.footer-socials .social-link svg { width: 40px; height: 40px; }
.social-2gis { position: relative; background: linear-gradient(150deg,#ffd42a 0 32%,#44b447 32% 68%,#2c77d4 68%); }
.social-2gis svg path:first-child { fill: transparent; }
.social-2gis svg path:nth-child(2),.social-2gis svg circle { fill: white; }
.social-2gis b { position: absolute; right: 3px; bottom: 2px; padding: 1px 3px; border-radius: 3px; color: #167044; background: white; font-size: 8px; line-height: 1; }
.social-instagram { background: radial-gradient(circle at 30% 105%,#ffd66b 0 25%,#f24c55 45%,#c62c91 65%,#6b48c8 100%); }
.social-instagram svg { fill: none; stroke: white; stroke-width: 2.7; }

.catalog-modal { width: min(620px, 100%); }
.category-list { padding: 14px; display: grid; gap: 10px; }
.category-btn { min-height: 68px; padding: 14px 18px; display: grid; grid-template-columns: 42px 1fr 30px; align-items: center; gap: 12px; border-radius: 18px; background: #f0f2f7; }
.category-btn:hover { background: #e7ebf3; }
.search-categories button.active { color: white; background: var(--blue); }
.category-btn strong { font-size: 18px; }
.category-gear .icon { width: 30px; height: 30px; color: #050505; fill: #050505; stroke: white; }
.category-gear img { width: 34px; height: 34px; object-fit: contain; }
.category-arrow { color: #04589f; }
.category-arrow .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.profile-panel { max-width: 660px; padding: 24px; }
.profile-panel p { color: var(--muted); }
.checkout { width: 100%; margin-top: 14px; }

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: 44px max-content minmax(190px,1fr) auto 44px; }
  .brand-button strong, .desktop-action span { display: none; }
  .desktop-action { grid-template-columns: 1fr; width: 42px; padding: 6px; }
  .hero { aspect-ratio: 3.35/1; }
}

@media (max-width: 700px) {
  .app-shell { padding-bottom: 78px; }
  .header-inner { width: calc(100% - 16px); height: 62px; grid-template-columns: 42px minmax(0,1fr) 38px; gap: 7px; }
  .header-menu, .desktop-actions, .brand-button strong { display: none; }
  .brand-button { grid-column: 1; }
  .brand-button .logo { width: 38px; height: 36px; }
  .search { grid-column: 2; height: 40px; padding-inline: 10px; border-radius: 12px; }
  .search .icon { width: 18px; }
  .search input { font-size: 13px; }
  .header-action { grid-column: 3; width: 38px; height: 38px; }
  .container { width: calc(100% - 20px); }
  .home-main { width: 100%; }
  .hero { width: calc(100% - 12px); margin: 12px 6px 0; aspect-ratio: 2.5/1; border-radius: 16px; }
  .section-title { margin: 24px 10px 16px; font-size: 20px; }
  .products { padding: 0 10px; }
  .bottom-nav { height: 72px; padding: 0 2px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); gap: 0; background: rgba(255,255,255,.97); }
  .nav-item { min-width: 0; position: relative; padding: 7px 2px 5px; display: flex; flex-direction: column; justify-content: center; gap: 2px; color: #7d8890; }
  .nav-item .icon { width: 24px; height: 24px; }
  .nav-item span { display: block; font-size: 10px; line-height: 1; }
  .nav-item.active { color: #174d3e; }
  .nav-badge { top: 2px; left: calc(50% + 5px); }
  .whatsapp { bottom: 84px; }
  .footer { margin-top: 38px; }
  .footer-inner { width: calc(100% - 34px); padding: 32px 0 40px; grid-template-columns: 1fr; gap: 28px; }
  .footer-brand img { width: 60px; }
  .footer-brand strong { font-size: 24px; }
  .footer-brand p { margin-top: 20px; }
  .footer-links { gap: 15px; }
  .footer-socials { margin-top: 8px; }
  .footer-socials > span { font-size: 16px; }
  .footer-socials .social-link { width: 52px; height: 52px; border-radius: 14px; }
  .overlay { padding: 0; align-items: end; }
  .catalog-modal { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; }
  .modal-head { padding: 16px 18px; }
  .category-list { padding: 8px 8px 24px; gap: 8px; }
  .category-btn { min-height: 72px; border-radius: 20px; }
  .category-btn strong { overflow: hidden; font-size: 18px; white-space: nowrap; text-overflow: ellipsis; }
  .simple-page, .cart-page { width: calc(100% - 24px); }
}

/* Compact recommendation cards and complete banner */
.container { width: min(1760px, calc(100% - 40px)); }
.hero { aspect-ratio: 1280 / 250; background: #e7e9ee; }
.hero-track img { object-fit: contain; }
.section-title { margin: 27px 0 22px; font-size: clamp(22px, 2vw, 30px); }
.products { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 38px 22px; }
.product-card { overflow: visible; border-radius: 0; background: transparent; box-shadow: none; }
.product-card:hover { transform: none; box-shadow: none; }
.product-open { border-radius: 18px; outline: none; }
.product-open:focus-visible { box-shadow: 0 0 0 3px rgba(40,88,154,.24); }
.product-image { aspect-ratio: 1.44/1; border-radius: 18px; }
.product-body { padding: 10px 1px 12px; }
.product-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-price { font-size: 20px; }
.card-heart { width: 38px; height: 38px; flex: 0 0 38px; color: #9ba1a8; }
.card-heart.active, .detail-heart.active { color: #e45465; }
.product-title { min-height: 0; overflow: hidden; margin-top: 3px; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.product-code { margin-top: 5px; font-size: 13px; }
.card-cart { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 13px; color: white; background: #155ba5; font-weight: 800; }
.card-cart:hover { background: #0e4b8b; }
.card-cart .icon { width: 19px; height: 19px; }
.whatsapp { padding: 0; font-size: 0; }
.whatsapp-icon { width: 39px; height: 39px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.detail-media { position: relative; }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.detail-heading h2 { flex: 1; }
.detail-heart { width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid var(--line); background: #f8f9fb; }
.detail-heart .icon { width: 27px; height: 27px; }
.detail-actions { grid-template-columns: minmax(170px,320px); }
.zoom-button { position: absolute; right: 18px; bottom: 18px; width: 50px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(24,57,99,.88); box-shadow: 0 8px 24px rgba(18,35,60,.24); }
.zoom-button:hover { background: var(--blue); }
.image-zoom { position: fixed; z-index: 120; inset: 0; padding: 34px; display: grid; place-items: center; background: rgba(8,16,29,.88); backdrop-filter: blur(9px); }
.image-zoom img { max-width: min(1380px,94vw); max-height: 90vh; border-radius: 18px; box-shadow: 0 25px 80px rgba(0,0,0,.46); }
.zoom-close { position: fixed; z-index: 2; top: 20px; right: 24px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.14); }
.modal-open { overflow: hidden; }
.product-modal-overlay { position: fixed; z-index: 90; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(18,25,37,.62); backdrop-filter: blur(5px); }
.product-modal { width: min(1180px,94vw); max-height: 92vh; overflow: auto; border-radius: 26px; background: #f5f6fb; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.product-modal-head { position: sticky; z-index: 3; top: 0; padding: 19px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e3e6ec; background: rgba(245,246,251,.96); backdrop-filter: blur(8px); }
.product-modal-head h2 { margin: 0; font-size: 25px; }
.product-modal-head .icon-btn { width: 44px; height: 44px; }
.product-modal-body { padding: 24px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(340px,.75fr); align-items: start; gap: 20px; }
.product-modal-body .detail-media img { aspect-ratio: 1.38/1; }
.product-modal-body .detail-card { padding: 22px; }
.product-modal-body .detail-card h2 { font-size: 23px; }
.product-modal-body .detail-price { margin-top: 14px; font-size: 31px; }
.product-modal-body .description-card { padding: 21px 22px; }
.product-modal-body .description-card p { max-height: 76px; overflow: auto; }
.product-modal-body .detail-cart { min-height: 56px; font-size: 17px; }
.product-modal-body .similar-section { padding: 22px; }
.zoom-stage { cursor: zoom-in; }
.magnifier-lens { position: absolute; z-index: 3; width: 190px; height: 190px; display: none; pointer-events: none; border: 4px solid white; border-radius: 50%; background-repeat: no-repeat; box-shadow: 0 10px 32px rgba(12,27,49,.35); }
.zoom-stage:hover .zoom-button { opacity: .28; }

.language-menu { position: fixed; z-index: 100; top: 72px; right: 22px; width: 210px; padding: 12px; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 16px 45px rgba(17,35,61,.2); }
.language-menu strong { padding: 7px 10px; font-size: 14px; }
.language-menu button { padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.language-menu button:hover, .language-menu button.active { color: var(--blue); background: #edf4fc; font-weight: 700; }

.search-overlay { position: fixed; z-index: 80; inset: 0; padding-top: 64px; background: rgba(17,27,41,.46); backdrop-filter: blur(3px); }
.search-panel { width: min(1040px,calc(100% - 36px)); max-height: calc(100vh - 92px); margin: 0 auto; overflow: auto; border-radius: 0 0 22px 22px; background: white; box-shadow: 0 25px 70px rgba(15,31,54,.26); }
.search-panel-head { position: sticky; z-index: 2; top: 0; padding: 20px 24px; display: grid; grid-template-columns: 28px 1fr 44px; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); background: white; }
.search-panel-head > .icon { color: var(--muted); }
.search-panel-head input { min-width: 0; border: 0; outline: 0; font-size: 25px; }
.search-categories { padding: 18px 24px; display: flex; align-items: center; gap: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.search-categories span { margin-right: 6px; color: var(--muted); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.search-categories button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; white-space: nowrap; }
.search-list { padding: 0 24px 24px; }
.search-result { width: 100%; padding: 16px 0; display: grid; grid-template-columns: 110px minmax(0,1fr) max-content; align-items: center; gap: 20px; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; }
.search-result:hover { background: #fafbfc; }
.search-result img { width: 110px; height: 82px; border-radius: 12px; object-fit: cover; }
.search-result > span { min-width: 0; display: grid; gap: 4px; }
.search-result small { color: #7c8792; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.search-result strong { overflow: hidden; font-size: 18px; white-space: nowrap; text-overflow: ellipsis; }
.search-result em { color: var(--muted); font-size: 14px; font-style: normal; }
.search-result > b { color: #18212c; font-size: 20px; }
.search-empty { padding: 60px 24px; display: grid; gap: 8px; color: var(--muted); text-align: center; }
.search-empty strong { color: var(--text); font-size: 20px; }

.info-overlay { position: fixed; z-index: 110; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(18,22,29,.58); backdrop-filter: blur(4px); }
.info-modal { width: min(820px,calc(100vw - 40px)); max-height: 92vh; overflow: auto; border-radius: 26px; background: white; box-shadow: 0 28px 90px rgba(0,0,0,.3); }
.info-head { position: sticky; z-index: 3; top: 0; padding: 26px 30px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,255,255,.97); }
.info-head h2 { margin: 0; font-size: 30px; font-weight: 500; }
.info-head .icon-btn { width: 44px; height: 44px; }
.info-body { padding: 18px 30px 32px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { overflow: hidden; border: 1px solid #155ba5; border-radius: 15px; }
.faq-question { width: 100%; min-height: 70px; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; color: white; background: #155ba5; font-size: 18px; text-align: left; }
.faq-question b { color: #9dc7ef; font-size: 24px; line-height: 1; transition: transform .2s ease; }
.faq-answer { display: grid; grid-template-rows: 0fr; background: white; transition: grid-template-rows .24s ease; }
.faq-answer p { min-height: 0; overflow: hidden; margin: 0; padding: 0 20px; color: #333; font-size: 17px; line-height: 1.5; transition: padding .24s ease; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer p { padding: 14px 20px 16px; }
.faq-item.open .faq-question b { transform: rotate(180deg); }
.about-content { display: grid; gap: 24px; color: #3f4650; font-size: 17px; line-height: 1.65; }
.about-content > p { margin: 0; }
.about-brand { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 18px; background: #f3f5f9; }
.about-brand img { width: 86px; height: 70px; object-fit: contain; }
.about-brand h3 { margin: 0 0 4px; color: var(--text); font-size: 28px; }
.about-brand p { margin: 0; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-grid div { padding: 16px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 13px; }
.about-grid strong { color: var(--text); }
.about-grid span { color: var(--muted); font-size: 15px; }
.privacy-content { color: #3f4650; font-size: 16px; line-height: 1.65; }
.privacy-content h3 { margin: 24px 0 6px; color: var(--ink); font-size: 19px; }
.privacy-content p { margin: 0; }

.auth-overlay { position: fixed; z-index: 130; inset: 0; padding: 18px; display: grid; place-items: center; background: rgba(23,31,44,.62); backdrop-filter: blur(6px); }
.auth-card, .checkout-card { position: relative; width: min(560px,100%); padding: 34px 40px 38px; border-radius: 28px; background: #fff; box-shadow: 0 30px 90px rgba(5,18,38,.3); }
.auth-card > img { width: 86px; height: 72px; margin: 0 auto 12px; object-fit: contain; }
.auth-card h2 { margin: 0; font-size: 35px; text-align: center; }
.auth-card > p { margin: 8px 0 24px; color: #596274; text-align: center; }
.auth-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f5f6f8; }
.auth-card label, .checkout-grid label { display: grid; gap: 6px; margin-top: 13px; color: #555f6f; font-size: 13px; font-weight: 700; }
.auth-card input, .checkout-grid input, .checkout-grid select { width: 100%; min-height: 54px; padding: 0 15px; border: 1px solid #dfe3e8; border-radius: 11px; outline: none; color: var(--ink); background: white; }
.auth-card input:focus, .checkout-grid input:focus, .checkout-grid select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,88,154,.1); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 54px; }
.password-eye { position: absolute; right: 7px; top: 50%; width: 42px; height: 42px; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: #7b8491; font-size: 24px; cursor: pointer; }
.password-eye.visible { color: var(--blue); background: #eef4fb; }
.auth-submit { width: 100%; min-height: 54px; margin-top: 18px; }
.auth-switch { width: 100%; margin-top: 18px; border: 0; color: #48add2; background: none; }
.auth-error { min-height: 24px; margin-top: 10px; color: #d94b42; font-size: 13px; text-align: center; }
.auth-error button { border: 0; color: #155ba5; background: none; font-weight: 700; text-decoration: underline; }
.checkout-card { width: min(760px,100%); }
.checkout-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.checkout-head h2 { margin: 0; font-size: 29px; }
.checkout-head p { margin: 5px 0 0; color: var(--muted); }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 16px; }
.checkout-total { margin-top: 22px; padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: 22px; }
.checkout-confirm { width: 100%; min-height: 56px; margin-top: 18px; }
.profile-overlay, .address-overlay { position: fixed; z-index: 135; inset: 0; padding: 22px; display: grid; place-items: center; background: rgba(22,28,38,.58); backdrop-filter: blur(5px); }
.profile-modal { position: relative; width: min(1080px,96vw); min-height: 620px; max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 260px 1fr; border-radius: 28px; background: white; box-shadow: 0 30px 90px rgba(4,16,34,.32); }
.profile-close { position: absolute; z-index: 3; top: 20px; right: 20px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f5f6f8; box-shadow: 0 8px 24px rgba(15,30,50,.08); }
.profile-menu { padding: 76px 26px 30px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line); }
.profile-menu > button { padding: 14px 16px; border: 0; border-radius: 11px; color: #252932; background: transparent; font-size: 17px; text-align: left; }
.profile-menu > button.active { background: #eef3fa; font-weight: 800; }
.profile-menu .profile-logout { margin-top: 20px; color: #ef5f62; }
.profile-content { padding: 64px 64px 48px; }
.profile-heading h2 { margin: 0; font-size: 38px; }
.profile-heading p { margin: 7px 0 0; color: var(--muted); }
.personal-form { max-width: 620px; margin-top: 34px; display: grid; gap: 18px; }
.personal-form label, .address-modal label { display: grid; gap: 7px; }
.personal-form label span, .address-modal label span { color: #5d6470; font-size: 14px; }
.personal-form input, .address-modal input, .address-modal select { width: 100%; min-height: 56px; padding: 0 16px; border: 1px solid #dfe2e7; border-radius: 10px; outline: none; background: white; }
.personal-form input:disabled { color: #6d7480; background: #f5f6f8; }
.personal-form .primary { min-height: 56px; margin-top: 8px; }
.form-message { min-height: 20px; color: #21834c; }
.address-empty { min-height: 330px; display: grid; place-content: center; justify-items: center; color: #777f89; text-align: center; }
.address-empty h3 { margin: 14px 0 4px; color: var(--ink); font-size: 24px; }
.address-empty p { margin: 0; }
.address-icon { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 28px; color: white; background: #3979d6; font-size: 56px; line-height: 1; }
.add-address { min-width: 260px; min-height: 54px; display: block; margin: 0 auto; }
.address-list, .profile-orders { margin-top: 30px; display: grid; gap: 12px; }
.address-list article, .profile-orders article { padding: 18px 20px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 14px; }
.address-list article { display: grid; grid-template-columns: 1fr auto; }
.address-list article span { grid-column: 1; color: var(--muted); }
.address-list article button { grid-column: 2; grid-row: 1/3; border: 0; color: #e2545c; background: none; }
.profile-orders article { justify-content: space-between; }
.profile-orders article div { display: grid; gap: 5px; }
.profile-orders article span { color: var(--muted); font-size: 13px; }
.profile-orders article b { color: var(--blue); font-size: 19px; }
.address-modal { position: relative; width: min(720px,96vw); max-height: 92vh; overflow: auto; padding: 54px 70px 46px; display: grid; gap: 17px; border-radius: 28px; background: white; box-shadow: 0 30px 90px rgba(4,16,34,.32); }
.address-modal h2 { margin: 0 0 8px; font-size: 34px; text-align: center; }
.address-small { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.address-modal > .primary { min-height: 58px; margin-top: 12px; }

@media (min-width: 1500px) {
  .products { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media (min-width: 1200px) and (max-width: 1499px) {
  .products { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .products { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (min-width: 701px) and (max-width: 899px) {
  .products { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .site-header { min-height: 82px; }
  .header-inner { height: 82px; grid-template-columns: 56px minmax(0,1fr) 50px; gap: 9px; }
  .brand-button .logo { width: 54px; height: 50px; }
  .search { height: 54px; padding-inline: 14px; border-radius: 16px; }
  .search .icon { width: 23px; height: 23px; }
  .search input { font-size: 15px; }
  .header-action { width: 50px; height: 50px; border-radius: 15px; }
  .header-action .icon { width: 27px; height: 27px; }
  .home-main { width: 100%; }
  .hero { width: calc(100% - 12px); height: min(48vh,310px); margin: 12px 6px 0; aspect-ratio: auto; min-height: 210px; border-radius: 16px; }
  .hero-track img { object-fit: cover; }
  .section-title { margin: 20px 10px 14px; font-size: 20px; }
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 10px; }
  .product-image { aspect-ratio: 1.35/1; border-radius: 14px; }
  .product-body { padding: 8px 1px 10px; }
  .product-price { font-size: 17px; }
  .card-heart { width: 34px; height: 34px; flex-basis: 34px; }
  .product-title { font-size: 13px; }
  .product-code { font-size: 12px; }
  .card-cart { min-height: 42px; border-radius: 11px; font-size: 13px; }
  .detail-heading h2 { font-size: 20px; }
  .detail-heart { width: 44px; height: 44px; flex-basis: 44px; }
  .zoom-button { display: none; }
  .language-menu { top: 60px; right: 8px; width: 190px; }
  .search-overlay { padding-top: 0; }
  .search-panel { width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; }
  .search-panel-head { padding: 15px 12px; grid-template-columns: 24px 1fr 40px; gap: 9px; }
  .search-panel-head input { font-size: 19px; }
  .search-categories { padding: 12px; }
  .search-list { padding: 0 12px 90px; }
  .search-result { grid-template-columns: 72px minmax(0,1fr) max-content; gap: 11px; padding: 12px 0; }
  .search-result img { width: 72px; height: 66px; border-radius: 10px; }
  .search-result strong { font-size: 14px; }
  .search-result > b { font-size: 15px; }
  .product-modal-overlay { display: none; }
  .catalog-modal .category-arrow, .catalog-modal .category-btn, .catalog-modal .category-btn strong, .catalog-modal .category-gear { color: #111; }
  .catalog-modal .category-arrow .icon { stroke: #111; }
  .language-menu button, .language-menu button.active, .language-menu button:hover { color: #111; }
  .language-menu button.active { background: #f0f1f3; }
  .search-panel, .search-panel button, .search-panel input, .search-panel small, .search-panel strong, .search-panel em, .search-panel b, .search-panel span, .search-panel .icon { color: #111 !important; }
  .search-categories button { border-color: #c8cbd0; }
  .info-overlay { padding: 10px; align-items: center; }
  .info-modal { width: 100%; max-height: 94vh; border-radius: 22px; }
  .info-head { padding: 20px 18px 14px; }
  .info-head h2 { font-size: 25px; }
  .info-body { padding: 14px 18px 24px; }
  .faq-list { gap: 9px; }
  .faq-question { min-height: 62px; padding: 13px 16px; font-size: 16px; }
  .faq-answer p { font-size: 15px; }
  .about-brand { align-items: flex-start; padding: 16px; }
  .about-brand img { width: 68px; height: 58px; }
  .about-brand h3 { font-size: 23px; }
  .about-grid { grid-template-columns: 1fr; }
  .bottom-nav { height: calc(92px + env(safe-area-inset-bottom)); padding: 4px 8px env(safe-area-inset-bottom); border-top: 1px solid #e6e8eb; background: rgba(255,255,255,.98); box-shadow: 0 -10px 30px rgba(22,34,48,.08); backdrop-filter: blur(18px); }
  .app-shell { padding-bottom: calc(102px + env(safe-area-inset-bottom)); }
  .nav-item { min-height: 82px; padding: 9px 2px 7px; gap: 6px; border-radius: 14px; color: #777f87; }
  .nav-item .icon { width: 32px; height: 32px; stroke-width: 1.8; }
  .nav-item span { max-width: 100%; overflow: hidden; color: inherit; font-size: 12px; line-height: 1.1; white-space: nowrap; text-overflow: ellipsis; }
  .nav-item.active { color: #155443; background: linear-gradient(180deg,rgba(21,84,67,.04),transparent); }
  .nav-item.active .icon { stroke-width: 2.2; }
  .nav-badge { top: 5px; left: calc(50% + 8px); min-width: 25px; height: 25px; padding: 0 7px; border: 3px solid white; border-radius: 99px; background: #155443; font-size: 12px; }
  .whatsapp { bottom: calc(106px + env(safe-area-inset-bottom)); }
  .auth-card, .checkout-card { max-height: 94vh; overflow: auto; padding: 28px 20px 30px; border-radius: 24px; }
  .auth-card h2 { font-size: 29px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .profile-overlay, .address-overlay { padding: 0; align-items: end; }
  .profile-modal { width: 100%; min-height: 90vh; max-height: 96vh; grid-template-columns: 1fr; border-radius: 24px 24px 0 0; }
  .profile-menu { padding: 70px 14px 10px; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-menu > button { flex: 0 0 auto; padding: 10px 12px; font-size: 14px; white-space: nowrap; }
  .profile-menu .profile-logout { margin: 0; }
  .profile-content { padding: 28px 18px 100px; }
  .profile-heading h2 { font-size: 29px; }
  .personal-form { margin-top: 24px; }
  .address-modal { width: 100%; max-height: 96vh; padding: 56px 18px 28px; border-radius: 24px 24px 0 0; }
  .address-small { gap: 8px; }
  .address-modal h2 { font-size: 28px; }
}

/* Product details: description and related products */
.product-detail { width: min(1500px,100%); grid-template-columns: minmax(0,1.35fr) minmax(360px,.9fr); align-items: start; gap: 24px; padding: 28px 24px 96px; }
.detail-media { box-shadow: none; }
.detail-media img { display: block; aspect-ratio: 1.32/1; }
.detail-side { display: grid; gap: 18px; }
.detail-card { padding: 28px; box-shadow: none; }
.detail-card h2 { font-size: clamp(24px,2.25vw,38px); line-height: 1.24; }
.detail-price { margin-top: 26px; font-size: clamp(30px,3vw,46px); }
.description-card { padding: 26px 28px; border-radius: 20px; background: #fff; }
.description-card h3 { margin: 0 0 12px; color: var(--muted); font-size: 20px; font-weight: 500; }
.description-card p { margin: 0 0 18px; color: #3f4650; line-height: 1.6; }
.description-card .spec-row { padding: 10px 0; }
.detail-cart { width: 100%; min-height: 64px; border-radius: 16px; font-size: 20px; }
.similar-section { grid-column: 1/-1; padding: 26px 28px 32px; border-radius: 22px; background: #fff; }
.similar-section h3 { margin: 0 0 22px; color: var(--muted); font-size: 22px; font-weight: 500; }
.similar-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 24px; }
.similar-card { min-width: 0; }
.similar-open { width: 100%; display: block; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #eef0f3; }
.similar-open img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }
.similar-topline { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.similar-topline strong { color: var(--blue); font-size: 22px; }
.similar-heart { width: 38px; height: 38px; flex: 0 0 38px; color: #a3a7ac; }
.similar-heart.active { color: #e45465; }
.similar-name { width: 100%; overflow: hidden; margin-top: 3px; padding: 0; border: 0; color: #20232a; background: none; font-size: 16px; font-weight: 600; text-align: left; white-space: nowrap; text-overflow: ellipsis; }
.similar-card > span { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; }
.product-price .vip-price, .detail-price .vip-price { display: inline-block; color: #155443; }
.product-price .regular-price, .detail-price .regular-price { display: block; margin-top: 2px; color: #9aa0a7; font-size: .55em; font-weight: 500; text-decoration: line-through; }
.vip-note, .vip-client-badge { width: max-content; margin-top: 10px; padding: 6px 10px; border-radius: 999px; color: #155443; background: #e7f3ee; font-size: 12px; font-weight: 800; letter-spacing: .03em; }

@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; padding-inline: 16px; }
  .detail-side { gap: 14px; }
  .similar-section { grid-column: auto; }
  .similar-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .product-detail { gap: 14px; padding: 12px 10px 92px; }
  .detail-media, .detail-card, .description-card, .similar-section { border-radius: 16px; }
  .detail-card, .description-card { padding: 18px; }
  .detail-card h2 { font-size: 21px; }
  .detail-price { margin-top: 14px; font-size: 29px; }
  .description-card h3 { font-size: 18px; }
  .detail-cart { min-height: 54px; font-size: 17px; }
  .similar-section { padding: 20px 14px 24px; overflow: hidden; }
  .similar-section h3 { margin-bottom: 16px; font-size: 19px; }
  .similar-grid { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
  .similar-card { min-width: 156px; flex: 0 0 156px; scroll-snap-align: start; }
  .similar-topline strong { font-size: 18px; }
  .similar-name { font-size: 14px; }

  .bottom-nav { height: calc(98px + env(safe-area-inset-bottom)); padding: 5px 4px env(safe-area-inset-bottom); border-top: 1px solid #e7e5e2; background: #fff; box-shadow: 0 -5px 22px rgba(26,35,43,.05); backdrop-filter: none; }
  .app-shell { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .nav-item { min-height: 88px; padding: 9px 2px 7px; gap: 7px; border-radius: 0; color: #7d858d; background: transparent; }
  .nav-item .icon { width: 35px; height: 35px; stroke-width: 1.75; }
  .nav-item span { font-size: 12px; line-height: 1.15; }
  .nav-item.active { color: #155443; background: transparent; }
  .nav-item.active .icon { stroke-width: 2.05; }
  .nav-badge { top: 3px; left: calc(50% + 9px); min-width: 27px; height: 27px; padding: 0 7px; border: 3px solid #fff; background: #155443; font-size: 12px; }
  .whatsapp { bottom: calc(112px + env(safe-area-inset-bottom)); }
}

/* Keep storefront banners aligned with the crop ratios used in the admin editor. */
.hero {
  height: auto;
  min-height: 0;
  aspect-ratio: 3.55 / 1;
}

.hero-track img {
  object-fit: contain;
}

@media (max-width: 700px) {
  .hero {
    width: calc(100% - 12px);
    height: auto;
    min-height: 0;
    aspect-ratio: 2.12 / 1;
  }

  .hero-track img {
    object-fit: contain;
  }
}
