:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --panel-solid: #ffffff;
    --panel-soft: #fcfcfd;
    --text: #111827;
    --muted: #4b5563;
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    --primary: #ff4c29;
    --primary-gradient: linear-gradient(135deg, #ff4c29 0%, #ff6b4a 100%);
    --primary-strong: #e03b18;
    --primary-glow: rgba(255, 76, 41, 0.1);
    --success: #059669;
    --success-bg: #ecfdf5;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --danger: #dc2626;
    --danger-bg: #fff1f2;
    --shadow: 0 10px 24px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-soft: 0 6px 16px rgba(15, 23, 42, 0.05), 0 1px 1px rgba(15, 23, 42, 0.04);
    --radius: 6px;
    --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --page-gutter: clamp(16px, 2.1vw, 40px);
}

html[lang="ar"] {
    --font: 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

img {
    display: block;
    max-width: 100%;
}

main {
    width: calc(100% - var(--page-gutter) - var(--page-gutter));
    max-width: none;
    margin-inline: auto;
}

.storefront {
    --storefront-max-width: 1440px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --header-clearance: calc(var(--safe-area-top) + 82px);
    padding: 0 var(--safe-area-right) env(safe-area-inset-bottom, 0px) var(--safe-area-left);
}

.site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 1000;
    margin: 0 calc(0px - var(--safe-area-right)) clamp(12px, 1.4vw, 22px)
        calc(0px - var(--safe-area-left));
    padding: var(--safe-area-top) var(--safe-area-right) 0 var(--safe-area-left);
    background: var(--panel);
    border-block-end: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.site-header-inner {
    width: min(var(--storefront-max-width), calc(100% - var(--page-gutter) - var(--page-gutter)));
    margin-inline: auto;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 28px);
    padding: 8px clamp(12px, 1.45vw, 22px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 28px);
    flex: 1 1 auto;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--primary);
}

.site-header :is(a, summary):focus-visible {
    outline: 2px solid var(--primary-strong);
    outline-offset: 2px;
    border-radius: var(--radius);
}

.brand span {
    color: inherit;
    font-weight: inherit;
}

.header-search {
    max-width: 430px;
    width: 100%;
    min-width: 0;
    position: relative;
}

.header-search-box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #f9fafb;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.header-search-box:focus-within {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 76, 41, 0.08);
}

.header-search-box > span {
    position: absolute;
    inset-inline-start: 15px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    border: 2px solid #9ca3af;
    border-radius: 50%;
    pointer-events: none;
}

.header-search-box > span::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 2px;
    right: -5px;
    bottom: -3px;
    background: #9ca3af;
    transform: rotate(45deg);
    border-radius: 999px;
}

.header-search-box:focus-within > span {
    border-color: var(--primary);
}

.header-search-box:focus-within > span::after {
    background: var(--primary);
}

.header-search input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    padding: 0 12px;
    padding-inline-start: 40px;
    font-size: 14px;
    box-shadow: none;
}

.header-search input[type="search"]:focus {
    outline: none;
    box-shadow: none;
}

.header-search button {
    min-height: 32px;
    height: 32px;
    margin-inline-end: 5px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.header-search-submit-icon {
    display: none;
}

.header-search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    z-index: 70;
    overflow: hidden;
}

.header-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 50px;
    padding: 7px 12px;
    color: #111827;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.header-suggestion-item:last-child {
    border-bottom: 0;
}

.header-suggestion-item:hover {
    background: #f8fafc;
}

.header-suggestion-main {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-suggestion-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1 1 auto;
}

.header-suggestion-image {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
    background: #f3f4f6;
    border: 1px solid var(--line);
    flex: 0 0 auto;
}

.header-suggestion-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.header-suggestion-price {
    font-size: 12px;
    font-weight: 700;
    color: #ff4c29;
    white-space: nowrap;
}

.header-suggestion-stock {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
}

.header-suggestion-stock.in {
    color: #166534;
    background: #dcfce7;
}

.header-suggestion-stock.out {
    color: #b91c1c;
    background: #fee2e2;
}

.site-nav,
.admin-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-header .site-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.site-nav a,
.admin-tabs a {
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 8px 16px;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    background: transparent;
    transition: all 0.2s ease;
}

.site-nav a.active,
.site-nav a:hover,
.admin-tabs a.active,
.admin-tabs a:hover {
    background: var(--panel-soft);
    border-color: var(--line);
    color: #111827;
}

.site-nav a.active,
.admin-tabs a.active {
    background: rgba(255, 76, 41, 0.06);
    border-color: rgba(255, 76, 41, 0.15);
    color: var(--primary);
}

.site-nav a {
    position: relative;
    border: 0;
    border-radius: 0;
    padding: 8px 4px 10px;
}

.site-nav .nav-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-nav .nav-cart-link.icon-only {
    width: 36px;
    min-height: 30px;
    justify-content: center;
    padding-inline: 0;
}

.nav-cart-badge {
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    position: absolute;
    right: -4px;
    top: -1px;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease;
}

.site-nav a.active,
.site-nav a:hover {
    background: transparent;
    border-color: transparent;
    color: var(--primary);
}

.site-nav a.active::after,
.site-nav a:hover::after {
    transform: scaleX(1);
}

main {
    flex: 1;
    margin-bottom: 64px;
}

.page-section-store .site-header {
    margin-block-end: 0;
}

.home-offer-banner {
    display: block;
    margin: calc(0px - var(--safe-area-top)) calc(0px - var(--safe-area-right)) 0 calc(0px - var(--safe-area-left));
    padding: calc(6px + var(--safe-area-top)) calc(var(--page-gutter) + var(--safe-area-right)) 6px calc(var(--page-gutter) + var(--safe-area-left));
    background: #ffd21a url('/assets/sale-strip-pattern.svg') repeat center;
    color: #8f2100;
    text-align: center;
    font-size: clamp(14px, 1.3vw, 16px);
    font-weight: 600;
    line-height: 1.45;
}

.home-offer-banner:hover {
    background-color: #ffdb3d;
}

.home-offer-banner:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

