@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --ink: #18202f;
    --muted: #667085;
    --line: #e6e9ef;
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-soft: #f1f7f6;
    --market: #0f766e;
    --market-dark: #115e59;
    --coral: #e15b64;
    --amber: #d99a1e;
    --blue: #2563eb;
    --violet: #7c3aed;
    --green: #15905d;
    --shadow: 0 18px 45px rgba(24, 32, 47, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, #f8fbfb 0%, #f7f8fb 38%, #fff8f4 100%);
    color: var(--ink);
    font-family: 'Tajawal', system-ui, sans-serif;
}

.site-body {
    padding-bottom: 92px;
}

.auth-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 18px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.container {
    width: min(100% - 32px, 1180px);
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 11px 16px;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
    transition: 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--market), #0f8a7e);
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--market-dark), #0f766e);
    transform: translateY(-1px);
}

.btn-light {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
}

.btn-light:hover {
    border-color: var(--market);
    color: var(--market);
}

.btn-danger {
    background: #fff1f2;
    color: var(--coral);
    border: 1px solid #fecdd3;
}

.btn-danger:hover {
    background: var(--coral);
    color: #fff;
}

.full {
    width: 100%;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    outline: 0;
    padding: 12px 13px;
    transition: 0.2s ease;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--market);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(230, 233, 239, 0.85);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(24, 32, 47, 0.05);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-block: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 800;
    color: var(--market);
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--market), var(--coral));
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.brand-text {
    white-space: nowrap;
}

.header-search {
    display: none;
    flex: 1;
}

.header-search,
.mobile-search form {
    align-items: center;
    gap: 8px;
}

.header-search button,
.mobile-search button {
    width: 74px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
}

.site-nav a.active,
.site-nav a:hover {
    background: #e8f6f4;
    color: var(--market);
}

.cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    padding: 10px 14px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(24, 32, 47, 0.14);
}

.cart-button strong {
    position: absolute;
    top: -8px;
    left: -8px;
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: var(--coral);
    font-size: 12px;
}

.cart-icon {
    display: inline-flex;
    font-size: 14px;
}

.mobile-app-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-width: 520px;
    margin-inline: auto;
    border: 1px solid rgba(230, 233, 239, 0.8);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    padding: 8px;
    box-shadow: 0 22px 55px rgba(24, 32, 47, 0.18);
    backdrop-filter: blur(18px);
}

.mobile-app-nav a {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 58px;
    place-items: center;
    border-radius: 14px;
    color: #7a8595;
    font-weight: 800;
    transition: 0.2s ease;
}

.mobile-app-nav a.active {
    background: linear-gradient(135deg, #e8f6f4, #fff4e8);
    color: var(--market);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.mobile-app-nav .nav-icon {
    display: grid;
    min-width: 34px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
}

.mobile-app-nav a.active .nav-icon {
    background: var(--market);
    color: #fff;
}

.mobile-app-nav small {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.mobile-app-nav strong {
    position: absolute;
    top: 3px;
    left: 10px;
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-size: 11px;
}

.mobile-search {
    padding-bottom: 12px;
}

.mobile-search form {
    display: flex;
}

.flash-wrap {
    padding-top: 14px;
}

.flash {
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 800;
}

.flash.success {
    background: #eaf8ef;
    color: #166534;
}

.flash.error {
    background: #ffe8e8;
    color: #b4232d;
}

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(230, 233, 239, 0.86);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 246, 244, 0.88) 52%, rgba(255, 243, 238, 0.94));
}

.hero-grid {
    display: grid;
    gap: 26px;
    padding-block: 30px;
}

.hero-copy {
    order: 2;
}

.hero-media {
    position: relative;
    order: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #edf0f2;
    box-shadow: 0 26px 60px rgba(24, 32, 47, 0.16);
}

.hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero-media::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(180deg, transparent 45%, rgba(24, 32, 47, 0.46));
    pointer-events: none;
}

.hero-media-card {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    width: min(72%, 280px);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    padding: 12px 14px;
    box-shadow: 0 18px 38px rgba(24, 32, 47, 0.16);
    backdrop-filter: blur(12px);
}

