/* Página de teste técnico exclusiva do administrador. */
.api-tester-page{width:min(1200px,calc(100% - 32px));margin:32px auto}.api-tester-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.api-tester-heading h1{margin:6px 0;color:#17202a}.api-tester-heading p{margin:0;color:#667085}.api-tester-heading a{color:#e85d00;font-weight:800}.api-tester-grid label{display:flex;gap:7px;flex-direction:column;color:#475467;font-size:13px;font-weight:700}.api-tester-output{min-height:260px;margin-top:20px;padding:18px;overflow:auto;border-radius:8px;background:#17202a;color:#d0d5dd;font-size:12px;line-height:1.5;white-space:pre-wrap}
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #17202a;
}

.container {
    display: flex;
    flex-direction: column;
    width: min(1500px, 94%);
    margin: 0 auto 30px;
}

.admin-api-footer {
    order: 99;
    width: 100%;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #d0d5dd;
}

.admin-api-card {
    margin-bottom: 0;
}

.admin-api-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    border-left: 4px solid #e85d00;
}

.admin-api-access h2 {
    margin-bottom: 8px;
}

.admin-api-access p {
    margin: 0;
}

.admin-api-link {
    flex: 0 0 auto;
    padding: 11px 16px;
    border-radius: 6px;
    background: #e85d00;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.admin-api-link:hover {
    background: #c94f00;
}

header {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100vw;
    min-height: 76px;
    margin: 0 0 28px calc((100% - 100vw) / 2);
    padding: 0 max(3vw, 24px);
    background: #fff;
    border-bottom: 1px solid #eaecf0;
    box-shadow: 0 1px 8px rgba(16, 24, 40, .06);
}

.monica-widget,
.monica-content-root {
    position: relative;
    z-index: 0;
}

.header-brand-area {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
}