.home-offer-banner-content {
    display: block;
    max-inline-size: var(--storefront-max-width);
    margin-inline: auto;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.home-offer-banner-action {
    margin-inline-start: 0.55em;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.banner-settings-form {
    max-width: 880px;
    margin-block-start: 20px;
    gap: 18px;
}

.banner-setting-languages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    gap: 12px;
}

.banner-setting-language,
.banner-product-picker {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.banner-setting-language .field + .field {
    margin-block-start: 10px;
}

.banner-product-picker {
    max-height: 250px;
    overflow: auto;
}

.banner-product-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 3px;
    text-transform: none;
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.banner-product-option input {
    inline-size: 16px;
    min-block-size: 16px;
    margin: 0;
    flex: 0 0 16px;
}

.banner-settings [hidden] {
    display: none;
}

.home-hero {
    --hero-reveal: to right;
    position: relative;
    display: grid;
    align-items: center;
    min-block-size: clamp(340px, 30vw, 480px);
    margin-inline: calc(0px - var(--page-gutter));
    border-block-end: 1px solid #ede1d8;
    background: #fff9f3;
    isolation: isolate;
}

[dir="rtl"] .home-hero {
    --hero-reveal: to left;
}

.home-hero-art {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 74%;
    z-index: -1;
    overflow: hidden;
    mask-image: linear-gradient(var(--hero-reveal), transparent 3%, #000 60%);
}

.home-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 74% 45%;
}

[dir="rtl"] .home-hero-art img {
    transform: scaleX(-1);
}

.home-hero-inner {
    width: min(1250px, calc(100% - clamp(32px, 10vw, 140px)));
    margin-inline: auto;
    padding-block: clamp(34px, 5vw, 72px);
}

.home-hero h1 {
    max-width: min(640px, 62%);
    margin: 0;
    color: #161d2b;
    font-size: clamp(36px, 4.3vw, 64px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.home-hero-title-accent {
    display: block;
    color: #b83a23;
}

.home-hero--darija {
    background: #eef9f5;
    border-block-end-color: #d4ebe2;
}

.home-hero--darija h1 {
    color: #083d3e;
    font-family: 'Baloo Bhaijaan 2', var(--font);
    font-size: clamp(48px, 5.4vw, 80px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: normal;
}

.home-hero--darija .home-hero-title-accent {
    width: fit-content;
    max-width: 100%;
    margin-block-start: 5px;
    padding: 0.04em 0.22em;
    border-radius: 0.14em;
    background: #ffe383;
    color: #402508;
}

.home-hero p {
    max-width: min(44ch, 54%);
    margin: 14px 0 22px;
    color: #364152;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.6;
}

.home-hero .header-search {
    max-width: min(490px, 54%);
}

.home-hero .header-search-box {
    min-height: 54px;
    border-color: #cbbeb5;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(73, 44, 28, 0.08);
}

.home-hero .header-search-box:focus-within {
    border-color: #b83a23;
    box-shadow: 0 0 0 3px rgba(184, 58, 35, 0.15);
}

.home-hero .header-search input[type="search"] {
    min-height: 48px;
    font-size: 16px;
}

.home-hero .header-search button {
    min-height: 42px;
    margin-inline: 0 5px;
    border-radius: 6px;
    background: #b83a23;
    font-size: 13px;
}

.home-hero .header-search button:hover {
    background: #932a18;
}

.home-hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-width: min(490px, 56%);
    margin-block-start: 14px;
}

.home-hero-categories a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 3px 10px;
    border: 1px solid #ded3c9;
    border-radius: 20px;
    background: #fffdfb;
    color: #343d4c;
    font-size: 12px;
    font-weight: 600;
}

.home-hero-categories a:hover,
.home-hero-categories a:focus-visible {
    border-color: #b83a23;
    color: #b83a23;
}

.home-hero + section .home-section-head {
    margin-block-start: clamp(20px, 3vw, 32px);
}

@media (max-width: 680px) {
    .home-hero {
        min-block-size: 0;
        margin-inline: -10px;
    }

    .home-hero-inner {
        width: auto;
        margin: 0;
        padding: 20px 16px 16px;
    }

    .home-hero h1 {
        max-width: none;
        font-size: clamp(30px, 8vw, 44px);
    }

    .home-hero--darija h1 {
        font-size: clamp(38px, 11.4vw, 58px);
    }

    .home-hero p {
        margin-block: 8px 12px;
    }

    .home-hero p,
    .home-hero .header-search,
    .home-hero-categories {
        max-width: 100%;
    }

    .home-hero-categories a {
        padding-inline: 8px;
    }

    .home-hero-categories {
        margin-block-start: 10px;
    }

    .home-hero-art {
        width: 100%;
        opacity: 0.48;
        mask-image: linear-gradient(var(--hero-reveal), transparent 25%, #0006 62%, #000);
    }

    .home-hero-art img {
        object-position: 68% 50%;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    background: rgba(255, 76, 41, 0.05);
    padding: 4px 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 76, 41, 0.1);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #111827;
    margin-bottom: 12px;
}

.support-panel {
    margin-inline: auto;
    max-width: 720px;
}

.support-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
    margin-block: 20px;
}

.support-channel {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.support-channel h2 {
    margin: 0;
    font-size: 16px;
}

.support-channel a {
    overflow-wrap: anywhere;
}

.section-copy {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    max-width: 720px;
}

.workflow-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: -12px 0 34px;
}

.workflow-card {
    min-height: 112px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.workflow-card strong {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 76, 41, 0.08);
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(255, 76, 41, 0.1);
}

.workflow-card h3 {
    margin: 0 0 5px;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}

.workflow-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Catalog Sidebar */
.catalog-head {
    display: grid;
    justify-items: center;
    gap: 24px;
    margin: 0 0 28px;
    padding: 52px 24px 46px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) * 2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
        radial-gradient(circle at 22% 10%, rgba(255, 76, 41, 0.1), transparent 30%),
        radial-gradient(circle at 78% 20%, rgba(17, 24, 39, 0.06), transparent 26%);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.catalog-head > div {
    display: grid;
    justify-items: center;
    gap: 8px;
    max-width: 760px;
}

.catalog-head h1 {
    margin: 0;
    color: var(--primary);
    font-size: 46px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
}

.catalog-head .section-copy {
    margin: 0;
}

/* Odigix-inspired catalog showcase, adapted to ELJMA products and branding. */
.catalog-shell {
    display: grid;
    grid-template-areas: "toolbar toolbar" "filters results";
    grid-template-columns: clamp(224px, 19vw, 264px) minmax(0, 1fr);
    gap: 14px clamp(16px, 1.6vw, 24px);
    align-items: start;
    max-width: var(--storefront-max-width);
    margin-inline: auto;
    scroll-margin-block-start: var(--header-clearance);
}

.catalog-results {
    grid-area: results;
    min-width: 0;
    container-type: inline-size;
}

.catalog-filter-panel > summary {
    display: none;
}

.filter-sidebar {
    --filter-inset: 16px;
    grid-area: filters;
    min-inline-size: 0;
    position: sticky;
    inset-block-start: var(--header-clearance);
    max-block-size: calc(100dvh - var(--header-clearance) - 16px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.filter-sidebar form {
    gap: 0;
}

.filter-sidebar form > :is(.field, .filter-group) {
    padding: 14px var(--filter-inset);
}

.filter-sidebar form > :is(.field, .filter-group) + .filter-group {
    border-block-start: 1px solid var(--line);
}

.filter-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px var(--filter-inset);
    border-block-end: 1px solid var(--line);
}

.filter-sidebar-head h2 {
    font-size: 16px;
    font-weight: 750;
    margin: 0;
}

.filter-sidebar-head a {
    color: #a9341e;
    font-weight: 650;
    font-size: 13px;
}

.filter-sidebar-head a:hover {
    text-decoration: underline;
}

.filter-group {
    display: grid;
    gap: 2px;
}

.filter-group h3,
.filter-sidebar .field > label {
    font-size: 13px;
    color: var(--text);
    font-weight: 750;
    letter-spacing: normal;
    text-transform: none;
}

.filter-group h3 {
    margin: 0 0 5px;
}

.filter-option,
.catalog-category-branch > summary {
    min-block-size: 36px;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.filter-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 550;
    letter-spacing: normal;
    text-transform: none;
}

.filter-option:hover,
.catalog-category-branch > summary:hover {
    background: var(--bg);
}

.catalog-category-tree .filter-option input {
    position: absolute;
    opacity: 0;
    inline-size: 1px;
    block-size: 1px;
    min-block-size: 0;
    padding: 0;
    margin: 0;
}

.filter-option em,
.catalog-category-branch > summary small {
    min-inline-size: 23px;
    min-block-size: 20px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: #f3f4f6;
    color: var(--muted);
    font-style: normal;
    font-size: 11px;
    font-weight: 650;
    padding-inline: 5px;
    font-variant-numeric: tabular-nums;
}

.catalog-category-tree > .filter-option {
    font-weight: 650;
    color: var(--text);
}

.filter-option.active,
.catalog-category-branch:has(:checked) > summary {
    background: #fff1ea;
    color: #a9341e;
    font-weight: 700;
}

.filter-option.active em,
.catalog-category-branch:has(:checked) > summary small {
    background: #ffe3d7;
    color: inherit;
}

.filter-option:has(input:focus-visible),
.catalog-filter-panel summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.catalog-category-branch > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 11px;
    align-items: center;
    gap: 8px;
    font-weight: 650;
    list-style: none;
}

.catalog-category-branch > summary::-webkit-details-marker {
    display: none;
}

.catalog-category-branch > summary::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    justify-self: center;
}

.catalog-category-branch[open] > summary::after {
    transform: rotate(225deg);
}

.catalog-category-children {
    display: grid;
    gap: 2px;
    margin: 3px 0 5px;
    margin-inline-start: 10px;
    padding-inline-start: 8px;
    border-inline-start: 1px solid var(--line);
}

.catalog-category-children .filter-option {
    min-block-size: 33px;
    font-size: 13px;
}

.catalog-stock-filter .filter-option {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
}

.catalog-stock-filter input {
    inline-size: 16px;
    block-size: 16px;
    min-block-size: 0;
    margin: 0;
    padding: 0;
    accent-color: #b83a23;
    cursor: pointer;
}

.product-subcategory {
    display: block;
}

.product-editor-form [hidden],
#category-dialog [hidden] {
    display: none;
}

.filter-sidebar .field {
    gap: 7px;
}

.filter-search {
    position: relative;
}

.filter-search svg {
    position: absolute;
    inset-inline-start: 11px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.filter-search input {
    min-block-size: 42px;
    min-inline-size: 0;
    padding: 8px 10px;
    padding-inline-start: 35px;
    font-size: 14px;
    background: #f9fafb;
    border-color: var(--line);
}

.filter-search input:focus {
    background: #ffffff;
}

.filter-search:focus-within svg {
    color: #a9341e;
}

.filter-sidebar noscript button {
    margin: 0 var(--filter-inset) 14px;
}

.catalog-toolbar {
    grid-area: toolbar;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-block-end: 11px;
    border-bottom: 1px solid var(--line);
}

.catalog-heading {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.catalog-heading h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.95rem);
    font-weight: 750;
    line-height: 1.15;
}

.catalog-summary-count {
    margin: 0;
    color: var(--muted);
    font-size: clamp(.75rem, 1.25vw, .85rem);
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.sort-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-inline label {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 650;
    text-transform: none;
    letter-spacing: 0;
}

.sort-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sort-select-wrap select {
    appearance: none;
    width: clamp(154px, 16vw, 208px);
    min-height: 40px;
    padding: 6px 12px;
    padding-inline-end: 33px;
    color: var(--text);
    background: var(--panel);
    border-color: var(--line-strong);
    border-radius: 7px;
    font-size: .8rem;
    font-weight: 650;
    cursor: pointer;
}

.sort-select-wrap > svg {
    position: absolute;
    inset-inline-end: 11px;
    color: var(--muted);
    pointer-events: none;
}

/* Product Cards (Turgame Style: neat, simple, solid panels with flat lines) */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.grid.catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 1.05vw, 16px);
}

@container (min-width: 620px) {
    .grid.catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container (min-width: 880px) {
    .grid.catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@container (max-width: 267px) {
    .grid.catalog-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 28px 0 16px;
}

.section-head h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.text-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.text-link:hover {
    color: var(--primary-strong);
}

.card,
.panel,
.stat,
.auth-box {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 76, 41, 0.2);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.product-image-link {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    flex: 0 0 auto;
}

.product-image-link img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: none;
}

.product-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-body h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #111827;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pill,
.status,
.stock {
    display: inline-flex;
    align-items: center;
    height: 22px;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.stock.in-stock,
.status.delivered,
.status.available {
    background: var(--success-bg);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.15);
}

.stock.out-stock,
.status.expired,
.status.cancelled,
.status.disabled {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.15);
}

.stock.out-stock {
    background: #fee2e2;
}

.status.pending_payment,
.status.reserved,
.status.pending {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.15);
}