.hero-media-card span,
.hero-media-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.hero-media-card strong {
    display: block;
    margin: 3px 0;
    font-size: 18px;
    font-weight: 800;
}

.hero-chip,
.eyebrow {
    display: inline-flex;
    color: var(--market);
    font-size: 14px;
    font-weight: 800;
}

.hero-chip {
    margin-bottom: 14px;
    border-radius: 999px;
    background: #e8f6f4;
    padding: 8px 12px;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.hero h1,
.section-head h1,
.section-head h2,
.admin-page-head h1 {
    margin: 0;
    font-weight: 800;
    line-height: 1.18;
}

.hero h1 {
    max-width: 760px;
    font-size: 37px;
}

.hero p {
    max-width: 620px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

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

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-highlights span {
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 800;
}

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

.steps div {
    min-height: 90px;
    border: 1px solid rgba(230, 233, 239, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    padding: 12px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(24, 32, 47, 0.06);
}

.steps strong {
    display: grid;
    width: 30px;
    height: 30px;
    margin: 0 auto 8px;
    place-items: center;
    border-radius: 999px;
    background: var(--market);
    color: #fff;
}

.steps span {
    display: block;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.section {
    padding-block: 34px;
}

.products-section,
.stores-section {
    background: rgba(255, 255, 255, 0.58);
}

.page-section {
    padding-top: 34px;
}

.section-head,
.admin-page-head,
.admin-card-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head h1,
.section-head h2,
.admin-page-head h1 {
    margin-top: 4px;
    font-size: 30px;
}

.section-head a {
    color: var(--market);
    font-weight: 800;
    white-space: nowrap;
}

.muted {
    color: var(--muted);
}

.category-grid,
.product-grid,
.store-grid {
    display: grid;
    gap: 16px;
}

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

.category-tree-block {
    display: grid;
    gap: 10px;
}

.subcategory-panel {
    display: grid;
    gap: 10px;
    border-right: 3px solid var(--market);
    padding-right: 14px;
}

.subcategory-panel > strong {
    color: var(--market);
    font-size: 14px;
}

.subcategory-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.category-card,
.product-card,
.store-card,
.summary-card,
.form-panel,
.admin-card,
.cart-item,
.detail-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24, 32, 47, 0.055);
}

.category-card,
.product-card {
    overflow: hidden;
    transition: 0.2s ease;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-image {
    position: relative;
    overflow: hidden;
}

.category-image::after {
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    content: '';
    background: linear-gradient(180deg, transparent, rgba(24, 32, 47, 0.36));
}

.category-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eef1f4;
    transition: transform 0.45s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 15px;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-body h3,
.store-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.card-body p,
.store-card p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.category-card strong {
    display: inline-flex;
    margin-top: 12px;
    color: var(--market);
    font-size: 14px;
}

.mini-chip,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.accent-rose {
    background: #ffe7ed;
    color: #be123c;
}

.accent-blue {
    background: #e8efff;
    color: var(--blue);
}

.accent-amber {
    background: #fff4d8;
    color: #a16207;
}

.accent-green {
    background: #e6f7ee;
    color: var(--green);
}

.accent-cyan {
    background: #ddf7fb;
    color: #0e7490;
}

.accent-violet {
    background: #f0e8ff;
    color: var(--violet);
}

.accent-coral {
    background: #ffe7e9;
    color: #be2330;
}

.accent-lime {
    background: #edfbd7;
    color: #4d7c0f;
}

.product-image {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        linear-gradient(135deg, #eef1f4, #f7f8fb);
}

.product-image::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(180deg, rgba(24, 32, 47, 0.06), transparent 38%, rgba(24, 32, 47, 0.34));
    opacity: 0.85;
    pointer-events: none;
}

.product-image img {
    width: 100%;
    aspect-ratio: 4 / 4.35;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.045);
}

.product-image-top {
    position: absolute;
    top: 12px;
    right: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.product-image-top .badge {
    box-shadow: 0 10px 22px rgba(24, 32, 47, 0.12);
}

.image-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.product-card .eyebrow {
    font-size: 12px;
    border-radius: 999px;
    background: #e8f6f4;
    padding: 5px 9px;
}

.product-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.store-pill {
    max-width: 54%;
    overflow: hidden;
    border-radius: 999px;
    background: #fff4e2;
    color: #9a5f04;
    padding: 5px 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
}

.product-card h3 {
    min-height: 46px;
    margin-top: 9px;
    line-height: 1.45;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    background: #fafbfc;
    padding: 9px;
}

.option-label {
    display: block;
    margin-bottom: 6px;
    color: #7a8595;
    font-size: 11px;
    font-weight: 800;
}

.option-chips {
    display: flex;
    min-height: 24px;
    flex-wrap: wrap;
    gap: 5px;
}

.option-chips span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px #e6e9ef;
}

.color-chips span {
    background: #fff7ed;
    color: #9a5f04;
    box-shadow: inset 0 0 0 1px #f7dfb9;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f1f7f6, #fff8ef);
    padding: 9px 11px;
}

.price-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.price {
    display: block;
    color: var(--market);
    font-size: 20px;
    white-space: nowrap;
}

.product-delivery-note,
.delivery-notice {
    border: 1px solid #d8eee9;
    border-radius: 8px;
    background: #f1fbf9;
    color: var(--market-dark);
    font-weight: 800;
}

.product-delivery-note {
    margin-top: 8px;
    padding: 8px 10px;
    font-size: 12px;
}

.delivery-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px 14px;
}

.delivery-notice.compact {
    margin: 12px 0 0;
}

.delivery-notice span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.product-actions form {
    display: block;
}

.product-actions .btn {
    width: 100%;
    min-height: 40px;
    padding-inline: 10px;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, var(--coral), #ef7b64);
    box-shadow: 0 12px 26px rgba(225, 91, 100, 0.18);
}

.product-actions .btn-primary:hover {
    background: linear-gradient(135deg, #cf4753, #df6b58);
}

.badge-green {
    background: #e7f8ef;
    color: #15803d;
}

.badge-amber {
    background: #fff5db;
    color: #a16207;
}

.badge-slate {
    background: #e9edf2;
    color: #475569;
}

.badge-coral {
    background: #ffe8ea;
    color: #be2330;
}

.badge-blue {
    background: #eaf0ff;
    color: var(--blue);
}

.badge-violet {
    background: #f0e8ff;
    color: var(--violet);
}

.badge-warm {
    background: #fff4e2;
    color: #9a5f04;
}

.store-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    transition: 0.2s ease;
}

.store-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.store-icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8f6f4, #fff4e2);
    color: var(--market);
    font-size: 13px;
    font-weight: 800;
}