.brand {
    color: #191919;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

.brand .brand-willy { color: #e85d00; }
.brand .brand-express { color: #191919; font-weight: 600; }

.brand-tagline {
    color: #667085;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
}

.header-search {
    position: relative;
    display: flex;
    flex: 1 1 520px;
    max-width: 760px;
    min-width: 280px;
    height: 46px;
    border: 1px solid #d0d5dd;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.header-search:focus-within {
    border-color: #ff6a00;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, .12), 0 4px 12px rgba(16, 24, 40, .1);
}

.header-search-field {
    position: relative;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    border-radius: inherit;
}

.header-search input {
    display: block;
    width: 100%;
    height: 42px;
    min-width: 0;
    padding: 0 18px 0 20px;
    border: 0;
    outline: 0;
    background: #fff;
    font-size: 15px;
}

.header-search-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 100%;
    gap: 4px;
    padding: 3px 4px 3px 8px;
    border-left: 1px solid #f2f4f7;
}

.header-search-actions > button.header-camera-search,
.header-search-actions > button.header-text-search {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.header-camera-search {
    background: #fff7ed !important;
    color: #667085;
}

.header-camera-search img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.header-camera-search:hover {
    background: #ffeadb !important;
    transform: translateY(-1px);
}

.header-text-search {
    background: #e85d00;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(201, 79, 0, .24);
}

.header-text-search:hover {
    background: #c94f00;
    box-shadow: 0 5px 12px rgba(201, 79, 0, .3);
    transform: translateY(-1px);
}

.header-camera-search:focus-visible,
.header-text-search:focus-visible {
    outline: 2px solid #ff6a00;
    outline-offset: 2px;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: -2px;
    z-index: 1300;
    width: calc(100% + 4px);
    max-height: min(520px, 70vh);
    overflow-y: auto;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.search-suggestion-section + .search-suggestion-section {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #edf0f2;
}

.search-suggestion-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.search-suggestions h3 {
    margin: 0 0 12px;
    color: #191919;
    font-size: 15px;
    font-weight: 700;
}

.search-suggestion-heading h3 { margin-bottom: 0; }

.search-suggestions button {
    border: 0;
    background: transparent;
    color: #344054;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.search-suggestion-heading button {
    color: #667085;
    font-size: 12px;
}

.search-suggestion-heading button:hover,
.search-suggestions button:hover { color: #e85d00; }

.search-history-list,
.search-discover-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.search-history-list:empty::before {
    color: #98a2b3;
    content: "Nenhuma busca recente";
    font-size: 13px;
}

.search-history-item,
.search-discover-list button {
    padding: 7px 10px;
    border-radius: 4px;
    background: #f5f6f7;
    font-size: 13px;
}

.search-history-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-history-item .delete-history {
    padding: 0;
    color: #98a2b3;
    font-size: 17px;
    line-height: 1;
}

.search-history-item .history-term { padding: 0; }

.search-icon {
    position: relative;
    display: block;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.search-icon::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    content: "";
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    min-width: 0;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #191919;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.header-action strong { font-size: 19px; line-height: 1; }
.header-action b { font-size: 12px; }
.header-action {
    min-height: 42px;
    padding: 7px 10px;
    border-radius: 12px;
}

.cart-action {
    height: 52px;
    padding: 4px 10px;
    border: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .06);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f5f5f5;
}

.cart-icon {
    display: block;
    width: 30px;
    height: 30px;
    margin: 0;
    border: 0;
    object-fit: contain;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ea4d00;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    box-shadow: 0 3px 8px rgba(234, 77, 0, .35);
}

.header-action:hover { background: #f5f5f5; color: #e62e2e; }

.cart-action:active {
    background: #eeeeee;
    transform: scale(.98);
}

.header-action:focus-visible,
.account-button:focus-visible,
.category-title:focus-visible {
    outline: 2px solid #667085;
    outline-offset: 3px;
}

.account-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    width: auto;
    min-width: 176px;
    height: 52px;
    padding: 5px 12px 5px 7px;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #e85d00 !important;
    box-shadow: 0 3px 8px rgba(201, 79, 0, .24);
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.account-notification-indicator:not([hidden]) {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #b42318;
    animation: account-notification-pulse 1.1s ease-in-out infinite;
}

@keyframes account-notification-pulse {
    50% { opacity: .45; transform: scale(.8); }
}

.account-links #accountOrdersLink { position: relative; padding-right: 38px; }
.account-order-count:not([hidden]) {
    position: absolute;
    top: 3px;
    right: 5px;
    display: grid;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    background: #b42318;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.account-links a > .account-order-count { width: auto; margin: 0; white-space: nowrap; }
.account-order-count[hidden], .account-notification-indicator[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
    .account-notification-indicator:not([hidden]) { animation: none; }
}

.account-button:hover,
.account-button:focus-visible {
    background: #c94f00 !important;
    box-shadow: 0 5px 12px rgba(201, 79, 0, .3);
    outline-offset: 2px;
    transform: translateY(-1px);
}

.account-icon {
    position: relative;
    display: block;
    width: 27px;
    height: 27px;
    background: transparent !important;
}

.account-icon::before {
    position: absolute;
    top: 0;
    left: 8px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    content: "";
}

.account-icon::after {
    position: absolute;
    bottom: 0;
    left: 2px;
    width: 22px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 13px 13px 3px 3px;
    content: "";
}

.account-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: -10px;
    z-index: 1200;
    display: none;
    width: 360px;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    padding: 18px;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(16, 24, 40, .16);
}

.account-button[aria-expanded="true"] + .account-panel { display: block; }

.account-panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 2px 2px 14px;
    border-bottom: 1px solid #f2f4f7;
}

.account-avatar {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e5e5;
}

img.account-avatar {
    display: block;
    border: 0;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
}

.account-button img.account-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

.account-button-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    color: #fff;
    line-height: 1.15;
    text-align: left;
    white-space: nowrap;
}

.account-button-greeting {
    max-width: 118px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
}

.account-button-text b {
    font-size: 13px;
}

.account-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 0 3px 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.account-avatar::before {
    top: 8px;
    left: 19px;
    width: 16px;
    height: 16px;
    border: 0;
    background: #fff;
}

.account-avatar::after {
    bottom: 7px;
    left: 10px;
    width: 34px;
    height: 17px;
    border: 0;
    border-radius: 18px 18px 8px 8px;
    background: #fff;
}

.account-welcome {
    margin: 0 0 10px;
    color: #344054;
    font-size: 14px;
    line-height: 1.4;
}

.account-welcome strong { font-weight: 700; }

.account-logout {
    display: inline-block;
    margin: 14px 0 16px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #e85d00;
    font-size: 13px;
    font-weight: 700;
}

.account-logout:hover { background: #fff3eb; color: #c94f00; }

.account-links {
    display: grid;
    gap: 4px;
    padding-top: 4px;
}

.account-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 9px;
    color: #344054;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.account-links a > .profile-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 9px;
    background: #fff3eb;
    color: #c94f00;
}

.account-links a > span:not(.profile-icon) {
    width: auto;
    margin-right: 0;
    white-space: nowrap;
}

.profile-icon {
    position: relative;
    display: inline-block;
    height: 18px;
    color: #50545a;
}

.profile-icon::before,
.profile-icon::after {
    position: absolute;
    content: "";
}

.profile-icon.coins::before { top: 8px; left: 6px; width: 18px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; }
.profile-icon.coins::after { top: 11px; left: 6px; width: 8px; border-top: 1.5px solid currentColor; }
.profile-icon.message { width: 17px; border: 1.5px solid #50545a; border-radius: 2px; }
.profile-icon.message::after { bottom: -4px; left: 3px; width: 5px; height: 5px; border-left: 1.5px solid #50545a; transform: skewY(-35deg); }
.profile-icon.payment { width: 18px; border: 1.5px solid #50545a; border-radius: 1px; }
.profile-icon.payment::before { top: 4px; left: 0; width: 16px; border-top: 1.5px solid #50545a; }
.profile-icon.orders::before { top: 8px; left: 7px; width: 16px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; }
.profile-icon.orders::after { top: 5px; left: 10px; width: 10px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.profile-icon.wishlist::before { top: 8px; left: 8px; width: 13px; height: 13px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.profile-icon.wishlist::after { top: 6px; left: 8px; width: 9px; height: 9px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; transform: rotate(-45deg); }
.profile-icon.coupons { width: 18px; border: 1.5px solid #50545a; border-radius: 2px; }
.profile-icon.coupons::before { top: 4px; left: 3px; width: 9px; border-top: 1.5px solid #50545a; box-shadow: 0 4px #50545a; }
.profile-icon.settings { width: 18px; border: 2px solid currentColor; border-radius: 50%; }
.profile-icon.settings::before { top: 4px; left: 4px; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; }

.account-links a:hover > .profile-icon { background: #ffe4d1; color: #b54708; }
.account-links a:hover > .profile-icon::before,
.account-links a:hover > .profile-icon::after { border-color: currentColor; }
.account-links a:hover .profile-icon::before,
.account-links a:hover .profile-icon::after { border-color: #d92d20; }

.account-links .account-secondary-link {
    margin-top: 8px;
    border-top: 1px solid #eaecf0;
    border-radius: 0;
    padding: 14px 10px 0;
    color: #7a7a7a;
    font-size: 13px;
    font-weight: 600;
}

.account-balance strong {
    margin-left: auto;
    color: #17202a;
    font-size: 13px;
    font-weight: 800;
}

.account-links a:hover { background: #fff7ed; color: #c94f00; }

.account-panel .account-links > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 9px;
    color: #344054;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}

.account-panel .account-links > a:hover {
    background: #fff7ed;
    color: #c94f00;
}

.account-panel .account-links > .account-balance > strong {
    margin-left: auto;
    color: #17202a;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.account-panel .account-links > .account-secondary-link {
    min-height: 38px;
    margin-top: 8px;
    padding: 14px 10px 0;
    border-top: 1px solid #eaecf0;
    border-radius: 0;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.account-extra-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 22000;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(16, 24, 40, .24);
    transform: translate(-50%, -50%);
}

.account-extra-modal.hidden { display: none; }
.account-extra-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #eaecf0; }
.account-extra-header h2 { margin: 0; color: #101828; font-size: 22px; }
.account-extra-content h3 { margin: 22px 0 12px; color: #344054; font-size: 16px; }
.auth-required-dialog {
    position: fixed;
    inset: 50% auto auto 50%;
    width: min(420px, calc(100vw - 32px));
    padding: 30px;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(16, 24, 40, .24);
    text-align: center;
    transform: translate(-50%, -50%);
}
.auth-required-dialog::backdrop { background: rgba(16, 24, 40, .58); }
.auth-required-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: #667085; font-size: 25px; cursor: pointer; }
.auth-required-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 14px; place-items: center; border-radius: 50%; background: #fff1f0; color: #e85d00; font-size: 32px; }
.auth-required-dialog h2 { margin: 0 0 8px; color: #17202a; font-size: 20px; }
.auth-required-dialog p { margin: 0 0 20px; color: #667085; font-size: 13px; line-height: 1.5; }
.auth-required-login,
.auth-required-cancel { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.auth-required-login { border: 1px solid #e85d00; background: #e85d00; color: #fff; }
.auth-required-login:hover { background: #c94f00; color: #fff; }
.auth-required-cancel { margin-top: 8px; border: 1px solid #d0d5dd; background: #fff; color: #344054; }
.account-wishlist-grid { display: grid; gap: 10px; }
.account-wishlist-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid #eaecf0; border-radius: 10px; }
.account-wishlist-item img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #f8fafc; }
.account-wishlist-item strong { font-size: 13px; line-height: 1.35; }
.account-wishlist-item span { color: #d4380d; font-size: 12px; font-weight: 700; }
.account-wishlist-item button { border: 0; background: transparent; color: #b42318; cursor: pointer; font-size: 12px; }
.account-orders-list { display: grid; min-width: 0; gap: 14px; padding-top: 16px; }
.account-order-item { display: grid; min-width: 0; gap: 14px; padding: 16px; border: 1px solid #d7dee7; border-left: 3px solid #536b82; border-radius: 8px; background: #f1f3f5; box-shadow: 0 2px 6px rgba(16, 24, 40, .04); }
.account-order-heading, .account-order-tracking { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-order-item > .account-order-heading { position: static; z-index: auto; width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.account-order-heading > div, .account-order-statuses > div, .account-order-delivery > div { display: grid; min-width: 0; gap: 5px; }
.account-order-heading small, .account-order-statuses small, .account-order-delivery small, .account-order-tracking small { color: #667085; font-size: 11px; }
.account-order-heading strong { color: #344054; font-size: 14px; }
.account-order-heading .account-order-total { color: #d4380d; font-size: 16px; white-space: nowrap; }
.account-order-status { max-width: 100%; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
.account-order-status.paid { background: #e7f6ec; color: #087443; }
.account-order-status.pending { background: #fff4e5; color: #b54708; }
.account-order-status.failed { background: #fef3f2; color: #b42318; }
.account-order-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.account-order-step { display: grid; justify-items: center; gap: 6px; color: #98a2b3; text-align: center; }
.account-order-step > span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #d0d5dd; border-radius: 50%; background: #fff; font-size: 11px; font-weight: 700; }
.account-order-step small { font-size: 10px; }
.account-order-step.done, .account-order-step.current { color: #087443; }
.account-order-step.done > span, .account-order-step.current > span { border-color: #12a76f; background: #e7f6ec; color: #087443; }
.account-order-products { display: grid; padding: 0 12px; border: 1px solid #e0e5eb; border-radius: 6px; background: #e9edf1; }
.account-order-product { display: grid; min-width: 0; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; }
.account-order-product + .account-order-product { border-top: 1px solid #f2f4f7; }
.account-order-product img { width: 64px; height: 64px; border-radius: 6px; background: #f8fafc; object-fit: contain; }
.account-order-product-info, .account-order-product-price { display: grid; gap: 4px; }
.account-order-product-info { min-width: 0; }
.account-order-product-info strong, .account-order-product-info span, .account-order-delivery span { overflow-wrap: anywhere; }
.account-order-product-info strong { color: #344054; font-size: 13px; line-height: 1.4; }
.account-order-product-info span, .account-order-product-price small, .account-order-product-empty { color: #667085; font-size: 11px; line-height: 1.4; }
.account-order-product-price { justify-items: end; white-space: nowrap; }
.account-order-product-price b { color: #344054; font-size: 13px; }
.account-order-statuses { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.account-order-statuses > div { align-content: start; }
.account-order-delivery { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr); gap: 16px; padding: 12px; border-radius: 6px; background: #f8fafc; color: #475467; font-size: 12px; }
.account-order-delivery strong { color: #344054; font-size: 13px; }
.account-order-delivery span { line-height: 1.45; }
.account-order-tracking { padding-top: 12px; border-top: 1px solid #f2f4f7; color: #475467; font-size: 12px; }
.account-order-tracking span { display: grid; gap: 4px; }
.account-order-tracking a { color: #c94f00; font-weight: 700; text-decoration: none; }
.account-order-statuses .account-order-pay-button { align-self: center; margin-left: auto; padding: 10px 16px; border: 0; border-radius: 6px; background: #e85d00; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.account-order-statuses .account-order-track-button { align-self: center; padding: 10px 16px; border: 0; border-radius: 6px; background: #087443; color: #fff; cursor: pointer; font-size: 13px; font-weight: 700; }
.account-order-statuses .account-order-track-button:disabled { cursor: wait; opacity: .7; }
.account-order-tracking-results { display: grid; gap: 8px; color: #475467; font-size: 12px; }
.account-order-tracking-results:empty { display: none; }
.account-order-tracking-results .account-order-tracking { flex-wrap: wrap; }
.account-order-tracking-results ol { flex-basis: 100%; display: grid; gap: 6px; margin: 4px 0 0; padding-left: 18px; }
.account-order-tracking-results time { color: #667085; }
.account-order-pay-button:hover { background: #c94f00; }

@media (max-width: 560px) {
    .account-extra-modal { padding: 16px; }
    .account-order-item { padding: 12px; }
    .account-order-product { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
    .account-order-product img { width: 52px; height: 52px; }
    .account-order-product-price { grid-column: 2; justify-items: start; }
    .account-order-delivery { grid-template-columns: 1fr; }
    .account-order-step small { font-size: 9px; }
}

@media (orientation: landscape) and (max-height: 520px) {
    .account-extra-modal { top: 12px; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 14px; transform: translateX(-50%); }
}
.account-settings-form, .account-settings-addresses { display: grid; gap: 10px; }
.account-settings-form label, .account-settings-addresses label { display: grid; gap: 5px; color: #475467; font-size: 12px; font-weight: 700; }
.account-settings-form input { min-height: 38px; padding: 0 10px; border: 1px solid #d0d5dd; border-radius: 7px; background: #fff; }
.account-address-row { display: grid; gap: 4px; padding: 12px; border: 1px solid #eaecf0; border-radius: 9px; color: #475467; font-size: 12px; }
.account-address-row strong { color: #344054; }
.account-empty { padding: 28px 8px; color: #667085; text-align: center; }

.cart-icon {
    display: block;
    width: 24px;
    height: 24px;
    margin-right: 2px;
    border: 0;
    object-fit: contain;
}

h1 { margin: 0; font-size: 32px; }
h2 { margin-top: 0; }
h3 { margin-top: 25px; }

header p {
    margin: 5px 0 0;
    color: #667085;
}

.category-bar {
    position: relative;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100vw;
    min-height: 64px;
    margin: -28px 0 28px calc((100% - 100vw) / 2);
    padding: 9px max(3vw, 24px);
    border-top: 1px solid #f2f4f7;
    border-bottom: 1px solid #e4e7ec;
    background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
    box-shadow: 0 4px 14px rgba(16, 24, 40, .06);
    overflow: visible;
    scrollbar-width: thin;
    scrollbar-color: #d0d5dd transparent;
}

.category-bar::-webkit-scrollbar { height: 5px; }
.category-bar::-webkit-scrollbar-thumb { border-radius: 99px; background: #d0d5dd; }

.category-sidebar {
    position: relative;
    z-index: 1200;
    width: 240px;
    min-height: 64px;
    margin: 0 0 28px;
    padding: 9px 12px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
    box-shadow: 0 4px 14px rgba(16, 24, 40, .06);
}

.category-sidebar .category-menu {
    width: 100%;
}

.category-sidebar .category-title {
    width: 100%;
    justify-content: flex-start;
}

.category-sidebar .category-content {
    top: 0;
    left: calc(100% + 12px);
    transform: none;
}

@media (max-width: 760px) {
    .category-sidebar {
        width: 100%;
        margin-bottom: 16px;
    }

    .category-sidebar .category-content {
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        width: auto;
        transform: none;
    }
}

.catalog-home-section {
    margin: 0 0 28px;
    padding: 24px clamp(16px, 3vw, 36px) 30px;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    background: #fff;
}

.catalog-home-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.catalog-home-heading h2 {
    margin: 0;
    color: #17202a;
    font-size: 24px;
}

.catalog-source-label {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.catalog-source-label {
    padding: 7px 10px;
    border: 1px solid #d1fadf;
    border-radius: 999px;
    background: #ecfdf3;
    color: #087443;
    max-width: 100%;
    white-space: normal;
}

.catalog-home-grid { margin: 0; }

.home-category-navigation {
    display: grid;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 10px clamp(16px, 3vw, 36px) 7px;
    border-bottom: 1px solid #eaecf0;
    background: #fff;
    box-shadow: 0 2px 6px rgba(16, 24, 40, .04);
}

.home-category-levels {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.home-category-level {
    display: block;
    min-width: 0;
}

.home-category-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding: 2px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-category-options::-webkit-scrollbar {
    display: none;
}

.home-category-option {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #f8f9fb;
    color: #344054;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.home-category-option:hover,
.home-category-option:focus-visible,
.home-category-option.active {
    border-color: #e85d00;
    background: #fff7ed;
    color: #b54708;
    outline: 0;
}

.home-category-option:hover {
    background: #fff0e5;
}

.home-category-option.active {
    background: #e85d00;
    color: #fff;
}

.home-category-status {
    margin: 0;
    color: #667085;
    font-size: 12px;
}

.home-category-status:empty {
    display: none;
}

.home-catalog-loading {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #667085;
    font-size: 13px;
}

.home-catalog-loading[hidden],
.catalog-source-label[hidden] {
    display: none;
}

.home-catalog-loading .spinner.small {
    width: 22px;
    height: 22px;
}

.catalog-results {
    grid-column: 1 / -1;
    min-width: 0;
}

.home-catalog-more {
    display: block;
    min-width: 140px;
    min-height: 40px;
    margin: 20px auto 0;
    padding: 0 20px;
    border: 1px solid #e85d00;
    border-radius: 7px;
    background: #fff;
    color: #b54708;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.home-catalog-more:hover {
    background: #fff7ed;
}

.home-catalog-more[hidden] {
    display: none;
}

@media (max-width: 600px) {
    .home-category-navigation {
        padding: 8px 12px 6px;
    }

    .home-category-status {
        padding-left: 0;
    }
}

.recommendation-category {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 6px;
    overflow: hidden;
    color: #b54708;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-loading,
.catalog-empty {
    display: grid;
    grid-column: 1 / -1;
    justify-items: center;
    gap: 8px;
    padding: 42px 20px;
    color: #667085;
    text-align: center;
}

.catalog-empty strong { color: #344054; }
.catalog-empty span { font-size: 13px; }
.catalog-empty-action,.catalog-buy-button{min-height:32px;padding:0 11px;border:1px solid #e85d00;border-radius:7px;background:#fff7ed;color:#b54708;font-size:11px;font-weight:800;cursor:pointer}.catalog-empty-action:hover,.catalog-buy-button:hover{background:#e85d00;color:#fff}.catalog-buy-button{margin-left:auto;white-space:nowrap}

.home-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);gap:28px;align-items:stretch;margin:0 0 28px;padding:36px clamp(20px,4vw,56px);border-radius:16px;background:linear-gradient(120deg,#17202a 0%,#293847 62%,#e85d00 160%);color:#fff;box-shadow:0 18px 35px rgba(16,24,40,.14)}.home-hero-copy{max-width:650px}.home-hero-eyebrow{color:#ffbd8b;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.home-hero h1{margin:10px 0 12px;font-size:clamp(32px,4vw,54px);line-height:1.02;letter-spacing:0}.home-hero p{max-width:560px;margin:0;color:#e4e7ec;font-size:16px;line-height:1.55}.home-hero-search{display:inline-flex;align-items:center;gap:18px;margin-top:24px;padding:13px 17px;border:0;border-radius:8px;background:#ff8a3d;color:#fff;font-weight:800;cursor:pointer}.home-hero-search span{font-size:20px}.home-hero-benefits{display:grid;gap:10px;align-content:center}.home-hero-benefits article{display:grid;grid-template-columns:38px 1fr;column-gap:10px;padding:12px 14px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.09)}.home-hero-benefits article>span{grid-row:span 2;display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#fff;color:#c94f00;font-size:11px;font-weight:900}.home-hero-benefits strong{font-size:13px}.home-hero-benefits small{margin-top:4px;color:#d0d5dd;line-height:1.35}

.checkout-shipping-option {
    display: block;
    min-height: 18px;
    margin: -8px 0 12px;
    color: #667085;
    font-size: 11px;
    line-height: 1.4;
}

.category-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 36px);
    min-width: max-content;
    white-space: nowrap;
}

.category-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: #101828;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.category-links a:hover,
.category-links a:focus-visible {
    color: #e85d00;
    outline: 0;
}

.category-links a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 2px;
    border-radius: 99px;
    background: #e85d00;
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.category-links a:hover::after,
.category-links a:focus-visible::after,
.category-links .category-link-highlight::after {
    transform: scaleX(1);
}

.category-links .category-link-highlight {
    color: #f04438;
    font-weight: 700;
}

.category-links-chevron {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 0 3px 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}

.category-menu {
    position: static;
    z-index: 3000;
    flex: 0 0 auto;
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: 44px;
    padding: 5px 17px 5px 14px;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #f8f9fb;
    color: #101828;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.category-title:hover,
.category-title:focus-visible {
    border-color: #f6b17a;
    background: #fff7ed;
    box-shadow: 0 4px 12px rgba(234, 93, 0, .12);
    outline: 0;
    transform: translateY(-1px);
}

.category-title[aria-expanded="true"] {
    border-color: #f6b17a;
    background: #fff7ed;
    box-shadow: 0 4px 12px rgba(234, 93, 0, .12);
}

.category-title img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.category-trigger-icon {
    display: grid;
    grid-template-columns: repeat(2, 6px);
    gap: 3px;
    width: 16px;
    height: 16px;
}

.category-trigger-icon i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: #e85d00;
}

.category-trigger-icon i:nth-child(2),
.category-trigger-icon i:nth-child(3) { background: #f6b17a; }

.category-trigger-icon i:nth-child(4) { background: #667085; }

.category-content-title {
    grid-column: 1 / -1;
    padding: 2px 0 12px;
    color: #191919;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.category-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 1100;
    display: none;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    width: min(1200px, calc(100vw - 32px));
    min-height: 520px;
    max-height: min(70vh, 760px);
    padding: 14px;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(16, 24, 40, .18);
    overflow: hidden;
    transform: translateX(-50%);
}

.category-title[aria-expanded="true"] + .category-content {
    display: grid;
}

.category-menu-status,
.category-products-loading {
    padding: 18px;
    color: #667085;
    font-size: 13px;
}

.category-menu-status { grid-column: 1 / -1; }

.category-menu-list {
    max-height: none;
    overflow: visible;
    padding-right: 12px;
    border-right: 1px solid #eaecf0;
}

.category-menu-item {
    position: relative;
}

.category-menu-link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 9px 10px;
    border-radius: 4px;
    background: transparent;
    color: #344054;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.category-menu-link img {
    width: 27px;
    height: 27px;
    margin-right: 8px;
    object-fit: contain;
}

.category-menu-link.active,
.category-menu-link:hover,
.category-menu-link:focus-visible {
    background: #ff6a00;
    color: #fff;
}

.category-menu-link.active {
    color: #fff;
}

.category-chevron {
    color: #98a2b3;
    font-size: 18px;
}

.category-menu-detail {
    min-width: 0;
    overflow: visible;
    padding: 4px 0 0 18px;
}

.category-detail-title {
    margin: 0 0 14px;
    color: #191919;
    font-size: 16px;
    font-weight: 700;
}

.category-detail-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 14px 12px;
    height: auto;
    max-height: none;
    overflow: visible;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #344054;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}

.category-tile img,
.category-tile-placeholder {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 6px;
    background: #f8fafc;
    color: #98a2b3;
    font-size: 24px;
    object-fit: contain;
}

.category-tile:hover { color: #d92d20; }

.category-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% - 4px);
    z-index: 2;
    width: 230px;
    padding: 7px;
    border: 1px solid #eaecf0;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .12);
}

.category-menu-item:hover > .category-submenu,
.category-menu-item:focus-within > .category-submenu {
    display: block;
}

.category-products {
    display: none;
    min-width: 0;
    padding-left: 14px;
}

.category-products h4 {
    margin: 5px 0 12px;
    color: #191919;
}

.category-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-height: 395px;
    overflow-y: auto;
}

.category-product {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 8px;
    border: 1px solid #eaecf0;
    border-radius: 6px;
    background: #fff;
}

.category-product img {
    width: 100%;
    height: 105px;
    object-fit: contain;
    background: #f8fafc;
}

.category-product strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #344054;
    font-size: 12px;
    line-height: 1.35;
}

.category-product span {
    color: #d92d20;
    font-size: 13px;
    font-weight: bold;
}

.image-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.search-product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.search-product-grid.view-3x3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.search-grid-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 12px 0;
    border-bottom: 1px solid #eaecf0;
}

.view-filter {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
}

.view-filter-button {
    min-width: 42px;
    height: 30px;
    padding: 0 8px;
    border: 0;
    border-right: 1px solid #d0d5dd;
    background: #fff;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.view-filter-button:last-child { border-right: 0; }

.view-filter-button:first-child { background: #fff; color: #667085; }

.view-filter-button.active,
.view-filter-button:hover { background: #ff6a00; color: #fff; }

.search-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    cursor: pointer;
}

.search-product-card:hover {
    border-color: #cfd4dc;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .1);
    transform: translateY(-2px);
}

.search-product-card:focus-visible {
    outline: 2px solid #ff6a00;
    outline-offset: 3px;
}

.search-product-image {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
}

.search-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.search-product-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 38px;
    color: #344054;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.search-product-price {
    color: #d92d20;
    font-size: 18px;
}

.admin-usd-price {
    display: block;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
}

.search-product-info del {
    color: #98a2b3;
    font-size: 12px;
}

.search-product-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #667085;
    font-size: 11px;
}

.search-product-discount {
    align-self: flex-start;
    padding: 3px 6px;
    background: #fff1f0;
    color: #d92d20;
    font-size: 11px;
}

.external-product-link {
    align-self: flex-start;
    color: #d95f02;
    font-size: 12px;
    font-weight: 700;
}

.external-product-link:hover { color: #b54708; }

.product-card-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
}

.product-action-button {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    padding: 0;
    border: 1px solid #e4e7ec;
    border-radius: 50%;
    background: #fff;
    color: #667085;
    font-size: 17px;
    line-height: 1;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.product-action-button:hover,
.product-action-button.active {
    border-color: #f2b28a;
    background: #fff3eb;
    color: #e85d00;
    transform: translateY(-1px);
}

.product-action-button.cart-action-button.active,
.add-cart-button.active {
    border-color: #86efac;
    background: #dcfce7;
    color: #15803d;
}

.product-action-button.favorite-action.active {
    border-color: #fda29b;
    background: #fff1f0;
    color: #d92d20;
}

.cart-pop {
    animation: cart-pop .45s cubic-bezier(.2, .8, .2, 1);
}

@keyframes cart-pop {
    0% { transform: scale(.85); }
    55% { transform: scale(1.14) translateY(-1px); }
    100% { transform: scale(1) translateY(-1px); }
}

.product-action-button:disabled { cursor: wait; opacity: .55; }

.catalog-import-button {
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #f6b17a;
    border-radius: 6px;
    background: #fff7ed;
    color: #b54708;
    font-size: 11px;
    font-weight: 700;
}

.catalog-import-button:hover,
.catalog-import-button.catalog-imported {
    border-color: #12b76a;
    background: #ecfdf3;
    color: #087443;
}

.mini-cart-icon {
    display: block;
    width: 19px;
    height: 19px;
    border: 0;
    object-fit: contain;
    transform: none;
}

.search-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px;
    padding: 0 0 16px;
    border-bottom: 1px solid #eaecf0;
}

.search-pagination-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-pagination-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-info {
    font-size: 12px;
    font-weight: 600;
    color: #344054;
    white-space: nowrap;
}

.pagination-sort {
    height: 30px;
    padding: 0 8px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.pagination-sort:hover { border-color: #ff6a00; }

.pagination-sort:focus { outline: 2px solid #ff6a00; outline-offset: 2px; }

.search-page {
    min-width: 36px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d0d5dd;
    border-radius: 5px;
    background: #fff;
    color: #344054;
    font-size: 12px;
    cursor: pointer;
}

.search-page:hover:not(:disabled),
.search-page.active {
    border-color: #ff6a00;
    background: #ff6a00;
    color: #fff;
}

.search-page:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.image-product-card {
    overflow: hidden;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.image-product-card:hover {
    border-color: #cfd4dc;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .1);
    transform: translateY(-2px);
}

.image-product-card:focus-visible {
    outline: 2px solid #ff6a00;
    outline-offset: 3px;
}

.image-product-card > img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #f8fafc;
}

.image-product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    color: #667085;
    font-size: 12px;
}

.image-product-info strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 34px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #344054;
    line-height: 1.4;
}

.image-product-shipping {
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.image-product-shipping.free {
    background: #ecfdf3;
    color: #087443;
}

.image-product-shipping.paid {
    background: #f2f4f7;
    color: #475467;
}

.image-product-shipping.unknown {
    background: #fff7ed;
    color: #b54708;
}

.image-product-price {
    color: #d4380d;
    font-size: 17px;
    font-weight: bold;
}

.image-product-price del {
    margin-left: 4px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: normal;
}

.card {
    background: white;
    border: 1px solid #e3e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 3px 14px rgba(0,0,0,.04);
}

.config-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.config-card-header h2 { margin-bottom: 6px; }

.config-card-header p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.config-toggle {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 14px;
    border: 0;
    border-radius: 6px;
    background: #ff6a00;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.config-toggle:hover { background: #e85d00; }

.config-toggle:focus-visible {
    outline: 2px solid #ff6a00;
    outline-offset: 3px;
}

.api-config-body[hidden] { display: none; }

.row, .grid {
    display: grid;
    gap: 16px;
}

.row {
    grid-template-columns: 3fr 1fr;
    margin-bottom: 16px;
}

.grid {
    grid-template-columns: repeat(5, 1fr);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.api-selector {
    max-width: 420px;
    margin: 4px 0 22px;
}

label {
    font-size: 13px;
    font-weight: bold;
    color: #475467;
}

input, select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    background: white;
    font-size: 14px;
}

input:focus, select:focus {
    border-color: #667085;
}

.file-picker { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.file-picker-button { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid #ff6a00; border-radius: 4px; color: #b54708; background: #fff8f2; cursor: pointer; }
.file-picker-button:hover { background: #fff0e6; }
.file-picker span { color: #667085; font-size: 14px; }
.file-picker-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

button {
    border: 0;
    border-radius: 9px;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
}

.header-search-actions > button:first-child,
.header-search-actions > button:first-child img {
    color: #667085 !important;
}

.header-search-actions > button:first-child {
    background: #fff7ed !important;
}

.header-search-actions > button:first-child img {
    background: transparent !important;
}

button.secondary {
    background: #eef1f4;
    color: #344054;
}

#testBtn {
    background: #e85d00;
    color: #fff;
}

#testBtn:hover {
    background: #c94f00;
}

button:disabled {
    opacity: .6;
    cursor: wait;
}

.url-preview {
    margin-top: 18px;
    background: #ff6a00;
    color: #d0d5dd;
    padding: 13px;
    border-radius: 8px;
    font-family: Consolas, monospace;
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.result-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(16, 24, 40, .58);
}

.result-card {
    position: fixed;
    inset: 5vh 3vw;
    z-index: 1001;
    width: auto;
    max-height: 90vh;
    margin: 0;
    overflow: auto;
    box-shadow: 0 24px 70px rgba(16, 24, 40, .28);
}

.home-result-card {
    position: relative;
    inset: auto;
    z-index: 20;
    width: calc(100% - 32px);
    max-height: none;
    margin: 20px auto 0;
    box-shadow: 0 12px 35px rgba(16, 24, 40, .12);
}

.result-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.close-button {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d0d5dd;
    border-radius: 50%;
    background: white;
    color: #344054;
    font-size: 25px;
    font-weight: normal;
    line-height: 1;
}

.close-button:hover {
    background: #f2f4f7;
}

.modal-open {
    overflow: hidden;
}

.result-header p {
    color: #667085;
}

.image-search-panel {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #f2d7c4;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffaf6, #fff 58%);
}

.image-search-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.eyebrow {
    color: #b54708;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.image-search-panel h3 {
    margin: 5px 0 4px;
    color: #17202a;
    font-size: 20px;
}

.image-search-panel p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.image-upload-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #f0b58b;
    border-radius: 9px;
    background: #fff;
    color: #b54708;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.image-upload-control:hover {
    border-color: #e85d00;
    background: #fff7ed;
}

.image-upload-control input { display: none; }

.upload-icon {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: #e85d00;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.image-search-form {
    display: grid;
    grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.image-search-result-options {
    width: 100%;
    margin: 16px 0;
}

.image-search-filter-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.image-search-filter-toggle,
.image-search-apply-filters {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #e85d00;
    border-radius: 7px;
    background: #fff;
    color: #b54708;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.image-search-filter-toggle:hover,
.image-search-apply-filters:hover {
    background: #fff7ed;
}

.image-search-apply-filters {
    margin-top: 12px;
    background: #e85d00;
    color: #fff;
}

.image-search-apply-filters:hover {
    background: #c94f00;
    color: #fff;
}

.image-search-controls {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
}

.image-preview {
    display: grid;
    min-height: 150px;
    place-items: center;
    overflow: hidden;
    border: 1px dashed #e7b895;
    border-radius: 12px;
    background: #fff;
    color: #98a2b3;
    font-size: 12px;
    text-align: center;
}

.image-preview img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.image-search-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 12px;
    align-items: end;
}

.image-search-fields label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
}

.image-search-hidden-field { display: none !important; }

.image-search-fields input,
.image-search-fields select {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
    color: #17202a;
    font: inherit;
    font-weight: 400;
}

.image-search-submit {
    min-height: 36px;
    background: #e85d00;
    color: #fff;
    font-size: 12px;
}

.image-search-submit:hover:not(:disabled) { background: #c94f00; }
.image-search-submit:disabled { opacity: .45; cursor: not-allowed; }

.total {
    font-weight: bold;
    color: #344054;
}

.product-details {
    margin-top: 20px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #ff6a00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #667085;
    font-size: 14px;
    font-weight: 500;
}

.loading-spinner.small {
    min-height: 80px;
    gap: 10px;
}

.spinner.small {
    width: 30px;
    height: 30px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #ff6a00;
}

.loading-spinner.small p {
    font-size: 12px;
}

.product-modal {
    display: grid;
    grid-template-columns: minmax(300px, 34%) minmax(360px, 1fr) minmax(250px, 300px);
    gap: 26px;
    min-height: 520px;
    padding: 22px;
    border: 1px solid #eaecf0;
    background: #fff;
}

.product-left {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: start;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
}

.thumbnail {
    width: 58px;
    height: 58px;
    padding: 2px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: white;
    color: #344054;
    font-size: 25px;
    font-weight: normal;
    line-height: 1;
    background: #fff;
    cursor: pointer;
}

.thumbnail.selected {
    border: 2px solid #111827;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-image-box {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
}

.main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-center {
    min-width: 0;
}

.product-title-wrap {
    margin-bottom: 14px;
}

.product-title {
    display: -webkit-box;
    margin: 0;
    color: #191919;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 600;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-title.expanded {
    display: block;
}

.product-title-toggle {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d4380d;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.product-title-toggle:hover {
    text-decoration: underline;
}

.review-summary {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    color: #667085;
    font-size: 13px;
}

.review-summary strong {
    color: #e65100;
    font-size: 17px;
}

.price-panel {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 22px;
    padding: 18px;
    background: #fff7ed;
}

.current-price {
    color: #d4380d;
    font-size: 30px;
    font-weight: 700;
}

.original-price {
    color: #98a2b3;
    font-size: 14px;
    text-decoration: line-through;
}

.delivery-note {
    padding: 11px 0;
    color: #667085;
    font-size: 13px;
}

.sku-options {
    margin-top: 18px;
}

.sku-options > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.sku-option {
    appearance: none;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    background: #fff;
    color: #344054;
    font-size: 13px;
}

.sku-option:hover {
    border-color: #1570ef;
    color: #175cd3;
}

.sku-option:focus-visible {
    outline: 2px solid #84adff;
    outline-offset: 2px;
}

.sku-option.selected {
    border-color: #1570ef;
    background: #eff8ff;
    color: #175cd3;
    font-weight: 600;
}

.center-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 24px;
    color: #667085;
    font-size: 12px;
}

.product-right {
    min-width: 0;
    padding: 18px;
    border-left: 1px solid #eaecf0;
    background: #fcfcfd;
}

.store-detail-block {
    padding-bottom: 10px;
}

.seller-link,
.seller-name {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
    color: #17202a;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-link:hover { color: #c94f00; }

.detail-arrow {
    margin-left: auto;
    color: #98a2b3;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.seller-role {
    display: block;
    margin-top: 2px;
    color: #98a2b3;
    font-size: 11px;
}

.seller-chat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 5px 0 4px;
    color: #b54708;
    font-size: 12px;
    font-weight: 700;
}

.chat-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 13px;
    border: 1.5px solid currentColor;
    border-radius: 4px;
}

.chat-icon::after {
    position: absolute;
    bottom: -4px;
    left: 3px;
    width: 5px;
    height: 5px;
    border-left: 1.5px solid currentColor;
    transform: skewY(-35deg);
    content: "";
}

.seller-label, .quantity-label {
    color: #667085;
    font-size: 12px;
}

.seller-name {
    margin: 6px 0;
    font-size: 17px;
}

.seller-rating {
    color: #b54708;
    font-size: 13px;
}

.seller-ratings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
}

.seller-rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.rating-label {
    color: #667085;
    font-weight: 500;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #b54708;
}

.rating-value {
    font-weight: 600;
    color: #111827;
    min-width: 20px;
    text-align: right;
}

.side-divider {
    margin: 18px 0;
    border-top: 1px solid #eaecf0;
}

.shipping-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: start;
    padding: 10px 0;
    color: #475467;
    font-size: 13px;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.shipping-item:hover { background: #fff7ed; }

.product-delivery-options {
    position: relative;
    margin-top: 10px;
}

.product-delivery-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #344054;
    font-size: 12px;
}

.product-delivery-heading span {
    color: #98a2b3;
    font-size: 10px;
}

.product-delivery-options > .product-delivery-more {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #f6b17a;
    border-radius: 8px;
    background: #fff7ed;
    color: #b54708;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}

.product-delivery-summary { display: grid; gap: 7px; }

.product-delivery-title {
    color: #344054;
    font-size: 12px;
}

.product-delivery-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    min-width: 0;
    padding: 10px;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #fcfcfd;
    cursor: pointer;
}

.product-delivery-current .product-delivery-option {
    margin: 0;
}

.product-delivery-option.selected {
    border-color: #e85d00;
    background: #fff7ed;
}

.product-delivery-option input {
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: #e85d00;
}

.product-delivery-option > span {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px 9px;
    min-width: 0;
}

.product-delivery-option strong {
    overflow: hidden;
    color: #344054;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-delivery-option-main b {
    color: #b54708;
    font-size: 11px;
}

.product-delivery-option em {
    align-self: start;
    padding: 3px 5px;
    border-radius: 4px;
    background: #e85d00;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.product-delivery-option small,
.product-delivery-empty {
    color: #667085;
    font-size: 10px;
    line-height: 1.35;
}

.product-delivery-debug-wrap {
    margin-top: 8px;
}

.product-delivery-debug-toggle {
    padding: 7px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.product-delivery-debug {
    max-height: 220px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #f8fafc;
    color: #101828;
    font-size: 10px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: auto;
}

.product-delivery-more {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b54708;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.product-delivery-more:hover {
    background: #ffeadb;
}

.product-delivery-frame {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 20;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(16, 24, 40, .16);
}

.product-delivery-frame-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaecf0;
    color: #344054;
    font-size: 12px;
}

.product-delivery-close {
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
    font-size: 18px;
}

.product-delivery-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.product-delivery-option-details {
    grid-column: 2 / -1;
    min-width: 0;
    color: #98a2b3;
    font-size: 9px;
}

.product-delivery-option-details summary {
    width: fit-content;
    color: #667085;
    cursor: pointer;
    font-size: 9px;
}

.product-delivery-option-details span {
    display: block;
    margin-top: 4px;
    line-height: 1.35;
}

.shipping-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    background: #fff3eb;
    color: #c94f00;
    font-size: 16px;
    font-weight: 700;
}

.shipping-item > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.shipping-item > div span { color: #667085; font-size: 12px; line-height: 1.35; }

.shipping-item b {
    color: #191919;
}

.quantity-label {
    margin-top: 16px;
}

.quantity-control {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    width: 132px;
    height: 36px;
    margin-top: 8px;
    border: 1px solid #d0d5dd;
    text-align: center;
}

.quantity-control button {
    height: 34px;
    padding: 0;
    border-radius: 0;
    background: #f8fafc;
    color: #344054;
}

.quantity-control button:disabled {
    color: #98a2b3;
}

.quantity-control input {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #17202a;
    font: inherit;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.quantity-control input:focus-visible {
    outline: 2px solid #e85d00;
    outline-offset: -2px;
}

.quantity-control input:disabled {
    background: #f8fafc;
    color: #98a2b3;
}

.product-purchase-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.product-purchase-actions button,
.product-secondary-actions button {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 12px;
}

.product-purchase-actions .buy-now-button {
    flex: 1;
    min-width: 0;
}

.product-purchase-actions .icon-action-button {
    flex: 0 0 44px;
}

.seller-label {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.seller-byline {
    color: #667085;
    font-size: 11px;
    font-weight: 500;
}

.buy-now-button {
    border: 1px solid #e85d00;
    background: #fff3eb;
    color: #c94f00;
}

.buy-now-button:hover { background: #ffe4d1; }

.add-cart-button {
    background: #e85d00;
    color: #fff;
}

.add-cart-button:hover { background: #c94f00; }

.product-secondary-actions {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.wish-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #475467;
}

.icon-action-button {
    display: inline-grid;
    width: 44px;
    height: 40px;
    padding: 0;
    place-items: center;
}

.detail-cart-icon {
    display: block;
    width: 19px;
    height: 19px;
    border: 0;
    object-fit: contain;
    transform: none;
}

.wish-button:hover { border-color: #e85d00; color: #c94f00; }

.wish-heart {
    display: inline-block;
    color: currentColor;
    font-size: 20px;
    line-height: 1;
}

.wish-button.active {
    border-color: #fda29b;
    background: #fff1f0;
    color: #d92d20;
}

.favorite-pop .wish-heart {
    animation: favorite-pop .45s cubic-bezier(.2, .8, .2, 1);
}

.wish-button.active > span:not(.wish-heart) { display: none; }

@keyframes favorite-pop {
    0% { transform: scale(.7); }
    55% { transform: scale(1.45) rotate(-8deg); }
    100% { transform: scale(1) rotate(0); }
}

.stock-note {
    margin-top: 8px;
    color: #667085;
    font-size: 12px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1150px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #eaecf0;
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

th {
    background: #f8fafc;
    color: #475467;
}

.product-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
}

.title {
    min-width: 300px;
    max-width: 420px;
    line-height: 1.4;
}

.price {
    font-weight: bold;
    white-space: nowrap;
}

.product-overview {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eaecf0;
}

.product-overview h3 {
    margin-top: 0;
    font-size: 22px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-content: start;
}

.image-gallery img, .image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #f8fafc;
}

.image-placeholder {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    color: #667085;
}

.description {
    max-height: 420px;
    overflow: auto;
    line-height: 1.5;
    color: #475467;
    white-space: normal;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.description img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px auto;
}

.description-image-gallery {
    display: flex;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0 0 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
}

.description-image-gallery img {
    flex: 0 0 min(300px, 72vw);
    width: min(300px, 72vw);
    max-width: none;
    height: 260px;
    margin: 0;
    border: 1px solid #eaecf0;
    border-radius: 6px;
    background: #f9fafb;
    object-fit: contain;
    scroll-snap-align: start;
}

.description p {
    margin: 8px 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.summary-grid > div, .data-list > div, .sku {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.summary-grid span, .data-list b {
    color: #667085;
    font-size: 12px;
}

.detail-section {
    margin-top: 24px;
}

.product-long-description {
    margin-top: 24px;
}

.detail-section .product-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.reviews-section {
    margin-top: 28px;
    padding: 24px 0 8px;
    border-top: 1px solid #eaecf0;
}

.section-heading h2 {
    margin: 0 0 18px;
    color: #191919;
    font-size: 22px;
}

.reviews-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.reviews-heading h2 {
    margin: 0;
}

.reviews-summary {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #fcfcfd;
}

.review-score {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.review-score strong {
    color: #191919;
    font-size: 22px;
    line-height: 1;
}

.review-stars {
    color: #f79009;
    font-size: 13px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.review-score small {
    color: #667085;
    font-size: 10px;
}

@media (max-width: 480px) {
    .reviews-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .reviews-heading h2 {
        font-size: 20px;
    }
}

.review-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-bar {
    display: grid;
    grid-template-columns: 76px 1fr 38px;
    gap: 10px;
    align-items: center;
    color: #475467;
    font-size: 12px;
}

.review-bar > div {
    height: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: #eaecf0;
}

.review-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #f79009;
}

.review-bar b {
    color: #667085;
    font-weight: normal;
    text-align: right;
}

.review-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0 14px;
}

.review-filter {
    padding: 8px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    background: #fff;
    color: #344054;
    font-size: 12px;
    font-weight: normal;
}

.review-filter.active {
    border-color: #f04438;
    color: #d92d20;
}

.review-filters select {
    width: auto;
    min-width: 170px;
    margin-left: auto;
    padding: 8px 10px;
    font-size: 12px;
}

.review-list {
    display: grid;
    gap: 10px;
}

.review-card {
    padding: 16px 0;
    border-top: 1px solid #eaecf0;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.review-card time, .review-author {
    color: #98a2b3;
    font-size: 12px;
}

.review-card strong {
    display: block;
    margin-top: 8px;
    color: #344054;
    font-size: 13px;
}

.review-card p {
    margin: 8px 0 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.5;
}

.reviews-empty {
    padding: 18px;
    border: 1px solid #eaecf0;
    color: #667085;
    font-size: 13px;
    text-align: center;
}

.detail-section h3 {
    margin-bottom: 12px;
}

.detail-section-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #f8fafc;
    color: #344054;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.detail-section-toggle:hover,
.detail-section-toggle:focus-visible {
    border-color: #f79009;
    background: #fff7ed;
    color: #c94f00;
}

.detail-section-toggle:focus-visible {
    outline: 2px solid #f79009;
    outline-offset: 2px;
}

.detail-section-chevron {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.detail-section-toggle[aria-expanded="false"] .detail-section-chevron {
    transform: rotate(-45deg);
}

.detail-section-content[hidden] {
    display: none;
}

.product-variants-panel {
    margin-top: 18px;
    padding: 14px 12px 12px;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.product-variants-header {
    margin-bottom: 12px;
}

.product-variants-header h3 {
    margin: 0;
    font-size: 18px;
    color: #101828;
}

.product-variants-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(138px, 158px);
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.18) transparent;
}

.product-variants-grid::-webkit-scrollbar {
    height: 6px;
}

.product-variants-grid::-webkit-scrollbar-track {
    background: transparent;
}

.product-variants-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.14);
}

.product-variants-empty {
    color: #667085;
    font-size: 13px;
}

.data-list, .sku-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.data-list > div {
    flex-direction: row;
    justify-content: space-between;
}

.sku-list {
    grid-template-columns: repeat(2, 1fr);
}

.sku {
    appearance: none;
    border: 1px solid transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sku-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 72px;
    padding: 7px 8px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #ffffff;
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    scroll-snap-align: start;
}

.sku-card:hover {
    transform: translateY(-1px);
    border-color: #84adff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.sku-card:focus-visible {
    outline: 2px solid #84adff;
    outline-offset: 2px;
}

.sku-card.selected {
    border-color: #1570ef;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 10px 24px rgba(21, 112, 239, 0.14);
}

.sku-card.selected::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1570ef;
    box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.12);
}

.sku-card-body {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2px 8px;
}

.sku-card b {
    display: block;
    max-width: 100%;
    color: #111827;
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
}

.sku-card .sku-price {
    color: #d4380d;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}

.sku-card .sku-compare {
    color: #98a2b3;
    font-size: 10px;
    text-decoration: line-through;
}

.sku-card .sku-stock {
    color: #667085;
    font-size: 10px;
}

.sku img {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.product-video {
    display: block;
    width: min(100%, 560px);
    max-height: 420px;
    background: #ff6a00;
    border-radius: 8px;
}

.category-list {
    display: grid;
    gap: 8px;
}

.category-item {
    margin-left: calc(var(--category-level) * 18px);
    padding: 12px 14px;
    border: 1px solid #eaecf0;
    border-radius: 6px;
    background: #fff;
}

.category-item > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.category-item span {
    color: #667085;
    font-size: 12px;
}

.category-children {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.loading {
    padding: 35px;
    text-align: center;
    color: #667085;
}

.empty {
    text-align: center;
    padding: 35px;
    color: #667085;
}

.error {
    margin-top: 15px;
    padding: 13px;
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
    border-radius: 8px;
}

.hidden {
    display: none;
}

pre {
    background: #ff6a00;
    color: #e4e7ec;
    padding: 18px;
    border-radius: 9px;
    overflow: auto;
    max-height: 500px;
    font-size: 12px;
}

a {
    color: #175cd3;
    font-weight: bold;
    text-decoration: none;
}

@media (max-width: 900px) {
    .home-hero{grid-template-columns:1fr}.home-hero-benefits{grid-template-columns:repeat(3,minmax(0,1fr))}.home-hero-benefits article{display:block}.home-hero-benefits article>span{margin-bottom:8px}
    .image-search-panel { padding: 16px; }
    .image-search-panel-heading { flex-direction: column; }
    .image-upload-control { width: 100%; justify-content: center; }
    .image-search-form { grid-template-columns: 1fr; }
    .image-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .image-search-submit { grid-column: 1 / -1; }

    .config-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

/* Checkout refresh */
.checkout-modal {
    width: min(1000px, calc(100vw - 28px));
    max-height: min(820px, calc(100vh - 28px));
    border: 1px solid #dfe3e8;
    border-radius: 20px;
    background: #f7f8fa;
    box-shadow: 0 28px 80px rgba(16, 24, 40, .26);
}

.checkout-header {
    padding: 24px 28px 20px;
    background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
}

.checkout-header h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
.checkout-main { padding: 20px; }
.checkout-section { padding: 22px; border-color: #e4e7ec; border-radius: 14px; box-shadow: 0 4px 14px rgba(16, 24, 40, .04); }
.checkout-section-heading > div,
.checkout-payment-section > div { min-width: 0; }
.checkout-step { width: 30px; height: 30px; flex-basis: 30px; background: #e85d00; box-shadow: 0 0 0 5px #fff0e6; }
.checkout-section h3 { font-size: 17px; }
.checkout-section p { margin-top: 3px; line-height: 1.5; }
.checkout-link-button { min-height: 34px; padding: 0 12px; border-radius: 8px; background: #fff7ed; color: #b54708; }
.checkout-link-button:hover { background: #ffeadb; text-decoration: none; }
.checkout-addresses { margin-top: 20px; }
.checkout-address { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-color: #d0d5dd; border-radius: 11px; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.checkout-address:hover { border-color: #f6b17a; }
.checkout-address-copy { gap: 6px; font-size: 13px; }
.checkout-address-copy strong { font-size: 14px; }
.checkout-empty-address { padding: 28px 18px; background: #fcfcfd; line-height: 1.5; }
.address-form { padding: 18px; border: 1px solid #eaecf0; background: #fcfcfd; }
.address-location-note { display: block; margin-top: 5px; color: #667085; font-size: 11px; line-height: 1.4; }
.checkout-payment-section { align-items: flex-start; }
.checkout-payment-options { gap: 9px; }
.payment-option { min-height: 62px; padding: 13px 14px; border-color: #d0d5dd; border-radius: 10px; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.payment-option:hover { border-color: #f6b17a; transform: translateY(-1px); }
.payment-option span { gap: 5px; }
.payment-option strong { color: #101828; font-size: 13px; }
.payment-option small { line-height: 1.35; }
.payment-insufficient { margin: 0; line-height: 1.4; }
.checkout-summary { padding: 26px 24px; border-left-color: #e4e7ec; }
.checkout-summary .cart-summary-title { margin-bottom: 20px; font-size: 20px; }
.checkout-product { align-items: center; gap: 13px; padding-bottom: 18px; }
.checkout-product img { width: 76px; height: 76px; border-radius: 11px; background: #f8f9fb; }
.checkout-product strong { font-size: 13px; line-height: 1.45; }
.checkout-product span { font-size: 12px; }
.checkout-summary > div:not(.checkout-product) { padding: 10px 0; font-size: 13px; }
.checkout-summary > div:not(.checkout-product) span { color: #667085; }
.checkout-summary > div:not(.checkout-product) strong { color: #344054; font-weight: 800; }
.checkout-summary .cart-total { margin-top: 10px; padding-top: 17px; font-size: 17px; }
.checkout-summary .cart-total strong { font-size: 21px; }
.checkout-summary .cart-checkout { margin-top: 18px; }

@media (max-width: 700px) {
    .checkout-modal { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 16px; }
    .checkout-header { padding: 19px 18px 16px; }
    .checkout-main { padding: 12px; }
    .checkout-section { padding: 17px; }
    .checkout-section-heading { align-items: flex-start; }
    .checkout-summary { padding: 20px 18px; }
}

@media (max-width: 480px) {
    .checkout-header h2 { font-size: 22px; }
    .checkout-section-heading { flex-direction: column; gap: 12px; }
    .checkout-link-button { width: 100%; }
    .checkout-section-heading > div { width: 100%; }
    .checkout-payment-section > div { width: 100%; }
    .address-form-actions { flex-direction: column-reverse; }
    .address-form-actions button { width: 100%; }
    .checkout-summary .cart-total strong { font-size: 19px; }
}

    .config-toggle { width: 100%; }

    header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
        padding: 12px 4%;
    }

    .header-brand-area {
        grid-column: 1 / -1;
        width: auto;
        justify-content: space-between;
    }

    .category-bar { margin-top: -28px; }

    .header-search {
        order: initial;
        width: 100%;
        min-width: 0;
    }

    .header-actions {
        order: initial;
        gap: 10px;
    }

    .account-panel {
        right: 0;
        width: min(390px, calc(100vw - 24px));
    }

    .category-title {
        height: 46px;
        border-radius: 6px;
    }

    .category-title img { width: 32px; height: 32px; }

    .category-content {
        left: 0;
        transform: none;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-width: 0;
        max-width: none;
        min-height: 0;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .category-menu-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
        border-right: 0;
        border-bottom: 1px solid #eaecf0;
        padding-bottom: 10px;
    }

    .category-menu-detail {
        padding: 12px 0 0;
    }

    .category-detail-grid {
        grid-template-columns: repeat(3, minmax(80px, 1fr));
    }

    .category-products {
        padding: 10px 0 0;
    }

    .category-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .image-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-submenu {
        position: static;
        width: auto;
        margin-left: 12px;
        box-shadow: none;
    }

    .row, .grid {
        grid-template-columns: 1fr;
    }

    .container {
        width: 96%;
        margin: 15px auto;
    }

    .card {
        padding: 16px;
    }

    .result-card {
        inset: 2vh 2vw;
        max-height: 96vh;
    }

    .result-header {
        gap: 12px;
    }

    .result-actions {
        gap: 8px;
    }

    .product-overview, .summary-grid, .data-list, .sku-list {
        grid-template-columns: 1fr;
    }

    .review-filters select {
        width: 100%;
        margin-left: 0;
    }

    .product-modal {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .product-right {
        border-top: 1px solid #eaecf0;
        border-left: 0;
    }

    .product-left {
        grid-template-columns: 1fr;
    }

    .thumbnail-list {
        flex-direction: row;
        order: 2;
    }

    .main-image-box {
        order: 1;
    }
}

@media (max-width: 560px) {
    header {
        display: flex;
        flex-wrap: wrap;
    }

    .header-brand-area,
    .header-search,
    .header-actions {
        width: 100%;
    }

    .header-search { order: 2; }
    .header-actions { order: 3; justify-content: flex-end; }
    .category-bar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        margin-top: -15px;
        padding: 10px 4%;
    }

    .category-menu,
    .category-title { width: 100%; }

    .category-links {
        gap: 18px;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .image-product-grid {
        grid-template-columns: 1fr;
    }
}

/* O menu aberto deve ficar sempre acima da Home e dos links da barra. */
.category-bar,
.category-bar:has(.category-title[aria-expanded="true"]) {
    position: relative;
    z-index: 10000;
    isolation: isolate;
}

.category-menu,
.category-title[aria-expanded="true"] + .category-content {
    position: relative;
    z-index: 10001;
}

.category-title[aria-expanded="true"] + .category-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
}

.category-content.category-floating {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    z-index: 100000 !important;
    display: grid !important;
}

@media (max-width: 760px) {
    .category-title[aria-expanded="true"] + .category-content {
        left: 12px;
        right: 12px;
        width: auto;
    }

    .category-content.category-floating {
        left: 12px !important;
        width: calc(100vw - 24px) !important;
    }
}

/* Responsive layout safeguards for tablets and phones. */
@media (max-width: 1100px) {
    header {
        gap: 16px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .header-search {
        min-width: 0;
    }

    .header-actions {
        gap: 8px;
    }

    .account-button {
        min-width: 0;
    }

    .account-button-greeting {
        max-width: 92px;
    }

    .category-content {
        grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
        width: min(1200px, calc(100vw - 32px));
        min-height: 1000px;
    }

    .product-modal {
        grid-template-columns: minmax(240px, 31%) minmax(0, 1fr) minmax(210px, 260px);
        gap: 18px;
    }
}

@media (max-width: 760px) {
    body {
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        margin: 0 auto 24px;
    }

    header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        min-height: 0;
        margin-bottom: 15px;
        padding: 14px 16px;
    }

    .header-brand-area {
        grid-column: 1 / -1;
    }

    .brand {
        font-size: 24px;
    }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        height: 44px;
    }

    .header-actions {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: space-between;
        width: 100%;
    }

    .account-button {
        height: 46px;
        padding-right: 10px;
    }

    .account-button img.account-avatar {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .account-button-greeting {
        max-width: 150px;
    }

    .account-panel {
        position: fixed;
        top: 138px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 150px);
    }

    .category-bar {
        gap: 12px;
        min-height: 0;
        margin-top: -15px;
        margin-bottom: 18px;
        padding: 10px 16px 8px;
    }

    .category-menu {
        width: auto;
    }

    .category-title {
        min-height: 42px;
        height: 42px;
    }

    .category-content {
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        left: 12px;
        width: auto;
        height: auto;
        min-height: 0;
        max-height: none;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        overflow: visible;
    }

    .category-menu-list {
        max-height: none;
        overflow: visible;
    }

    .category-links {
        max-width: 100%;
    }

    .card {
        margin-right: 12px;
        margin-left: 12px;
        padding: 14px;
    }

    .config-card-header {
        gap: 12px;
    }

    .config-card-header h2 {
        font-size: 20px;
    }

    .row,
    .grid,
    .image-search-form,
    .image-search-fields {
        grid-template-columns: 1fr;
    }

    .api-selector {
        max-width: none;
    }

    .file-picker {
        align-items: flex-start;
        flex-direction: column;
    }

    .actions {
        flex-wrap: wrap;
    }

    .actions button {
        flex: 1 1 180px;
    }

    .product-modal {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
        padding: 14px;
    }

    .product-right {
        border-top: 1px solid #eaecf0;
        border-left: 0;
        padding-top: 16px;
    }

    .product-left {
        grid-template-columns: 1fr;
    }

    .thumbnail-list {
        order: 2;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .main-image-box {
        order: 1;
    }

    .result-card {
        inset: 1vh 1.5vw;
        padding: 14px;
    }

    .result-header,
    .result-actions {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .category-detail-grid,
    .category-product-grid,
    .image-product-grid,
    .search-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-button {
        justify-content: center;
        width: 100%;
    }

    .cart-action {
        justify-content: center;
    }

    .account-panel {
        top: 170px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 182px);
    }

    .category-content {
        top: 184px;
    }

    .category-detail-grid,
    .category-product-grid,
    .image-product-grid,
    .search-product-grid {
        grid-template-columns: 1fr;
    }

    .result-actions .view-filter {
        width: 100%;
    }
}

/* Homepage results stay below the category bar at every viewport size. */
.home-result-card {
    position: relative !important;
    inset: auto !important;
    display: block;
    width: calc(100% - 32px);
    max-width: 1400px;
    max-height: none !important;
    margin: 20px auto 0;
    overflow: visible;
}

.home-result-card .result-header {
    gap: 16px;
}

.home-result-card .result-header > div:first-child {
    min-width: 0;
}

.home-result-card .result-actions {
    justify-content: flex-end;
}

.home-result-card .product-details {
    min-width: 0;
}

@media (max-width: 760px) {
    .home-result-card {
        width: calc(100% - 24px);
        margin-top: 12px;
        padding: 14px;
    }

    .home-result-card .result-header {
        align-items: stretch;
        flex-direction: column;
    }

    .home-result-card .result-actions {
        justify-content: space-between;
        width: 100%;
    }

    .home-result-card .view-filter {
        margin-right: auto;
    }

    .home-result-card .image-search-panel {
        padding: 14px;
    }
}

@media (max-width: 420px) {
    .home-result-card {
        width: calc(100% - 16px);
        margin-top: 8px;
    }

    .home-result-card .result-actions {
        align-items: center;
    }

    .home-result-card .close-button {
        margin-left: auto;
    }
}

    .category-bar {
        width: 100%;
        min-width: 0;
        min-height: clamp(56px, 6vw, 72px);
        margin-left: 0;
        padding-inline: clamp(12px, 3vw, 40px);
        gap: clamp(12px, 2vw, 28px);
    }

    .category-menu {
        min-width: 0;
    }

    .category-content {
        width: min(1120px, calc(100vw - 24px));
        min-height: 0;
        max-height: min(720px, calc(100dvh - 120px));
        overflow: auto;
    }

    .category-menu-list,
    .category-menu-detail {
        min-width: 0;
        min-height: 0;
        overflow: auto;
    }

    .category-links {
        flex: 1 1 0;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 3px;
        scrollbar-width: thin;
        white-space: nowrap;
    }

    .category-links a {
        flex: 0 0 auto;
    }

    .category-title {
        flex: 0 0 auto;
    }

    @media (min-width: 761px) {
        .category-bar {
            align-items: flex-start;
            min-height: 64px;
            height: auto;
        }

        .category-links {
            align-content: center;
            align-items: center;
            flex-wrap: wrap;
            height: auto;
            min-height: 42px;
            overflow: visible;
            white-space: normal;
            row-gap: 8px;
        }

        .category-links a {
            line-height: 1.35;
        }
    }

    @media (max-width: 760px) {
        .category-bar {
            width: 100%;
            margin-right: 0;
            margin-left: 0;
            padding-inline: 12px;
        }

        .category-content,
        .category-content.category-floating {
            width: calc(100vw - 24px) !important;
            max-height: calc(100dvh - 150px);
        }

        .category-menu-list,
        .category-menu-detail {
            max-height: none;
        }
    }

    .cart-open { overflow: hidden; }

    /* Account menu must stay above the category navigation layer. */
    header {
        position: relative;
        z-index: 20000;
    }

    .account-menu,
    .account-panel {
        z-index: 20001;
    }

    @media (max-width: 760px) {
        .account-panel {
            right: 12px;
            left: auto;
            width: min(390px, calc(100vw - 24px));
            max-width: calc(100vw - 24px);
        }
    }

    img.mini-cart-icon {
        display: block;
        width: 19px;
        height: 19px;
        border: 0;
        object-fit: contain;
        transform: none;
    }

    img.cart-icon,
    img.detail-cart-icon,
    img.cart-empty-icon {
        display: block;
        width: 24px;
        height: 24px;
        margin: 0;
        border: 0;
        object-fit: contain;
        transform: none;
    }

    .container,
    .home-result-card,
    .product-details,
    .product-modal,
    .product-left,
    .product-center,
    .product-right,
    .image-search-panel,
    .image-search-form {
        min-width: 0;
        max-width: 100%;
    }

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

    .home-result-card {
        width: min(1400px, 100%);
        margin-right: auto;
        margin-left: auto;
    }

    .home-result-card.hidden {
        display: none !important;
    }

    .product-modal {
        overflow: hidden;
    }

    .product-modal img,
    .product-modal video,
    .description img,
    .description video {
        display: block;
        max-width: 100%;
        height: auto;
    }

    .product-title,
    .search-product-title,
    .product-center,
    .product-right,
    .description {
        overflow-wrap: anywhere;
    }

    .result-header,
    .result-actions,
    .search-pagination,
    .search-pagination-left,
    .search-pagination-right {
        min-width: 0;
        max-width: 100%;
    }

    .search-pagination {
        flex-wrap: wrap;
        overflow-x: auto;
    }

    @media (max-width: 640px) {
        .container {
            width: calc(100% - 16px);
        }

        .home-result-card {
            width: 100%;
            padding: 12px;
        }

        .product-modal {
            grid-template-columns: minmax(0, 1fr);
            padding: 12px;
        }

        .product-left {
            grid-template-columns: 1fr;
        }

        .thumbnail-list {
            flex-direction: row;
            max-width: 100%;
            overflow-x: auto;
            flex-wrap: nowrap;
        }

        .result-actions,
        .search-pagination-left,
        .search-pagination-right {
            width: 100%;
        }
    }

    .checkout-backdrop {
        position: fixed;
        inset: 0;
        z-index: 2100;
        background: rgba(16, 24, 40, .48);
        backdrop-filter: blur(2px);
    }

    .checkout-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        z-index: 2110;
        display: flex;
        width: min(960px, calc(100vw - 32px));
        max-height: min(760px, calc(100vh - 32px));
        flex-direction: column;
        overflow: hidden;
        border: 1px solid #eaecf0;
        border-radius: 18px;
        background: #f8f9fb;
        box-shadow: 0 24px 70px rgba(16, 24, 40, .24);
        transform: translate(-50%, -50%);
    }

    .checkout-modal.hidden,
    .checkout-backdrop.hidden { display: none; }

    .checkout-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 22px 24px 18px;
        border-bottom: 1px solid #eaecf0;
        background: #fff;
    }

    .checkout-header h2 { margin: 0; color: #101828; font-size: 24px; }

    .checkout-layout {
        display: grid;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) 290px;
        overflow-y: auto;
    }

    .checkout-main { display: grid; min-width: 0; gap: 16px; padding: 20px; align-content: start; }

    .checkout-section {
        margin: 0;
        padding: 20px;
        border: 1px solid #eaecf0;
        border-radius: 12px;
        background: #fff;
    }

    .checkout-section-heading {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
    }

    .checkout-section-heading > div { display: flex; gap: 12px; min-width: 0; }
    .checkout-step { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border-radius: 50%; background: #e85d00; color: #fff; font-size: 12px; font-weight: 800; }
    .checkout-section h3 { margin: 0 0 4px; color: #101828; font-size: 16px; }
    .checkout-section p { margin: 0; color: #667085; font-size: 12px; line-height: 1.4; }
    .checkout-link-button { padding: 0; border: 0; background: transparent; color: #175cd3; cursor: pointer; font-size: 12px; font-weight: 800; }
    .checkout-link-button:hover { text-decoration: underline; }

    .checkout-addresses { display: grid; gap: 10px; margin-top: 18px; }
    .checkout-address { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #d0d5dd; border-radius: 9px; }
    .checkout-address.selected { border-color: #e85d00; background: #fff7ed; box-shadow: 0 0 0 2px rgba(232, 93, 0, .08); }
    .checkout-address-select { display: flex; align-items: flex-start; flex: 1; gap: 12px; min-width: 0; cursor: pointer; }
    .checkout-address-select input { width: auto; flex: 0 0 auto; margin-top: 3px; accent-color: #e85d00; }
    .checkout-address-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; color: #475467; font-size: 13px; line-height: 1.35; }
    .checkout-address-copy strong { color: #101828; }
    .checkout-address-copy small { color: #667085; }
    .checkout-address-check { color: #e85d00; font-weight: 900; opacity: 0; }
    .checkout-address.selected .checkout-address-check { opacity: 1; }
    .checkout-address.incomplete { border-color: #fda29b; background: #fffafa; }
    .checkout-address-warning { color: #b42318 !important; font-weight: 700; }
    .checkout-address-delete { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #fecdca; border-radius: 6px; background: #fff; color: #b42318; font-size: 11px; font-weight: 700; cursor: pointer; }
    .checkout-address-delete:hover { background: #fff1f0; }
    .checkout-address-delete:disabled { opacity: .6; cursor: wait; }
    .checkout-empty-address,
    .checkout-login-required { padding: 18px; border: 1px dashed #d0d5dd; border-radius: 9px; color: #667085; font-size: 13px; text-align: center; }
    .checkout-login-required { display: flex; gap: 8px; flex-direction: column; }
    .checkout-login-required a { color: #175cd3; font-weight: 800; }

    .address-incomplete-dialog { width: min(460px, calc(100vw - 28px)); max-width: none; padding: 0; border: 1px solid #fda29b; border-radius: 12px; background: #fff; color: #17202a; box-shadow: 0 24px 70px rgba(16, 24, 40, .28); }
    .address-incomplete-dialog::backdrop { background: rgba(16, 24, 40, .56); backdrop-filter: blur(2px); }
    .address-incomplete-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #eaecf0; }
    .address-incomplete-dialog > header p { margin: 0 0 4px; color: #b42318; font-size: 11px; font-weight: 800; text-transform: uppercase; }
    .address-incomplete-dialog h2 { margin: 0; color: #17202a; font-size: 19px; }
    .address-incomplete-dialog > p { margin: 18px 20px 8px; color: #475467; font-size: 13px; line-height: 1.5; }
    .address-incomplete-dialog ul { display: grid; gap: 7px; margin: 0 20px 18px; padding-left: 20px; color: #b42318; font-size: 13px; }
    .address-incomplete-dialog > footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 14px 20px; border-top: 1px solid #eaecf0; background: #fcfcfd; }
    .address-incomplete-dialog button { min-height: 38px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 7px; background: #fff; color: #344054; font-weight: 700; cursor: pointer; }
    .address-incomplete-dialog #addCompleteAddress { border-color: #e85d00; background: #e85d00; color: #fff; }
    .address-incomplete-close { width: 36px; height: 36px; padding: 0 !important; font-size: 20px; }

    @media (max-width: 480px) { .address-incomplete-dialog > footer { align-items: stretch; flex-direction: column-reverse; } }

.result-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30000;
    background: rgba(16, 24, 40, .58);
    backdrop-filter: blur(2px);
}

.home-result-card {
    position: fixed !important;
    inset: 50% auto auto 50% !important;
    z-index: 30001;
    width: min(1400px, calc(100vw - 40px));
    max-width: none;
    max-height: calc(100dvh - 40px) !important;
    margin: 0 !important;
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: 0 24px 70px rgba(16, 24, 40, .28);
    transform: translate(-50%, -50%);
}

.home-result-card.hidden,
.result-backdrop.hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .home-result-card {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px) !important;
        padding: 12px;
    }
}

    .checkout-delivery-options { display: grid; gap: 12px; margin-top: 18px; }
    .delivery-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 82px; padding: 14px 16px; border: 1px solid #d0d5dd; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
    .delivery-option:hover { border-color: #f6b17a; transform: translateY(-1px); }
    .delivery-option.selected { border-color: #e85d00; background: #fff7ed; box-shadow: 0 4px 14px rgba(232, 93, 0, .12); }
    .delivery-option input { width: 17px; height: 17px; accent-color: #e85d00; }
    .delivery-option-info { display: grid; min-width: 0; gap: 4px; }
    .delivery-option strong { overflow: hidden; color: #101828; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
    .delivery-option small { color: #667085; font-size: 11px; line-height: 1.35; }
    .delivery-option-action { min-width: 76px; padding: 7px 9px; border: 1px solid #f6b17a; border-radius: 7px; color: #b54708; font-size: 10px; font-weight: 800; text-align: center; white-space: nowrap; }
    .delivery-option.selected .delivery-option-action { border-color: #e85d00; background: #e85d00; color: #fff; }

    @media (max-width: 520px) {
        .delivery-option { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
        .delivery-option-action { grid-column: 2; justify-self: start; }
    }

    .address-form { margin-top: 14px; padding: 16px; border-radius: 9px; background: #f8f9fb; }
    .address-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .address-form label { display: flex; gap: 6px; flex-direction: column; color: #475467; font-size: 12px; }
    .address-reference { margin-top: 12px; }
    .address-default { margin-top: 14px; flex-direction: row !important; align-items: center; }
    .address-default input { width: auto; }
    .address-form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
    .address-form-actions button { min-height: 36px; padding: 0 14px; border-radius: 7px; cursor: pointer; font-weight: 700; }
    .address-form-actions .secondary { border: 1px solid #d0d5dd; background: #fff; color: #344054; }
    .address-form-actions .checkout-link-button { border: 0; background: #e85d00; color: #fff; }

    .checkout-payment-section { display: block; }
    .checkout-payment-section .checkout-section-heading { margin-bottom: 16px; }
    .checkout-payment-options { display: flex; min-width: 0; flex: 1; gap: 10px; flex-direction: column; }
    .payment-option { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #d0d5dd; border-radius: 8px; cursor: pointer; }
    .payment-option.selected { border-color: #e85d00; background: #fff7ed; }
    .payment-option input { width: auto; accent-color: #e85d00; }
    .payment-option span { display: flex; gap: 3px; flex-direction: column; }
    .payment-option small { color: #667085; font-size: 11px; }
    .payment-insufficient { padding: 11px 12px; border: 1px solid #fda29b; border-radius: 8px; background: #fff1f0; color: #b42318 !important; font-size: 13px !important; font-weight: 800; box-shadow: 0 4px 12px rgba(217, 45, 32, .12); }
    .checkout-summary { padding: 22px; border-left: 1px solid #eaecf0; background: #fff; }
    .checkout-product { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0 0 10px; padding: 12px; border: 1px solid #eaecf0; border-radius: 10px; background: #fcfcfd; }
    .checkout-product > div { min-width: 0; flex: 1; }
    .checkout-product > b { margin-left: auto; color: #b54708; font-size: 13px; white-space: nowrap; }
    .checkout-product img { width: 58px; height: 58px; border: 1px solid #eaecf0; border-radius: 8px; object-fit: contain; }
    .checkout-product div { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
    .checkout-product strong { display: -webkit-box; overflow: hidden; color: #344054; font-size: 12px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
    .checkout-product span { color: #667085; font-size: 11px; }
    .checkout-summary > div:not(.checkout-product) { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: #667085; font-size: 13px; }
    .checkout-summary .cart-total { margin-top: 8px; padding-top: 14px; border-top: 1px solid #eaecf0; color: #101828; font-size: 16px; }
    .checkout-summary .cart-total strong { color: #e85d00; font-size: 18px; }

    @media (max-width: 700px) {
        .checkout-modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); border-radius: 14px; }
        .checkout-layout { display: flex; flex-direction: column; }
        .checkout-main { padding: 12px; }
        .checkout-summary { border-top: 1px solid #eaecf0; border-left: 0; padding: 18px; }
    }

    @media (max-width: 480px) {
        .checkout-header { padding: 18px 16px 14px; }
        .checkout-main { padding: 8px; }
        .checkout-section { padding: 14px; }
        .checkout-section-heading { align-items: flex-start; flex-direction: column; }
        .address-form-grid { grid-template-columns: 1fr; }
    }

    .cart-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9990;
        background: rgba(16, 24, 40, .48);
        backdrop-filter: blur(2px);
    }

    .cart-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        z-index: 10000;
        display: flex;
        width: min(860px, calc(100vw - 32px));
        max-height: min(760px, calc(100vh - 32px));
        flex-direction: column;
        overflow: hidden;
        border: 1px solid #eaecf0;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 24px 70px rgba(16, 24, 40, .24);
        transform: translate(-50%, -50%);
    }

    .cart-modal.hidden,
    .cart-backdrop.hidden { display: none; }

    .cart-modal-header,
    .cart-toolbar,
    .cart-summary { padding-right: 24px; padding-left: 24px; }

    .cart-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-top: 22px;
        padding-bottom: 18px;
        border-bottom: 1px solid #f2f4f7;
    }

    .cart-modal-eyebrow {
        margin: 0 0 4px;
        color: #e85d00;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .cart-modal h2 { margin: 0; color: #101828; font-size: 24px; line-height: 1.2; }

    .cart-layout {
        display: grid;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) 250px;
        flex: 1;
    }

    .cart-main {
        display: flex;
        min-width: 0;
        min-height: 0;
        flex-direction: column;
    }

    .cart-side {
        display: flex;
        min-width: 0;
        flex-direction: column;
        border-left: 1px solid #eaecf0;
        background: #fcfcfd;
    }

    .cart-close,
    .cart-item-delete {
        display: grid;
        place-items: center;
        border: 0;
        cursor: pointer;
    }

    .cart-close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f2f4f7;
        color: #344054;
        font-size: 24px;
        line-height: 1;
    }

    .cart-close:hover { background: #eaecf0; }

    .cart-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
        background: #fcfcfd;
    }

    .cart-select-all {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        color: #344054;
        font-size: 13px;
        font-weight: 700;
    }

    .cart-select-all input,
    .cart-item-checkbox { accent-color: #e85d00; }

    .cart-selection-count { color: #667085; font-size: 12px; }

    .cart-delete-selected {
        margin-right: auto;
        padding: 0;
        border: 0;
        background: transparent;
        color: #175cd3;
        cursor: pointer;
        font-size: 12px;
        font-weight: 700;
    }

    .cart-delete-selected:hover:not(:disabled) { text-decoration: underline; }
    .cart-delete-selected:disabled { cursor: not-allowed; opacity: .4; }

    .cart-items {
        min-height: 120px;
        max-height: min(490px, calc(100vh - 260px));
        overflow-y: auto;
        padding: 4px 24px;
    }

    .cart-group-header {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 0 10px;
        color: #101828;
        font-size: 14px;
    }

    .cart-group-header span {
        color: #98a2b3;
        font-size: 11px;
    }

    .cart-item {
        display: grid;
        grid-template-columns: 20px 64px minmax(0, 1fr) auto auto 30px;
        gap: 14px;
        align-items: center;
        padding: 14px 0;
        border-bottom: 1px solid #f2f4f7;
    }

    .cart-item-image {
        width: 64px;
        height: 64px;
        border: 1px solid #eaecf0;
        border-radius: 10px;
        background: #fff;
        object-fit: contain;
    }

    .cart-item-info {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 4px;
    }

    .cart-item-info strong {
        overflow: hidden;
        color: #101828;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cart-item-info span { color: #98a2b3; font-size: 11px; }
    .cart-item-info b { color: #e85d00; font-size: 13px; }

    .cart-quantity {
        display: inline-flex;
        align-items: center;
        border: 1px solid #d0d5dd;
        border-radius: 8px;
        overflow: hidden;
    }

    .cart-quantity button {
        width: 30px;
        height: 30px;
        border: 0;
        background: #f8f9fb;
        color: #344054;
        cursor: pointer;
        font-size: 18px;
    }

    .cart-quantity button:hover { background: #fff0e6; color: #e85d00; }
    .cart-quantity span { min-width: 30px; color: #101828; font-size: 13px; text-align: center; }
    .cart-item-total { min-width: 90px; color: #101828; font-size: 13px; text-align: right; }

    .cart-item-delete {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        background: #fff1f0;
        color: #d92d20;
        font-size: 20px;
    }

    .cart-trash-icon {
        position: relative;
        display: block;
        width: 11px;
        height: 13px;
        border: 1.8px solid currentColor;
        border-top: 0;
        border-radius: 0 0 2px 2px;
    }

    .cart-trash-icon::before {
        position: absolute;
        top: -4px;
        left: -3px;
        width: 15px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        content: "";
    }

    .cart-trash-icon::after {
        position: absolute;
        top: -7px;
        left: 2px;
        width: 5px;
        height: 3px;
        border: 1.5px solid currentColor;
        border-bottom: 0;
        border-radius: 2px 2px 0 0;
        content: "";
    }

    .cart-item-delete:hover { background: #fecdca; }

    .cart-loading,
    .cart-empty {
        display: flex;
        min-height: 150px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        color: #667085;
        font-size: 13px;
        text-align: center;
    }

    .cart-empty {
        min-height: 230px;
        max-width: 380px;
        margin: 0 auto;
        padding: 28px 18px;
    }

    .cart-empty-icon {
        display: grid;
        width: 52px;
        height: 52px;
        margin-bottom: 4px;
        place-items: center;
        border-radius: 50%;
        background: #fff0e6;
        font-size: 24px;
    }

    .cart-empty strong {
        color: #101828;
        font-size: 16px;
    }


    .cart-empty span:not(.cart-empty-icon) {
        max-width: 290px;
        color: #667085;
        font-size: 13px;
        line-height: 1.5;
    }

    .cart-login-link {
        display: inline-flex;
        min-height: 38px;
        align-items: center;
        margin-top: 6px;
        padding: 0 16px;
        border-radius: 8px;
        background: #e85d00;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
    }

    .cart-login-link:hover { background: #c94f00; color: #fff; }

    .cart-summary {
        flex: 1;
        padding-top: 16px;
        padding-bottom: 22px;
        border-top: 0;
        background: #fff;
    }

    .cart-summary-title {
        margin: 0 0 18px;
        color: #101828;
        font-size: 16px;
        font-weight: 800;
    }

    .cart-summary-thumbnails {
        display: flex;
        gap: 7px;
        margin-bottom: 14px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .cart-summary-thumb {
        position: relative;
        display: block;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        overflow: hidden;
        border: 1px solid #eaecf0;
        border-radius: 7px;
        background: #fff;
    }

    .cart-summary-thumb img { width: 100%; height: 100%; object-fit: contain; }
    .cart-summary-thumb b { position: absolute; right: 2px; bottom: 2px; padding: 1px 4px; border-radius: 8px; background: #e85d00; color: #fff; font-size: 9px; }

    .cart-summary > div {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        padding: 8px 0;
        color: #667085;
        font-size: 13px;
    }

    .cart-summary strong { color: #344054; font-weight: 800; }
    .cart-summary .cart-total { margin-top: 8px; padding-top: 15px; border-top: 1px solid #eaecf0; color: #101828; font-size: 16px; }
    .cart-summary .cart-total strong { color: #e85d00; font-size: 18px; }

    .cart-checkout {
        width: 100%;
        min-height: 44px;
        margin-top: 14px;
        border: 0;
        border-radius: 9px;
        background: #e85d00;
        color: #fff;
        cursor: pointer;
        font-size: 13px;
        font-weight: 800;
    }

    .cart-checkout:hover:not(:disabled) { background: #c94f00; }
    .cart-checkout:disabled { cursor: not-allowed; opacity: .45; }

    .cart-protection {
        display: flex;
        gap: 6px;
        margin: 0 24px 22px;
        padding-top: 16px;
        border-top: 1px solid #eaecf0;
        flex-direction: column;
        color: #667085;
        font-size: 11px;
        line-height: 1.45;
    }

    .cart-protection strong { color: #344054; }

    @media (max-width: 600px) {
        .cart-modal {
            width: calc(100vw - 20px);
            max-height: calc(100vh - 20px);
            border-radius: 14px;
        }

        /* Cart presentation refresh */
        .cart-modal {
            width: min(1040px, calc(100vw - 28px));
            max-height: min(820px, calc(100vh - 28px));
            border-color: #dfe3e8;
            border-radius: 20px;
        }

        .cart-modal-header {
            padding: 22px 26px 20px;
            background: linear-gradient(135deg, #fff 0%, #fff8f2 100%);
        }

        .cart-modal-eyebrow { color: #b54708; font-size: 10px; letter-spacing: .12em; }
        .cart-modal h2 { font-size: clamp(21px, 2vw, 28px); letter-spacing: -.02em; }
        .cart-close { transition: background-color .2s ease, transform .2s ease; }
        .cart-close:hover { transform: rotate(90deg); }

        .cart-layout { grid-template-columns: minmax(0, 1fr) 292px; }
        .cart-main { background: #f8f9fb; }
        .cart-side { background: #fff; }

        .cart-toolbar {
            flex-wrap: wrap;
            padding-top: 13px;
            padding-bottom: 13px;
            border-bottom: 1px solid #e4e7ec;
            background: #fff;
        }

        .cart-select-all { font-size: 12px; }
        .cart-select-all input,
        .cart-item-checkbox { width: 17px; height: 17px; }
        .cart-delete-selected { color: #b42318; }
        .cart-selection-count { margin-left: auto; padding: 5px 9px; border-radius: 99px; background: #f2f4f7; font-size: 11px; }

        .cart-items { max-height: min(580px, calc(100vh - 260px)); padding: 0 18px 20px; }
        .cart-group-header { margin: 0 -2px; padding: 18px 8px 12px; }
        .cart-group-header strong { font-size: 13px; }
        .cart-group-header span { font-size: 11px; }

        .cart-item {
            position: relative;
            margin-bottom: 10px;
            padding: 14px;
            border: 1px solid #e4e7ec;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 3px 10px rgba(16, 24, 40, .04);
            transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
        }

        .cart-item:has(.cart-item-checkbox:checked) {
            border-color: #f6b17a;
            box-shadow: 0 4px 14px rgba(232, 93, 0, .1);
        }

        .cart-item:hover { transform: translateY(-1px); }
        .cart-item-image { width: 76px; height: 76px; border-radius: 12px; }
        .cart-item-info { gap: 6px; }
        .cart-item-info strong { font-size: 13px; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
        .cart-item-info span { font-size: 10px; }
        .cart-item-info b { font-size: 14px; }
        .cart-item-total { color: #101828; font-size: 14px; font-weight: 800; }
        .cart-item-delete { transition: background-color .2s ease, transform .2s ease; }
        .cart-item-delete:hover { transform: scale(1.08); }

        .cart-side { padding-top: 2px; }
        .cart-summary { padding: 24px 22px 20px; }
        .cart-summary-title { font-size: 18px; letter-spacing: -.01em; }
        .cart-summary-thumbnails { padding-bottom: 4px; }
        .cart-summary-thumb { width: 54px; height: 54px; flex-basis: 54px; border-radius: 9px; }
        .cart-summary > div { font-size: 12px; }
        .cart-summary .cart-total { margin-top: 12px; padding-top: 16px; font-size: 16px; }
        .cart-summary .cart-total strong { font-size: 20px; }
        .cart-checkout { min-height: 48px; border-radius: 10px; box-shadow: 0 5px 14px rgba(232, 93, 0, .2); transition: background-color .2s ease, transform .2s ease; }
        .cart-checkout:hover:not(:disabled) { transform: translateY(-1px); }
        @media (max-width: 760px) {
            .cart-modal { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 16px; }
            .cart-modal-header { padding: 18px 16px 16px; }
            .cart-layout { display: flex; flex-direction: column; overflow-y: auto; }
            .cart-items { max-height: none; padding-right: 12px; padding-left: 12px; }
            .cart-side { border-top: 1px solid #e4e7ec; border-left: 0; }
            .cart-summary { padding: 18px 16px; }
            .cart-protection { margin-right: 16px; margin-left: 16px; }
        }

        @media (max-width: 520px) {
            .cart-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; padding-right: 16px; padding-left: 16px; }
            .cart-delete-selected { order: 3; margin: 0; }
            .cart-selection-count { order: 2; margin-left: 0; }
            .cart-item { grid-template-columns: 20px 58px minmax(0, 1fr) 30px; gap: 9px; padding: 11px; }
            .cart-item-image { width: 58px; height: 58px; }
            .cart-item-info strong { font-size: 12px; }
            .cart-quantity { grid-column: 3; grid-row: 2; justify-self: start; }
            .cart-item-total { grid-column: 3; min-width: 0; text-align: left; }
            .cart-item-delete { grid-column: 4; grid-row: 1 / span 2; }
            .cart-group-header { align-items: flex-start; flex-direction: column; gap: 4px; }
        }

        .cart-modal-header,
        .cart-toolbar { padding-right: 16px; padding-left: 16px; }
        .cart-items { padding-right: 16px; padding-left: 16px; }

        .cart-layout { display: flex; flex-direction: column; overflow-y: auto; }
        .cart-items { max-height: none; }
        .cart-side { border-top: 1px solid #eaecf0; border-left: 0; }
        .cart-summary { padding-right: 16px; padding-left: 16px; }
        .cart-protection { margin-right: 16px; margin-left: 16px; }
        .cart-group-header { align-items: flex-start; flex-direction: column; gap: 4px; }
        .cart-toolbar { flex-wrap: wrap; }
        .cart-delete-selected { order: 3; width: 100%; margin: 0; text-align: left; }

        .cart-item {
            grid-template-columns: 20px 52px minmax(0, 1fr) 30px;
            gap: 9px;
        }

        .cart-item-image { width: 52px; height: 52px; }
        .cart-item-total { grid-column: 3; min-width: 0; text-align: left; }
        .cart-quantity { grid-column: 3; grid-row: 2; justify-self: start; }
        .cart-item-delete { grid-column: 4; grid-row: 1 / span 2; }
    }

/* Checkout refresh for desktop widths */
@media (min-width: 901px) {
    .checkout-modal {
        width: min(1000px, calc(100vw - 28px));
        max-height: min(820px, calc(100vh - 28px));
        border: 1px solid #dfe3e8;
        border-radius: 20px;
        background: #f7f8fa;
        box-shadow: 0 28px 80px rgba(16, 24, 40, .26);
    }

    .checkout-header { padding: 24px 28px 20px; background: linear-gradient(135deg, #fff 0%, #fff7ed 100%); }
    .checkout-header h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
    .checkout-main { padding: 20px; }
    .checkout-section { padding: 22px; border-color: #e4e7ec; border-radius: 14px; box-shadow: 0 4px 14px rgba(16, 24, 40, .04); }
    .checkout-step { width: 30px; height: 30px; flex-basis: 30px; box-shadow: 0 0 0 5px #fff0e6; }
    .checkout-link-button { min-height: 34px; padding: 0 12px; border-radius: 8px; background: #fff7ed; color: #b54708; }
    .checkout-link-button:hover { background: #ffeadb; text-decoration: none; }
    .checkout-address { padding: 16px; border-radius: 11px; }
    .checkout-payment-section { align-items: flex-start; }
    .payment-option { min-height: 62px; padding: 13px 14px; border-radius: 10px; }
    .checkout-summary { padding: 26px 24px; border-left-color: #e4e7ec; }
    .checkout-summary .cart-summary-title { margin-bottom: 20px; font-size: 20px; }
    .checkout-product { align-items: center; gap: 13px; padding-bottom: 18px; }
    .checkout-product img { width: 76px; height: 76px; border-radius: 11px; }
    .checkout-summary .cart-total { margin-top: 10px; padding-top: 17px; font-size: 17px; }
    .checkout-summary .cart-total strong { font-size: 21px; }
    .checkout-summary .cart-checkout { margin-top: 18px; }
}




/* Checkout final em barra lateral sobre o detalhe do produto. */
.cart-backdrop {
    top: 76px;
    z-index: 9990;
}

.cart-modal {
    top: 92px;
    right: auto;
    bottom: 16px;
    left: 50%;
    z-index: 10000;
    width: min(1000px, calc(100vw - 32px));
    max-height: calc(100vh - 108px);
    border-radius: 18px;
    transform: translateX(-50%);
}

@media (max-width: 700px) {
    .cart-modal {
        top: 84px;
        right: 8px;
        bottom: 8px;
        left: 8px;
        width: auto;
        max-height: calc(100vh - 92px);
        border-radius: 14px;
        transform: none;
    }
}

.checkout-backdrop {
    inset: 0;
    z-index: 30002;
    background: rgba(16, 24, 40, .58);
    backdrop-filter: blur(3px);
}

.checkout-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 30003;
    display: flex;
    width: min(1000px, calc(100vw - 32px));
    height: auto;
    max-height: calc(100vh - 32px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 18px;
    background: #f8f9fb;
    box-shadow: 0 28px 80px rgba(16, 24, 40, .32);
    transform: translate(-50%, -50%);
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    animation: checkout-modal-in .22s ease-out;
}

@keyframes checkout-modal-in {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.checkout-header {
    flex: 0 0 auto;
    padding: 22px 24px 18px;
    background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
}

.checkout-header h2 { font-size: 24px; }

.checkout-layout {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
}

.checkout-main {
    flex: 0 0 auto;
    padding: 18px;
}

.checkout-section { padding: 18px; }

.checkout-summary {
    flex: 0 0 auto;
    border-top: 1px solid #eaecf0;
    border-left: 0;
    padding: 22px 24px 28px;
}

.checkout-summary .cart-summary-title { font-size: 19px; }

@media (max-width: 560px) {
    .checkout-modal {
        width: 100vw;
        border-radius: 0;
    }

    .checkout-header { padding: 18px 16px 15px; }
    .checkout-main { padding: 12px; }
    .checkout-section { padding: 16px; }
    .checkout-summary { padding: 20px 16px 24px; }
}

.api-tester-page .api-tester-heading { display: flex; width: auto; min-height: 0; margin: 0 0 20px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.api-tester-page .panel { padding: 24px; background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; }
.api-tester-page .panel h2 { margin: 0 0 10px; }
.api-tester-page .panel p { color: #667085; line-height: 1.5; }
.api-tester-grid { display: grid; gap: 18px; }
.api-tester-grid input, .api-tester-grid select, .api-tester-grid textarea { width: 100%; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; color: #17202a; font: inherit; }
.api-tester-grid textarea { resize: vertical; font-family: Consolas, monospace; font-size: 13px; }
.api-tester-confirmation span { flex-direction: row; align-items: center; font-weight: 400; }
.api-tester-confirmation input { width: auto; }
.api-tester-grid button { width: fit-content; padding: 11px 18px; border: 0; border-radius: 6px; background: #e85d00; color: #fff; font-weight: 700; cursor: pointer; }
.api-tester-grid button:disabled { opacity: .6; cursor: wait; }
.api-manager-dialog { width: min(680px, calc(100% - 24px)); max-height: min(82vh, 760px); padding: 22px; border: 1px solid #d0d5dd; border-radius: 8px; color: #17202a; }
.api-manager-dialog::backdrop { background: rgba(23, 32, 42, .56); }
.api-manager-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.api-manager-heading h2 { margin: 0; font-size: 20px; }
.api-manager-heading button, .api-option-form-actions button, .api-manager-item-actions button { min-height: 38px; padding: 8px 12px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; color: #17202a; font: inherit; font-weight: 700; cursor: pointer; }
.api-manager-dialog > p { margin: 10px 0 18px; font-size: 13px; }
.api-option-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #e4e7ec; }
.api-option-form label { display: grid; gap: 6px; color: #475467; font-size: 13px; font-weight: 700; }
.api-option-form input { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 6px; color: #17202a; font: inherit; }
.api-option-form-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.api-option-form-actions button[type="submit"] { border-color: #e85d00; background: #e85d00; color: #fff; }
.api-manager-list { display: grid; gap: 8px; max-height: 42vh; margin-top: 16px; overflow: auto; }
.api-manager-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eaecf0; }
.api-manager-item-description { display: grid; min-width: 0; gap: 4px; }
.api-manager-item-description strong { overflow-wrap: anywhere; font-size: 14px; }
.api-manager-item-description code { overflow-wrap: anywhere; color: #667085; font-size: 12px; }
.api-manager-item-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.api-manager-item-actions button:last-child { border-color: #fecdca; color: #b42318; }
.api-manager-item-actions button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 640px) {
    .api-tester-page { width: min(100% - 20px, 1200px); margin: 20px auto; }
    .api-tester-page .panel { padding: 16px; }
    .api-tester-heading h1 { font-size: 24px; }
    .api-manager-dialog { padding: 16px; }
    .api-option-form { grid-template-columns: 1fr; }
    .api-manager-item { grid-template-columns: 1fr; }
}

.catalog-home-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
}

.catalog-home-grid .recommendation-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border-radius: 9px;
}

.catalog-home-grid .recommendation-product-card .search-product-image {
    flex: 0 0 auto;
    aspect-ratio: 5 / 6;
    margin: 12px 12px 0;
    overflow: hidden;
    border-radius: 5px;
}

.catalog-home-grid .recommendation-product-card .search-product-image img {
    object-fit: cover;
}

.catalog-home-grid .recommendation-product-info {
    flex: 1;
    gap: 4px;
    padding: 10px 12px 12px;
}

.catalog-home-grid .recommendation-product-info .search-product-title {
    min-height: 36px;
    font-size: 12px;
    line-height: 1.45;
}

.catalog-home-grid .recommendation-product-info .search-product-price {
    align-self: center;
    color: #e5261f;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
}

.catalog-home-grid .recommendation-product-info > del {
    align-self: center;
    color: #98a2b3;
    font-size: 11px;
}

.catalog-home-grid .recommendation-product-info .search-product-meta {
    min-height: 17px;
    margin-top: 2px;
    font-size: 10px;
}

.catalog-home-grid .recommendation-product-info .search-product-discount {
    align-self: flex-start;
    margin-top: 2px;
    padding: 2px 5px;
    font-size: 10px;
}

.catalog-home-grid .recommendation-product-info .product-card-actions {
    gap: 7px;
    margin-top: auto;
    padding-top: 5px;
}

.catalog-home-grid .recommendation-product-info .product-action-button {
    width: 30px;
    height: 30px;
}

@media (max-width: 420px) {
    .catalog-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .catalog-home-grid .recommendation-product-card .search-product-image {
        margin: 8px 8px 0;
    }

    .catalog-home-grid .recommendation-product-info {
        padding: 8px;
    }
}
