:root {
    color-scheme: light;
    --bg: #f7f8fc;
    --surface: #fff;
    --ink: #17182d;
    --muted: #585e73;
    --line: #e3e6f0;
    --primary: #2D2BFD;
    --primary-dark: #2422D6;
    --tint: #EEEDFF;
    --radius: 20px;
    --shadow: 0 8px 25px rgba(37, 29, 86, .045);
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
svg { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
img { display: block; width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.036em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem, 4.3vw, 3.25rem); font-weight: 780; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.63rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 720; }
p, .muted { color: var(--muted); }
p, strong, td { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #2D2BFD; outline-offset: 3px; }
:disabled { cursor: not-allowed; }
[hidden], .sr-only:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 14px; top: -90px; z-index: 5; padding: .6rem 1rem; border-radius: 8px; background: white; }
.skip-link:focus { top: 8px; }
.wrap { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: grid; grid-template-columns: auto minmax(190px, 475px) auto; align-items: center; justify-content: space-between; gap: clamp(18px, 3vw, 42px); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-weight: 820; font-size: 1.45rem; line-height: 1.06; letter-spacing: -.065em; white-space: nowrap; }

.search { display: flex; align-items: center; min-width: 0; min-height: 44px; background: #f3f4fa; border: 1px solid #ebeef7; border-radius: 12px; }
.search:focus-within { border-color: #a298ed; }
.search button { display: grid; place-items: center; align-self: stretch; width: 44px; flex-shrink: 0; background: transparent; border: 0; cursor: pointer; color: var(--muted); }
.search svg, .nav-link svg { width: 20px; height: 20px; }
.search input[type=search] { min-width: 0; border: 0; border-radius: 0 12px 12px 0; background: transparent; padding: 8px 12px 8px 0; }
.customer-nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 27px); }
.nav-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .89rem; white-space: nowrap; }
.nav-link:hover, .nav-link.current { color: var(--primary); }
.cart-link { padding: 10px 11px; border-radius: 12px; background: var(--tint); color: var(--primary-dark); }
.cart-link:hover { background: #e5e0ff; }
.cart-count { min-width: 22px; min-height: 22px; display: inline-grid; place-items: center; background: var(--primary); border-radius: 100px; color: #fff; font-size: .71rem; padding-inline: 5px; }
.main-content { flex: 1; padding-block: 32px 68px; min-width: 0; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { min-height: 80px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px 24px; padding-block: 16px; }
.footer-inner .brand { font-size: 1.28rem; }
.footer-inner nav { display: flex; gap: 10px 24px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.footer-inner a:hover, .text-link:hover { color: var(--primary); }
.catalog { margin-top: 37px; scroll-margin-top: 24px; }
.main-content > .catalog:first-child { margin-top: 5px; }
.section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px 16px; min-width: 0; }
.section-head p { margin-top: 5px; }
.catalog > .section-head { margin-bottom: 18px; }
.catalog > .section-head .muted { font-size: .88rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.product-card, .panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.product-card { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.product-card:hover, .product-card:focus-within { border-color: #d5cffc; box-shadow: 0 12px 26px rgba(45, 35, 127, .085); }
.product-photo, .thumb { background: #f0eff9; color: #6d62aa; display: grid; place-items: center; overflow: hidden; }
.product-photo { aspect-ratio: 4 / 3; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-photo > svg { width: 42px; height: 42px; }
.product-content { display: flex; flex-direction: column; padding: 15px; }
.product-description { margin-top: 7px; font-size: .86rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.product-buy { margin-top: auto; padding-top: 17px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; }
.product-buy strong { font-size: 1.26rem; letter-spacing: -.045em; }
.product-buy .button { padding-inline: 10px; min-height: 37px; font-size: .8rem; }
.product-buy .button svg { width: 16px; height: 16px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 43px; padding: 9px 16px; border: 1px solid transparent; border-radius: 11px; color: #fff; background: var(--primary); text-align: center; font-weight: 700; font-size: .9rem; line-height: 1.3; cursor: pointer; }
.button svg, .text-link svg { width: 18px; height: 18px; }
.button:hover { background: var(--primary-dark); }
.button:disabled { background: #eceef5; border-color: #e5e8f2; color: #62677a; cursor: not-allowed; }
.button-white { background: #fff; color: var(--primary-dark); }
.button-white:hover { background: #efebff; }
.button-soft { background: var(--tint); color: var(--primary-dark); }
.button-soft:hover { background: #e4dfff; }
.button-block { width: 100%; }
.icon-button { width: 40px; padding: 7px; min-height: 40px; }
.icon-tile { display: inline-grid; flex: 0 0 auto; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: var(--tint); color: var(--primary); }
.icon-tile svg { width: 22px; height: 22px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 9px; padding: 34px 18px; }
.empty .icon-tile { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 4px; }
.empty p { max-width: 44ch; }
.empty .button { margin-top: 8px; }
.feedback { margin-bottom: 20px; padding: 12px 15px; border: 1px solid; border-radius: 11px; font-size: .92rem; }
.feedback-error { color: #9f243b; border-color: #facfda; background: #fff1f4; }
.feedback-good { color: #12603f; border-color: #cde9da; background: #edfaf1; }
.text-error { color: #a12540; }
.timeline li > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #eaeaf3; color: var(--muted); font-weight: 720; font-size: .78rem; }
.timeline .reached > span { background: var(--primary); color: #fff; }
.page-head { margin-bottom: 22px; }
.page-head p { margin-top: 7px; }
.purchase-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 365px); align-items: start; gap: 20px; }
.summary, .lookup, .checkout-form, .detail-panel { padding: clamp(16px, 3vw, 25px); }
.summary { position: sticky; top: 16px; }
.summary h2, .lookup h2, .checkout-form h2, .detail-panel h2 { margin-bottom: 15px; }
.detail-panel .section-head h2 { margin: 0; }
.detail-panel .section-head { margin-bottom: 12px; }
.split, .summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.summary-total { margin-top: 12px; border-top: 1px solid var(--line); padding-block: 12px; font-weight: 720; color: var(--ink); }
.summary-total strong { font-size: 1.43rem; letter-spacing: -.045em; }
.checkout-note { margin-top: 9px; font-size: .86rem; }
.cart-panel { padding: 0 19px; }
.cart-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 13px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); }
.thumb { width: 62px; height: 62px; border-radius: 10px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-description h2 { font-size: 1rem; }
.cart-description p { font-size: .85rem; margin-top: 3px; }
.text-button, .text-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--primary-dark); font-size: .86rem; font-weight: 650; padding: 0; cursor: pointer; }
.text-button { min-height: 32px; color: var(--muted); }
.text-button:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.line-total { white-space: nowrap; }
.quantity-form { display: flex; align-items: center; gap: 5px; }
.quantity-form label { width: 60px; }
.quantity-form input[type=number] { min-height: 40px; padding: 5px; text-align: center; }
.cart-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.span-all { grid-column: 1 / -1; }
label { display: grid; gap: 5px; color: var(--ink); font-size: .88rem; font-weight: 650; min-width: 0; }
input:not([type=checkbox], [type=hidden]), select, textarea { width: 100%; color: var(--ink); min-height: 43px; border: 1px solid #d8dced; border-radius: 10px; padding: 8px 11px; background: #fcfcff; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #6e7488; }
input[readonly] { font-family: ui-monospace, monospace; }
.payment-info { display: flex; align-items: center; gap: 12px; margin: 17px 0; padding: 13px; border-radius: 13px; background: #f5f4fc; }
.payment-info p { margin-top: 3px; font-size: .88rem; }
.checkout-form h2 svg { color: var(--primary); width: 21px; margin-right: 5px; }
.order-lines { list-style: none; padding: 0; }
.order-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; padding-block: 7px; font-size: .9rem; }
.order-lines li span { min-width: 0; overflow-wrap: anywhere; }
.order-lines li strong { flex-shrink: 0; }
.lookup p { margin-block: -5px 12px; font-size: .92rem; }
.lookup .button { margin-top: 13px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; border-radius: 30px; padding: 3px 10px; background: #eff0f6; color: #50576b; font-size: .73rem; font-weight: 720; text-align: center; line-height: 1.3; }
.badge-positive { background: #e4f8ed; color: #136243; }
.badge-negative { background: #fce8ed; color: #982941; }
.badge-pending { background: #fff2d4; color: #804f07; }
.badge-info { background: #edeaff; color: #4434a4; }
.order-history { padding-inline: 17px; }
.history-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 14px 3px; }
.history-row + .history-row { border-top: 1px solid var(--line); }
.history-row:hover { color: var(--primary-dark); }
.history-row > svg { width: 18px; height: 18px; color: var(--primary); }
.history-title { display: grid; min-width: 0; }
.history-title strong { overflow-wrap: anywhere; }
#payment-order-heading h1, .admin-form .section-head h2 { overflow-wrap: anywhere; min-width: 0; }
.history-title small { color: var(--muted); overflow-wrap: anywhere; }
.back-link { margin-bottom: 13px; }
.stack { display: grid; gap: 16px; }
.timeline { list-style: none; padding: 0; display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; color: var(--muted); font-weight: 650; margin-block: 20px; }
.timeline li { display: grid; justify-items: center; align-content: start; text-align: center; gap: 5px; flex: 1; }
.timeline svg { width: 15px; height: 15px; }
.timeline [aria-current] { color: var(--primary-dark); }
.admin-body .header-inner { grid-template-columns: auto auto; }
.admin-login { width: min(100%, 445px); margin: 32px auto; padding: clamp(20px, 4vw, 34px); }
.admin-login h1 { font-size: clamp(1.68rem, 4vw, 2.25rem); margin-top: 12px; }
.admin-login p { margin: 9px 0 18px; }
.admin-login .button { margin-top: 14px; }
.admin-layout { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 21px; align-items: start; }
.admin-sidebar { padding: 14px; position: sticky; top: 14px; }
.admin-sidebar h2 { font-size: .9rem; color: var(--muted); margin: 7px 8px 13px; }
.admin-sidebar nav { display: grid; gap: 5px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; min-height: 41px; font-weight: 650; font-size: .88rem; white-space: nowrap; border-radius: 9px; }
.admin-sidebar nav a:hover, .admin-sidebar nav a[aria-current] { background: var(--tint); color: var(--primary-dark); }
.admin-sidebar svg { width: 18px; height: 18px; }
.admin-content > :not(.page-head) { margin-bottom: 15px; }
.admin-content .page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 14px; display: grid; gap: 5px; color: var(--muted); font-size: .86rem; }
.metric:hover { border-color: #c9bff6; }
.metric .icon-tile { margin-bottom: 3px; }
.metric strong { color: var(--ink); font-size: clamp(1.15rem, 2vw, 1.8rem); line-height: 1.18; letter-spacing: -.045em; }
.admin-recent-row { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.integration-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 8px; }
.integration-row + .integration-row { border-top: 1px solid var(--line); }
#aliexpress, #aliexpress-config { scroll-margin-top: 14px; }
.integration-provider { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.integration-dialog {
    width: min(540px, calc(100% - 28px));
    max-width: none;
    max-height: calc(100% - 28px);
    overflow: auto;
    padding: clamp(18px, 4vw, 26px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 20px 60px rgba(31, 23, 82, .25);
}
.integration-dialog:not([open]) { display: none; }
.integration-dialog::backdrop { background: rgba(23, 24, 45, .58); }
.integration-dialog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px; margin-bottom: 17px; }
.integration-dialog-head h2 { margin: 0; }
.integration-url { display: flex; align-items: stretch; gap: 6px; margin-top: 5px; }
.integration-url input { min-width: 0; }
.integration-url .button { flex-shrink: 0; }
.integration-url .button[hidden] { display: none; }
.integration-copy-status { font-size: .84rem; }
.integration-copy-status:not(:empty) { margin-top: 6px; }
.integration-dialog-actions { display: grid; justify-items: start; gap: 7px; }
.integration-dialog-actions p { font-size: .88rem; }
.admin-form { padding: clamp(15px, 3vw, 24px); display: grid; justify-items: stretch; gap: 14px; scroll-margin-top: 12px; }
.admin-form > .button { justify-self: start; }
fieldset { margin: 0; min-width: 0; border: 1px solid var(--line); padding: 12px; border-radius: 12px; }
legend { padding-inline: 4px; font-size: .9rem; font-weight: 720; }
.form-footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.check-label { display: inline-flex; align-items: center; gap: 6px; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--primary); }
.table-card { overflow: hidden; }
.table-card h2 { padding: 16px 21px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .88rem; }
th, td { padding: 9px 13px; border-bottom: 1px solid var(--line); }
thead { background: #f5f5fc; color: var(--muted); }
tbody tr:last-child :is(th, td) { border-bottom: 0; }
.table-product { display: flex; align-items: center; gap: 9px; min-width: 145px; }
.table-product .thumb { flex: 0 0 36px; width: 36px; height: 36px; }
.table-product svg { width: 17px; height: 17px; }
.order-customer { display: grid; font-size: .9rem; gap: 3px; padding: 12px; border-radius: 10px; background: #f5f5fc; overflow-wrap: anywhere; }
.order-customer > span { color: var(--muted); }
.order-customer > span:last-child { white-space: pre-line; }
@media (max-width: 1050px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .purchase-layout { grid-template-columns: minmax(0, 1fr) minmax(250px, 33%); }
}
@media (max-width: 880px) {
    .header-inner { grid-template-columns: 1fr auto; gap: 10px; padding-block: 12px; }
    .header-inner .search { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 780px) {
    .wrap { width: calc(100% - 36px); }
    .purchase-layout { grid-template-columns: minmax(0, 1fr); }
    .summary { position: static; }
    .admin-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .admin-sidebar { padding: 6px; position: static; }
    .admin-sidebar h2 { display: none; }
    .admin-sidebar nav { display: flex; gap: 4px; flex-wrap: wrap; }
    .admin-sidebar nav a { white-space: normal; }
}
@media (max-width: 525px) {
    .main-content { padding-block: 22px 42px; }
    .wrap { width: calc(100% - 26px); }
    .brand { font-size: 1.08rem; gap: 6px; }
    .customer-nav { gap: 9px; }
    .nav-link { font-size: .77rem; gap: 4px; min-height: 39px; }
    .nav-link svg { width: 16px; height: 16px; }
    .cart-link { padding: 6px; }
    .cart-count { min-width: 18px; min-height: 18px; }
    .admin-body .nav-link span { display: none; }
    .catalog { margin-top: 24px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .product-content { padding: 10px; }
    .product-buy { align-items: stretch; flex-direction: column; padding-top: 10px; gap: 5px; }
    .product-buy .button { width: 100%; padding-inline: 4px; }
    .cart-panel { padding-inline: 11px; }
    .cart-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 7px 9px; padding-block: 10px; }
    .cart-row .thumb { width: 48px; height: 48px; grid-row: span 2; align-self: start; }
    .cart-description { grid-column: 2 / -1; }
    .cart-quantity { grid-column: 2; }
    .line-total { grid-column: 3; font-size: .9rem; }
    .fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .integration-url { flex-wrap: wrap; }
    .history-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 8px; }
    .history-row > .icon-tile { display: none; }
    .history-row > .badge { grid-row: 2; justify-self: start; grid-column: 1 / -1; }
    .timeline { flex-wrap: wrap; }
    .timeline li { min-width: 27%; }
    .admin-sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.cart-description h2 a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.product-detail { display: grid; gap: 18px; }
.product-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(270px, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "gallery identity" "gallery offer";
    column-gap: clamp(22px, 4vw, 60px);
    row-gap: 20px;
    padding: clamp(18px, 3vw, 40px);
}
.product-identity { grid-area: identity; min-width: 0; display: grid; justify-items: start; gap: 12px; }
.product-identity h1 { font-size: clamp(1.85rem, 3.7vw, 3rem); }
.product-gallery { grid-area: gallery; min-width: 0; display: grid; align-content: start; gap: 12px; }
.product-stage { display: grid; place-items: center; height: clamp(270px, 39vw, 490px); overflow: hidden; border-radius: 16px; background: #f4f3fb; }
.product-stage[href] { grid-template: minmax(0, 1fr) / minmax(0, 1fr); cursor: zoom-in; }
.product-stage img, .gallery-thumb img, .photo-preview img { width: 100%; height: 100%; object-fit: contain; }
.product-stage-empty { place-content: center; justify-items: center; gap: 9px; color: var(--muted); text-align: center; }
.product-stage-empty svg { width: 43px; height: 43px; color: var(--primary); }
.product-thumbnails { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; padding: 4px; margin: -4px; }
.gallery-thumb { display: block; min-width: 0; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--line); border-radius: 10px; background: #f4f3fb; }
.gallery-thumb:hover, .gallery-thumb[aria-current="true"] { border-color: var(--primary); }
.product-offer { grid-area: offer; align-self: start; display: grid; gap: 11px; padding: clamp(15px, 2.5vw, 24px); background: #f8f7ff; border: 1px solid #e8e4fc; border-radius: 15px; }
.product-price { font-size: clamp(1.75rem, 3.7vw, 2.55rem); line-height: 1.12; letter-spacing: -.055em; }
.product-stock { font-size: .9rem; }
.product-offer form { display: grid; gap: 12px; }
.product-offer input { max-width: 145px; }
.product-information { padding: clamp(18px, 3vw, 38px); }
.product-information section + section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.product-information h2 { margin-bottom: 12px; }
.product-full-description { white-space: pre-wrap; }
.product-specifications { display: grid; margin: 0; }
.product-specifications div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; padding: 10px 13px; overflow-wrap: anywhere; }
.product-specifications div:nth-child(odd) { background: #f5f4fc; border-radius: 8px; }
.product-specifications dt { font-weight: 680; }
.product-specifications dd { margin: 0; color: var(--muted); }

.product-admin-links { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.photo-help { margin: 0 0 12px; font-size: .88rem; }
.photo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photo-field { display: grid; align-content: start; gap: 8px; }
.photo-preview { border-radius: 9px; background: #f4f3fb; display: grid; place-items: center; height: 84px; overflow: hidden; }
.photo-field input[type=file] { max-width: 100%; }
.cart-checkout-layout { grid-template-columns: minmax(0, 1fr) minmax(315px, 40%); }
.cart-delivery-fields { display: grid; gap: 10px; margin-top: 10px; }
.delivery-address-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.delivery-address-grid .delivery-wide { grid-column:1/-1; }
.delivery-address-grid label:has(input:required, select:required) > span:first-child::after {
    content: " *";
    color: var(--primary);
}

@media(max-width:420px){.delivery-address-grid {grid-template-columns:1fr;}}

@media (max-width: 780px) {
    .product-overview { grid-template-columns: minmax(0, 1fr); grid-template-areas: "identity" "gallery" "offer"; gap: 15px; }
    .product-stage { height: clamp(225px, 64vw, 420px); }
    .cart-checkout-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 525px) {
    .product-stage { border-radius: 11px; }
    .product-thumbnails { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 5px; }
    .product-specifications div { padding-inline: 9px; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .photo-fields { grid-template-columns: minmax(0, 1fr); }
}

/* vemefy — identidade visual */
:root { --primary:#2D2BFD; --primary-dark:#2422D6; --tint:#EEEDFF; --bg:#F5F5F7; --ink:#110E1B; --line:#dce1ed; font-family:'Bricolage Grotesque','Inter','Segoe UI',system-ui,sans-serif; }
.category-nav {display:flex; gap:10px; flex-wrap:wrap; margin:24px 0;}
.category-nav a {padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:white;font-weight:600;}
.category-nav a:hover,.category-nav a.selected {background:var(--primary);color:#fff;border-color:var(--primary);}
.account-shell {position:relative;max-width:780px;margin:0 auto 32px;padding:8px 28px 36px;}


.account-card {padding:32px;border-radius:26px;box-shadow:0 16px 50px #2d2bfd12;}
.account-top {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:26px;}.secure-label{color:#087b67;font-size:.8rem;}.account-tabs{display:flex;gap:4px;border:1px solid #cddde0;border-radius:12px;padding:4px;}.account-tabs a{padding:8px 14px;border-radius:9px;font-size:.85rem;font-weight:650;}.account-tabs .selected{background:var(--primary);color:white;}
.account-form {display:grid;gap:15px;}.account-form[hidden]{display:none;}.account-form h1{font-size:1.6rem;}.account-form p{margin-bottom:6px;}.account-kicker{color:var(--primary);font-size:.85rem;}.account-kicker svg{width:18px;}.account-input{display:flex;align-items:center;border:1px solid #b9d2d6;border-radius:11px;padding:0 12px;gap:8px;background:white;}.account-input input{border:0!important;box-shadow:none!important;min-width:0;flex:1;background:transparent;}.account-input button{border:0;background:none;color:var(--primary);cursor:pointer;font-size:.8rem;}.account-input svg{width:19px;height:19px;flex:0 0 19px;color:#47778a;}.account-input:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #2d2bfd12;}.account-check{display:flex!important;align-items:center;gap:9px;font-size:.85rem;}.account-check input{width:18px!important;height:18px;accent-color:var(--primary);}.account-form .button{box-shadow:0 8px 20px #2d2bfd25;}
.account-form--plain-fields .account-input:focus-within {
    border-color: #b9d2d6;
    box-shadow: none;
}
.account-form--plain-fields .account-input input:focus-visible {
    outline: 1px solid var(--primary);
    outline-offset: -2px;
}
.account-profile { display: grid; gap: 16px; margin-block: 16px 24px; }
.account-profile form > .button { justify-self: start; }
.account-google-form { margin-top: 16px; }
.account-google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #747775;
    border-radius: 10px;
    background: #fff;
    color: #1f1f1f;
    font: 500 14px/20px 'Google Sans', Arial, sans-serif;
    cursor: pointer;
}
.account-google-button:hover { background: #f8faff; }
.account-google-button img { width: 20px; height: 20px; object-fit: contain; }
@media(max-width:600px){.account-shell{padding:20px 12px}.account-card{padding:20px}.account-top{align-items:flex-start}.account-tabs{width:100%}.account-tabs a{flex:1;text-align:center}}
.category-nav a{display:inline-flex;align-items:center;gap:8px}.category-nav img{width:32px;height:32px;object-fit:cover;border-radius:8px}

.product-rating-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 126px), 1fr));
    gap: 8px;
    width: 100%;
}
.product-rating-item {
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 4px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f7f8fc;
    min-width: 0;
}
.product-rating-item:only-child { max-width: 17rem; }
.product-rating-label { font-size: .75rem; line-height: 1.25; font-weight: 700; }
.product-rating-values { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; line-height: 1.2; }
.product-rating-score { display: inline-flex; align-items: baseline; gap: 3px; font-size: .88rem; white-space: nowrap; color: var(--ink); }
.product-rating-score [aria-hidden] { color: #765314; }
.product-rating-count { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.product-rating-store { background: #f4f3ff; border-color: #e7e3ff; }
.product-rating-store .product-rating-label { color: var(--primary-dark); }
.product-rating-store:hover { border-color: #b1a8ef; }
.product-rating-store:hover .product-rating-label { text-decoration: underline; text-underline-offset: 2px; }

/* O link cobre o card. Apenas o botão de compra fica acima dele. */
.card-details { align-self: start; font-size: .82rem; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.card-details::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-details:focus-visible::after { outline: 2px solid var(--primary); outline-offset: -3px; }
.product-card .card-buy-trigger { position: relative; z-index: 2; }
.product-card .card-buy-trigger:disabled { pointer-events: none; }

.quantity-stepper {display:inline-flex;align-items:center;gap:0;border:1px solid var(--line);border-radius:12px;background:#fff;padding:3px;width:max-content;max-width:100%;}
.quantity-stepper button {display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border:0;border-radius:9px;background:#f1f2f4;color:#40454e;font:600 21px/1 system-ui;cursor:pointer;transition:background .15s,color .15s;}
.quantity-stepper button:hover:not(:disabled) {background:#f1f2f4;color:#40454e;}
.quantity-stepper button:active:not(:disabled){background:#d4d7dc;}
.quantity-stepper button:focus-visible{outline:2px solid #8b9099;outline-offset:2px;}
.quantity-stepper button:disabled {opacity:.4;cursor:not-allowed;}
.quantity-stepper input[name=qty] {width:48px;min-width:0;min-height:36px;height:36px;padding:0 3px;border:0;background:transparent;box-shadow:none;text-align:center;font-weight:650;appearance:textfield;-moz-appearance:textfield;}
.quantity-stepper input[name=qty]:hover,.quantity-stepper input[name=qty]:focus,.quantity-stepper input[name=qty]:focus-visible {outline:none;border:0;box-shadow:none;background:transparent;}
.quantity-stepper input[name=qty][readonly] {user-select:none;-webkit-user-select:none;cursor:default;caret-color:transparent;}
.quantity-stepper input[name=qty][readonly]::selection {background:transparent;color:inherit;}
.quantity-stepper input::-webkit-inner-spin-button,.quantity-stepper input::-webkit-outer-spin-button {appearance:none;margin:0;}
#cart-update-status {font-size:.82rem;color:var(--muted);margin:0;padding:8px 0 0;min-height:26px;}
#checkout[hidden],#cart-not-ready[hidden],.cart-availability[hidden] {display:none!important;}
@media(max-width:480px){.quantity-stepper button{width:34px;height:36px;flex-basis:34px}.quantity-stepper input[name=qty]{width:40px;}}
@media(prefers-reduced-motion:reduce){.quantity-stepper button{transition:none;}}

/* Retomada de pagamento */
.pending-history-item + .pending-history-item {border-top:1px solid var(--line);}
.pending-payment-form {margin:8px 0 14px;}
.pending-history-item .pending-payment-form {display:flex;justify-content:flex-end;}
.pending-history-item .pending-payment-form .button {width:auto;}
@media(max-width:600px){.pending-history-item .pending-payment-form .button{width:100%;}}

/* Global typography, application shell and MCP configuration */
:root {font-family:'Bricolage Grotesque','Segoe UI',system-ui,sans-serif;}
body,button,input,select,textarea,input[readonly],.quantity-stepper button {font-family:inherit;}
.admin-authenticated {--sidebar-width:248px;--admin-header:72px;}
.admin-authenticated .site-header {position:sticky;top:0;z-index:20;}
.admin-authenticated .header-inner {width:100%;padding:0 24px;min-height:var(--admin-header);}
.admin-authenticated .main-content {width:100%;padding:0;}
.admin-authenticated .main-content > .feedback {margin:16px 24px 0 calc(var(--sidebar-width) + 24px);}
.admin-authenticated .admin-layout {grid-template-columns:var(--sidebar-width) minmax(0,1fr);gap:0;align-items:start;min-height:calc(100vh - var(--admin-header));}
.admin-authenticated .admin-sidebar {position:sticky;top:var(--admin-header);height:calc(100dvh - var(--admin-header));overflow-y:auto;background:#fff;border-right:1px solid var(--line);padding:24px 14px;}
.admin-sidebar h2 {font-size:1rem;color:var(--ink);margin:0 12px 20px;}
.sidebar-group {font-size:.72rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:700;margin:14px 12px 4px;}
.admin-sidebar nav {display:grid;gap:4px;}
.admin-sidebar nav a {padding:10px 12px;min-height:44px;font-weight:600;}
.admin-sidebar nav a[aria-current] {background:var(--tint);color:var(--primary);box-shadow:inset 3px 0 var(--primary);}
.admin-authenticated .admin-content {min-width:0;padding:30px clamp(20px,3vw,44px) 48px;}
.admin-content .page-head h1 {font-size:clamp(1.7rem,3vw,2.2rem);}
.admin-authenticated .site-footer {display:none;}
.mcp-settings {display:grid;gap:16px;max-width:1100px;}
.mcp-settings .panel {padding:clamp(16px,2.5vw,26px);border-radius:16px;}
.mcp-overview {display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;}
.mcp-overview h2,.mcp-step h2 {font-size:1.2rem;letter-spacing:-.02em;}
.mcp-overview p,.mcp-step-head p {font-size:.92rem;line-height:1.55;margin-top:6px;}
.mcp-step {display:grid;gap:18px;}
.mcp-step-head {display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;}
.mcp-step-head > div {flex:1;min-width:150px;}
.mcp-step-index {display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--tint);color:var(--primary);font-weight:750;flex:none;}
.mcp-field {min-width:0;}.mcp-field label,.mcp-callback-form label {font-size:.85rem;font-weight:650;}
.mcp-settings .integration-url input {flex:1;min-width:0;font-size:.88rem;}
.mcp-details,.mcp-support {border:1px solid var(--line);border-radius:12px;overflow:hidden;}
.mcp-details summary,.mcp-support summary {cursor:pointer;padding:12px 14px;font-weight:650;font-size:.92rem;}
.mcp-support.panel {padding:4px;}.mcp-detail-content {padding:14px;display:grid;gap:16px;border-top:1px solid var(--line);}
.mcp-options {margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.mcp-options div {padding:12px;background:var(--bg);border-radius:10px;min-width:0;overflow-wrap:anywhere;}
.mcp-options dt {font-size:.76rem;color:var(--muted);}.mcp-options dd {margin:4px 0 0;font-size:.88rem;font-weight:600;}
.mcp-credential,.mcp-token-form,.mcp-support-links {display:grid;gap:10px;}
#cart-update-status:empty {min-height:0;padding:0;}.quantity-stepper {touch-action:manipulation;user-select:none;}
.quantity-stepper input[name=qty] {outline:none!important;box-shadow:none!important;border:0!important;background:transparent!important;}
@media(max-width:850px){.admin-authenticated .admin-layout{grid-template-columns:190px minmax(0,1fr);}.admin-authenticated{--sidebar-width:190px;}.admin-authenticated .admin-content{padding:22px 16px}.mcp-settings .fields,.mcp-options{grid-template-columns:1fr;}}
@media(max-width:600px){.admin-authenticated{--admin-header:62px;}.admin-authenticated .header-inner{padding:0 12px;gap:8px;}.admin-authenticated .admin-layout{display:block;}.admin-authenticated .admin-sidebar{position:static;height:auto;padding:12px;border-right:0;border-bottom:1px solid var(--line);}.admin-sidebar h2{display:block;margin:0 8px 8px;}.admin-sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}.sidebar-group{grid-column:1/-1;margin:8px 8px 2px;}.admin-authenticated .main-content > .feedback{margin:12px;}.mcp-settings .integration-url{flex-wrap:wrap;}.mcp-settings .integration-url input{flex-basis:100%;}.admin-authenticated .brand{font-size:1.05rem;}}

.store-header {
    background: linear-gradient(105deg, #ffe783, #ffdf62 55%, #ffd44d);
    border-color: #e7c14b;
}
.store-header .header-inner {
    min-height: 76px;
    grid-template-columns: auto minmax(160px, 500px) auto;
    gap: clamp(16px, 3vw, 40px);
}
.store-header .customer-nav { gap: 8px; }
.store-header .nav-link { min-height: 44px; border: 1px solid transparent; border-radius: 12px; padding: 8px 12px; }
.store-header .store-account-link:hover,
.store-header .store-account-link[aria-current] { background: #fff1b9; color: var(--ink); }
.store-header .cart-link { background: #fff9e5; border-color: #f5e2a1; color: #26208a; }
.store-header .cart-link:hover, .store-header .cart-link[aria-current] { background: #fff; }
.store-header .search { min-height: 46px; border: 1px solid #efd579; background: #fffdf3; }
.store-header .search:focus-within { border-color: #7665b7; }
.store-header .search input { width: 100%; }
.shipping-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-block: 10px; }
.shipping-row strong { color: var(--ink); }
.cart-shipping { padding: 8px 12px 12px; border: 1px solid var(--line); border-radius: 12px; }
.cart-shipping .shipping-row { margin-top: 0; }
.cart-shipping .checkout-note { margin-block: 4px 7px; }
@media (max-width: 880px) {
    .store-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
}
@media (max-width: 525px) {
    .store-header .nav-link { padding-inline: 8px; }
    .store-header .nav-link svg { width: 19px; height: 19px; }
}
@media (max-width: 380px) {
    .store-header .header-inner { column-gap: 6px; }
    .store-header .customer-nav { gap: 4px; }
    .store-header .store-cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* Vitrine da página inicial */
.store-hero {
    --hero-gutter: clamp(64px, 7vw, 90px);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 26px;
    background: #21167d;
    box-shadow: 0 15px 32px #24153920;
    touch-action: pan-y;
}
.store-hero-slides { display: grid; }
.store-hero-slide {
    --tone: #21167d;
    --hero-accent: #ffdf70;
    position: relative;
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 51%) minmax(0, 49%);
    min-height: clamp(360px, 35vw, 425px);
    background: var(--tone);
    color: #fffdf8;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .42s ease, visibility 0s linear .42s;
}
.store-hero-slide.is-current {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}
.store-hero-natal { --tone: #641027; --hero-accent: #ffdb9f; }
.store-hero-virada { --tone: #10392f; --hero-accent: #ffdf8b; }
.store-hero-copy {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 38px 0 38px var(--hero-gutter);
}
.store-hero-title {
    margin: 0;
    font-size: clamp(2.4rem, 4.9vw, 4.25rem);
    font-weight: 810;
    letter-spacing: -.069em;
    line-height: 1.01;
    overflow-wrap: normal;
}
.store-hero-title span { color: var(--hero-accent); }
.store-hero-virada .store-hero-title { font-size: clamp(2.2rem, 4.25vw, 3.85rem); }
.store-hero-copy p {
    max-width: 35ch;
    margin: 16px 0 20px;
    color: #fffcf5;
    font-size: clamp(.98rem, 1.55vw, 1.12rem);
    line-height: 1.45;
}
.store-hero-cta { background: #fff8df; border-color: #fff8df; color: #24204c; padding-inline: 16px; }
.store-hero-cta:hover { background: #fff; border-color: #fff; color: #24204c; }
.store-hero-cta:focus-visible, .store-hero-arrow:focus-visible { outline-color: #fff; }
.store-hero-art { position: absolute; inset: 0 0 0 37%; }
.store-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 59%; }
.store-hero-delivery .store-hero-art img { object-position: 56% 57%; }
.store-hero-art::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, var(--tone), transparent 39%);
}
.store-hero-arrow {
    position: absolute;
    z-index: 2;
    inset-block-start: 50%;
    translate: 0 -50%;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #ffffff56;
    border-radius: 50%;
    background: #161027a8;
    color: #fff;
    cursor: pointer;
}
.store-hero-arrow[hidden] { display: none; }
.store-hero-arrow:hover { background: #161027ed; }
.store-hero-arrow svg { width: 20px; height: 20px; }
.store-hero-prev { inset-inline-start: 12px; }
.store-hero-next { inset-inline-end: 12px; }

@media (min-width: 881px) {
    .main-content.main-home {
        display: grid;
        grid-template-columns: minmax(32px, 1fr) minmax(0, 1220px) minmax(32px, 1fr);
        align-content: start;
        width: 100%;
        padding-block-start: 0;
    }
    .main-home > * { grid-column: 2; }
    .main-home > .store-hero {
        grid-column: 1 / -1;
        border-radius: 0;
        box-shadow: none;
    }
    .main-home .store-hero-slide { min-height: clamp(306px, 27vw, 392px); }
    .main-home .store-hero-copy { padding-block: 27px; padding-inline-start: max(68px, calc((100vw - 1220px) / 2)); }
    .main-home .store-hero-title { font-size: clamp(2.6rem, 4.3vw, 4.15rem); }
    .main-home .store-hero-virada .store-hero-title { font-size: clamp(2.5rem, 4vw, 3.85rem); }
    .main-home .store-hero-art {
        inset: 0 max(0px, calc((100% - 1540px) / 2)) 0 auto;
        aspect-ratio: 3 / 2;
    }
    .main-home .store-hero-art::after {
        background: linear-gradient(90deg, var(--tone), transparent 38%);
    }
}
@media (min-width: 641px) and (max-width: 880px) {
    .store-hero-slide { grid-template-columns: minmax(0, 57%) minmax(0, 43%); min-height: 328px; }
    .store-hero-art { inset-inline-start: 36%; }
    .store-hero-art::after { background: linear-gradient(90deg, var(--tone), transparent 52%); }
}
@media (max-width: 640px) {
    .main-home { padding-block-start: 16px; }
    .store-hero {
        --hero-gutter: clamp(12px, 4vw, 24px);
        border-radius: 16px;
        box-shadow: 0 8px 20px #24153918;
    }
    .store-hero-slide {
        grid-template-columns: minmax(0, 57%) minmax(0, 43%);
        min-height: clamp(180px, 38vw, 226px);
    }
    .store-hero-copy { padding: 14px 1px 14px var(--hero-gutter); }
    .store-hero-title, .store-hero-virada .store-hero-title {
        font-size: clamp(1.42rem, 5.85vw, 2.35rem);
        letter-spacing: -.055em;
        line-height: 1.04;
    }
    .store-hero-copy p {
        margin: 8px 0 11px;
        font-size: clamp(.77rem, 2.55vw, .96rem);
        line-height: 1.34;
    }
    .store-hero-cta { min-height: 36px; padding: 6px 9px; gap: 5px; font-size: clamp(.71rem, 2.5vw, .86rem); }
    .store-hero-cta svg { width: 14px; height: 14px; }
    .store-hero-art {
        inset: 0 0 0 53%;
        overflow: hidden;
        clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    }
    .store-hero-art img, .store-hero-delivery .store-hero-art img { object-position: 68% center; }
    .store-hero-natal .store-hero-art img { object-position: 75% center; }
    .store-hero-art::after { display: none; }
    .store-hero-arrow:not(:focus-visible) {
        clip-path: inset(50%);
        pointer-events: none;
    }
    .main-home .category-nav { margin-block: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .store-hero-slide { transition: none; }
}

.product-payment, .product-share { display: grid; gap: 9px; padding-top: 11px; border-top: 1px solid #e8e4fc; min-width: 0; }
.product-payment h2, .product-share h2 { font-size: .91rem; letter-spacing: 0; }
.product-payment ul, .product-share-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.product-payment ul { list-style: none; padding: 0; }
.product-payment li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-size: .82rem;
}
.product-payment svg { color: var(--primary-dark); width: 17px; height: 17px; }
.product-share-actions .button { min-height: 40px; padding-inline: 11px; }
.product-share-whatsapp, .product-share-whatsapp:hover { background: #e2f7ec; border-color: #c7ead7; color: #125737; }
.product-share-whatsapp:hover { background: #d2f1df; }
.product-share input { width: 100%; max-width: none; font-size: .83rem; }
.product-share-status { font-size: .82rem; color: var(--muted); }
.product-share [hidden], .review-counter[hidden] { display: none; }

.product-reviews {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "summary form" "list form";
    gap: 17px 25px;
    padding: clamp(18px, 3vw, 38px);
    scroll-margin-top: 20px;
}
.product-reviews-head { grid-area: summary; display: grid; gap: 12px; }
.review-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 14px; }
.review-summary p, .review-entry p { font-size: .9rem; }
.review-score { display: inline-flex; align-items: baseline; gap: 4px; font-size: .9rem; }
.review-score > span:first-child, .review-card-stars { color: #745017; }
.review-score strong { font-size: 1.55rem; line-height: 1; }
.review-entry {
    grid-area: form;
    align-self: start;
    display: grid;
    justify-items: start;
    gap: 10px;
    min-width: 0;
    padding: clamp(14px, 2vw, 21px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8f8fd;
}
.review-entry h3 { font-size: 1.07rem; }
.review-feedback { display: grid; justify-items: start; gap: 5px; }
.review-form { display: grid; gap: 14px; width: 100%; justify-items: start; }
.review-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.review-form legend { font-weight: 700; margin-bottom: 7px; }
.review-stars { display: flex; flex-wrap: wrap; gap: 6px; }
.review-stars label {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 38px;
    min-height: 38px;
    padding-inline: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: .83rem;
    color: #493b22;
}
.review-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.review-stars label:hover, .review-stars label:has(input:checked) { background: var(--tint); border-color: var(--primary); color: var(--primary-dark); }
.review-stars label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.review-comment-field { width: 100%; }
.review-comment-field label { display: block; margin-bottom: 6px; }
.review-comment-field textarea { min-height: 104px; resize: vertical; }
.review-counter { display: block; margin-top: 3px; color: var(--muted); text-align: end; }
.review-list { grid-area: list; display: grid; align-content: start; gap: 9px; }
.review-card, .review-empty { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.review-empty { color: var(--muted); }
.review-card-head, .review-verified { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.review-card-stars { font-size: .95rem; letter-spacing: .03em; }
.review-verified, .review-status-badge {
    gap: 4px;
    padding: 2px 7px;
    border-radius: 6px;
    background: #e9f4ed;
    color: #235840;
    font-size: .74rem;
    font-weight: 700;
}
.review-status-badge { background: var(--tint); color: #383078; }
.review-verified svg { width: 12px; height: 12px; }
.review-card time { margin-inline-start: auto; color: var(--muted); font-size: .78rem; }
.review-card-comment { margin-top: 8px; color: var(--ink); white-space: pre-wrap; }
.review-reply { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #f5f4fc; font-size: .88rem; }
.review-reply p { margin-top: 3px; white-space: pre-wrap; }
@media (max-width: 700px) {
    .product-reviews { grid-template: "summary" auto "form" auto "list" auto / minmax(0, 1fr); gap: 13px; }
}

.product-freight { display: grid; gap: 9px; padding-top: 11px; border-top: 1px solid #e8e4fc; }
.product-freight h2 { display: inline-flex; align-items: center; gap: 7px; font-size: .91rem; letter-spacing: 0; }
.product-freight h2 svg { color: var(--primary-dark); width: 18px; height: 18px; }
.product-freight .product-freight-address {
    display: grid;
    grid-template-columns: minmax(88px, .88fr) minmax(0, 1.35fr) minmax(62px, .57fr);
    gap: 8px;
}
.product-freight-address label { min-width: 0; font-size: .83rem; }
.product-freight-address input, .product-freight-address select { width: 100%; max-width: none; min-height: 40px; padding-inline: 7px; font-size: .86rem; }
.product-freight .button { justify-self: start; min-height: 39px; }
.product-freight-result { display: grid; gap: 2px; font-size: .86rem; color: var(--muted); }
.product-freight-result:empty { display: none; }
.product-freight-result strong { color: var(--ink); }
.product-freight-error { color: #972b40; }
@media (max-width: 370px) {
    .product-freight .product-freight-address { grid-template-columns: minmax(0, 1fr) 70px; }
    .product-freight-address label:first-child { grid-column: 1 / -1; }
}

.admin-content .admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-product-drawer:not([open]), .admin-product-drawer [hidden] { display: none !important; }
.admin-product-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(680px, 100%);
    max-width: 100%;
    max-height: none;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--surface);
    color: var(--ink);
    box-shadow: -12px 0 40px #18152b36;
    overflow: hidden;
}
.admin-product-drawer::backdrop { background: #19162d73; }
html:has(.admin-product-drawer[open]) { overflow: hidden; }
.admin-product-drawer[open] { animation: admin-product-slide-in .22s ease-out; }
@keyframes admin-product-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.admin-product-drawer-shell, .admin-product-editor-form { min-height: 0; display: flex; flex-direction: column; }
.admin-product-drawer-shell { height: 100%; }
.admin-product-editor-form { flex: 1; }
.admin-product-drawer-head, .admin-product-drawer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: none;
    padding: 15px clamp(14px, 4vw, 25px);
}
.admin-product-drawer-head { border-bottom: 1px solid var(--line); }
.admin-product-drawer-head h2 { margin-bottom: 4px; }
.admin-product-drawer-close {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    font-size: 1.55rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f6f6fa;
}
.admin-product-drawer-close:hover { background: var(--tint); color: var(--primary-dark); }
.admin-product-steps {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 5px;
    list-style: none;
    padding: 10px clamp(14px,4vw,25px);
    border-bottom: 1px solid var(--line);
}
.admin-product-steps li { min-width: 0; }
.admin-product-steps button {
    width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 4px;
    border-radius: 8px;
    font-size: clamp(.72rem,2.8vw,.88rem);
    line-height: 1.25;
    color: var(--muted);
}
.admin-product-steps button > span {
    display: grid;
    place-items: center;
    flex: 0 0 25px;
    min-height: 25px;
    border-radius: 50%;
    background: #edf0f6;
    font-weight: 700;
}
.admin-product-steps [aria-current="step"] { background: var(--tint); color: var(--primary-dark); font-weight: 750; }
.admin-product-steps [aria-current="step"] > span { background: var(--primary); color: white; }
.admin-product-steps .is-complete > span { background: #e0f5e9; color: #146346; }
.admin-product-drawer-body { flex: 1; min-height: 0; overflow: auto; padding: 19px clamp(14px,4vw,25px) 24px; }
.admin-product-step { display: grid; gap: 14px; margin-bottom: 10px; }
.admin-product-step + .admin-product-step:not([hidden]) { margin-top: 22px; }
.admin-product-step h3 { font-size: 1.2rem; }
.admin-product-step h3:focus { outline: none; }
.admin-product-drawer-footer { border-top: 1px solid var(--line); padding-bottom: max(15px, env(safe-area-inset-bottom)); }
.admin-product-footer-actions { display: flex; gap: 7px; justify-content: flex-end; flex-wrap: wrap; }
.admin-product-fieldset { display: grid; gap: 10px; padding: 12px; }
.admin-product-fieldset .photo-help { margin: 0; }
.admin-product-photos { display: grid; gap: 7px; }
.admin-product-photo, .admin-supplier-technical { border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.admin-product-photo summary, .admin-supplier-technical summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    min-height: 46px;
    list-style: none;
    font-weight: 650;
    cursor: pointer;
}
.admin-product-photo summary::-webkit-details-marker, .admin-supplier-technical summary::-webkit-details-marker { display: none; }
.admin-product-photo summary::after, .admin-supplier-technical summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    margin-inline-start: auto;
}
.admin-product-photo[open] summary::after, .admin-supplier-technical[open] summary::after { transform: rotate(225deg); }
.admin-product-photo-thumb { width: 34px; height: 34px; border-radius: 6px; overflow: hidden; background: #f1eff8; }
.admin-product-photo-thumb img { width: 100%; height: 100%; object-fit: contain; }
.admin-product-photo-fields { display: grid; gap: 10px; padding: 0 11px 12px; }
.admin-product-drawer .admin-product-check { display: inline-flex; align-items: center; gap: 8px; }
.admin-product-drawer .admin-product-check input { flex: none; margin: 0; width: 18px; height: 18px; accent-color: var(--primary); }
.admin-supplier-card { display: grid; gap: 13px; padding: clamp(13px,3vw,20px); border: 1px solid #e3e2f3; border-radius: 13px; background: #f8f7fd; }
.admin-supplier-head h4 { margin: 0 0 3px; font-size: 1.04rem; }
.admin-supplier-head p { font-size: .84rem; }
.admin-supplier-metrics { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.admin-supplier-metrics div { border-radius: 8px; background: white; padding: 8px 10px; border: 1px solid #eae8f3; }
.admin-supplier-metrics dt { color: var(--muted); font-size: .78rem; }
.admin-supplier-metrics dd { margin: 0; font-weight: 780; font-size: 1.05rem; }
.admin-supplier-actions { display: flex; gap: 10px 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.admin-supplier-actions label { font-size: .87rem; }
.admin-supplier-technical pre {
    margin: 0;
    padding: 11px;
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border-top: 1px solid var(--line);
    background: #f7f8fc;
    font-size: .78rem;
}
@media(max-width:420px) {
    .admin-product-drawer-footer .button { min-height: 39px; padding-inline: 8px; }
    .admin-product-drawer-footer .button svg { width: 14px; }
}
@media(prefers-reduced-motion:reduce) {
    .admin-product-drawer[open] { animation: none; }
}

/* Editor: navigation without a colored side rail. */
.admin-sidebar nav a[aria-current], .admin-sidebar nav a:hover { box-shadow: none; }
.admin-product-drawer a:hover, .admin-product-steps button:hover { box-shadow: none; border-left-color: transparent; }
.admin-product-steps button:hover { background: var(--tint); }
.admin-product-steps button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.admin-product-drawer [aria-busy="true"] { cursor: progress; }
[data-catalog-feedback]:empty { display: none; }

/* Compact payment settings and review moderation */
.mp-admin .mp-credentials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.mp-admin .mp-credentials fieldset{display:grid;gap:10px;align-content:start;padding:14px}
.mp-admin .mp-hint,.mp-hint{font-size:.85rem;color:var(--muted);margin:0}
.mp-help{font-size:.85rem;color:var(--muted)}
.mp-help summary{cursor:pointer;width:fit-content}.mp-help p{margin:8px 0 0}
.admin-reviews{display:grid;gap:16px;min-width:0}
.review-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.review-metric{padding:16px;display:grid;gap:5px;border-radius:14px;box-shadow:none}
.review-metric span,.review-date{font-size:.84rem;color:var(--muted)}
.review-metric strong{font-size:1.65rem;line-height:1.2}
.review-list{gap:18px}.review-list h2{margin:0;font-size:1.15rem}.review-list .section-head p{margin:4px 0 0}
.review-empty{display:grid;justify-items:center;text-align:center;gap:8px;padding:40px 16px;background:var(--bg);border:1px dashed var(--line);border-radius:12px}
.review-empty h3,.review-empty p{margin:0}.review-empty p{font-size:.9rem;color:var(--muted)}
.review-item{display:grid;gap:12px;border:1px solid var(--line);border-radius:12px;padding:16px;min-width:0}
.review-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.review-item-head h3{font-size:1rem;margin:0;overflow-wrap:anywhere}
.review-rating{display:flex;gap:8px;align-items:center;font-size:.85rem}.review-rating span{color:#a66b08;font-size:1.15rem;letter-spacing:2px}
.review-comment{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);padding:12px;border-radius:8px;margin:0}
.review-edit{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,2fr);gap:12px;align-items:start}.review-edit textarea{resize:vertical;min-height:72px}
.review-actions{display:flex;justify-content:flex-end}
@media(max-width:760px){.mp-admin .mp-credentials,.review-edit{grid-template-columns:1fr}.review-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Unified administrative shell: storefront remains unchanged. */
.admin-authenticated{--admin-shell:#eceef1;--sidebar-width:260px;--admin-header:64px;background:var(--admin-shell);}
.admin-authenticated .site-header{background:var(--admin-shell);border:0;}
.admin-authenticated .header-inner{display:grid;grid-template-columns:auto minmax(120px,390px) 1fr;gap:20px;padding:0 20px;min-height:var(--admin-header);}
.admin-top-title{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:.95rem;}
.admin-menu-toggle{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:white;color:var(--ink);cursor:pointer;flex:none;}
.admin-menu-search{display:flex;align-items:center;gap:8px;background:#e0e3e7;border-radius:24px;padding:0 13px;min-width:0;}
.admin-menu-search svg{width:18px;height:18px;flex:none;}
.admin-menu-search input{background:transparent;border:0;box-shadow:none;min-width:0;width:100%;padding:9px 0;min-height:38px;font-size:.88rem;outline:none;}
.admin-menu-search:focus-within,.admin-menu-toggle:focus-visible{outline:2px solid var(--primary);outline-offset:2px;}
.admin-authenticated .header-inner .customer-nav{justify-self:end;}
.admin-authenticated .header-inner .nav-link{background:white;border-radius:24px;padding:8px 14px;font-size:.85rem;}
.admin-authenticated .admin-layout{align-items:stretch;min-height:calc(100dvh - var(--admin-header));}
.admin-authenticated .admin-sidebar{background:transparent;border:0;padding:14px 14px 10px;display:flex;flex-direction:column;gap:14px;scrollbar-width:thin;scrollbar-color:#cbd0d9 transparent;}
.admin-sidebar-brand,.admin-profile{display:flex;align-items:center;gap:10px;padding:6px 8px;line-height:1.2;}
.admin-sidebar-brand img{display:block;width:42px;height:42px;min-width:42px;max-width:42px;aspect-ratio:1;border-radius:50%;background:white;object-fit:contain;flex:0 0 42px;}
.admin-sidebar-brand strong,.admin-profile strong{display:block;font-size:.9rem;}
.admin-sidebar-brand small,.admin-profile small{display:block;color:var(--muted);font-size:.75rem;margin-top:3px;}
.admin-profile{background:#e0e3e7;border-radius:13px;padding:10px;}
.admin-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#202838;color:white;flex:none;}
.admin-authenticated .admin-sidebar nav{display:grid;grid-template-columns:1fr;gap:4px;}
.admin-authenticated .admin-sidebar nav a{min-height:44px;padding:10px 13px;color:var(--ink);border-radius:9px;font-size:.88rem;}
.admin-authenticated .admin-sidebar nav a svg{color:#697383;flex:none;}
.admin-authenticated .admin-sidebar nav a:hover,.admin-authenticated .admin-sidebar nav a[aria-current]{background:#dce1e7;color:var(--ink);box-shadow:none;}
.admin-sidebar-logout{margin-top:auto;}
.admin-sidebar-logout button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:0;border-radius:10px;background:#e0e3e7;padding:12px;color:var(--ink);font-weight:650;cursor:pointer;}
.admin-authenticated .admin-content{background:#fff;border-radius:26px 26px 0 0;min-height:calc(100dvh - var(--admin-header));padding:30px clamp(20px,3vw,44px) 48px;}
.admin-authenticated.admin-menu-collapsed .admin-layout{grid-template-columns:minmax(0,1fr);}
.admin-authenticated.admin-menu-collapsed .admin-sidebar{display:none;}
.admin-authenticated.admin-menu-collapsed .main-content > .feedback{margin-left:24px;}
.admin-sidebar [hidden]{display:none!important;}
@media(max-width:850px){.admin-authenticated{--sidebar-width:220px;}.admin-authenticated .admin-layout{grid-template-columns:var(--sidebar-width) minmax(0,1fr);}.admin-authenticated .header-inner{gap:12px;}.admin-authenticated .admin-content{padding:24px 18px;}}
@media(max-width:600px){.admin-authenticated{--admin-header:60px;}.admin-authenticated .header-inner{grid-template-columns:auto 1fr auto;padding:0 10px;gap:8px;}.admin-top-title strong{display:none;}.admin-menu-search{padding:0 9px;}.admin-authenticated .header-inner .nav-link{padding:8px;}.admin-authenticated .admin-layout{display:block;}.admin-authenticated .admin-sidebar{height:auto;max-height:65dvh;position:static;padding:12px;}.admin-authenticated .admin-content{border-radius:20px 20px 0 0;padding:20px 14px;}.admin-authenticated .sidebar-group{grid-column:auto;}.admin-authenticated .main-content > .feedback{margin:12px;}}

/* Sidebar header: fixed logo geometry and safe flexible text. */
.admin-authenticated .admin-sidebar{min-width:0;overflow-x:hidden;overscroll-behavior-y:contain;}
.admin-authenticated .admin-sidebar > *{min-width:0;flex-shrink:0;}
.admin-sidebar-brand{width:100%;min-height:60px;padding:8px 10px;gap:10px;border-radius:12px;}
.admin-sidebar-brand:hover{background:#e2e5e9;}
.admin-sidebar-brand > span,.admin-profile > span:last-child{flex:1;min-width:0;}
.admin-sidebar-brand strong{font-size:.92rem;line-height:1.2;overflow-wrap:normal;}
.admin-sidebar-brand small{font-size:.72rem;line-height:1.3;overflow-wrap:normal;}
.admin-profile{min-height:56px;}
.admin-authenticated .admin-sidebar nav{min-width:0;grid-template-columns:minmax(0,1fr);}
.admin-authenticated .admin-sidebar nav a{min-width:0;white-space:normal;overflow-wrap:anywhere;}
.admin-sidebar-logout{padding-top:8px;}
.admin-sidebar-logout button:hover{background:#d6dbe2;}
.admin-authenticated .admin-content{min-width:0;}
@media(max-width:850px){.admin-sidebar-brand{padding:6px 4px;gap:8px;}.admin-sidebar-brand strong{font-size:.85rem;}}

/* Reviews admin layout */
.admin-review-shell { display: grid; gap: 18px; }
.admin-review-overview { display: grid; gap: 18px; }
.admin-review-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-review-stat { padding: 16px 18px; display: grid; gap: 8px; min-height: 112px; align-content: space-between; }
.admin-review-stat-label { color: var(--muted); font-size: .92rem; line-height: 1.35; }
.admin-review-stat strong { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -.05em; }
.admin-review-panel { padding: clamp(18px, 3vw, 24px); display: grid; gap: 18px; }
.admin-review-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-review-panel-head h2 { margin: 0 0 5px; font-size: 1.45rem; }
.admin-review-panel-head p { margin: 0; color: var(--muted); }
.admin-review-empty { min-height: 280px; border: 1px dashed #ddd9ef; border-radius: 18px; background: linear-gradient(180deg, #fcfbff, #f8f7fe); display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.admin-review-empty .icon-tile { margin-bottom: 2px; }
.admin-review-empty h3 { margin: 0; font-size: 1.3rem; }
.admin-review-empty p { margin: 0; color: var(--muted); }
.admin-review-list { display: grid; gap: 14px; }
.admin-review-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fcfcff; display: grid; gap: 14px; }
.admin-review-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.admin-review-card-title { min-width: 0; }
.admin-review-card-title h3 { margin: 0 0 5px; font-size: 1.05rem; }
.admin-review-card-title p { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: #856110; font-weight: 700; }
.admin-review-card-title p span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.admin-review-comment { margin: 0; color: var(--ink); line-height: 1.6; padding: 13px 14px; border-radius: 14px; background: #f5f5fc; }
.admin-review-fields { align-items: start; }
.admin-review-fields textarea { min-height: 110px; resize: vertical; }
.admin-review-reply-field { grid-column: 1 / -1; }
.admin-review-actions { display: flex; justify-content: flex-end; }

/* Mobile cards for admin product catalog */
.admin-catalog-panel { overflow: hidden; }
.admin-catalog-mobile { display: none; padding: 0 16px 16px; }
.admin-catalog-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 14px; display: grid; gap: 14px; }
.admin-catalog-card + .admin-catalog-card { margin-top: 12px; }
.admin-catalog-card-head { display: grid; gap: 10px; }
.admin-catalog-card-product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-catalog-card-product .thumb { flex: 0 0 56px; width: 56px; height: 56px; }
.admin-catalog-card-product h3 { margin: 0 0 4px; font-size: 1rem; line-height: 1.35; }
.admin-catalog-card-product p { margin: 0; color: var(--muted); font-size: .92rem; }
.admin-catalog-card-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.admin-catalog-card-meta div { padding: 11px 12px; border-radius: 12px; background: #f7f7fd; }
.admin-catalog-card-meta dt { font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.admin-catalog-card-meta dd { margin: 0; font-weight: 700; }
.admin-catalog-card-actions { display: flex; justify-content: flex-end; }
.admin-catalog-card-actions .button { width: 100%; justify-content: center; }

@media (max-width: 900px) {
    .admin-review-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .admin-catalog-table { display: none; }
    .admin-catalog-mobile { display: block; }
}
@media (max-width: 580px) {
    .admin-review-metrics { grid-template-columns: 1fr; }
    .admin-review-panel { padding: 16px; }
    .admin-review-card { padding: 14px; }
    .admin-review-card-head { align-items: stretch; }
    .admin-review-actions { justify-content: stretch; }
    .admin-review-actions .button { width: 100%; justify-content: center; }
    .admin-catalog-mobile { padding: 0 12px 12px; }
    .admin-catalog-card-meta { grid-template-columns: 1fr; }
}

.admin-review-card-title small{display:block;color:var(--muted);margin-bottom:5px;}

/* Regional preferences: scoped to the administrative content. */
.regional-panel {max-width: 950px;}
.regional-form {display:grid;gap:16px;justify-items:start;}
.regional-form .fields {width:100%;}
.regional-form small {display:block;color:var(--muted);font-weight:400;}
.regional-form .muted {font-size:.88rem;line-height:1.5;}

/* Consistent admin form controls: subtle focus, no decorative hover ring. */
.admin-authenticated .admin-content select {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    max-width: 100%;
    padding: 0 12px;
    font-size: .88rem;
    border: 1px solid #d8dced;
    border-radius: 10px;
    background-color: #fcfcff;
    box-shadow: none;
}
.admin-authenticated .admin-content select:hover { border-color: #d8dced; box-shadow: none; }
.admin-authenticated .admin-content select:focus { outline: none; border-color: #9298a7; box-shadow: none; }
.admin-authenticated .admin-content select:focus-visible { outline: 1px solid #737b8c; outline-offset: 1px; }
.regional-form .fields { align-items: start; }
.regional-form .fields > label { align-content: start; align-self: start; gap: 6px; }
.regional-form .fields input:not([type=hidden]), .regional-form .fields select {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
    font-size: .88rem;
    border-radius: 10px;
}
.regional-form .fields input:focus { outline: none; border-color: #9298a7; box-shadow: none; }
.regional-form .fields input:focus-visible { outline: 1px solid #737b8c; outline-offset: 1px; }
.regional-form small { margin: 0; line-height: 1.4; }

.admin-banner-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px;align-items:start;}
.admin-banner-preview {width:100%;height:180px;object-fit:contain;background:#f5f5f7;border:1px solid var(--line);border-radius:12px;}
.admin-banner-form .fields {grid-template-columns:repeat(2,minmax(0,1fr));}
@media(max-width:480px){.admin-banner-form .fields{grid-template-columns:1fr;}}

/* Destination fields: give city a full row, keep country and postal/region readable. */
.product-freight .product-freight-address, .delivery-address-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; align-items: end;
}
.product-freight-address .destination-country, .product-freight-address .destination-city,
.delivery-address-grid .destination-country, .delivery-address-grid .destination-city { grid-column: 1 / -1; }
.product-freight-address .destination-postal, .delivery-address-grid .destination-postal { grid-column: 1; grid-row: 3; }
.product-freight-address .destination-region, .delivery-address-grid .destination-region { grid-column: 2; grid-row: 3; }
.product-freight-address .destination-city, .delivery-address-grid .destination-city { grid-row: 2; }
.product-freight-address .destination-country, .delivery-address-grid .destination-country { grid-row: 1; }
.product-freight-address label, .delivery-address-grid label { min-width: 0; }
.product-freight-address input, .product-freight-address select, .delivery-address-grid input, .delivery-address-grid select { width: 100%; min-width: 0; max-width: none; min-height: 44px; padding-inline: 10px; box-sizing: border-box; }
.product-freight form[data-product-freight] { display: grid; gap: 12px; }
@media(max-width: 420px) {
 .delivery-address-grid { grid-template-columns: minmax(0,1fr); }
 .delivery-address-grid .destination-postal, .delivery-address-grid .destination-region { grid-column: 1 / -1; grid-row: auto; }
}
@media(max-width: 350px) {
 .product-freight .product-freight-address { grid-template-columns: minmax(0,1fr); }
 .product-freight-address .destination-postal, .product-freight-address .destination-region { grid-column: 1 / -1; grid-row: auto; }
}

/* Custom banner backgrounds, shared by storefront and editor. */
[data-banner-bg="solid"]{background:var(--banner-first)}
[data-banner-bg="gradient"]{background:linear-gradient(125deg,var(--banner-first),var(--banner-second))}
[data-banner-bg="waves"]{background:radial-gradient(ellipse at 100% 100%,var(--banner-second) 0 35%,transparent 35.5%),radial-gradient(ellipse at 85% 115%,#ffffff20 0 48%,transparent 48.5%),var(--banner-first)}
[data-banner-bg="geometry"]{background:linear-gradient(135deg,transparent 58%,#ffffff19 58% 64%,transparent 64%),linear-gradient(125deg,var(--banner-first) 53%,var(--banner-second) 53%)}
[data-banner-bg="dots"]{background:radial-gradient(circle,#ffffff25 1.5px,transparent 2px) 0 0/22px 22px,linear-gradient(125deg,var(--banner-first),var(--banner-second))}
[data-banner-bg="glow"]{background:radial-gradient(ellipse at 78% 48%,var(--banner-second),transparent 70%),var(--banner-first)}
.store-hero-slide[data-banner-bg]:not([data-banner-bg="original"]) {color:var(--banner-text)}
.store-hero-slide[data-banner-bg]:not([data-banner-bg="original"]) .store-hero-copy p,.store-hero-slide[data-banner-bg]:not([data-banner-bg="original"]) .store-hero-title span{color:var(--banner-text)}
.store-hero-slide[data-banner-bg]:not([data-banner-bg="original"]) .store-hero-art{inset:0 0 0 51%;aspect-ratio:auto;clip-path:none;padding:12px 24px}
.store-hero-slide[data-banner-bg]:not([data-banner-bg="original"]) .store-hero-art img{object-fit:contain;object-position:center}
.store-hero-slide[data-banner-bg]:not([data-banner-bg="original"]) .store-hero-art::after{display:none}
.banner-editor-preview{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:180px;border-radius:12px;overflow:hidden;color:var(--banner-text);padding:12px;gap:6px}
.banner-editor-preview[data-banner-bg="original"]{background:#21167d;color:#fff}
.banner-editor-preview .admin-banner-preview{background:transparent;border:0;height:160px;object-fit:contain;min-width:0}
.banner-preview-copy{display:grid;gap:8px;min-width:0;overflow-wrap:anywhere}.banner-preview-copy strong{font-size:1.1rem;line-height:1.1}.banner-preview-copy small{font-size:.75rem}.banner-preview-copy span{background:#fff;color:#222;border-radius:6px;padding:6px 8px;font-size:.72rem;justify-self:start}
.banner-design-fields{display:grid;gap:12px}.banner-color-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.banner-color-fields label{font-size:.78rem}.banner-color-fields input[type=color]{width:100%;height:44px;padding:4px;cursor:pointer}.banner-palettes{display:flex;flex-wrap:wrap;gap:8px}.banner-palettes>span{flex-basis:100%;font-size:.85rem}.banner-palette{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);cursor:pointer}.banner-palette::before{content:"";width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,var(--swatch-a),var(--swatch-b))}
@media(max-width:640px){.store-hero-slide[data-banner-bg]:not([data-banner-bg="original"]) .store-hero-art{inset:0 0 0 57%;padding:6px}.banner-color-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Hide country-specific address fields regardless of label layout. */
.delivery-address-grid [data-district-field][hidden] { display: none !important; }

/* Consulta financeira administrativa */
.admin-payment-info{border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;gap:12px;background:#fafafa;min-width:0}
.admin-payment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.admin-payment-grid>div{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.admin-payment-grid small,.admin-payment-actions small{color:var(--muted);font-size:.8rem}.admin-payment-grid strong{font-size:.9rem}.admin-payment-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.admin-payment-info [data-payment-message]{font-size:.88rem;overflow-wrap:anywhere}.admin-payment-info [hidden]{display:none}
@media(max-width:850px){.admin-payment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.admin-payment-actions .button{width:100%;justify-content:center}}

.shop-notification-settings{padding:16px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px auto;max-width:960px}.shop-notification-settings>div{flex:1 1 240px;min-width:0}.shop-notification-settings p,.shop-notification-settings small{font-size:.85rem;color:var(--muted)}.shop-notification-settings small{flex-basis:100%}.admin-payment-grid .badge{justify-self:start;white-space:normal}.admin-authenticated .shop-notification-settings{margin:16px 24px 24px auto;max-width:calc(100% - var(--sidebar-width) - 48px)}@media(max-width:700px){.admin-authenticated .shop-notification-settings{max-width:none;margin:12px}.shop-notification-settings .button{width:100%}}

.cancel-order-button{color:#a52535!important;border:1px solid #e8b8bd!important;background:#fff!important;margin-top:8px}.admin-cancel-order{display:grid;gap:8px;margin-top:12px;justify-items:start}.admin-cancel-order label{width:100%}

/* Identidade visual: pato e wordmark */
.brand .brand-duck { width:54px; height:54px; flex:0 0 54px; object-fit:contain; }
.footer-inner .brand .brand-duck { width:44px; height:44px; flex-basis:44px; }
.brand-wordmark { font-family:'Bricolage Grotesque','Segoe UI',system-ui,sans-serif; font-size:clamp(1.4rem,2.5vw,2rem); font-weight:800; letter-spacing:-.055em; line-height:1; color:#391076; }
.footer-inner .brand-wordmark { font-size:1.5rem; }
.brand-duck { transform-origin:50% 85%; }
.site-header .brand-duck,.admin-sidebar-brand .brand-duck { animation:vemefy-duck-sway 5s ease-in-out infinite; }
@keyframes vemefy-duck-sway { 0%,64%,100% { transform:rotate(0deg); } 72% { transform:rotate(-6deg); } 82% { transform:rotate(6deg); } 92% { transform:rotate(-3deg); } }
@media(max-width:600px) { .site-header .brand { gap:5px; } .site-header .brand .brand-duck { width:42px;height:42px;flex-basis:42px; } .site-header .brand-wordmark { font-size:1.4rem; } }
@media(max-width:380px) { .site-header .brand .brand-duck { width:34px;height:34px;flex-basis:34px; } .site-header .brand-wordmark { font-size:1.15rem; } }
@media(prefers-reduced-motion:reduce) { .site-header .brand-duck,.admin-sidebar-brand .brand-duck { animation:none; } }