.store-meta {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.filters {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    padding: 16px;
    box-shadow: 0 12px 30px rgba(24, 32, 47, 0.055);
}

.empty-state {
    display: grid;
    min-height: 210px;
    place-items: center;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 246, 0.8));
    padding: 26px;
    text-align: center;
}

.empty-mark {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 999px;
    background: #edf1f5;
    color: var(--muted);
    font-weight: 800;
}

.empty-state h3 {
    margin: 0;
    font-size: 20px;
}

.empty-state p {
    max-width: 420px;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.product-detail-grid {
    display: grid;
    gap: 18px;
}

.detail-gallery {
    display: grid;
    gap: 12px;
}

.detail-media-grid {
    display: grid;
    gap: 12px;
}

.detail-media-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eef1f4;
    box-shadow: 0 24px 55px rgba(24, 32, 47, 0.14);
}

.detail-image-frame {
    aspect-ratio: 4 / 5;
}

.detail-video-frame {
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.detail-gallery.has-video .detail-image-frame {
    background: #fff;
}

.detail-gallery.has-video .detail-main-image {
    object-fit: contain;
}

.media-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    border-radius: 8px;
    background: rgba(24, 32, 47, 0.78);
    color: #fff;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
}

.detail-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.detail-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    background: #eef1f4;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.detail-thumbs img.active,
.detail-thumbs img:hover {
    border-color: #0d9488;
    opacity: 0.9;
}

.detail-video-box {
    overflow: hidden;
    height: 100%;
    background: #0f172a;
}