.status.processing,
.status.topup_in_progress {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.product-card .muted {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.delivery-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.delivery-row span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.delivery-row span::before {
    content: "•";
    color: var(--primary);
    font-size: 12px;
}

.delivery-row span:first-child::before {
    content: none;
}

.product-body .actions {
    margin-top: auto;
    padding-top: 8px;
}

/* Catalog cards share an image ratio and reserve room for two title lines. */
.catalog-grid .product-card {
    min-width: 0;
    border-radius: 11px;
    border-color: #e3e7ec;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.035);
}

.product-card-media {
    position: relative;
}

.catalog-grid .product-card-media {
    border-bottom: 1px solid #e8ebef;
}

.product-card-delivery {
    position: absolute;
    inset-block-start: clamp(16px, 1.4vw, 22px);
    inset-inline-start: 0;
    max-inline-size: 100%;
    padding: 4px 8px;
    border-radius: 0;
    background: #334155;
    color: #fff;
    font-size: clamp(.625rem, .85vw, .72rem);
    line-height: 1.3;
    font-weight: 700;
    pointer-events: none;
}

.product-card-delivery.is-instant {
    background: linear-gradient(135deg, #5428af, #733ac8);
}

.catalog-grid .product-card .product-body {
    min-width: 0;
    padding: clamp(8px, .9vw, 13px);
    gap: clamp(4px, .45vw, 7px);
}

.catalog-card-category {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: clamp(.65rem, .86vw, .76rem);
    font-weight: 650;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-grid .product-card h2 {
    display: block;
    min-block-size: 2.5em;
    font-size: clamp(.78rem, 1.12vw, 1rem);
    font-weight: 750;
    line-height: 1.25;
    overflow: visible;
}

.catalog-grid .product-card h2 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.catalog-grid .product-card h2 a:hover {
    color: var(--primary-strong);
}

.unavailable-product-title {
    text-decoration-line: line-through;
}

.catalog-grid .product-card .actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px 8px;
    padding-top: 3px;
    border-top: 1px solid #edf0f3;
}

.catalog-card-price {
    display: flex;
    align-items: center;
    min-block-size: 1.35rem;
    min-width: 0;
}

.catalog-card-price .price-stack {
    display: flex;
    flex-flow: row wrap;
    align-items: baseline;
    gap: 1px 7px;
}

.catalog-grid .product-card .price {
    font-size: clamp(.96rem, 1.38vw, 1.22rem);
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    white-space: nowrap;
}

.catalog-grid .product-card .old-price {
    order: 1;
    font-size: clamp(.63rem, .83vw, .74rem);
    white-space: nowrap;
}

.catalog-grid .product-cart-widget,
.catalog-grid .inline-cart-form {
    display: grid;
    min-width: 0;
}

.catalog-grid .selected-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}

.catalog-grid .product-card .actions :is(button, .button) {
    min-block-size: 42px;
    min-width: 0;
    width: 100%;
    padding: 5px 7px;
    border-radius: 8px;
    font-size: clamp(.68rem, .9vw, .81rem);
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.catalog-grid .product-card .actions .icon-only {
    width: 42px;
    padding: 0;
}

@container (min-width: 620px) {
    .catalog-grid .product-card .actions {
        grid-template-columns: minmax(min-content, 1fr) minmax(0, 1.3fr);
        align-items: center;
    }

    .catalog-card-price .price-stack {
        flex-direction: column;
        align-items: flex-start;
    }
}

.catalog-grid .cart-count-badge {
    right: auto;
    inset-inline-end: -4px;
}

.catalog-grid .product-card :is(a, button):focus-visible {
    outline: 2px solid var(--primary-strong);
    outline-offset: 2px;
}

.catalog-grid .product-card .product-image-link:focus-visible {
    outline-offset: -2px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .catalog-grid .product-card:hover {
        transform: translateY(-3px);
        border-color: #cbd4df;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
    .catalog-grid .product-card:hover {
        transform: none;
    }
}

.inline-cart-form {
    display: inline-flex;
    gap: 0;
}

.inline-cart-form button {
    min-height: 42px;
}

.selected-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.is-hidden {
    display: none !important;
}

.button.icon-only {
    width: 42px;
    min-width: 42px;
    padding: 0;
}

.button.icon-only.with-badge {
    position: relative;
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    border: 2px solid #ffffff;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.price-stack {
    display: inline-grid;
    gap: 1px;
}

.old-price {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    text-decoration: line-through;
    opacity: 0.6;
}

.new-price {
    color: var(--primary);
}

/* Buttons (Turgame Style: neat corners, simple gradients/solids) */
.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 0 18px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    box-shadow: none;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--primary-strong);
}

.button:active,
button:active {
    filter: brightness(0.98);
}

.button.secondary,
button.secondary {
    background: #ffffff;
    color: #374151;
    border-color: var(--line-strong);
}

.button.secondary:hover,
button.secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.button.danger,
button.danger {
    background: var(--danger);
}

.button.danger:hover,
button.danger:hover {
    background: #dc2626;
}

.button[aria-disabled="true"],
button:disabled {
    pointer-events: none;
    opacity: 0.45;
}

/* Detail View Layout & Checkout Panel */
.panel {
    padding: 24px;
    margin-top: 24px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: 24px;
    align-items: start;
}

.product-page {
    max-width: 912px;
    margin-inline: auto;
}

.product-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-block-end: 12px;
    color: var(--muted);
    font-size: 13px;
}

.product-breadcrumbs a:hover {
    text-decoration: underline;
}

.product-breadcrumbs span {
    width: 5px;
    height: 5px;
    border-block-start: 1px solid currentColor;
    border-inline-end: 1px solid currentColor;
    transform: rotate(45deg);
}

[dir="rtl"] .product-breadcrumbs span {
    transform: rotate(-45deg);
}

.product-detail {
    display: grid;
    grid-template-areas:
        "image heading"
        "image purchase"
        "image description";
    grid-template-columns: minmax(196px, 32%) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(20px, 3vw, 36px);
    row-gap: 16px;
    align-items: start;
    padding: clamp(16px, 2.6vw, 28px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.product-detail-image {
    grid-area: image;
}

.product-detail-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--bg);
}

.product-detail-image [data-gallery-full] {
    display: block;
}

.product-gallery-thumbnails {
    display: flex;
    gap: 7px;
    margin-block-start: 9px;
    padding: 3px;
    overflow-x: auto;
}

.product-gallery-thumbnails a {
    display: block;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.product-gallery-thumbnails img {
    width: 42px;
    height: 56px;
    object-fit: contain;
    border-radius: inherit;
    background: var(--panel-soft);
}

.product-gallery-thumbnails a[aria-current="true"],
.product-gallery-thumbnails a:focus-visible {
    outline: 2px solid var(--primary-strong);
    outline-offset: 1px;
}

.product-detail-heading {
    grid-area: heading;
}

.product-detail-heading h1 {
    margin: 0;
    font-size: clamp(23px, 2.5vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

[dir="rtl"] .product-detail-heading h1 {
    line-height: 1.45;
    letter-spacing: normal;
}

.product-detail-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 14px;
    row-gap: 6px;
    margin-block-start: 10px;
}

.product-detail-price .price {
    color: var(--text);
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.2;
}

.product-detail-price .price-stack {
    display: inline-flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    align-items: baseline;
    column-gap: 8px;
}

.product-detail-price .old-price {
    font-size: 13px;
    opacity: 1;
}

.product-availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.product-availability::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.product-availability.is-available {
    color: #176743;
}

.product-availability.is-unavailable {
    color: var(--muted);
}

.product-purchase {
    grid-area: purchase;
    display: grid;
    gap: 14px;
}

.product-options,
.product-topup-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-option-fixed {
    display: grid;
    align-content: start;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.product-option-fixed strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.product-topup-form > :is(button, .notice) {
    grid-column: 1 / -1;
}

.product-purchase label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
}

.product-purchase input,
.product-purchase select {
    min-width: 0;
    padding-inline: 9px;
}

.product-purchase button {
    min-height: 44px;
    padding-inline: 12px;
    background: #c63417;
    white-space: normal;
}

.product-purchase button:hover {
    background: #a52a12;
}

.product-purchase .notice {
    margin: 0;
}

.product-cart-form {
    display: flex;
    align-items: end;
    gap: 10px;
}

.product-cart-form .field {
    flex: 0 0 78px;
}

.product-cart-form button {
    flex: 1;
}

.product-cart-form a {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding-inline: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-delivery-tag {
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
}

.product-delivery-tag.is-instant {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.product-description {
    grid-area: description;
    border-block-start: 1px solid var(--line);
    padding-block-start: 14px;
    overflow-wrap: anywhere;
}

.product-description h2 {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 700;
}

.product-description p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .product-detail {
        grid-template-areas:
            "image heading"
            "purchase purchase"
            "description description";
        grid-template-columns: clamp(78px, 25vw, 125px) minmax(0, 1fr);
        grid-template-rows: auto;
        gap: 14px;
        padding: 14px;
    }

    .product-detail-heading h1 {
        font-size: clamp(18px, 5vw, 24px);
    }

    .product-detail--gallery {
        grid-template-areas: "heading" "image" "purchase" "description";
        grid-template-columns: minmax(0, 1fr);
    }

    .product-detail--gallery .product-detail-cover {
        max-block-size: 290px;
    }

    .product-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-option-fixed {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
    }

    .product-purchase input,
    .product-purchase select {
        font-size: 16px;
    }

    .product-cart-form {
        display: grid;
        grid-template-columns: 66px minmax(0, 1fr);
    }

    .product-cart-form a {
        grid-column: 2;
        min-height: 32px;
    }
}

.product-hero {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    aspect-ratio: 1.58;
    object-fit: cover;
    background: #e5e7eb;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.01);
}

.detail-list div {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-right: 1px solid var(--line);
}

.detail-list div:last-child {
    border-right: 0;
}

.detail-list strong {
    font-size: 11px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-list span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.hold-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    margin: 16px 0;
    background: rgba(255, 76, 41, 0.04);
    border: 1px solid rgba(255, 76, 41, 0.15);
    border-radius: 4px;
}

.hold-box span {
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.hold-box strong {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

/* Forms & Fields */
form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
}

label {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required-label::after {
    content: " *";
    color: var(--primary);
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #ffffff;
    color: #111827;
    padding: 8px 12px;
    font-family: var(--font);
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 76, 41, 0.08);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-note {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* Notices & Alert Banners */
.notice {
    margin: 16px 0;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: var(--shadow-soft);
}

.notice.error {
    border-color: rgba(239, 68, 68, 0.2);
    background: #fef2f2;
    color: #991b1b;
}

.notice.success {
    border-color: rgba(16, 185, 129, 0.2);
    background: #ecfdf5;
    color: #065f46;
}

/* Order Lookup Box & Auth Form */
.auth-box {
    max-width: 520px;
    margin: 60px auto;
    padding: 32px;
}

.auth-box h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.auth-box form {
    margin-top: 20px;
}

.lookup-box {
    display: grid;
    gap: 20px;
    width: min(100%, 600px);
    margin: clamp(12px, 4vw, 44px) auto 24px;
    padding: clamp(18px, 4vw, 34px);
    border-radius: 12px;
}

.lookup-heading,
.order-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 16px;
}

.lookup-heading {
    flex-wrap: nowrap;
    align-items: center;
}

.lookup-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    height: 46px;
    border-radius: 10px;
    color: #a9341e;
    background: #fff1ea;
}

.lookup-heading h1,
.order-heading h1 {
    margin: 0 0 4px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25;
    font-weight: 780;
}

.lookup-heading p,
.lookup-box .field p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.lookup-box form {
    gap: 12px;
}

.lookup-box input[name="number"] {
    min-height: 46px;
    font-size: 16px;
    letter-spacing: 0.035em;
}

.lookup-box input[aria-invalid="true"] {
    border-color: var(--danger);
}

.lookup-error {
    color: #b42318;
}

.lookup-box button {
    width: 100%;
}

.order-secondary-link {
    justify-self: start;
    color: #a9341e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.order-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 16px;
    align-items: start;
}

.order-result > .panel {
    min-width: 0;
    margin: 0;
    padding: clamp(14px, 2.3vw, 24px);
    border-radius: 12px;
}

.order-tracking-head {
    grid-column: 1 / -1;
}

.order-heading {
    justify-content: space-between;
}

.order-heading > div {
    min-width: 0;
}

.order-heading-actions,
.order-number-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.order-heading-actions {
    align-self: center;
}

.order-number-row .order-code {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.order-copy-feedback {
    font-size: 13px;
    color: #166534;
}

.order-copy-feedback.is-error {
    color: #b42318;
}

.order-copy-feedback:empty {
    position: absolute;
}

.order-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 0;
    padding: 14px 0 0;
    list-style: none;
    border-block-start: 1px solid var(--line);
}

.order-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.order-stage-number {
    display: grid;
    place-items: center;
    flex: 0 0 23px;
    height: 23px;
    border-radius: 50%;
    background: #eef1f5;
    color: #374151;
    font-size: 11px;
}

.order-progress-step.is-complete .order-stage-number {
    color: #166534;
    background: #dcfce7;
}

.order-progress-step[aria-current="step"] {
    color: #9d2d18;
    border-color: #ffd3c3;
    background: #fff1ea;
}

.order-progress-step[aria-current="step"] .order-stage-number {
    color: #fff;
    background: #a9341e;
}

.order-detail-card {
    display: grid;
    gap: 16px;
}

.order-detail-card > .button,
.order-detail-card .receipt-submit {
    justify-self: start;
}

.order-detail-card .status-panel {
    margin: 0;
}

.order-detail-card .payment-details {
    margin: 0;
    padding: clamp(12px, 2vw, 18px);
}

.order-detail-card .payment-details h2,
.order-detail-card .receipt-upload-head h2,
.order-summary h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 750;
}

.order-detail-card .payment-details p {
    margin-block: 6px 10px;
    font-size: 14px;
}

.order-detail-card .payment-account--baridimob {
    margin-block: 12px;
}

.order-payment-total,
.order-summary-heading,
.order-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px 12px;
}

.order-payment-total {
    margin-block: 12px;
    padding-block: 9px;
    border-block: 1px solid var(--line);
    font-size: 14px;
}

.order-payment-total .price {
    color: var(--text);
    font-size: 20px;
}

.order-detail-card .receipt-form {
    margin: 0;
    padding: 0;
}

.order-detail-card .receipt-form label,
.lookup-box label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 13px;
}

.order-detail-card .receipt-form textarea {
    min-height: 70px;
}

.order-detail-card .receipt-file-input::file-selector-button {
    margin-inline-end: 8px;
}

.order-detail-card .receipt-submit {
    min-width: 140px;
}

.order-pending-actions {
    padding-block-start: 10px;
    border-block-start: 1px solid var(--line);
}

.order-cancel-button,
.order-cancel-button:hover {
    min-height: 36px;
    padding: 4px 0;
    color: #b42318;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 13px;
    font-weight: 650;
    text-underline-offset: 3px;
}

.order-cancel-button:hover {
    text-decoration: underline;
}

.order-summary {
    display: grid;
    gap: 12px;
}

.order-summary-heading > span,
.order-summary > p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.order-summary-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-summary-items li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-block: 8px;
    border-block-end: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.order-summary-items img {
    flex: 0 0 42px;
    width: 42px;
    height: 52px;
    object-fit: cover;
    border-radius: 5px;
    background: var(--bg);
}

.order-summary-quantity {
    flex: 0 0 auto;
    margin-inline-start: auto;
    color: var(--muted);
    direction: ltr;
    unicode-bidi: isolate;
}

.offer-access {
    margin: 0;
    color: #9d2d18;
    font-size: 12px;
    line-height: 1.45;
}

.order-tracking-help {
    margin-block-start: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.order-tracking-help > summary {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.order-tracking-help .order-guide {
    margin: 0;
    border: 0;
    box-shadow: none;
}

.order-tracking-help .order-guide > h2 {
    display: none;
}

@media (max-width: 800px) {
    .order-result {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
}

@media (max-width: 520px) {
    .order-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-detail-card .receipt-submit {
        width: 100%;
    }
}

.icon-button {
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #4b5563;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    flex: 0 0 auto;
}

.icon-button:hover {
    border-color: #9ca3af;
    color: #111827;
    background: #f9fafb;
}

.icon-button:focus-visible {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.order-detail-card .order-status-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.order-status-panel > div {
    display: grid;
    gap: 4px;
}

.order-reservation-timer [data-countdown] {
    color: #92400e;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.order-estimate {
    display: grid;
    gap: 2px;
    margin-block: 5px;
}

.order-estimate [data-countdown]:not(.countdown-finished) {
    color: #1e3a8a;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

.order-code {
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--line-strong);
    font-family: monospace;
    font-weight: 700;
    font-size: 15px;
    color: #111827;
}

/* Status Panel */
.status-panel {
    display: grid;
    gap: 4px;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.status-panel strong {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.status-panel span {
    color: var(--muted);
    font-size: 13px;
}

.status-panel.pending {
    background: var(--warning-bg);
    border-color: rgba(245, 158, 11, 0.25);
    color: #92400e;
}

.status-panel.delivered {
    background: var(--success-bg);
    border-color: rgba(16, 185, 129, 0.25);
    color: #065f46;
}

.status-panel.processing {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
}

/* Secret code payload container */
.secret-box {
    display: grid;
    gap: 16px;
}

.payment-box {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.01);
}

.payment-box h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.receipt-form {
    margin: 12px 0 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    gap: 12px;
}

.receipt-form textarea {
    min-height: 88px;
}

.receipt-upload-head {
    display: grid;
    gap: 4px;
}

.receipt-upload-head h2 {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}

.receipt-upload-head .muted {
    margin: 0;
    font-size: 12px;
}

.receipt-file-input {
    padding: 10px;
    min-height: 44px;
    border-style: dashed;
    background: #f9fafb;
}

.receipt-actions {
    display: flex;
    justify-content: flex-start;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
}

.receipt-last-file {
    margin-top: 2px;
}

.receipt-review {
    margin-top: 14px;
    padding: 16px;
}

.receipt-review h2 {
    margin: 0 0 10px;
    font-size: 15px;
}

.delivery-correction summary {
    cursor: pointer;
}

.delivery-correction form {
    margin-block-start: 12px;
}

.admin-delivery-form,
.admin-delivery-items,
.admin-unpaid-delivery > div {
    display: grid;
    gap: 12px;
}

.admin-delivery-items h2,
.admin-delivery-items .form-note,
.admin-unpaid-delivery .form-note {
    margin: 0;
}

.admin-delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 12px;
}

.admin-delivery-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}

.admin-delivery-item-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.delivery-stock-label {
    padding: 1px 7px;
    border-radius: 5px;
    background: #fef3c7;
    color: #854d0e;
}

.delivery-stock-label.has-stock {
    background: #dcfce7;
    color: #166534;
}

.admin-delivery-item textarea {
    min-height: 86px;
    resize: vertical;
}

.admin-unpaid-delivery {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.admin-unpaid-delivery summary {
    cursor: pointer;
    font-weight: 700;
}

.admin-unpaid-delivery > div {
    justify-items: start;
    margin-block-start: 10px;
}

.delivery-history {
    margin-block: 0;
    padding-inline-start: 0;
    list-style: none;
}

.delivery-history > li {
    padding-block: 10px;
}

.delivery-history > li + li {
    border-block-start: 1px solid var(--line);
}

.delivery-history p {
    margin: 3px 0;
}

.delivery-history ul {
    padding-inline-start: 20px;
    margin-block: 4px 0;
}

pre.secret {
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #0f172a;
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius);
    padding: 16px;
    line-height: 1.6;
    font-size: 14px;
}

/* Empty Catalog State */
.empty-state {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
    padding: 40px;
}

/* Cart */
.cart-head {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 0 0 28px;
    padding: 42px 24px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) * 2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
        radial-gradient(circle at 22% 12%, rgba(255, 76, 41, 0.1), transparent 30%);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.cart-head h1 {
    margin: 0;
    color: var(--primary);
    font-size: 46px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 24px;
    align-items: start;
}

.cart-items-panel,
.cart-checkout {
    margin-top: 0;
}

.cart-list {
    display: grid;
    gap: 12px;
}

.cart-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.cart-row img {
    width: 86px;
    aspect-ratio: 1.2;
    object-fit: cover;
    border-radius: 4px;
    background: #f3f4f6;
}

.cart-row h3 {
    margin: 8px 0 4px;
    color: #111827;
    font-size: 15px;
    line-height: 1.35;
}

.cart-row input {
    min-height: 38px;
    padding: 6px 8px;
}

.cart-row strong {
    color: var(--primary);
    white-space: nowrap;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.cart-total span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-total strong {
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
}

.cart-checkout {
    position: sticky;
    top: 100px;
}

.order-guide {
    margin-block-start: 24px;
    padding: clamp(14px, 2.4vw, 26px);
}

.order-guide > h2 {
    margin: 0 0 14px;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.45;
}

.order-guide-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-guide-step {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-content: start;
    gap: 10px;
    padding: 13px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow-wrap: anywhere;
}

.order-guide-step[aria-current="step"] {
    border-color: #d97560;
    background: #fff8f5;
}

.order-guide-number {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #f0f2f5;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.order-guide-step[aria-current="step"] .order-guide-number {
    background: #b9361d;
    color: #fff;
}

.order-guide-copy h3 {
    margin: 2px 0 6px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: normal;
}

.order-guide-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.order-guide-current {
    display: block;
    margin-block-end: 5px;
    color: #9d2d18;
    font-size: 11px;
    font-weight: 700;
}

.order-guide-copy a {
    display: inline-block;
    margin-block-start: 8px;
    color: #9d2d18;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.order-guide-notes {
    margin-block-start: 14px;
    border-block-start: 1px solid var(--line);
}

.order-guide-notes summary {
    padding-block: 9px 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.order-guide-notes .cart-rules {
    margin-block-start: 10px;
}

#receipt-upload-form {
    scroll-margin-block-start: var(--header-clearance);
}

.cart-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cart-rule {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.cart-rule h3 {
    margin: 0 0 10px;
    font-size: 14px;
}

.cart-rule ul {
    margin: 0;
    padding-inline-start: 18px;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.cart-rule.good h3 {
    color: var(--success);
}

.cart-rule.bad h3 {
    color: var(--danger);
}

.admin-order-items {
    margin: 12px 0;
}

/* Admin Dashboard & Management UI */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.stat {
    padding: 20px;
    border-top: 3px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stat span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.stat strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    margin-top: 8px;
    color: #111827;
    letter-spacing: -1px;
}

.stat-warning {
    border-top-color: var(--warning);
}

.stat-success {
    border-top-color: var(--success);
}

.income-chart {
    margin-top: 14px;
    min-height: 190px;
    padding: 14px 10px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}

.income-bar-wrap {
    display: grid;
    gap: 6px;
    justify-items: center;
}

.income-bar {
    width: 100%;
    max-width: 20px;
    border-radius: 6px 6px 3px 3px;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

.income-day {
    font-size: 10px;
    color: #6b7280;
    letter-spacing: 0.2px;
    font-weight: 600;
}

/* Tables styling */
.table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
    font-size: 14px;
}

th {
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.015);
}

tbody tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: rgba(0, 0, 0, 0.01);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Compact inventory table (admin stock page) */
.inventory-table-wrap {
    margin-top: 12px;
}

.inventory-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.8fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto;
    gap: 10px;
    align-items: end;
    margin: 10px 0 12px;
}

.inventory-filters .field {
    gap: 5px;
}

.inventory-filters label {
    font-size: 10px;
    letter-spacing: 0.7px;
}

.inventory-filters input,
.inventory-filters select {
    min-height: 36px;
    font-size: 13px;
}

.inventory-filters .actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.inventory-filters .actions .button,
.inventory-filters .actions button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
}

.inventory-table th,
.inventory-table td {
    padding: 9px 10px;
    font-size: 13px;
}

.inventory-table th {
    font-size: 10px;
    letter-spacing: 0.8px;
}

.inventory-table .stock-id {
    white-space: nowrap;
    color: #111827;
    font-weight: 700;
}

.inventory-table .stock-order {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    color: #374151;
    white-space: nowrap;
}

.inventory-table .stock-details {
    max-width: 360px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inventory-table .stock-actions {
    width: 1%;
    white-space: nowrap;
    position: relative;
}

.row-menu {
    position: relative;
    display: inline-block;
}

.row-menu > summary {
    list-style: none;
}

.row-menu > summary::-webkit-details-marker {
    display: none;
}

.row-menu-trigger {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
}

.row-menu-trigger span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #6b7280;
}

.row-menu[open] .row-menu-trigger,
.row-menu-trigger:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.row-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 148px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    padding: 6px;
    z-index: 50;
    display: grid;
    gap: 4px;
}

.row-menu-form {
    margin: 0;
}

.row-menu-item {
    width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #1f2937;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.row-menu-item:hover {
    background: #f3f4f6;
}

.row-menu-item.danger {
    color: #b91c1c;
}

.row-menu-item.danger:hover {
    background: #fef2f2;
}

/* Products table truncation (admin dashboard) */
.products-table-wrap {
    margin-top: 12px;
}

.products-table {
    table-layout: fixed;
}

.products-table th:nth-child(1),
.products-table td:nth-child(1) {
    width: 30%;
}

.products-table th:nth-child(2),
.products-table td:nth-child(2) {
    width: 14%;
}

.products-table th:nth-child(3),
.products-table td:nth-child(3) {
    width: 13%;
}

.products-table th:nth-child(4),
.products-table td:nth-child(4) {
    width: 17%;
}

.products-table th:nth-child(5),
.products-table td:nth-child(5) {
    width: 10%;
}

.products-table th:nth-child(6),
.products-table td:nth-child(6) {
    width: 8%;
}

.products-table th:nth-child(7),
.products-table td:nth-child(7) {
    width: 6%;
}

.products-table th:nth-child(8),
.products-table td:nth-child(8) {
    width: 64px;
    text-align: right;
}

.products-table td {
    vertical-align: middle;
}

.products-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.8fr) minmax(140px, 0.7fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto;
    gap: 10px;
    align-items: end;
    margin: 10px 0 12px;
}

.products-filters .field {
    gap: 5px;
}

.products-filters label {
    font-size: 10px;
    letter-spacing: 0.7px;
}

.products-filters input,
.products-filters select {
    min-height: 36px;
    font-size: 13px;
}

.products-filters .actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.products-filters .actions .button,
.products-filters .actions button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
}

.orders-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) minmax(170px, 0.9fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr) auto;
    gap: 10px;
    align-items: end;
    margin: 10px 0 12px;
}

