:root {
  --brand: #0067b2;
  --brand-dark: #004b87;
  --brand-soft: #e9f4fc;
  --green: #00b77e;
  --green-dark: #008f65;
  --ink: #123047;
  --muted: #687b89;
  --line: #dce6ec;
  --paper: #ffffff;
  --canvas: #f5f9fb;
  --danger: #c83e55;
  --shadow: 0 24px 70px rgba(15, 54, 81, .13);
  --radius-lg: 28px;
  --radius-md: 16px;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }

.login-page { overflow-x: hidden; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.06fr .94fr; }
.login-brand {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(34px, 6vw, 76px);
  display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: linear-gradient(145deg, #003c70 0%, #0064aa 55%, #007f9b 100%);
}
.login-brand::before, .login-brand::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.login-brand::before { width: 470px; height: 470px; right: -190px; top: -140px; border: 80px solid rgba(255,255,255,.07); }
.login-brand::after { width: 390px; height: 390px; left: -170px; bottom: -230px; background: rgba(0,183,126,.3); }
.brand-logo { width: min(360px, 70%); filter: brightness(0) invert(1); }
.brand-message { max-width: 680px; margin: 12vh 0 10vh; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--green); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 800; }
.login-brand .eyebrow { color: #6ff0c4; }
.brand-message h1 { max-width: 720px; margin: 0 0 22px; font: 800 clamp(2.5rem, 5vw, 5.25rem)/.98 "Manrope", sans-serif; letter-spacing: -.055em; }
.brand-message h1 em { color: #72e7c2; font-style: normal; }
.brand-message p { max-width: 560px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.65; }
.trust-row { display: flex; gap: 28px; flex-wrap: wrap; color: rgba(255,255,255,.84); font-size: .88rem; }
.trust-row span::first-letter { color: #6ff0c4; }

.login-panel { padding: 42px clamp(24px, 6vw, 90px); display: grid; place-content: center; position: relative; }
.login-card { width: min(450px, 100%); }
.mobile-logo-wrap { display: none; }
.login-card h2 { margin: 0 0 10px; font: 800 clamp(2rem, 4vw, 3rem)/1.08 "Manrope", sans-serif; letter-spacing: -.04em; }
.login-intro { margin: 0 0 34px; color: var(--muted); }
.login-form { display: grid; gap: 10px; }
.login-form > label, .label-row label { font-size: .88rem; font-weight: 700; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; }
.text-button { border: 0; padding: 2px; background: none; color: var(--brand); font-size: .8rem; font-weight: 700; }
.input-wrap { min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); transition: .2s ease; }
.input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,103,178,.1); }
.input-wrap > span { color: var(--brand); font-size: .8rem; }
.input-wrap input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.input-wrap input::placeholder { color: #9aa8b2; }
.password-toggle { border: 0; background: none; color: var(--brand); font-size: .78rem; font-weight: 800; }
.remember { display: flex; align-items: center; gap: 9px; margin: 8px 0 14px; color: var(--muted); font-weight: 500 !important; }
.remember input { width: 17px; height: 17px; accent-color: var(--green); }
.primary-button { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 13px; padding: 0 22px; color: #fff; background: var(--brand); font-weight: 800; box-shadow: 0 10px 26px rgba(0,103,178,.22); transition: transform .2s, background .2s; }
.primary-button:hover { background: var(--brand-dark); transform: translateY(-2px); }
.form-message { min-height: 20px; margin: 0; color: var(--danger); font-size: .82rem; }
.demo-note { margin: 24px 0 0; padding: 14px 16px; border-radius: 12px; color: var(--muted); background: var(--brand-soft); font-size: .8rem; line-height: 1.5; }
.demo-note strong { color: var(--brand-dark); }
.support-note { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .84rem; }
.support-note a { color: var(--brand); font-weight: 700; text-decoration: none; }

@media (max-width: 840px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 38px 22px 92px; }
  .mobile-logo-wrap { display: block; margin-bottom: 56px; }
  .mobile-logo { width: 240px; max-width: 72vw; }
}

@media (max-width: 420px) {
  .login-card h2 { font-size: 2rem; }
  .login-intro { margin-bottom: 26px; }
  .mobile-logo-wrap { margin-bottom: 42px; }
}

/* Store shell */
.site-header { height: 84px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: clamp(28px, 5vw, 76px); padding: 0 max(24px, calc((100vw - 1320px) / 2)); border-bottom: 1px solid rgba(220,230,236,.85); background: rgba(255,255,255,.94); backdrop-filter: blur(15px); }
.header-brand img { display: block; width: 218px; max-height: 58px; object-fit: contain; }
.desktop-nav { display: flex; align-self: stretch; gap: 34px; }
.desktop-nav a { display: grid; place-items: center; position: relative; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 700; }
.desktop-nav a::after { content: ""; position: absolute; bottom: 0; left: 50%; right: 50%; height: 3px; background: var(--green); transition: .2s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--brand-dark); }
.desktop-nav a.active::after { left: 0; right: 0; }
.nav-service-info { align-self: center; display: flex; align-items: center; gap: 10px; margin-left: 4px; padding: 8px 12px; border: 1px solid #cbeadd; border-radius: 12px; color: var(--green-dark); background: #effbf6; }
.nav-service-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px; background: #fff; font-size: .95rem; }
.nav-service-copy { display: grid; gap: 1px; white-space: nowrap; }
.nav-service-copy strong { font-size: .72rem; line-height: 1.2; }
.nav-service-copy small { color: #548273; font-size: .62rem; line-height: 1.2; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 6px 15px 6px 7px; border: 1px solid transparent; border-right-color: var(--line); border-radius: 12px 0 0 12px; color: inherit; text-decoration: none; transition: .2s ease; }
.user-chip:hover, .user-chip.active-profile { border-color: #cce0ed; color: var(--brand-dark); background: var(--brand-soft); }
.user-chip > span:last-child { display: grid; gap: 1px; }
.user-chip small { color: var(--muted); font-size: .68rem; }
.user-chip strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; }
.user-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); font-size: .72rem; font-weight: 800; }
.icon-button, .menu-toggle { width: 44px; height: 44px; position: relative; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--brand-dark); font-size: 1.08rem; }
.cart-count { min-width: 19px; height: 19px; position: absolute; right: -6px; top: -6px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 999px; color: #fff; background: var(--green); font-size: .62rem; font-weight: 800; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

.store-main { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 70px; }
.catalog-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.catalog-intro h1, .page-heading h1 { max-width: 750px; margin: 0 0 13px; font: 800 clamp(2.2rem, 4vw, 4rem)/1.04 "Manrope", sans-serif; letter-spacing: -.05em; color: var(--ink); }
.catalog-intro p, .page-heading p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.service-card { min-width: 345px; display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid #cbeadd; border-radius: 15px; color: var(--green-dark); background: #effbf6; }
.service-card > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: #fff; }
.service-card div { display: grid; gap: 2px; }
.service-card strong { font-size: .82rem; }
.service-card small { color: #548273; font-size: .7rem; }

.catalog-tools { position: sticky; z-index: 20; top: 96px; display: grid; grid-template-columns: minmax(300px, 1fr) 195px 195px auto; gap: 12px; margin-bottom: 38px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 10px 35px rgba(15,54,81,.09); backdrop-filter: blur(15px); }
.search-box { min-height: 52px; display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,103,178,.08); }
.search-box > span { color: var(--brand); font-size: 1.5rem; transform: rotate(-15deg); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box kbd { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: #8a9aa5; background: #fff; font: 500 .65rem "DM Sans"; }
.filter-select { display: grid; gap: 3px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .65rem; font-weight: 700; }
.filter-select select { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .82rem; font-weight: 700; }
.outline-button, .pill-button { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; color: var(--brand-dark); background: #fff; font-weight: 700; font-size: .8rem; }
.outline-button:hover { border-color: var(--brand); background: var(--brand-soft); }
.catalog-status { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 20px; }
.catalog-status p { margin: 0; color: var(--muted); font-size: .82rem; }
.catalog-status strong { color: var(--ink); }
.pill-button { min-height: 38px; border-radius: 999px; color: var(--muted); }
.pill-button.active { border-color: #f0c349; color: #785d10; background: #fff8dc; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); transition: transform .25s, box-shadow .25s, border-color .25s; }
.product-card:hover { transform: translateY(-4px); border-color: #bdd7e6; box-shadow: 0 18px 45px rgba(15,54,81,.1); }
.product-image-wrap { height: 220px; position: relative; overflow: hidden; background: #eaf1f4; }
.product-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-image { transform: scale(1.035); }
.product-badge { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 6px 9px; border-radius: 8px; color: #fff; background: var(--brand); font-size: .66rem; font-weight: 800; }
.stock-badge { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; color: #20654e; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); font-size: .65rem; font-weight: 800; }
.stock-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.product-content { padding: 18px; }
.product-meta { margin: 0 0 7px; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; font-size: .64rem; font-weight: 800; }
.product-content h2 { min-height: 48px; margin: 0 0 8px; font: 800 1.04rem/1.35 "Manrope"; letter-spacing: -.02em; }
.product-description { height: 42px; overflow: hidden; margin: 0 0 14px; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.product-sku { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid #edf2f5; color: #8697a3; font-size: .65rem; }
.product-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; }
.product-price { display: grid; }
.product-footer strong { font: 800 1.2rem "Manrope"; color: var(--brand-dark); }
.product-footer small { color: #97a5ae; font-size: .6rem; }
.product-purchase { display: flex; align-items: center; gap: 6px; }
.product-card-quantity { width: 52px; min-height: 39px; border: 1px solid var(--line); border-radius: 10px; padding: 0 4px; outline: 0; color: var(--ink); background: var(--canvas); text-align: center; font-size: .76rem; font-weight: 800; }
.product-card-quantity:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,103,178,.08); }
.add-cart-button { min-height: 39px; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 10px; padding: 0 11px; color: #fff; background: var(--green); font-size: .72rem; font-weight: 800; }
.add-cart-button:hover { background: var(--green-dark); }
.add-cart-button span { font-size: .95rem; }
.product-preview-button { width: 100%; border: 0; padding: 5px 0; color: var(--brand); background: transparent; text-align: left; font-size: .72rem; font-weight: 800; }
.product-preview-button:hover { color: var(--brand-dark); }
.product-preview-button span { float: right; }
.loading-card { height: 480px; border-radius: 20px; background: linear-gradient(100deg, #edf2f4 20%, #f8fbfc 35%, #edf2f4 50%); background-size: 300% 100%; animation: loading 1.4s infinite; }
@keyframes loading { to { background-position: -150% 0; } }
.empty-products { grid-column: 1 / -1; padding: 75px 20px; text-align: center; border: 1px dashed #cbd9e0; border-radius: 20px; background: #fff; }
.empty-products > span { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 1.6rem; }
.empty-products h2 { margin: 0 0 7px; font-family: "Manrope"; }
.empty-products p { margin: 0 0 20px; color: var(--muted); }
.empty-products .outline-button { min-height: 42px; }
.product-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 34px 0 0; }
.product-pagination[hidden] { display: none; }
.pagination-pages { display: flex; align-items: center; gap: 7px; }
.product-pagination button { min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; color: var(--brand-dark); background: #fff; font-size: .78rem; font-weight: 800; }
.product-pagination button:hover:not(:disabled), .product-pagination button.active { border-color: var(--brand); color: #fff; background: var(--brand); }
.product-pagination button:disabled { cursor: not-allowed; opacity: .4; }
.pagination-ellipsis { min-width: 24px; color: var(--muted); text-align: center; }

.support-banner { margin-top: 58px; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; position: relative; isolation: isolate; padding: 42px clamp(26px, 5vw, 64px); border-radius: 25px; color: #fff; background: linear-gradient(120deg, #004d89, #006fad); }
.support-banner::after { content: "+"; position: absolute; z-index: -1; right: 4%; top: -80px; color: rgba(255,255,255,.06); font: 800 18rem/1 "Manrope"; }
.support-banner .eyebrow { color: #73e9c4; }
.support-banner h2 { margin: 0 0 7px; font: 800 clamp(1.7rem, 3vw, 2.6rem) "Manrope"; letter-spacing: -.04em; }
.support-banner p { margin: 0; color: rgba(255,255,255,.72); }
.light-button, .primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; padding: 0 20px; text-decoration: none; font-weight: 800; font-size: .82rem; }
.light-button { flex: 0 0 auto; color: var(--brand-dark); background: #fff; }
.primary-link { color: #fff; background: var(--brand); box-shadow: 0 10px 26px rgba(0,103,178,.18); }

/* Cart drawer */
.drawer-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(8,31,48,.45); backdrop-filter: blur(2px); }
.cart-drawer { width: min(470px, 100%); position: fixed; z-index: 51; inset: 0 0 0 auto; display: grid; grid-template-rows: auto 1fr auto; transform: translateX(105%); background: #fff; box-shadow: -20px 0 60px rgba(8,31,48,.2); transition: transform .3s ease; }
.cart-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 26px 27px 20px; border-bottom: 1px solid var(--line); }
.drawer-header .eyebrow { margin-bottom: 5px; }
.drawer-header h2 { margin: 0; font: 800 1.45rem "Manrope"; letter-spacing: -.04em; }
.drawer-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; font-size: 1.5rem; }
.cart-items { overflow-y: auto; padding: 10px 27px; }
.cart-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid #edf2f5; }
.cart-item img { width: 78px; height: 82px; object-fit: cover; border-radius: 12px; background: var(--canvas); }
.cart-item-info { min-width: 0; }
.cart-item-info p { margin: 0 0 3px; font-weight: 800; font-size: .87rem; }
.cart-item-info small { display: block; color: var(--muted); font-size: .68rem; }
.cart-item-info strong { display: block; margin-top: 8px; color: var(--brand-dark); font-size: .82rem; }
.remove-item { align-self: start; border: 0; color: #9aabb5; background: none; font-size: 1.25rem; }
.quantity-control { width: 95px; height: 30px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; margin-top: 11px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: .72rem; font-weight: 700; }
.quantity-control button { height: 100%; border: 0; color: var(--brand); background: transparent; }
.quantity-control button:disabled { color: #cbd4da; }
.drawer-footer { padding: 20px 27px 27px; border-top: 1px solid var(--line); box-shadow: 0 -12px 25px rgba(15,54,81,.04); }
.cart-total { display: flex; align-items: center; justify-content: space-between; }
.cart-total span { color: var(--muted); font-size: .84rem; }
.cart-total strong { color: var(--brand-dark); font: 800 1.55rem "Manrope"; }
.drawer-footer p { margin: 6px 0 15px; color: #8c9aa4; font-size: .67rem; }
.cart-comment { display: grid; gap: 7px; margin-top: 17px; }
.cart-comment > span { display: flex; justify-content: space-between; color: var(--ink); font-size: .76rem; font-weight: 800; }
.cart-comment small { color: var(--muted); font-weight: 500; }
.cart-comment textarea { width: 100%; resize: vertical; min-height: 70px; max-height: 150px; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; outline: 0; color: var(--ink); background: var(--canvas); font: 500 .76rem/1.4 "DM Sans"; }
.cart-comment textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,103,178,.08); }
.drawer-footer .primary-button { width: 100%; }
.drawer-footer .primary-button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.empty-cart { padding: 90px 20px; text-align: center; }
.empty-cart span { font-size: 2.5rem; filter: grayscale(1); opacity: .4; }
.empty-cart h3 { margin: 16px 0 7px; font-family: "Manrope"; }
.empty-cart p { max-width: 270px; margin: 0 auto; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.no-scroll { overflow: hidden; }
.product-modal { width: min(980px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 0; border-radius: 24px; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(8,31,48,.28); }
.product-modal::backdrop { background: rgba(8,31,48,.58); backdrop-filter: blur(4px); }
.product-modal-close { width: 42px; height: 42px; position: absolute; z-index: 3; top: 16px; right: 16px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.94); font-size: 1.5rem; }
.product-modal-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); min-height: 590px; }
.product-gallery { min-width: 0; padding: 28px; background: #f3f6f7; }
.product-gallery-main { height: 440px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: #fff; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbnails { display: flex; gap: 9px; overflow-x: auto; padding: 14px 1px 4px; }
.product-thumbnails button { width: 70px; height: 62px; flex: 0 0 auto; overflow: hidden; border: 2px solid transparent; border-radius: 10px; padding: 0; background: #fff; }
.product-thumbnails button.active { border-color: var(--brand); }
.product-thumbnails img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-images-status { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: .7rem; }
.product-modal-info { display: flex; flex-direction: column; padding: 48px 38px 34px; }
.product-modal-info h2 { margin: 0 45px 12px 0; font: 800 clamp(1.65rem, 3vw, 2.35rem)/1.12 "Manrope"; letter-spacing: -.04em; }
.product-modal-description { margin: 0 0 23px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.product-modal-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 26px; }
.product-modal-data div { min-width: 0; padding: 12px; border-radius: 11px; background: var(--canvas); }
.product-modal-data dt { margin-bottom: 4px; color: var(--muted); font-size: .64rem; }
.product-modal-data dd { overflow: hidden; margin: 0; text-overflow: ellipsis; font-size: .75rem; font-weight: 800; }
.product-modal-price { display: grid; gap: 2px; margin-top: auto; }
.product-modal-price span, .product-modal-price small { color: var(--muted); font-size: .68rem; }
.product-modal-price strong { color: var(--brand-dark); font: 800 1.75rem "Manrope"; }
.product-modal-purchase { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-modal-purchase > label { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 800; }
.product-modal-actions { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.product-quantity-input { height: 52px; display: grid; grid-template-columns: 38px 1fr 38px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.product-quantity-input button { border: 0; color: var(--brand); background: transparent; font-weight: 800; }
.product-quantity-input input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; text-align: center; font-weight: 800; appearance: textfield; }
.product-quantity-input input::-webkit-inner-spin-button { appearance: none; }
.product-modal-actions .primary-button { min-height: 52px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 26px; max-width: calc(100% - 32px); transform: translate(-50%, 30px); padding: 13px 18px; border-radius: 10px; color: #fff; background: #143a4f; box-shadow: 0 12px 35px rgba(8,31,48,.25); font-size: .82rem; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Checkout */
.checkout-page { min-height: calc(100vh - 84px); }
.checkout-heading { align-items: center; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: start; }
.checkout-products-panel, .checkout-summary-panel { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 35px rgba(15,54,81,.05); }
.checkout-products-panel { overflow: hidden; }
.checkout-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.checkout-panel-heading h2, .shipping-address-panel h2 { margin: 0 0 4px; font: 800 1.15rem "Manrope"; }
.checkout-panel-heading p, .shipping-address-panel p { margin: 0; color: var(--muted); font-size: .74rem; }
.checkout-panel-heading > strong { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; color: var(--green-dark); background: #eaf9f3; font-size: .7rem; }
.checkout-items { padding: 4px 26px; }
.checkout-product { display: grid; grid-template-columns: 74px minmax(0, 1fr) 72px 105px; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid #edf2f5; }
.checkout-product:last-child { border-bottom: 0; }
.checkout-product > img { width: 74px; height: 74px; object-fit: cover; border-radius: 12px; background: var(--canvas); }
.checkout-product > div { min-width: 0; display: grid; gap: 4px; }
.checkout-product > div strong { overflow: hidden; text-overflow: ellipsis; font-size: .83rem; }
.checkout-product > div small, .checkout-product > div span, .checkout-product-quantity small { color: var(--muted); font-size: .67rem; }
.checkout-product-quantity { display: grid; gap: 3px; text-align: center; }
.checkout-product-quantity strong { font-size: .85rem; }
.checkout-product-subtotal { color: var(--brand-dark); text-align: right; font-size: .84rem; }
.checkout-loading, .checkout-empty { padding: 80px 20px; text-align: center; color: var(--muted); }
.checkout-empty > span { font-size: 2.4rem; }
.checkout-empty h2 { margin: 14px 0 6px; color: var(--ink); font-family: "Manrope"; }
.checkout-empty p { margin: 0 0 20px; }
.checkout-summary-panel { position: sticky; top: 100px; padding: 25px; }
.checkout-summary-panel form { display: grid; gap: 18px; }
.delivery-fieldset { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.delivery-fieldset legend { margin-bottom: 12px; font: 800 1.05rem "Manrope"; }
.delivery-option { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: .2s ease; }
.delivery-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(0,103,178,.06); }
.delivery-option input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--brand); }
.delivery-option span { display: grid; gap: 3px; }
.delivery-option strong { font-size: .78rem; }
.delivery-option small { color: var(--muted); font-size: .66rem; line-height: 1.4; }
.shipping-address-panel { display: grid; gap: 8px; padding: 16px; border-radius: 13px; background: var(--canvas); }
.shipping-address-panel[hidden] { display: none; }
.shipping-address-panel > div { margin-bottom: 5px; }
.shipping-address-panel > label { font-size: .7rem; font-weight: 800; }
.shipping-address-panel select, .shipping-address-panel textarea, .checkout-comment textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; outline: 0; color: var(--ink); background: #fff; font: 500 .75rem/1.45 "DM Sans"; }
.shipping-address-panel select:focus, .shipping-address-panel textarea:focus, .checkout-comment textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,103,178,.08); }
.shipping-address-panel textarea { resize: vertical; }
.shipping-address-panel textarea[readonly] { color: var(--muted); background: #eef3f5; }
.shipping-address-panel > small { color: var(--muted); font-size: .62rem; line-height: 1.4; }
.checkout-comment { display: grid; gap: 7px; }
.checkout-comment > span { display: flex; justify-content: space-between; font-size: .74rem; font-weight: 800; }
.checkout-comment span small { color: var(--muted); font-weight: 500; }
.checkout-comment textarea { min-height: 76px; resize: vertical; }
.checkout-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.checkout-totals span { display: grid; gap: 3px; }
.checkout-totals span:last-child { text-align: right; }
.checkout-totals small { color: var(--muted); font-size: .68rem; }
.checkout-totals strong { color: var(--brand-dark); font: 800 1.22rem "Manrope"; }
.checkout-note { margin: -8px 0 0; color: var(--muted); font-size: .64rem; line-height: 1.45; }
.checkout-message { min-height: 18px; margin: -6px 0; color: var(--green-dark); font-size: .72rem; font-weight: 700; }
.checkout-message.error { color: var(--danger); }
.checkout-summary-panel .primary-button { width: 100%; }
.checkout-summary-panel .primary-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }

/* Orders */
.orders-page { min-height: calc(100vh - 84px); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.page-heading h1 { font-size: clamp(2.2rem, 4vw, 3.7rem); }
.order-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.order-summary-grid article { display: grid; gap: 5px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.order-summary-grid span { color: var(--muted); font-size: .75rem; }
.order-summary-grid strong { color: var(--brand-dark); font: 800 1.8rem "Manrope"; }
.order-summary-grid small { color: #9aa8b1; font-size: .66rem; }
.orders-list { display: grid; gap: 16px; }
.order-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 30px rgba(15,54,81,.04); }
.order-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 25px 15px; }
.order-head small, .order-meta small { display: block; margin-bottom: 3px; color: var(--muted); font-size: .66rem; }
.order-head h2 { margin: 0; font: 800 1.15rem "Manrope"; color: var(--brand-dark); }
.order-state { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: #227456; background: #eaf9f3; font-size: .7rem; font-weight: 800; }
.order-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.order-meta { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; align-items: center; gap: 25px; padding: 16px 25px; border-top: 1px solid #edf2f5; background: #fbfdfe; }
.order-meta strong { font-size: .78rem; }
.order-toggle { border: 0; padding: 8px; color: var(--brand); background: none; font-size: .75rem; font-weight: 800; }
.order-detail { padding: 0 25px; border-top: 1px solid #edf2f5; }
.order-product { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf2f5; }
.order-product:last-child { border-bottom: 0; }
.order-product img { width: 48px; height: 48px; object-fit: cover; border-radius: 9px; }
.order-product div { display: grid; gap: 3px; }
.order-product strong { font-size: .78rem; }
.order-product small, .order-product > span { color: var(--muted); font-size: .68rem; }
.order-product > span { display: grid; gap: 3px; text-align: right; }
.order-product > span strong { color: var(--brand-dark); }
.purchase-comment { margin: 0 -25px; padding: 13px 25px; border-bottom: 1px solid #edf2f5; color: var(--muted); background: #fbfdfe; font-size: .72rem; }
.purchase-comment strong { color: var(--ink); }
.empty-orders, .orders-loading { padding: 90px 20px; text-align: center; border: 1px dashed #cbd9e0; border-radius: 20px; background: #fff; }
.empty-orders > span { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 1.6rem; }
.empty-orders h2 { margin: 0 0 8px; font-family: "Manrope"; }
.empty-orders p { margin: 0 auto 20px; color: var(--muted); }
.orders-loading { color: var(--muted); }

/* Profile */
.profile-page { min-height: calc(100vh - 84px); }
.profile-heading { align-items: center; }
.back-link { color: var(--brand); text-decoration: none; font-size: .82rem; font-weight: 800; }
.back-link:hover { text-decoration: underline; }
.profile-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-summary, .security-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 35px rgba(15,54,81,.05); }
.profile-summary { padding: 30px 25px; text-align: center; }
.profile-avatar { width: 80px; height: 80px; display: grid; place-items: center; margin: 0 auto 17px; border: 5px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--brand), #009a9a); box-shadow: 0 0 0 1px #cae1ee, 0 10px 25px rgba(0,103,178,.18); font: 800 1.4rem "Manrope"; }
.profile-summary h2 { margin: 0 0 4px; font: 800 1.2rem "Manrope"; text-transform: capitalize; }
.profile-summary > p { margin: 0 0 13px; overflow-wrap: anywhere; color: var(--muted); font-size: .78rem; }
.account-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; color: #237257; background: #eaf9f3; font-size: .66rem; font-weight: 800; }
.account-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.profile-note { display: flex; gap: 10px; margin: 27px 0 20px; padding: 14px; border-radius: 12px; text-align: left; color: var(--muted); background: var(--brand-soft); }
.profile-note > span { color: var(--green-dark); font-weight: 800; }
.profile-note p { margin: 0; font-size: .7rem; line-height: 1.45; }
.profile-note strong { display: block; margin-bottom: 3px; color: var(--brand-dark); }
.profile-summary .outline-button { width: 100%; min-height: 44px; }
.security-card { overflow: hidden; }
.security-card-heading { display: flex; align-items: center; gap: 15px; padding: 27px 30px 23px; border-bottom: 1px solid var(--line); }
.security-icon { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--brand); background: var(--brand-soft); font-size: 1.35rem; }
.security-card-heading h2 { margin: 0 0 4px; font: 800 1.25rem "Manrope"; }
.security-card-heading p { margin: 0; color: var(--muted); font-size: .77rem; }
.profile-form { display: grid; gap: 10px; padding: 28px 30px 32px; }
.profile-form > label, .profile-form-grid label { display: block; margin-bottom: 7px; font-size: .8rem; font-weight: 800; }
.profile-form > .input-wrap { max-width: 500px; }
.profile-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; }
.password-guidance { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 9px; padding: 13px 15px; border-radius: 11px; color: var(--muted); background: var(--canvas); font-size: .69rem; }
.password-guidance strong { flex-basis: 100%; color: var(--ink); }
.password-guidance span.valid { color: var(--green-dark); font-weight: 700; }
.profile-message { min-height: 21px; margin: 3px 0 0; font-size: .78rem; font-weight: 700; }
.profile-message.error { color: var(--danger); }
.profile-message.success { color: var(--green-dark); }
.form-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.form-actions .primary-button { min-width: 250px; }
.form-actions .primary-button:disabled { cursor: wait; opacity: .65; transform: none; }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-tools { grid-template-columns: 1fr 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .catalog-tools .outline-button { min-height: 50px; }
}

@media (min-width: 821px) and (max-width: 1280px) {
  .site-header { gap: 24px; }
  .desktop-nav { gap: 22px; }
  .nav-service-info { display: none; }
}

@media (max-width: 820px) {
  .site-header { height: 72px; padding: 0 20px; }
  .header-brand img { width: 175px; }
  .desktop-nav, .user-chip { display: none; }
  .menu-toggle { display: grid; }
  .mobile-nav { position: fixed; z-index: 29; top: 72px; left: 0; right: 0; display: grid; gap: 3px; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 12px 25px rgba(15,54,81,.1); transform: translateY(-130%); transition: transform .25s; }
  .mobile-nav.open { transform: translateY(0); }
  .mobile-nav a, .mobile-nav button { padding: 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; text-decoration: none; text-align: left; font-weight: 700; }
  .mobile-nav a.active { color: var(--brand); background: var(--brand-soft); }
  .store-main { width: min(100% - 32px, 700px); padding-top: 38px; }
  .catalog-intro { align-items: flex-start; flex-direction: column; }
  .service-card { min-width: 0; width: 100%; }
  .catalog-tools { top: 84px; grid-template-columns: 1fr 1fr; }
  .catalog-tools .outline-button { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary-panel { position: static; }
  .support-banner, .page-heading { align-items: flex-start; flex-direction: column; }
  .order-summary-grid { grid-template-columns: 1fr 1fr; }
  .order-summary-grid article:last-child { grid-column: 1 / -1; }
  .order-meta { grid-template-columns: 1fr 1fr; }
  .order-toggle { text-align: right; }
  .profile-layout { grid-template-columns: 1fr; }
  .product-modal-layout { grid-template-columns: 1fr; }
  .product-gallery-main { height: min(52vw, 390px); }
  .profile-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 16px; text-align: left; }
  .profile-avatar { grid-row: 1 / 4; margin: 0; }
  .profile-summary h2, .profile-summary > p { grid-column: 2; }
  .account-badge { grid-column: 3; grid-row: 1 / 3; }
  .profile-note { grid-column: 1 / -1; }
  .profile-summary .outline-button { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-header { padding: 0 16px; }
  .header-brand img { width: 158px; }
  .header-actions { gap: 8px; }
  .icon-button, .menu-toggle { width: 40px; height: 40px; }
  .store-main { width: min(100% - 24px, 480px); padding-top: 30px; }
  .catalog-intro { margin-bottom: 26px; }
  .catalog-intro h1, .page-heading h1 { font-size: 2.15rem; }
  .catalog-tools { top: 80px; grid-template-columns: 1fr; margin-bottom: 26px; padding: 11px; }
  .search-box, .catalog-tools .outline-button { grid-column: auto; }
  .search-box kbd { display: none; }
  .filter-select { min-height: 52px; }
  .catalog-status { align-items: flex-start; flex-direction: column; padding: 17px 2px; min-height: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .product-pagination { align-items: stretch; flex-wrap: wrap; }
  .pagination-pages { order: -1; width: 100%; justify-content: center; }
  .pagination-direction { flex: 1; }
  .product-image-wrap { height: 245px; }
  .checkout-panel-heading { align-items: flex-start; padding: 20px; }
  .checkout-items { padding: 2px 20px; }
  .checkout-product { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; }
  .checkout-product > img { width: 58px; height: 58px; }
  .checkout-product-quantity { grid-column: 2; text-align: left; }
  .checkout-product-subtotal { grid-column: 3; grid-row: 1 / 3; }
  .checkout-summary-panel { padding: 20px; }
  .product-content h2 { min-height: 0; }
  .support-banner { padding: 32px 24px; }
  .light-button { width: 100%; }
  .cart-drawer { width: 100%; }
  .product-modal { width: calc(100% - 16px); max-height: calc(100vh - 16px); border-radius: 18px; }
  .product-gallery { padding: 16px; }
  .product-gallery-main { height: 300px; }
  .product-modal-info { padding: 30px 20px 24px; }
  .product-modal-info h2 { margin-right: 35px; }
  .product-modal-data { grid-template-columns: 1fr 1fr; }
  .product-modal-actions { grid-template-columns: 1fr; }
  .drawer-header, .drawer-footer { padding-left: 20px; padding-right: 20px; }
  .cart-items { padding-left: 20px; padding-right: 20px; }
  .order-summary-grid { grid-template-columns: 1fr; }
  .order-summary-grid article:last-child { grid-column: auto; }
  .page-heading .primary-link { width: 100%; }
  .order-head { padding: 18px; }
  .order-meta { padding: 14px 18px; gap: 17px; }
  .order-toggle { text-align: left; padding-left: 0; }
  .order-detail { padding: 0 18px; }
  .order-product { grid-template-columns: 46px 1fr; }
  .order-product > span { grid-column: 2; text-align: left; }
  .order-product > span { grid-column: 2; }
  .profile-heading { align-items: flex-start; }
  .profile-summary { display: block; text-align: center; }
  .profile-avatar { margin: 0 auto 17px; }
  .profile-note { text-align: left; }
  .security-card-heading, .profile-form { padding-left: 20px; padding-right: 20px; }
  .profile-form-grid { grid-template-columns: 1fr; }
  .form-actions .primary-button { width: 100%; min-width: 0; }
}
