/* Shared commerce surfaces: bounded typography and real controls at every width. */
* { box-sizing: border-box; letter-spacing: 0; }
:root { --muted: #506971; }
.cart-page-head p { color: #506971; }
.store-body .header-main { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.header-main > .header-actions { display: grid; grid-template-columns: repeat(3, 76px); gap: 8px; align-items: start; }
.header-main .icon-action { width: 100%; min-width: 0; height: 58px; grid-template-rows: 24px 20px; align-content: center; justify-items: center; gap: 2px; padding: 4px 2px !important; }
.header-main .icon-action > :is(small, span) { min-width: 0; max-width: 100%; font-size: 11px; line-height: 1.2; font-weight: 650; }
.header-main .icon-action small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.header-main .cart-action span { white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.header-main .user-menu { min-width: 0; }
.header-main .cart-action .cart-label { display: none; }
@media (min-width: 761px) and (max-width: 1120px) {
  .store-body .header-main { grid-template-columns: auto minmax(0, 1fr) auto; }
}
[hidden] { display: none !important; }
button, .btn, input, select, textarea { font: inherit; }
button, .btn { min-height: 44px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; white-space: normal; }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid #167a8b; outline-offset: 3px; }
input, select, textarea { min-width: 0; max-width: 100%; min-height: 44px; border: 1px solid #bbcdd1; border-radius: 6px; padding: 10px 12px; background: #fff; color: #153039; }
input[type=checkbox], input[type=radio] { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; margin: 2px 0; accent-color: #006b76; }
label { min-width: 0; }
.check { display: flex !important; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; }
.check span { flex: 1; min-width: 0; line-height: 1.55; }
h1, h2, h3, p { overflow-wrap: break-word; }
.list-toolbar h1 { white-space: normal; font-size: 28px; line-height: 1.3; }
.product-card { border-radius: 8px; display: flex; flex-direction: column; min-width: 0; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-info { flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 18px; line-height: 1.45; min-height: 2.9em; }
.product-info > p { font-size: 14px; line-height: 1.6; flex: 1; }
.product-info > small { overflow-wrap: anywhere; }
.product-card .price { flex-wrap: wrap; margin-top: auto; font-variant-numeric: tabular-nums; }
.product-card .price > * { white-space: nowrap; }
.card-actions { margin-top: 4px; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
.card-actions button:first-child { min-width: 0; padding: 6px; font-size: 14px; line-height: 1.3; }
.card-actions button:last-child { width: 44px; height: 44px; padding: 0; background: #fff; color: var(--deep); border: 1px solid #c7dadd; }
.card-actions button[aria-pressed=true] { color: #a12862; background: #fff2f6; border-color: #d3a9bb; }
.card-actions button[aria-pressed=true] .icon { fill: currentColor; }
.card-actions .icon { width: 20px; height: 20px; }
.checkout-offer { margin-bottom: 12px; padding: 16px 0; border-block: 1px solid #c3dbd1; }
.checkout-offer strong { color: #075d52; font-size: 18px; line-height: 1.5; }
.checkout-offer p { margin: 6px 0 0; }
.checkout-heading { max-width: 1200px; margin: 0 auto 26px; }
.checkout-heading h1 { font-size: 32px; line-height: 1.35; margin: 20px 0 10px; }
.checkout-choice { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.checkout-choice .btn { min-height: 48px; padding: 12px 20px; font-size: 16px; }
.checkout-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; max-width: 1200px; margin: auto; }
.checkout-form { display: grid; gap: 28px; min-width: 0; }
.checkout-form fieldset { border: 0; border-bottom: 1px solid #cedce0; border-radius: 0; padding: 0 0 28px; margin: 0; min-width: 0; background: transparent; box-shadow: none; }
.checkout-form legend { font-size: 22px; font-weight: 700; padding: 0; margin-bottom: 20px; }
.checkout-form label:not(.delivery-option):not(.check), .editor-form label:not(.check), #secureAdminLogin label, #managedCategoryForm label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: 15px; font-weight: 600; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.checkout-form p { font-size: 14px; line-height: 1.65; color: #415a62; }
.checkout-form .shipping-free-note { margin: -6px 0 10px; padding: 12px 14px; border: 1px solid #cfe4df; border-radius: 6px; background: #f3fbf8; color: #0d5f4d; font-weight: 700; }
.delivery-option { display: flex; align-items: flex-start; gap: 12px; padding: 18px 0; border-bottom: 1px solid #d4e0e3; cursor: pointer; }
.delivery-option > span { flex: 1; min-width: 0; }
.delivery-option strong { display: flex; justify-content: space-between; gap: 14px; font-size: 16px; line-height: 1.5; }
.delivery-option b { white-space: nowrap; }
.delivery-option small { display: block; font-size: 14px; line-height: 1.6; font-weight: 400; margin-top: 5px; color: #425c64; }
.delivery-option:has(input:checked) { border-bottom-color: #006b76; }
.delivery-option.payment-unavailable { cursor: not-allowed; color: #506971; }
.payment-status { font-size: 13px; font-weight: 500; }
.summary-card, .order-summary { padding: 24px; border: 1px solid #d2dee1; border-radius: 8px; background: white; box-shadow: none; position: sticky; top: 120px; min-width: 0; }
.summary-card h2, .order-summary h2 { font-size: 23px; line-height: 1.4; margin: 0 0 24px; }
.totals { margin: 18px 0 0; }
.totals > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; align-items: baseline; }
.totals dt { font-size: 15px; line-height: 1.5; font-weight: 400; }
.totals dd { margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.totals dd.total-status { max-width: 60%; white-space: normal; text-align: right; font-size: 14px; line-height: 1.5; font-weight: 400; color: #506971; }
.totals .summary-total { border-top: 1px solid #b8cdd1; margin-top: 12px; padding-top: 20px; }
.totals .summary-total dt, .totals .summary-total dd { font-size: 20px; font-weight: 700; }
.discount-row, .discount-note { color: #006144; }
.product-margin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-margin-grid > label { justify-content: flex-end; }
.product-margin-grid input[readonly] { background: #edf5f3; color: #176148; font-weight: 700; }
.product-margin-grid input[data-loss="true"] { color: #a12d3e; background: #fff1f3; }
@media (max-width: 600px) { .product-margin-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.snapshot-items { padding: 0; margin: 0; list-style: none; }
.snapshot-items li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e0e8ea; }
.snapshot-items li > span { min-width: 0; font-size: 15px; }
.snapshot-items small { display: block; margin-top: 7px; color: #546c73; }
.snapshot-items strong { font-size: 15px; white-space: nowrap; }
.form-error, #adminSaveError { color: #9c2339; line-height: 1.6; }
.form-error:not(:empty), #adminSaveError:not(:empty) { padding: 16px; background: #fff0f1; border: 1px solid #edbcc5; border-radius: 6px; }
.store-body :is(a[href="/gizlilik-politikasi"], a[href="/kvkk"], a[href="/cerez-politikasi"], a[href="/on-bilgilendirme"], a[href="/mesafeli-satis-sozlesmesi"], a[href="/iptal-iade-kosullari"], a[href="/kargo-teslimat"], a[href="/kullanim-sartlari"], a[href="/ticari-ileti-izni"], .legal-links a, [data-cookie-preferences]) {
  color: #075a68;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  text-decoration-skip-ink: auto;
  overflow-wrap: anywhere;
}
.store-body .site-footer :is(a, [data-cookie-preferences]) { color: inherit; }
.store-body .legal-links { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 2px; margin: 8px 0; }
.legal-links a { display: flex; align-items: center; min-height: 44px; max-width: 100%; padding: 8px 0; font-size: 15px; line-height: 1.6; }
.privacy-disclosure > p { margin-bottom: 8px; }
.legal-related { border-top: 1px solid #cbdce0; margin-top: 32px; padding-top: 16px; }
.legal-related .legal-links { margin: 0; }
.legal-check { font-size: 16px; }
.cart-thumb { width: 100px; height: 100px; flex-shrink: 0; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line { border-radius: 8px; }
#cartPage .cart-line { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 20px; padding: 20px; }
#cartPage .cart-thumb { width: 80px; height: 80px; }
#cartPage .cart-copy { min-width: 0; gap: 8px; }
#cartPage .cart-copy strong { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
#cartPage .cart-availability { font-size: 13px; line-height: 1.5; color: #426b60; }
#cartPage .cart-availability[data-unavailable] { color: #a23f38; }
#cartPage .cart-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
#cartPage .cart-line-total { font-size: 18px; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-row-actions { display: flex; align-items: center; gap: 10px; }
#cartPage .qty { display: grid; grid-template-columns: 44px 36px 44px; gap: 0; height: 44px; border-radius: 6px; }
#cartPage .qty button { width: 44px; height: 42px; min-height: 42px; padding: 0; background: transparent; color: var(--deep); }
#cartPage .qty button:disabled { color: #8ba0a6; background: #f4f7f8; cursor: not-allowed; }
#cartPage .qty button:not(:disabled):hover { background: #eaf4f2; }
#cartPage .qty span { display: grid; place-items: center; font-size: 15px; font-weight: 600; min-width: 0; }
#cartPage .cart-remove { width: 44px; height: 44px; flex: 0 0 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 6px; color: #607780; background: #fff; }
#cartPage .cart-remove:hover { background: #fff1ef; border-color: #efc4bd; color: #a23f38; }
#cartPage button svg { width: 18px; height: 18px; flex: 0 0 18px; }
.checkout-cta[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.order-success { max-width: 780px; margin: auto; padding: 28px 0; }
.order-success h1 { font-size: 30px; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
#orderMessage { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.7; background: #e8f0f2; padding: 20px; }
.commerce-dialog { width: min(760px, calc(100% - 32px)); max-height: 88dvh; overflow: auto; padding: 32px; border: 1px solid #b9cdd2; border-radius: 8px; color: #18333b; }
.commerce-dialog::backdrop { background: rgb(12 28 34 / .45); }
.commerce-dialog:has(> .favorite-auth) { width: min(440px, calc(100% - 32px)); }
.favorite-auth { padding: 8px 0; }
.favorite-auth h2 { margin: 0 36px 12px 0; font-size: 22px; line-height: 1.4; letter-spacing: 0; }
.favorite-auth p { margin: 0 0 22px; line-height: 1.6; color: #506a75; }
.favorite-auth > div { display: flex; flex-wrap: wrap; gap: 12px; }
.favorite-auth .btn { flex: 1; min-height: 44px; }
.commerce-dialog:has(> .favorite-auth) .dialog-close { background: transparent; border-color: transparent; }
.dialog-close { float: right; width: 44px; min-height: 44px; padding: 0; font-size: 28px; }
.commerce-dialog h2 { font-size: 25px; line-height: 1.4; margin-right: 42px; }
.legal-document p { line-height: 1.75; font-size: 16px; }
.legal-document :is(.totals dt, .totals dd, .snapshot-items li > span, .snapshot-items strong, .snapshot-items small) { font-size: 16px; }
.legal-page, .faq-page { max-width: 900px; margin: 20px auto 60px; }
.legal-page h1, .faq-page h1 { font-size: 32px; line-height: 1.4; }
.legal-page h2, .faq-page h2 { font-size: 23px; margin-top: 32px; }
.legal-page p, .faq-page p { font-size: 16px; line-height: 1.8; }
.faq-page details { padding: 20px 0; border: 0; border-bottom: 1px solid #ccdce0; background: transparent; box-shadow: none; border-radius: 0; }
.faq-page summary { font-weight: 600; min-height: 44px; font-size: 17px; cursor: pointer; }
.live-product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 30px 0; }
.live-product h1 { font-size: 32px; line-height: 1.4; }
.live-gallery { display: flex; flex-wrap: wrap; align-content: start; gap: 12px; min-width: 0; }
.live-gallery img { object-fit: contain; background: white; max-width: 100%; }
.live-gallery img:first-child { width: 100%; height: auto; aspect-ratio: 1; }
.live-gallery img:not(:first-child) { width: 100px; height: 100px; }
.product-description { white-space: pre-wrap; line-height: 1.8; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.pagination button { min-width: 44px; }
.pagination [aria-current] { background: #0d6571; color: white; }
#catalogPages { justify-content: center; align-items: center; gap: 6px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
#catalogPages button { appearance: none; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid #cfdee2; border-radius: 6px; background: #fff; color: #49636b; box-shadow: none; font-size: 14px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
#catalogPages button:not([aria-current]):hover { background: #edf6f5; border-color: #8fb9b5; color: #174f4d; }
#catalogPages button[aria-current="page"] { background: #073b43; border-color: #073b43; color: #fff; font-weight: 700; }
#catalogPages button:focus-visible { outline: 2px solid #087b76; outline-offset: 3px; }
#catalogGrid { scroll-margin-top: 112px; }
@media (max-width: 760px) { #catalogGrid { scroll-margin-top: 160px; } }
@media (prefers-reduced-motion: reduce) { #catalogPages button { transition: none; } }
.cookie-consent { position: relative !important; inset: auto !important; margin: 0; width: 100%; border-radius: 0; box-shadow: none; border-top: 1px solid #b6cbd0; padding: 24px 24px calc(88px + env(safe-area-inset-bottom)); }
.floating-whatsapp { position: fixed; right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 35; display: grid; place-items: center; width: 54px; height: 54px; margin: 0; padding: 0; border-radius: 50%; box-shadow: 0 4px 14px rgb(0 74 44 / .2); }
.floating-whatsapp .icon { width: 30px; height: 30px; }
.floating-whatsapp:focus-visible span { opacity: 1; transform: translateX(0); }
.site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.seller-details { margin: 16px 0 24px; }
.seller-details > div { display: grid; grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); gap: 8px 20px; padding: 8px 0; font-size: 15px; line-height: 1.65; }
.seller-details dt { color: #506971; font-weight: 500; }
.seller-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .floating-whatsapp { width: 52px; height: 52px; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .seller-details > div { grid-template-columns: 1fr; gap: 2px; }
}
.site-footer .check { font-size: 13px; }
.site-footer .check a { text-decoration: underline; }
.site-footer [data-cookie-preferences], .site-footer [data-cookie-manage] { background: transparent; border: 0; padding: 0; color: inherit; justify-content: flex-start; text-align: left; }
.checkout-form > .summary-card { position: static; }
.admin-body { display: block !important; background: #f5f7f8; color: #1b333b; }
.admin-body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 15px; }
.admin-body a { color: #176d79; text-decoration: none; }
.admin-body button, .admin-body .btn { border: 1px solid #b7cdd2; background: #fff; color: #163840; padding: 10px 16px; font-weight: 600; cursor: pointer; }
.admin-body button[type=submit], .admin-body .btn.primary { background: #006b70; color: #fff; border-color: #006b70; }
.admin-body .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #183a43; color: #fff; padding: 14px 20px; border-radius: 6px; z-index: 100; max-width: calc(100% - 32px); }
#adminApp { display: block; width: 100%; }
.admin-body .admin-sidebar { inset: 0 auto 0 0; height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; }
.admin-gate { width: min(440px, calc(100% - 32px)); margin: 8vh auto; padding: 32px; border: 1px solid #d0dce0; border-radius: 8px; background: white; }
.admin-gate h1 { font-size: 28px; line-height: 1.4; }
.admin-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 250px !important; padding: 20px 16px; background: #fff; color: #19343c; border-right: 1px solid #d4e0e3; display: flex; flex-direction: column; overflow-y: auto; z-index: 60; }
.admin-sidebar .admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 4px 20px; color: #19343c; }
.admin-brand strong { font-size: 17px; line-height: 1.4; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.admin-nav a { display: flex; align-items: center; padding: 10px 12px; min-height: 44px; color: #304d57; font-size: 15px; font-weight: 500; border: 0; border-radius: 6px; white-space: normal; }
.admin-nav a:hover { background: #f0f5f6; }
.admin-nav a[aria-current] { background: #e1f0ef; color: #075f5a; font-weight: 700; }
.admin-sidebar-foot { position: static; display: grid; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #d4e0e3; }
.admin-sidebar-foot a { min-height: 44px; display: flex; align-items: center; }
.admin-body .admin-main { margin-left: 250px !important; padding: 0 28px 48px; min-width: 0; width: auto; max-width: none; }
.admin-command { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #f5f7f8; border-bottom: 1px solid #d4e0e3; padding: 18px 0; position: static; min-height: 80px; }
.admin-command strong { margin-right: auto; }
.admin-command [data-admin-drawer] { display: none; }
.admin-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 28px 0 22px; }
#adminContent h1 { font-size: 28px; line-height: 1.4; margin: 24px 0; }
#adminContent h2 { font-size: 22px; line-height: 1.4; }
.admin-filter { display: flex; gap: 10px; flex-direction: column; width: min(420px, 100%); margin-bottom: 20px; }
.table-scroll { overflow: auto; max-width: 100%; border: 1px solid #d3dfe2; border-radius: 6px; background: white; }
.admin-table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 0; }
.admin-table th { background: #eef3f4; color: #3e5660; font-weight: 600; text-align: left; }
.admin-table td, .admin-table th { padding: 12px 14px; border-bottom: 1px solid #e0e8ea; line-height: 1.5; max-width: 360px; overflow-wrap: anywhere; }
.admin-table button, .admin-table .btn { font-size: 14px; padding: 8px 12px; }
.admin-product-cell { display: flex; gap: 12px; align-items: center; min-width: 210px; }
.admin-product-cell img { object-fit: contain; width: 48px; height: 48px; }
.admin-product-cell small { display: block; color: #607781; }
.editor-form { max-width: 900px; display: grid; gap: 14px; }
.editor-form fieldset { padding: 20px 0; border: 0; border-top: 1px solid #d4e0e3; min-width: 0; }
.upload-previews { display: flex; flex-wrap: wrap; gap: 12px; }
.upload-previews img { width: 100px; height: 100px; object-fit: contain; border: 1px solid #c8d8dc; background: white; }
.order-admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 36px; }
.managed-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 40px; }
.managed-kpis article { padding: 20px; background: white; border: 1px solid #d0dfe3; border-radius: 6px; }
.managed-kpis strong { display: block; font-size: 26px; margin-top: 10px; overflow-wrap: anywhere; }
.managed-kpis small { font-size: 14px; }
.admin-drawer-overlay { position: fixed; inset: 0; background: #10283080; z-index: 55; }
@media (max-width: 1100px) {
  .checkout-page { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
  .admin-main { padding: 0 20px 40px; }
  .order-admin-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .checkout-page { grid-template-columns: 1fr; }
  .summary-card { position: static; order: -1; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .18s; }
  .admin-drawer-open .admin-sidebar { transform: translateX(0); }
  .admin-command [data-admin-drawer] { display: inline-flex; min-width: 44px; }
  .admin-body .admin-main { margin-left: 0 !important; }
}
@media (max-width: 600px) {
  .checkout-heading h1, .legal-page h1, .faq-page h1, .live-product h1 { font-size: 27px; }
  .checkout-choice .btn { flex: 1 1 100%; }
  .form-columns { grid-template-columns: 1fr; gap: 0; }
  .checkout-page { gap: 28px; }
  .summary-card, .order-summary { padding: 20px 16px; }
  .summary-card { order: 0; }
  .totals { width: 100%; }
  .totals > div { gap: 12px; }
  .totals dt { font-size: 14px; }
  .totals dd { font-size: 15px; }
  .totals .summary-total dt, .totals .summary-total dd { font-size: 18px; }
  .snapshot-items li { gap: 10px; }
  .snapshot-items strong { font-size: 14px; }
  .commerce-dialog { padding: 20px; }
  .live-product { grid-template-columns: 1fr; gap: 20px; }
  .managed-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .managed-kpis article { padding: 14px; }
  .managed-kpis strong { font-size: 22px; }
  .admin-main { padding: 0 16px 40px; }
  .admin-command { gap: 8px; }
  .admin-command strong { font-size: 16px; flex-basis: calc(100% - 60px); }
  .admin-command button { padding: 10px; }
  .cart-line { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
  .cart-thumb { width: 80px; height: 80px; }
  .cart-controls { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  #cartPage .cart-line { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px; }
  #cartPage .cart-thumb { width: 64px; height: 64px; }
  #cartPage .cart-copy strong { font-size: 14px; }
  #cartPage .cart-controls { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
  #cartPage .cart-row-actions { margin-left: auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-info { padding: 12px; }
  .product-info h3 { font-size: 16px; }
  .product-info > p { display: none; }
  .product-card .price { display: grid; grid-template-rows: 17px 25px; align-items: center; justify-items: start; gap: 2px; }
  .product-card .price del { grid-row: 1; font-size: 12px; line-height: 17px; }
  .product-card .price strong { grid-row: 2; font-size: 18px; line-height: 25px; }
  .product-info .card-actions { gap: 6px; }
  .product-info .card-actions button:first-child { font-size: 12px; padding: 5px 2px; }
}
@media (max-width: 359px) {
  .product-info { padding: 10px; }
  .product-info h3 { font-size: 15px; }
  .product-card .price strong { font-size: 16px; }
}
@media (max-width: 760px) {
  .store-body .header-main {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "brand brand actions" "menu search search";
    gap: 10px 8px;
    padding: 10px 12px 12px;
  }
  .header-main > .brand { grid-area: brand; gap: 6px; min-width: 0; }
  .header-main > .brand img { width: 32px; height: 32px; flex: 0 0 32px; }
  .header-main > .brand span { min-width: 0; }
  .header-main > .brand strong { max-width: none; font-size: 14px; line-height: 1.3; white-space: normal; overflow: visible; }
  .header-main > .header-actions { grid-area: actions; position: relative; grid-template-columns: repeat(3, 52px); gap: 4px; }
  .header-main .icon-action { width: 100%; min-width: 44px; height: 50px; min-height: 50px; grid-template-rows: 21px 18px; padding: 4px 2px !important; }
  .header-main .icon-action .icon { width: 21px; height: 21px; }
  .header-main .icon-action small { font-size: 11px; line-height: 1.2; max-width: 100%; }
  .header-main .cart-action span { display: none; }
  .header-main .cart-action .cart-label { display: block; }
  .header-main .icon-action b { top: 0; right: 2px; }
  .header-main .user-menu { position: static; }
  .header-main .user-dropdown { right: 0; top: 100%; width: min(280px, calc(100vw - 24px)); }
  .header-main > .category-nav { grid-area: menu; }
  .header-main .category-trigger { width: 48px; min-height: 46px; }
  .header-main .category-panel { width: min(320px, calc(100vw - 24px)); max-height: calc(100dvh - 150px); overflow-y: auto; }
  .header-main .category-panel a, .header-main .user-dropdown a, .header-main .user-dropdown button { min-height: 44px; }
  .header-main > .search-form { grid-area: search; min-width: 0; grid-template-columns: 32px minmax(0, 1fr) 48px; }
  .header-main .search-form input { min-width: 0; min-height: 44px; font-size: 14px; padding: 0 4px 0 0; }
  .header-main .search-form button { min-height: 44px; padding: 0 8px; font-size: 14px; }
  .header-main .search-leading .icon { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) { .admin-sidebar { transition: none; } }

/* Intrinsic image dimensions must never size a product grid track. */
.store-body .auth-shell { display: block; width: 100%; max-width: 460px; margin: 20px auto 32px; }
.auth-shell .auth-panel, .auth-shell .recovery-panel { display: grid; gap: 16px; padding: 28px 32px; align-content: start; }
.auth-heading { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 8px 12px; margin-bottom: 4px; }
.auth-heading img { width: 42px; height: 42px; object-fit: contain; }
.auth-heading span { font-size: 15px; font-weight: 700; color: #47636a; }
.auth-heading h1 { grid-column: 1 / -1; font-size: 26px; line-height: 1.3; margin: 10px 0 0; }
.auth-shell .auth-panel input, .auth-shell .recovery-panel input { min-height: 46px; height: 46px; font-size: 16px; }
.auth-shell .password-field input { min-height: 40px; height: 40px; }
.auth-shell .password-field button { height: 40px; min-height: 40px; }
.auth-shell .forgot-link { display: inline-flex; align-items: center; justify-self: end; min-height: 32px; margin-top: -8px; }
.auth-shell .legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; margin: 0; padding-top: 4px; border-top: 1px solid #e3ecee; }
.auth-shell .legal-links a { font-size: 12px; font-weight: 600; min-height: 32px; padding: 4px 0; }
.auth-shell .auth-feedback { margin: 0; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.auth-shell .auth-feedback:empty { display: none; }
.auth-shell .auth-feedback[data-tone="success"] { padding: 12px; color: #12613d; background: #eef8f1; border-left: 3px solid #368158; }
.auth-feedback a { display: block; margin-top: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.recovery-panel label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.recovery-panel #resetForm { display: grid; gap: 16px; }
.recovery-panel .btn { width: 100%; min-height: 46px; }
.recovery-note { margin: 0; font-size: 14px; line-height: 1.5; color: #59747b; }
.auth-back { text-align: center; min-height: 32px; display: flex; justify-content: center; align-items: center; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 480px) {
  .store-body .auth-shell { margin-top: 0; }
  .auth-shell .auth-panel, .auth-shell .recovery-panel { padding: 22px 20px; }
  .auth-heading h1 { font-size: 24px; }
}

.product-card { min-width: 0; overflow: hidden; }
.product-card .product-image { position: relative; display: block; aspect-ratio: 1; height: auto; min-height: 0; padding: 0; overflow: hidden; background: #fff; }
.product-card .product-image img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); max-width: none; object-fit: contain; }
.product-card .product-info { min-width: 0; gap: 10px; }
.product-card .product-info h3 { height: 2.8em; min-height: 0; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card .product-info > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.9em; min-height: 2.9em; flex: none; margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.product-card .price { margin-top: auto; min-height: 32px; }
.header-main .category-panel { max-height: none; overflow: visible; padding: 0; border: 0; animation: none; width: 280px; background: transparent; box-shadow: none; }
.category-pane { padding: 8px; max-height: var(--category-space, calc(100dvh - 150px)); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.category-item { display: flex; align-items: stretch; border-radius: 4px; }
.category-panel .category-item a { flex: 1; min-width: 0; min-height: 42px; font-size: 14px; line-height: 1.4; font-weight: 600; padding: 10px 12px; overflow-wrap: anywhere; }
.category-item:hover, .category-item:focus-within { background: #eef8fa; }
.category-panel .category-all { font-size: 13px; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; }
.category-expand { display: grid; place-items: center; flex: 0 0 40px; width: 40px; min-height: 42px; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 4px; padding: 0; }
.category-expand svg { width: 16px; height: 16px; transform: rotate(-90deg); }
.category-expand[aria-expanded="true"] { color: #087c70; background: #e7f4f0; }
.category-flyout { position: absolute; width: 280px; z-index: 2; }
.category-back { display: none; }
.category-replacement .category-back { display: flex; align-items: center; gap: 8px; min-height: 40px; width: 100%; border: 0; background: transparent; color: #4b666c; padding: 8px 12px; cursor: pointer; }
.category-replacement .category-back svg { width: 16px; height: 16px; transform: rotate(90deg); }
.category-nav.category-dismissed:not(.open) .category-panel { display: none; }
.category-panel :focus-visible { outline: 2px solid #087c70; outline-offset: -2px; }
@media (max-width: 760px) {
  .category-nav:not(.open) .category-panel { display: none; }
  .header-main .category-panel { width: min(320px, calc(100vw - 24px)); }
  .category-pane { max-height: var(--category-space, calc(100dvh - 160px)); }
  .category-flyout { position: static; width: 100%; }
  .category-back { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: #4b666c; font-size: 14px; cursor: pointer; }
  .category-back svg { width: 16px; height: 16px; transform: rotate(90deg); }
}
.home-page .site-header { background: #fff; border-bottom: 1px solid var(--line); }
.home-page .site-header::before { display: none; }
.storefront-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 28px 0 22px; }
.storefront-heading h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.storefront-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.storefront-heading > a, .home-collection .split-head a { font-size: 14px; font-weight: 700; flex-shrink: 0; }
.home-collection { padding-top: 28px; margin-top: 30px; border-top: 1px solid var(--line); }
.home-collection .split-head { margin: 0 0 20px; gap: 16px; flex-wrap: wrap; }
.home-collection .split-head h2 { font-size: 24px; margin: 0; }
.collection-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.featured-storefront { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 22px rgba(3,29,37,.06); padding: 24px; margin: 0 0 32px; }
.featured-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.featured-heading h2 { margin: 0; font-size: 26px; line-height: 1.2; color: var(--ink); }
.rail-controls { display: flex; flex-shrink: 0; gap: 8px; }
.rail-controls button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.rail-controls button:first-child svg { transform: rotate(180deg); }
.rail-controls button:disabled { opacity: .35; }
.product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #bdcdd1 transparent; padding-bottom: 12px; }
.product-rail .product-card { scroll-snap-align: start; }
.featured-products .product-card { border: 0; border-radius: 0; box-shadow: none; }
.featured-products .product-image { aspect-ratio: 6 / 5; }
.featured-products .product-info { padding: 12px 4px 0; gap: 10px; }
.featured-products .product-info > p { display: none; }
.featured-products .product-info h3 { font-size: 17px; margin: 0; height: 2.8em; -webkit-line-clamp: 2; }
.featured-products .product-info > small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-products .price strong { color: var(--ink); font-size: 23px; }
@media (min-width: 761px) and (max-width: 1100px) { .product-rail { grid-auto-columns: calc((100% - 36px) / 3); } }
@media (max-width: 760px) {
  .featured-storefront { margin: 0 0 24px; padding: 16px 12px 12px; }
  .featured-heading { margin-bottom: 18px; }
  .featured-heading h2 { font-size: 21px; }
  .product-rail { grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; }
  .product-rail .product-info { padding: 10px 8px; gap: 8px; }
  .product-rail .product-info > small { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product-rail .product-info > p { display: none; }
  .product-rail .price strong { font-size: 18px; }
  .product-rail .card-actions { gap: 4px; }
  .product-rail .card-actions button:first-child { font-size: 12px; padding: 4px 2px; min-height: 44px; }
  .featured-products .product-info { padding: 10px 0 0; }
  .collection-actions { gap: 12px; }
  .featured-products .product-info h3 { font-size: 14px; height: 4.2em; -webkit-line-clamp: 3; }
}
.storefront-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 28px 0 12px; margin-top: 28px; border-top: 1px solid var(--line); }
.storefront-links .support-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px; align-items: center; gap: 16px; min-height: 120px; padding: 24px; border: 1px solid #d9e5eb; border-radius: 8px; background: #edf4f9; color: var(--ink); text-decoration: none; box-shadow: 0 4px 14px rgba(13, 47, 56, .045); transition: border-color .18s, box-shadow .18s; }
.storefront-links .support-card-delivery { background: #f3f2f8; border-color: #e1dfe9; }
.storefront-links .support-card-contact { background: #edf6f0; border-color: #d8e8dd; }
.support-card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: #fff; color: #28617b; }
.support-card-delivery .support-card-icon { color: #63557b; }
.support-card-contact .support-card-icon { color: #21804f; }
.support-card-icon .icon { width: 28px; height: 28px; }
.support-card-title { font-size: 18px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.support-card > .icon { width: 20px; height: 20px; color: #5b737b; }
.storefront-links .support-card:hover { border-color: #9db9c1; box-shadow: 0 6px 18px rgba(13, 47, 56, .09); }
.storefront-links .support-card:focus-visible { outline: 3px solid #18778a; outline-offset: 3px; }
@media (min-width: 761px) and (max-width: 1100px) {
  .storefront-links .support-card { padding: 20px 14px; gap: 12px; grid-template-columns: 44px minmax(0, 1fr) 18px; }
  .support-card-icon { width: 44px; height: 44px; }
  .support-card-title { font-size: 16px; }
}
@media (max-width: 760px) {
  .storefront-links { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; padding-top: 20px; }
  .storefront-links .support-card { min-height: 96px; padding: 20px; grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 14px; }
  .support-card-icon { width: 48px; height: 48px; }
  .support-card-title { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .storefront-links .support-card { transition: none; } }
.admin-body .upload-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.admin-body .image-editor-item { margin: 0; min-width: 0; border: 1px solid #d4e0e3; border-radius: 8px; background: #fff; overflow: hidden; }
.admin-body .image-editor-item > img { display: block; width: 100%; height: 150px; padding: 12px; object-fit: contain; border: 0; }
.admin-body .image-editor-item figcaption { padding: 8px 12px; font-size: 13px; font-weight: 600; border-top: 1px solid #e2e9eb; }
.admin-body .image-editor-actions { display: flex; justify-content: space-between; gap: 2px; padding: 4px 8px 8px; }
.admin-body .image-editor-actions button { display: grid; place-items: center; width: 32px; height: 36px; min-height: 36px; padding: 0; border: 0; background: transparent; color: #426168; }
.admin-body .image-editor-actions button[aria-pressed="true"] { color: #08796b; background: #e0f2ed; }
.admin-body .image-editor-actions button:disabled { opacity: .35; }
@media (max-width: 760px) {
  .product-card .product-image img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .product-card .product-info > p { font-size: 12px; }
  .product-card .product-info h3 { font-size: 14px; height: 4.2em; -webkit-line-clamp: 3; }
  .storefront-heading { align-items: start; padding: 22px 0 18px; }
  .storefront-heading h1 { font-size: 23px; }
  .storefront-heading p { font-size: 13px; max-width: 240px; }
  .storefront-heading > a { font-size: 12px; padding-top: 5px; }
  .home-collection .split-head h2 { font-size: 20px; }
  .admin-body .upload-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