.orders-filters .field {
    gap: 5px;
}

.orders-filters label {
    font-size: 10px;
    letter-spacing: 0.7px;
}

.orders-filters input,
.orders-filters select {
    min-height: 36px;
    font-size: 13px;
}

.orders-filters .actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.orders-filters .actions .button,
.orders-filters .actions button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
}

.products-table .product-name-cell {
    max-width: 280px;
}

.product-name-with-image {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: start;
}

.product-list-thumbnail {
    width: 42px;
    height: 56px;
    flex: none;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-soft);
}

.product-list-label {
    min-width: 0;
}

.products-table .product-name-text,
.products-table .product-slug-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-table .product-name-text {
    color: #111827;
    font-weight: 700;
}

.products-table .product-slug-text {
    max-width: 100%;
}

.products-table .product-stock-cell {
    max-width: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-size: 13px;
}

.product-editor-basics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.product-editor-basics .field {
    min-width: 0;
}

.product-editor-form label {
    letter-spacing: normal;
    text-transform: none;
}

.product-editor-form .field-label-row {
    margin: 0;
}

.product-editor-form :is(.field-label-row, .required-label) {
    min-height: 20px;
}

.product-editor-form .btn-link-action {
    min-height: 20px;
}

.product-editor-options {
    margin-block-start: 10px;
    border-block-start: 1px solid var(--line);
}