.detail-video-box iframe,
.detail-video-box video {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #0f172a;
}

.detail-video-box video {
    object-fit: contain;
}

.detail-video-box .btn {
    border-radius: 0;
}

.detail-panel {
    padding: 20px;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-panel h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}

.detail-price {
    display: block;
    margin-top: 12px;
    color: var(--market);
    font-size: 26px;
}

.detail-panel p {
    color: var(--muted);
    line-height: 1.8;
}

.detail-order-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.detail-order-form label span,
.form-grid label span {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.detail-choice-field {
    display: grid;
    gap: 8px;
    margin: 0;
    border: 0;
    padding: 0;
}

.detail-choice-field legend {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.size-choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-choice {
    position: relative;
}

.size-choice input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.size-choice span {
    display: grid;
    min-width: 46px;
    min-height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 8px 12px;
    font-weight: 800;
    transition: 0.2s ease;
}

.size-choice input:checked + span {
    border-color: var(--market);
    background: #e8f6f4;
    color: var(--market);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.size-choice input:focus-visible + span {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 2px;
}

.detail-info {
    display: grid;
    gap: 12px;
    margin: 8px 0 0;
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 14px;
}

.detail-info dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-info dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.detail-actions {
    display: grid;
    gap: 10px;
}

.related-section {
    margin-top: 34px;
}

.cart-grid,
.checkout-grid {
    display: grid;
    gap: 18px;
}

.cart-lines {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 14px;
}

.cart-image img {
    width: 92px;
    height: 92px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-info a {
    font-weight: 800;
}

.cart-info p {
    margin: 6px 0;
    color: var(--muted);
    font-size: 14px;
}

.cart-info strong {
    color: var(--market);
}

.cart-controls {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-controls form:first-child {
    display: flex;
    gap: 8px;
}

.cart-controls input {
    max-width: 88px;
}

.link-danger {
    border: 0;
    background: transparent;
    color: var(--coral);
    font-weight: 800;
}

.summary-card,
.form-panel {
    padding: 20px;
}

.summary-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.summary-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 11px 0;
    color: var(--muted);
}

.summary-row strong {
    color: var(--ink);
    white-space: nowrap;
}

.summary-row.total {
    border-bottom: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.summary-row.total strong {
    color: var(--market);
}

.summary-note {
    margin: 4px 0 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.payment-note {
    border-radius: 8px;
    background: #e7f8ef;
    color: #15803d;
    padding: 10px 12px;
    font-weight: 800;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-grid .wide {
    grid-column: 1 / -1;
}

.settings-grid {
    align-items: stretch;
}

.settings-help {
    display: grid;
    gap: 4px;
    border: 1px solid #d8eee9;
    border-radius: 8px;
    background: #f2fbf7;
    padding: 12px;
}

.settings-help strong {
    color: var(--market);
}

.settings-help span {
    color: var(--muted);
    font-weight: 800;
}

.success-card {
    max-width: 620px;
    margin-inline: auto;
    border: 1px solid #b7e5c9;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff, #f2fbf7);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow);
}

.success-card span {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 999px;
    background: #e7f8ef;
    color: #15803d;
    font-weight: 800;
}

.success-card h1 {
    margin: 0;
}

.success-card p {
    color: var(--muted);
    line-height: 1.8;
}

.top-gap {
    margin-top: 16px;
}

.top-gap-small {
    margin-top: 10px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-grid {
    display: grid;
    gap: 20px;
    padding-block: 28px;
}

.site-footer p {
    max-width: 420px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-points {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.footer-actions {
    display: flex;
    align-items: start;
    gap: 10px;
}

.admin-link {
    padding: 12px 0;
    color: var(--market);
    font-weight: 800;
}

.admin-body {
    background:
        linear-gradient(180deg, #f7f9fb 0%, #f3f6f6 100%);
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    padding: 14px 16px;
}

.admin-brand {
    display: block;
    margin-bottom: 12px;
}

.admin-brand small {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.admin-brand strong {
    color: var(--market);
    font-size: 21px;
}

.admin-sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.admin-sidebar nav a {
    flex: 0 0 auto;
    border-radius: 8px;
    padding: 11px 13px;
    color: var(--muted);
    font-weight: 800;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
    background: #e8f6f4;
    color: var(--market);
}

.admin-main {
    padding: 16px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    padding: 10px;
    box-shadow: 0 10px 26px rgba(24, 32, 47, 0.045);
}

.admin-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-topbar-actions form {
    margin: 0;
}

.admin-mobile-logo {
    color: var(--market);
    font-weight: 800;
}

.auth-screen {
    width: min(100%, 430px);
}

.auth-card {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    padding: 22px;
    box-shadow: var(--shadow);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-brand strong,
.auth-brand small {
    display: block;
}

.auth-brand small {
    margin-top: 2px;
    color: var(--muted);
    font-weight: 800;
}

.auth-head h1 {
    margin: 4px 0 0;
    font-size: 28px;
    line-height: 1.2;
}

.auth-card label span {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.admin-page {
    display: grid;
    gap: 18px;
}

.stats-grid {
    display: grid;
    gap: 12px;
}

.stat-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff, #f8fbfb);
    padding: 18px;
    box-shadow: 0 8px 22px rgba(24, 32, 47, 0.04);
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    color: var(--market);
    font-size: 32px;
}

.stat-card:nth-child(2) strong {
    color: var(--blue);
}

.stat-card:nth-child(3) strong {
    color: var(--coral);
}

.stat-card:nth-child(4) strong {
    color: var(--green);
}

.stat-card:nth-child(5) strong {
    color: var(--amber);
}

.stat-phone {
    direction: ltr;
    overflow-wrap: anywhere;
    font-size: 24px;
}

.admin-card {
    padding: 18px;
}

.admin-card h2 {
    margin: 0;
    font-size: 22px;
}

.admin-form {
    display: grid;
    gap: 14px;
}

.category-table-name {
    display: grid;
    gap: 4px;
}

.category-table-name small {
    color: var(--muted);
    font-weight: 700;
}

.category-table-name.depth-1 {
    padding-right: 16px;
}

.category-table-name.depth-2,
.category-table-name.depth-3 {
    padding-right: 30px;
}

.product-admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 6px;
}

.product-admin-tabs button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
}

.product-admin-tabs button.active {
    background: var(--market);
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16);
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.checkbox-row input {
    width: auto;
}

.size-picker,
.option-picker {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
    padding: 14px;
}

.size-picker-head,
.option-picker-head {
    display: grid;
    gap: 4px;
}

.size-picker-head span,
.option-picker-head span {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.size-picker-head small,
.option-picker-head small {
    color: var(--muted);
    font-weight: 700;
}

.selected-size-list,
.selected-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
}

.selected-size-chip,
.selected-token-chip,
.size-option,
.token-option {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    transition: 0.2s ease;
}

.selected-size-chip,
.selected-token-chip {
    min-height: 34px;
    padding: 7px 11px;
}

.selected-size-chip::after,
.selected-token-chip::after {
    content: "×";
    margin-right: 7px;
    color: var(--coral);
}

.empty-selected-size,
.empty-selected-token {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: var(--muted);
    font-weight: 800;
}

.size-groups,
.token-groups {
    display: grid;
    gap: 12px;
}

.size-group,
.token-group {
    display: grid;
    gap: 8px;
}

.size-group strong,
.token-group strong {
    font-size: 14px;
}

.size-options,
.token-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 8px;
}

.size-option,
.token-option {
    min-height: 42px;
    padding: 8px 10px;
}

.color-token-options {
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}

.color-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.color-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid rgba(24, 32, 47, 0.18);
    border-radius: 999px;
    background: var(--swatch);
}

.size-option:hover,
.token-option:hover,
.selected-size-chip:hover,
.selected-token-chip:hover {
    border-color: var(--market);
    color: var(--market);
}

.size-option.is-selected,
.token-option.is-selected {
    border-color: var(--market);
    background: var(--market);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.16);
}

.custom-size-row,
.custom-token-row {
    display: grid;
    gap: 8px;
}

.image-upload-field {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
    padding: 14px;
}

.image-upload-head {
    display: grid;
    gap: 4px;
}

.image-upload-head span {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.image-upload-head small {
    color: var(--muted);
    font-weight: 700;
}

.file-upload-box {
    position: relative;
    display: grid;
    gap: 6px;
    min-height: 98px;
    place-items: center;
    border: 1px dashed #9fcfc8;
    border-radius: 8px;
    background: #f1fbf9;
    padding: 18px;
    text-align: center;
    transition: 0.2s ease;
}

.file-upload-box:hover {
    border-color: var(--market);
    background: #e8f6f4;
}

.file-upload-box input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-box strong {
    color: var(--market);
}

.file-upload-box small {
    color: var(--muted);
    font-weight: 700;
}

.current-images-title {
    color: var(--ink);
    font-size: 14px;
}

.image-preview-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
}

.image-preview-strip img,
.upload-preview-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    background: #eef1f4;
}

.upload-preview-strip {
    border: 1px solid #d8eee9;
    border-radius: 8px;
    background: #f7fbfa;
    padding: 8px;
}

.upload-preview-item {
    display: grid;
    gap: 6px;
}

.upload-preview-item button {
    min-height: 30px;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    background: #fff1f2;
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
}

.form-actions,
.table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.table-scroll {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: right;
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background 0.18s ease;
}

.admin-table tbody tr:hover {
    background: #f8fbfb;
}

.admin-table th {
    color: var(--muted);
    font-size: 13px;
}

.table-product {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.table-product img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #eef1f4;
}

.table-product-info {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.table-product-info > span {
    font-weight: 800;
}

.table-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-product-actions .btn {
    min-height: 34px;
    padding: 8px 11px;
    font-size: 13px;
}

.admin-store-grid {
    grid-template-columns: 1fr;
}

.orders-list {
    display: grid;
    gap: 14px;
}

.order-card {
    display: grid;
    gap: 14px;
}

.order-card-head {
    border-radius: 8px;
    background: #f8fbfb;
    padding: 12px;
}

.order-card-head,
.order-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.order-card h2 {
    margin: 0;
}

.order-card p {
    margin: 6px 0;
    color: var(--muted);
}

.order-card small {
    color: var(--muted);
}

.order-details-grid {
    display: grid;
    gap: 14px;
    border-block: 1px solid var(--line);
    padding-block: 14px;
}

.order-items {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.order-items li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.order-items li > span {
    flex: 0 0 auto;
    color: var(--ink);
    font-weight: 800;
}

.order-item-main {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.order-item-main > span {
    color: var(--ink);
    font-weight: 800;
}

.order-item-main small {
    color: var(--muted);
    line-height: 1.6;
}

.order-invoice {
    display: grid;
    gap: 10px;
    border: 1px solid #d8eee9;
    border-radius: 8px;
    background: #f7fbfa;
    padding: 12px;
}

.order-invoice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.order-invoice-head strong {
    font-size: 16px;
}

.invoice-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.invoice-metrics div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.invoice-metrics span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.invoice-metrics strong {
    font-size: 16px;
}

.invoice-metrics .profit-metric {
    border-color: #b7e5c9;
    background: #effaf4;
}

.profit-metric strong {
    color: var(--green);
}

.order-footer form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order-footer select {
    min-width: 180px;
}

@media (min-width: 560px) {
    .hero-actions,
    .detail-actions {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .custom-size-row,
    .custom-token-row {
        grid-template-columns: 1fr auto;
    }

    .detail-gallery.has-video .detail-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .detail-gallery.has-video .detail-image-frame {
        aspect-ratio: 16 / 9;
    }

    .cart-item {
        grid-template-columns: 110px 1fr auto;
        align-items: center;
    }

    .cart-controls {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-end;
    }
}

@media (min-width: 820px) {
    .header-search {
        display: flex;
    }

    .mobile-search {
        display: none;
    }

    .site-nav {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr 0.92fr;
        align-items: center;
        padding-block: 52px;
    }

    .hero-copy {
        order: 1;
    }

    .hero-media {
        order: 2;
    }

    .hero h1 {
        font-size: 50px;
    }

    .product-detail-grid,
    .checkout-grid,
    .cart-grid {
        grid-template-columns: 1fr 360px;
        align-items: start;
    }

    .detail-gallery.has-video .detail-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .detail-gallery:not(.has-video) .detail-image-frame {
        aspect-ratio: 5 / 4;
    }

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

    .detail-info .wide {
        grid-column: 1 / -1;
    }

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

    .order-details-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .store-grid,
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

    .admin-shell {
        display: grid;
        grid-template-columns: 280px 1fr;
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        min-height: 100vh;
        border-bottom: 0;
        border-left: 1px solid var(--line);
        padding: 24px 18px;
        box-shadow: -14px 0 30px rgba(24, 32, 47, 0.035);
    }

    .admin-sidebar nav {
        display: grid;
        overflow: visible;
    }

    .admin-main {
        padding: 22px;
    }

    .admin-mobile-logo {
        display: none;
    }
}

@media (max-width: 559px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        gap: 8px;
        font-size: 17px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .stack-on-mobile {
        align-items: stretch;
        flex-direction: column;
    }

    .section-head,
    .admin-page-head,
    .admin-card-head {
        align-items: start;
    }

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

@media (max-width: 559px) {
    body {
        background: #f7f8fb;
    }

    .site-body {
        padding-bottom: 104px;
    }

    .site-header {
        border-bottom: 0;
        background: rgba(247, 248, 251, 0.92);
        box-shadow: 0 10px 24px rgba(24, 32, 47, 0.06);
    }

    .header-inner {
        padding-block: 9px;
    }

    .cart-button {
        min-height: 38px;
        padding: 8px 11px;
        border-radius: 12px;
        font-size: 13px;
    }

    .mobile-search {
        padding-bottom: 10px;
    }

    .mobile-search form {
        overflow: hidden;
        border: 1px solid rgba(230, 233, 239, 0.95);
        border-radius: 16px;
        background: #fff;
        padding: 4px;
        box-shadow: 0 12px 28px rgba(24, 32, 47, 0.07);
    }

    .mobile-search input {
        min-height: 42px;
        border: 0;
        border-radius: 13px;
        background: transparent;
        padding: 9px 12px;
        box-shadow: none;
    }

    .mobile-search button {
        min-height: 38px;
        width: 62px;
        border-radius: 12px;
        background: var(--market);
    }

    .hero-grid {
        gap: 14px;
        padding-block: 18px 22px;
    }

    .hero-media {
        border-radius: 16px;
    }

    .hero-media img {
        aspect-ratio: 16 / 10;
    }

    .hero-media-card {
        right: 10px;
        bottom: 10px;
        width: min(78%, 250px);
        padding: 10px 12px;
    }

    .hero-media-card strong {
        font-size: 15px;
    }

    .hero-chip {
        margin-bottom: 10px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .hero h1 {
        max-width: 340px;
        font-size: 28px;
    }

    .hero p {
        margin-top: 10px;
        font-size: 15px;
        line-height: 1.65;
    }

    .hero-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 16px;
    }

    .hero-actions .btn {
        min-height: 42px;
        padding: 10px;
        font-size: 13px;
    }

    .hero-highlights {
        margin-top: 10px;
        gap: 6px;
    }

    .hero-highlights span {
        padding: 6px 8px;
        font-size: 11px;
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
        margin-top: 14px;
    }

    .steps div {
        min-height: 74px;
        padding: 9px 6px;
    }

    .steps strong {
        width: 25px;
        height: 25px;
        margin-bottom: 6px;
        font-size: 12px;
    }

    .steps span {
        font-size: 11px;
    }

    .section {
        padding-block: 24px;
    }

    .section-head {
        margin-bottom: 14px;
    }

    .section-head h1,
    .section-head h2 {
        font-size: 23px;
    }

    .section-head a {
        font-size: 13px;
    }

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

    .category-card {
        border-radius: 14px;
    }

    .category-card img {
        aspect-ratio: 1.12;
    }

    .category-card .card-body {
        padding: 10px;
    }

    .card-title-row {
        align-items: flex-start;
    }

    .category-card h3 {
        font-size: 15px;
        line-height: 1.35;
    }

    .category-card p {
        display: none;
    }

    .mini-chip {
        padding: 4px 7px;
        font-size: 10px;
    }

    .category-card strong {
        margin-top: 8px;
        font-size: 12px;
    }

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

    .product-card {
        border-radius: 14px;
        box-shadow: 0 10px 26px rgba(24, 32, 47, 0.08);
    }

    .product-image img {
        aspect-ratio: 1;
    }

    .product-image-top {
        top: 7px;
        right: 7px;
        left: 7px;
        gap: 4px;
    }

    .product-image-top .badge,
    .badge-warm {
        padding: 4px 7px;
        font-size: 10px;
    }

    .image-count {
        bottom: 7px;
        left: 7px;
        padding: 4px 7px;
        font-size: 10px;
    }

    .product-body {
        padding: 10px;
    }

    .product-card-head {
        align-items: flex-start;
        gap: 5px;
    }

    .product-card .eyebrow {
        max-width: 58%;
        overflow: hidden;
        padding: 4px 7px;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
    }

    .store-pill {
        max-width: 42%;
        padding: 4px 7px;
        font-size: 10px;
    }

    .product-card h3 {
        min-height: 40px;
        margin-top: 8px;
        font-size: 14px;
        line-height: 1.4;
    }

    .product-options {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 7px;
        padding: 7px;
    }

    .product-options > div:nth-child(2) {
        display: none;
    }

    .option-label {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .option-chips {
        min-height: 22px;
        gap: 4px;
    }

    .option-chips span {
        min-width: 25px;
        padding: 3px 6px;
        font-size: 10px;
    }

    .price-row {
        display: block;
        margin-top: 8px;
        padding: 8px;
    }

    .price-row span {
        display: none;
    }

    .price {
        font-size: 16px;
    }

    .product-actions {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-top: 8px;
    }

    .product-actions .btn {
        min-height: 36px;
        padding: 8px 6px;
        font-size: 12px;
    }

    .product-actions .btn-light {
        display: none;
    }

    .filters {
        gap: 8px;
        padding: 10px;
    }

    .filters input,
    .filters select,
    .filters .btn {
        min-height: 40px;
        padding: 9px 10px;
        font-size: 13px;
    }

    .store-grid {
        gap: 10px;
    }

    .store-card {
        border-radius: 14px;
        padding: 12px;
    }

    .detail-panel,
    .summary-card,
    .form-panel,
    .cart-item {
        border-radius: 14px;
    }

    .mobile-app-nav {
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-width: 430px;
        border-radius: 20px;
        padding: 7px;
    }

    .mobile-app-nav a {
        min-height: 56px;
        border-radius: 16px;
    }
}

/* ==========================================
   PWA Installation UI
   ========================================== */
.pwa-banner {
    position: fixed;
    bottom: 90px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    padding: 16px;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.pwa-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.pwa-banner-text {
    flex: 1;
}

.pwa-banner-text h3 {
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 700;
}

.pwa-banner-text p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.pwa-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    position: absolute;
    top: -8px;
    left: -4px;
}

/* iOS Modal Guide */
.pwa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pwa-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}

.pwa-modal-content {
    position: relative;
    background: var(--surface);
    width: 100%;
    max-width: 450px;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    z-index: 10001;
    text-align: center;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--bg);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.pwa-modal h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}

.pwa-modal-desc {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 20px 0;
}

.ios-instructions {
    text-align: right;
    margin: 0 0 24px 0;
    padding-right: 20px;
    font-size: 14px;
    color: var(--ink);
}

.ios-instructions li {
    margin-bottom: 16px;
    line-height: 1.6;
}

.ios-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 4px;
}

.share-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230079FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="17 11 12 6 7 11"/><line x1="12" y1="6" x2="12" y2="18"/><path d="M19 12v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-6"/></svg>');
}

.add-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23333333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><line x1="12" y1="8" x2="12" y2="16"/><line x1="8" y1="12" x2="16" y2="12"/></svg>');
}

.btn.full {
    width: 100%;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (min-width: 768px) {
    .pwa-banner {
        max-width: 400px;
        right: auto;
        left: 24px;
        bottom: 24px;
    }
}