.product-editor-options > summary {
    padding-block: 8px;
    cursor: pointer;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.product-editor-form .form-note {
    margin: 0;
}

.product-editor-switches + .form-note,
.product-editor-options > .form-note + .form-note {
    margin-block-start: 8px;
}

.product-editor-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.switch-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: none;
    letter-spacing: 0;
}

.switch-label input:is([type="checkbox"], [type="radio"]) {
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.full {
    grid-column: 1 / -1;
}

.site-footer {
    --footer-line: #2b3545;
    --footer-muted: #b4bdcc;
    --footer-accent: #ff8268;
    color: #f5f7fb;
    background: #101722;
    border-block-start: 2px solid var(--primary);
    font-size: 14px;
}

.footer-columns,
.footer-bottom {
    width: min(1220px, calc(100% - 2 * var(--page-gutter)));
    margin-inline: auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .72fr);
    align-items: start;
    gap: clamp(24px, 5vw, 68px);
    padding-block: clamp(28px, 4.2vw, 54px);
}

.footer-brand {
    position: relative;
    isolation: isolate;
    min-height: 130px;
    padding: 16px;
    border: 1px solid var(--footer-line);
    border-inline-start: 3px solid var(--primary);
    border-radius: 6px;
    background: #172131;
    overflow: hidden;
}

.footer-brand::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline-end: -9px;
    inset-block-end: -18px;
    width: 106px;
    height: 106px;
    background: #273449;
    clip-path: polygon(33% 0, 67% 0, 67% 33%, 100% 33%, 100% 67%, 67% 67%, 67% 100%, 33% 100%, 33% 67%, 0 67%, 0 33%, 33% 33%);
    transform: rotate(-16deg);
    pointer-events: none;
}

.footer-wordmark {
    display: inline-block;
    color: var(--footer-accent);
    font-size: clamp(24px, 2.6vw, 35px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.footer-brand p {
    max-width: 31ch;
    margin: 10px 0 0;
    color: var(--footer-muted);
    line-height: 1.65;
}

.footer-columns h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 750;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-shop ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
}

.footer-shop a,
.footer-support {
    display: inline-flex;
    align-items: center;
    min-height: 33px;
    color: var(--footer-muted);
    overflow-wrap: anywhere;
}

.footer-shop a:hover,
.footer-support:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-orders {
    display: grid;
    justify-items: start;
}

.footer-track {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 40px;
    padding: 4px 12px;
    border: 1px solid #885345;
    border-radius: 5px;
    background: #27232b;
    color: #ffb7a8;
    font-weight: 700;
}

.footer-track::after {
    content: "→";
}

[dir="rtl"] .footer-track::after {
    content: "←";
}

.footer-track:hover {
    background: #362830;
    color: #fff;
}

.footer-support {
    margin-block-start: 6px;
}

.site-footer a:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 3px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding-block: 14px;
    border-block-start: 1px solid var(--footer-line);
    color: var(--footer-muted);
}

.footer-bottom small {
    font-size: 12px;
}

.footer-payments,
.footer-payments ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 12px;
}

.footer-payments li {
    padding: 3px 8px;
    border: 1px solid var(--footer-line);
    border-radius: 4px;
    background: #172131;
    color: #f5f7fb;
}

@media (max-width: 760px) {
    .footer-columns {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: 20px 14px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        min-height: 108px;
    }

    .footer-shop ul {
        grid-template-columns: 1fr;
    }
}

/* Keep checkout forms on a narrower canvas. */
@media (min-width: 681px) {
    .page-section-cart main,
    .page-section-lookup main {
        width: min(1200px, calc(100% - 32px));
        max-width: 1200px;
        margin-inline: auto;
    }
}

/* Responsive Media Queries */
@media (max-width: 960px) {
    .grid,
    .split,
    .stats,
    .admin-form-grid,
    .workflow-row,
    .detail-list {
        grid-template-columns: 1fr;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .order-guide-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-rules {
        grid-template-columns: 1fr;
    }

    .income-chart {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .inventory-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-filters .actions {
        grid-column: 1 / -1;
    }

    .products-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-filters .actions {
        grid-column: 1 / -1;
    }

    .orders-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .orders-filters .actions {
        grid-column: 1 / -1;
    }

    .cart-checkout {
        position: static;
    }

    .catalog-shell {
        grid-template-areas: "toolbar" "filters" "results";
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .filter-sidebar {
        position: static;
        max-block-size: none;
        overflow: visible;
    }

    .catalog-filter-panel > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-block-size: 46px;
        padding: 8px var(--filter-inset);
        color: var(--text);
        font-size: 16px;
        font-weight: 750;
        cursor: pointer;
        list-style: none;
    }

    .catalog-filter-panel > summary::-webkit-details-marker {
        display: none;
    }

    .catalog-filter-panel > summary::after {
        content: "";
        inline-size: 7px;
        block-size: 7px;
        margin-inline-end: 4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
    }

    .catalog-filter-panel[open] > summary::after {
        transform: rotate(225deg);
    }

    .filter-sidebar form {
        border-block-start: 1px solid var(--line);
    }

    .filter-sidebar-head {
        padding: 10px var(--filter-inset) 0;
        border: 0;
        justify-content: flex-end;
    }

    .filter-sidebar-head h2,
    .filter-sidebar-head:not(:has(a)) {
        display: none;
    }

    .filter-sidebar .filter-option,
    .catalog-category-branch > summary {
        min-block-size: 40px;
    }

    .filter-search input {
        font-size: 16px;
    }

    .detail-list div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .detail-list div:last-child {
        border-bottom: 0;
    }

}

@media (max-width: 760px) {
    .storefront {
        --header-clearance: calc(var(--safe-area-top) + 120px);
    }

    .site-header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
        padding: 7px 9px 4px;
    }

    .site-header .brand {
        min-block-size: 44px;
        font-size: 22px;
    }

    .site-header .header-search {
        max-width: none;
    }

    .site-header .header-search-box > span,
    .site-header .header-search-submit-text {
        display: none;
    }

    .site-header .header-search input[type="search"] {
        padding-inline: 10px 4px;
        font-size: 16px;
    }

    .site-header .header-search button {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        padding: 0;
        margin-inline-end: 3px;
    }

    .site-header .header-search-submit-icon {
        display: block;
    }

    .site-header .site-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) 44px 44px;
        align-items: stretch;
        gap: 2px;
    }

    .site-header .site-nav > a {
        display: grid;
        place-items: center;
        width: auto;
        min-block-size: 44px;
        padding: 4px 2px 6px;
        font-size: 12px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .site-header .site-nav .nav-cart-link.icon-only {
        width: auto;
    }

    .site-header .lang-dropdown {
        margin-inline-start: 0;
    }

    .site-header .lang-btn {
        width: 100%;
        min-block-size: 44px;
        justify-content: center;
    }
}

@media (max-width: 680px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    main {
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
        padding-inline: 10px;
    }

    .storefront {
        --page-gutter: 10px;
    }

    .admin-tabs {
        width: 100%;
    }

    .admin-tabs a {
        flex: 1 1 auto;
        text-align: center;
        padding: 8px 4px 10px;
        font-size: 12px;
        min-width: 0;
        white-space: nowrap;
    }

    .catalog-head {
        align-items: stretch;
        flex-direction: column;
        padding-top: 24px;
    }

    h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    .panel,
    .auth-box {
        padding: 20px;
    }

    .auth-box h1 {
        font-size: 32px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .actions {
        align-items: stretch;
    }

    .actions .button,
    .actions button {
        width: 100%;
    }

    .catalog-head,
    .panel,
    .auth-box {
        max-width: 100%;
    }

    .cart-row {
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start;
    }

    .cart-row img {
        width: 72px;
    }

    .cart-row label,
    .cart-row strong,
    .cart-row .button {
        grid-column: 1 / -1;
    }

    .order-guide-steps {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .catalog-toolbar {
        padding-block-end: 8px;
    }

    .sort-inline label {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .sort-select-wrap select {
        width: clamp(142px, 40vw, 185px);
    }

    /* Responsive tables */
    .table-wrap {
        overflow: visible;
    }

    .table-wrap table,
    .table-wrap thead,
    .table-wrap tbody,
    .table-wrap tr,
    .table-wrap td {
        display: block;
        width: 100%;
    }

    .table-wrap thead {
        display: none;
    }

    .table-wrap tr {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        margin-bottom: 16px;
        background: var(--panel);
        overflow: hidden;
        box-shadow: var(--shadow-soft);
    }

    .table-wrap td {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 12px;
        border-bottom: 1px solid var(--line);
        padding: 12px 16px;
        text-align: left;
    }

    .table-wrap td:last-child {
        border-bottom: 0;
    }

    .table-wrap td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .products-table td:nth-child(n) {
        width: 100%;
        max-width: none;
        text-align: start;
    }

    .products-table .product-name-cell {
        grid-template-columns: minmax(0, 1fr);
    }

    .products-table .product-name-cell::before {
        content: none;
    }

    .products-table .product-name-text {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .products-table .product-stock-cell {
        white-space: normal;
    }

    .products-table .row-menu-list {
        position: static;
        margin-block-start: 6px;
    }
}

/* Delete icon button for cart rows */
.btn-icon-remove {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-icon-remove:hover {
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.05);
}

/* Cart row actions: qty + delete on one line */
.cart-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.qty-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.qty-label span {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.qty-label input[type="number"] {
    width: 64px;
    height: 34px;
    padding: 5px 8px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}
/* Keep number input arrows (spinners) always visible */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1; /* Ensure arrows are not hidden */
    height: auto;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: number-input; /* Show spin buttons */
}

/* Language Dropdown Selector styling */
.lang-dropdown {
    position: relative;
    margin-inline-start: 6px;
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 6px 4px;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.18s ease;
    text-transform: uppercase;
    line-height: 1;
    list-style: none;
}
.lang-btn::-webkit-details-marker {
    display: none;
}
.lang-btn svg {
    transition: transform 0.2s ease, stroke 0.18s ease;
}
.lang-btn:hover,
.lang-dropdown[open] .lang-btn {
    background: transparent;
    border: 0;
    color: var(--primary);
}
.lang-dropdown[open] .lang-btn svg {
    transform: rotate(180deg);
}
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    inset-inline-end: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    z-index: 1050;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.lang-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    transition: all 0.15s ease;
}
.lang-dropdown-menu a:last-child {
    border-bottom: 0;
}
.lang-dropdown-menu a:hover {
    background: #f8fafc;
    color: var(--primary);
}
.lang-dropdown-menu a.active {
    background: rgba(255, 76, 41, 0.05);
    color: var(--primary);
    font-weight: 700;
}

/* RTL layout styles */
[dir="rtl"] {
    text-align: right;
}
[dir="rtl"] .nav-cart-badge {
    right: auto;
    left: -4px;
}
[dir="rtl"] .site-nav a::after {
    left: 4px;
    right: 4px;
}
[dir="rtl"] .cart-row img {
    margin-right: 0;
    margin-left: 16px;
}
[dir="rtl"] .cart-row > div {
    text-align: right;
}
[dir="rtl"] .cart-row strong {
    text-align: left;
}
[dir="rtl"] .cart-total span {
    text-align: right;
}
[dir="rtl"] .cart-total strong {
    text-align: left;
}
[dir="rtl"] .required-label::after {
    margin-left: 0;
    margin-right: 4px;
}
[dir="rtl"] .form-note {
    text-align: right;
}
[dir="rtl"] .secret-box pre {
    text-align: left;
    direction: ltr;
}
.ltr-value {
    direction: ltr;
    unicode-bidi: isolate;
}
[dir="rtl"] .detail-list > div {
    flex-direction: row-reverse;
    text-align: right;
}
[dir="rtl"] .detail-list span {
    text-align: left;
}
[dir="rtl"] .text-link svg, [dir="rtl"] .text-link span {
    transform: scaleX(-1);
}

/* Homepage categories and product grid */
.home-section-head {
    display: grid;
    justify-items: center;
    gap: 2px;
    margin: 40px 0 20px;
    text-align: center;
}

.home-section-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 32px;
    text-transform: uppercase;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
    gap: 10px;
    width: min(700px, 100%);
    margin-inline: auto;
}

.category-card {
    display: flex;
    min-width: 0;
    min-height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.category-card-image {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    padding: 8px;
    border: 0;
    border-radius: 9999px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) opacity(0.42);
    transition: filter 0.2s ease, transform 0.2s ease;
    -webkit-user-drag: none;
}

.category-card strong {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.category-card:hover .category-card-image,
.category-card:focus-visible .category-card-image {
    filter: brightness(0) saturate(100%) invert(39%) sepia(92%) saturate(2988%) hue-rotate(348deg) brightness(102%) contrast(101%);
    transform: scale(1.08);
}

.category-card:hover strong,
.category-card:focus-visible strong {
    color: var(--primary);
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 20px);
    padding-block-end: 10px;
}

.home-product-grid .product-card {
    width: 100%;
    min-height: 0;
    border: 0;
    border-radius: 4px;
    box-shadow: none;
}

.home-product-grid .product-card .product-body {
    width: 100%;
    min-height: 81px;
    padding: 6px;
    gap: 5px;
}

.home-product-grid .product-card .meta-row {
    min-height: 18px;
}

.home-product-grid .product-card .pill {
    max-width: 100%;
    height: 18px;
    overflow: hidden;
    padding: 0 6px;
    font-size: 8px;
    text-overflow: ellipsis;
}

.home-product-grid .product-card h2 {
    min-height: 17px;
    font-size: 12px;
    line-height: 17px;
    -webkit-line-clamp: 1;
}

.home-product-grid .product-card .actions,
.home-product-grid .product-card .actions .button,
.home-product-grid .product-card .actions button {
    width: auto;
}

.home-product-grid .product-card .actions {
    flex-wrap: wrap;
    gap: 3px;
    margin-top: auto;
    padding-top: 0;
}

.home-product-grid .product-card .price,
.home-product-grid .product-card .new-price {
    font-size: 10px;
    white-space: nowrap;
}

.home-product-grid .product-card .old-price {
    font-size: 9px;
}

.home-product-grid .product-card .actions button,
.home-product-grid .product-card .actions .button {
    min-height: 34px;
    padding-inline: 5px;
    font-size: 9px;
    white-space: nowrap;
}

.home-product-grid .product-card .button.icon-only {
    width: 30px;
    min-width: 30px;
}

@media (min-width: 768px) {
    .home-product-grid .product-card .product-body {
        min-height: 93px;
        padding: 7px;
    }

    .home-product-grid .product-card .actions {
        gap: 6px;
    }

    .home-product-grid .product-card .price,
    .home-product-grid .product-card .new-price {
        font-size: 12px;
    }

    .home-product-grid .product-card .actions button,
    .home-product-grid .product-card .actions .button {
        padding-inline: 9px;
        font-size: 10px;
    }
}

@media (max-width: 680px) {
    .home-product-grid > .product-card:nth-child(n + 5),
    .home-product-grid--single-row > .product-card:nth-child(n + 3) {
        display: none;
    }
}

@media (min-width: 681px) and (max-width: 959px) {
    .home-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-product-grid > .product-card:nth-child(n + 9),
    .home-product-grid--single-row > .product-card:nth-child(n + 5) {
        display: none;
    }
}

@media (min-width: 960px) {
    .home-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ==========================================================================
   Dedicated Admin Dashboard Layout & Components
   ========================================================================== */

body.admin-page {
    background-color: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.admin-page main {
    width: auto;
    max-width: none;
    margin: 0;
}

.admin-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Admin Top Bar */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 16px;
}

.admin-topbar-start {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.admin-sidebar-toggle:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.admin-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff4c29 0%, #ff6b4a 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 76, 41, 0.25);
}

.admin-brand-name {
    font-family: 'Baloo Bhaijaan 2', 'Inter', sans-serif;
    font-size: 20px;
    line-height: 1;
}

.admin-brand-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #0f172a;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.2;
}

.admin-store-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.admin-store-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.admin-topbar-end {
    display: flex;
    align-items: center;
}

.admin-profile-menu {
    position: relative;
}

.admin-profile-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    color: #475569;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.admin-profile-pill::-webkit-details-marker {
    display: none;
}

.admin-profile-menu[open] .admin-profile-pill svg {
    transform: rotate(180deg);
}

.admin-profile-options {
    position: absolute;
    inset-block-start: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 176px;
    display: grid;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-profile-language {
    padding: 4px 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.admin-profile-options a,
.admin-profile-options .admin-logout-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
}

.admin-profile-options a:hover,
.admin-profile-options a[aria-current] {
    background: var(--panel-soft);
}

.admin-profile-options a[aria-current]::after {
    content: "✓";
    color: var(--success);
}

.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4c29 0%, #ff6b4a 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 76, 41, 0.2);
}

.admin-profile-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.admin-profile-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    max-inline-size: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-profile-role {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.admin-profile-options .admin-logout-btn {
    width: 100%;
    margin-block-start: 4px;
    border: 0;
    border-block-start: 1px solid var(--line);
    background: transparent;
    box-shadow: none;
    color: #dc2626;
}

.admin-profile-options .admin-logout-btn:hover {
    background: var(--danger-bg);
}

/* Admin Body & Sidebar Layout */
.admin-body {
    display: flex;
    flex: 1;
    width: 100%;
    position: relative;
}

.admin-sidebar {
    width: 240px;
    min-width: 240px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 50;
}

html[dir="rtl"] .admin-sidebar {
    border-right: none;
    border-left: 1px solid #e2e8f0;
}

.admin-sidebar-section-title {
    padding: 0 18px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 10px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    position: relative;
}

.admin-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: color 0.15s ease;
}

.admin-nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.admin-nav-link:hover .admin-nav-icon {
    color: #0f172a;
}

.admin-nav-link.active {
    background: rgba(255, 76, 41, 0.08);
    color: #ff4c29;
    font-weight: 700;
}

.admin-nav-link.active .admin-nav-icon {
    color: #ff4c29;
}

.admin-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #ff4c29;
}

html[dir="rtl"] .admin-nav-link.active::before {
    left: auto;
    right: 0;
    border-radius: 3px 0 0 3px;
}

.admin-nav-text {
    flex: 1;
}

.admin-nav-badge {
    margin-inline-start: auto;
    background: #ff4c29;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    line-height: 1.2;
}

.admin-sidebar-footer {
    padding: 16px 18px 0;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.admin-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.admin-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Admin Main Content Container & Tab Panels */
body.admin-page main.admin-main,
.admin-main {
    flex: 1;
    min-width: 0;
    padding: 32px 40px 80px;
    background: #f8fafc;
}

.admin-main > .panel:first-child,
.admin-main > .stats:first-child {
    margin-top: 0;
}

.admin-main .panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-settings-tabs {
    border-block-end: 1px solid var(--line);
    gap: 4px;
}

.admin-settings-tabs a {
    min-block-size: 44px;
    display: grid;
    place-items: center;
    margin-block-end: -1px;
    border-width: 0 0 2px;
    border-radius: 6px 6px 0 0;
    text-align: center;
}

.admin-settings-tabs a[aria-current="page"] {
    border-color: var(--primary);
    background: var(--primary-glow);
    color: #a9341e;
}

.admin-settings-tabs a:focus-visible {
    outline: 2px solid #a9341e;
    outline-offset: -3px;
}

.admin-settings-tabs + .panel {
    margin-block-start: 16px;
}

.newsletter-panel {
    width: min(100%, 580px);
    margin-inline: auto;
}

.admin-main .stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px 0;
}

.admin-main .stat {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-main .meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-main .meta-row h1,
.admin-main .meta-row h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

/* Status tabs inside order panel */
.admin-main .meta-row .site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.admin-main .meta-row .site-nav a {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
    border: none;
}

.admin-main .meta-row .site-nav a:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

.admin-main .meta-row .site-nav a.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

.admin-main .meta-row .site-nav a.active::after {
    display: none;
}

/* Filter bars padding */
.admin-main .orders-filters,
.admin-main .inventory-filters {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

/* Tables padding & framing */
.admin-main .table-wrap {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.admin-main .products-table-wrap {
    overflow: visible;
}

.admin-main table th {
    background: #f8fafc;
    padding: 14px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    text-align: start;
}

.admin-main table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 13px;
    text-align: start;
}

.admin-main .products-table th,
.admin-main .products-table td {
    padding-inline: 11px;
}

.products-table :is(th, td):nth-child(1) {
    width: 26%;
}

.products-table :is(th, td):nth-child(7) {
    width: 10%;
}

.admin-date-input,
.admin-file-picker {
    position: relative;
    min-width: 0;
}

.category-admin-name {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-wrap: anywhere;
}

.category-admin-name img {
    width: 36px;
    height: 36px;
    flex: none;
    object-fit: contain;
    border-radius: var(--radius);
}

.category-admin-child {
    padding-inline-start: 14px;
    border-inline-start: 2px solid var(--line);
    overflow-wrap: anywhere;
}

.admin-date-input > span {
    position: absolute;
    inset-block: 1px;
    inset-inline: 36px 1px;
    display: none;
    align-items: center;
    padding-inline: 9px;
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--muted);
    font-size: 13px;
    pointer-events: none;
}

.admin-date-input[data-empty]:not(:focus-within) > span {
    display: flex;
}

.admin-file-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.admin-file-picker input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.admin-file-picker .button {
    padding-inline: 10px;
    font-size: inherit;
}

.admin-file-picker:focus-within .button {
    outline: 2px solid var(--primary-strong);
    outline-offset: 2px;
}

.admin-file-picker output {
    color: var(--muted);
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .admin-main .products-table td:nth-child(n) {
        width: 100%;
    }
}

/* Mobile Drawer Responsive Behavior */
@media (max-width: 992px) {
    .admin-sidebar-toggle {
        display: inline-flex;
    }

    .admin-sidebar {
        position: fixed;
        top: 64px;
        inset-inline-start: 0;
        bottom: 0;
        height: calc(100vh - 64px);
        z-index: 1000;
        --sidebar-closed-offset: -100%;
        transform: translateX(var(--sidebar-closed-offset));
        visibility: hidden;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    }

    html[dir="rtl"] .admin-sidebar {
        --sidebar-closed-offset: 100%;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 64px 0 0 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(2px);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .admin-sidebar-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    body.admin-page main.admin-main {
        padding: 20px 16px 48px;
    }

    .admin-profile-role {
        display: none;
    }

    .admin-store-link span {
        display: none;
    }

    .admin-main .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .admin-topbar {
        padding-inline: 12px;
        gap: 8px;
    }

    .admin-topbar-start {
        gap: 8px;
    }

    .admin-main .panel {
        padding: 14px;
    }

    .admin-topbar .admin-brand-badge,
    .admin-profile-text {
        display: none;
    }

    .admin-profile-pill {
        gap: 6px;
        padding-inline: 7px;
    }

    .admin-main .stat {
        padding: 12px;
    }
}

html[dir="rtl"] .admin-page .row-menu-list {
    right: auto;
    left: 0;
}

html[dir="rtl"] :is(.admin-page, .admin-login-body) :is(h1, h2, h3, label, .admin-brand-badge, .admin-sidebar-section-title, th),
html[dir="rtl"] .admin-page .table-wrap td::before {
    letter-spacing: normal;
}

/* Clean Admin Login Screen */
body.admin-login-body {
    background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin: 0;
}

.admin-login-shell {
    width: 100%;
    max-width: 420px;
}

.admin-login-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 24px;
}

.admin-login-header .admin-brand {
    justify-content: center;
    margin-bottom: 16px;
}

.admin-login-header h1 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.admin-login-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-login-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff4c29 0%, #ff6b4a 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 76, 41, 0.35);
    transition: all 0.15s ease;
    margin-top: 4px;
}

.admin-login-submit:hover {
    box-shadow: 0 6px 18px rgba(255, 76, 41, 0.45);
    transform: translateY(-1px);
}

.admin-login-back {
    text-align: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.admin-login-back a {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.admin-login-back a:hover {
    color: #ff4c29;
}

/* Category Dropdown & Creation Modal */
.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.field-label-row label {
    margin-bottom: 0;
}

.btn-link-action {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    color: #ff4c29;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.btn-link-action:hover {
    color: #e03b18;
}

.admin-dialog {
    position: fixed;
    inset: 0;
    width: min(500px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}

.admin-dialog[open],
.admin-dialog > form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 0;
}

.admin-dialog::backdrop {
    background: rgba(15, 23, 42, 0.52);
}

body:has(.admin-dialog:modal) {
    overflow: hidden;
}

.product-dialog {
    width: min(620px, calc(100% - 24px));
}

.order-dialog {
    width: min(740px, calc(100% - 24px));
}

.order-dialog[open]:not(:modal) {
    z-index: 2000;
}

.order-dialog h2,
.order-dialog .admin-modal-body {
    overflow-wrap: anywhere;
}

.order-dialog-number {
    display: block;
    margin-block-start: 4px;
    color: var(--muted);
    font: 600 11px/1.35 ui-monospace, monospace;
}

.order-dialog .admin-modal-close {
    flex: none;
}

.order-dialog .receipt-review,
.order-dialog .admin-order-items,
.order-dialog .notice {
    margin-block: 0;
}

.product-dialog-body {
    min-height: 0;
    padding: clamp(12px, 2vw, 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.product-dialog-body > .notice {
    margin: 0 0 12px;
}

.product-dialog textarea {
    min-height: 76px;
}

.product-gallery-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-editor-image {
    display: grid;
    gap: 4px;
    justify-items: start;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.gallery-editor-image img {
    width: 60px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--panel-soft);
}

.gallery-editor-image label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-editor-image input {
    width: 14px;
    min-height: 14px;
    margin: 0;
}

@media (max-width: 380px) {
    .product-editor-basics {
        grid-template-columns: 1fr;
    }
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    padding: 12px clamp(14px, 2vw, 24px);
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.admin-modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.admin-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.admin-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.admin-modal-body {
    padding: clamp(14px, 2vw, 24px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.admin-modal-body .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-modal-body .field label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.admin-modal-body .field input[type="text"] {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.admin-modal-body .field input[type="text"]:focus {
    border-color: #ff4c29;
    box-shadow: 0 0 0 3px rgba(255, 76, 41, 0.15);
}

.admin-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: none;
    gap: 10px;
    padding: 12px clamp(14px, 2vw, 24px);
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Product card category pill refinement */
.product-card .pill {
    background: rgba(255, 76, 41, 0.08);
    color: #ff4c29;
    border: 1px solid rgba(255, 76, 41, 0.15);
    font-weight: 700;
    font-size: 11px;
    height: auto;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.2px;
}


.payment-details {
    margin-block: 24px;
    padding: 20px;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    background: #f7faff;
}
.payment-details h2 { margin-block: 0 12px; }
.payment-account { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 16px; }
.payment-account code { overflow-wrap: anywhere; font-size: 1rem; letter-spacing: .03em; }
.payment-account--baridimob {
    display: block;
    min-width: 0;
    margin-block: 20px 0;
    padding: clamp(14px, 3vw, 22px);
    border: 1px solid #dfe7e3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .035);
}
.payment-account-heading { display: flex; align-items: center; gap: 12px; margin-block-end: 18px; }
.payment-account-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid #d5ebdf; border-radius: 12px; background: #edf8f1; color: #187348; }
.payment-account-heading strong { display: block; color: var(--text); font-size: 16px; letter-spacing: -.02em; }
.payment-account-heading div > span { display: block; margin-block-start: 3px; color: var(--muted); font-size: 12px; }
.payment-rip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.payment-account--baridimob code {
    display: block;
    min-width: 0;
    padding: 15px 12px;
    border: 1px dashed #cbd7d0;
    border-radius: 10px;
    background: #f7faf8;
    color: #173e2b;
    font-family: 'Courier New', monospace;
    font-size: clamp(12px, 1.45vw, 18px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .015em;
    text-align: center;
    white-space: normal;
    user-select: all;
}
.payment-copy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 16px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
.payment-copy:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.payment-copy-status { display: block; color: #187348; font-size: 12px; }
.payment-copy-status:not(:empty) { margin-block-start: 10px; }
.payment-copy-status.is-error { color: var(--danger); }
@media (max-width: 600px) {
    .payment-rip-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .payment-account--baridimob code { font-size: clamp(11px, 3.4vw, 18px); padding-inline: 8px; }
    .payment-copy { width: 100%; }
}
.status-panel .delivery-countdown { font-size: 2rem; font-variant-numeric: tabular-nums; }
.status-panel .countdown-finished { font-size: 1rem; }
.catalog-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin-block: 28px; }
.catalog-shell[aria-busy="true"] .catalog-grid { opacity: .55; transition: opacity .15s; }
.product-cart-widget .notice { flex-basis: 100%; font-size: .8rem; }
.form-stack { display: grid; gap: 16px; max-width: 680px; }
