﻿:root {
    --primary: #1f4b99;
    --secondary: #eef2f7;
    --ink: #111827;
    --paper: #f3f4f6;
    --cream: #ffffff;
    --panel: rgba(255, 255, 255, 0.96);
    --border: rgba(17, 24, 39, 0.1);
    --success: #15803d;
    --radius: 18px;
    --shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    --container: 1180px;
    --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; color: var(--ink); background: #f5f6f8; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-body, .admin-auth-body { min-height: 100vh; }
.site-body { display: flex; }
.site-body { overflow-x: clip; }
.admin-auth-body {
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(17,24,39,0.08), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
.store-shell { min-height: 100vh; width: 100%; display: flex; flex-direction: column; }
.store-shell > :not(.site-footer) { width: 100%; }
.site-footer { margin-top: auto; }
.section {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 28px var(--gutter);
}
.section--soft { background: rgba(255,255,255,0.45); border-radius: 32px; padding: 28px 20px; margin-top: 18px; }
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(0,0,0,0.92); border-bottom: 1px solid rgba(255,255,255,0.08); }
.topbar__inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.store-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.store-brand img { width: 56px; height: 56px; object-fit: contain; }
.store-brand__logo-only { width: auto !important; height: 52px !important; max-width: 220px; border-radius: 0 !important; background: transparent !important; }
.store-brand__badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-family: "Fraunces", serif; font-size: 1.2rem; color: #fff; background: #111827; }
.store-brand strong { display: block; font-family: "Sora", sans-serif; font-size: 1.2rem; }
.store-brand span:last-child { display: block; color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.topbar__nav { display: none; gap: 20px; font-weight: 700; }
.topbar__nav a, .admin-nav a { display: inline-flex; align-items: center; gap: 10px; }
.topbar__nav a { padding: 10px 0; position: relative; color: rgba(255,255,255,0.86); }
.topbar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform 0.2s ease; }
.topbar__nav a:hover::after { transform: scaleX(1); }
.topbar-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 460px;
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}
.topbar-search__button {
    border: 0;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}
.topbar-search input {
    width: 100%;
    min-width: 0;
    min-height: 28px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 0.88rem;
}
.topbar-search input::placeholder { color: rgba(255,255,255,0.58); }
.icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
    color: currentColor;
}
.icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}
.topbar__cart, .floating-cart { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.topbar__cart { min-height: 50px; padding: 10px 16px; border-radius: 999px; color: #111827; background: #fff; }
.topbar__cart-label { display: inline-flex; align-items: center; gap: 10px; }
.topbar__cart-icon-wrap {
    position: relative;
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 22px;
}
.topbar__cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #111827;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.hero__copy, .panel, .product-card, .category-card, .success-card, .login-card, .stat-card, .table-panel, .footer-cta__card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-copy h1, .success-card h1, .login-card h1, .admin-header h1, .footer-cta__card h2, .section-heading h2 { font-family: "Sora", sans-serif; line-height: 1.08; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--primary); font-weight: 800; }
.hero__actions, .card-actions, .detail-actions, .table-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.checkout-intro strong { display: block; margin-bottom: 4px; }

.btn { border: 0; border-radius: 18px; padding: 16px 22px; font-weight: 800; cursor: pointer; min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform 0.18s ease, opacity 0.18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn--primary { background: #111827; color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn--ghost { background: transparent; color: var(--primary); border: 1px dashed rgba(31,75,153,0.35); }
.btn--danger { background: rgba(254,242,242,0.96); color: #b91c1c; border: 1px solid rgba(220,38,38,0.22); }
.btn--xl { width: 100%; }
.btn--compact { min-height: 48px; padding: 12px 18px; border-radius: 14px; }
.btn__icon { width: 24px; height: 24px; border-radius: 999px; display: inline-grid; place-items: center; background: currentColor; color: #fff; font-size: 0.78rem; font-weight: 800; line-height: 1; }
.btn--secondary .btn__icon { background: #111827; }
.whatsapp-mark {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    color: #25d366;
}
.whatsapp-mark svg {
    width: 22px;
    height: 22px;
    display: block;
}

.section-heading { margin-bottom: 18px; }
.section-heading h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 0 0 6px; }
.section-heading--tight { margin-bottom: 14px; }
.catalog-heading-with-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.catalog-heading-with-link a { color: var(--primary); font-weight: 700; }
.category-grid, .product-grid, .stats-grid { display: grid; gap: 18px; }
.home-hero__panel, .site-footer__grid, .product-card__footer { display: grid; gap: 18px; }
.product-grid--featured {
    display: block;
    column-count: 2;
    column-gap: 4px;
}
.product-grid--featured > .product-card,
.product-grid--featured > .feed-sentinel {
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}
.product-grid--featured > .product-card {
    display: inline-flex;
    margin: 0 0 4px;
}
.product-grid--featured > .feed-sentinel {
    display: block;
    height: 1px;
    margin: 0;
}
.home-promo { padding-top: 14px; padding-bottom: 0; }
.storefront-highlight { padding-top: 10px; }
.promo-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #d1d5db;
    aspect-ratio: 5 / 2;
}
.promo-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.promo-carousel__track::-webkit-scrollbar { display: none; }
.promo-carousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: block;
}
.promo-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.promo-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.promo-carousel__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.42);
    cursor: pointer;
}
.promo-carousel__dot.is-active {
    width: 7px;
    background: #fff;
}
.promo-wireframe {
    min-height: 0;
    aspect-ratio: 5 / 2;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(17,24,39,0.08), rgba(17,24,39,0.03)),
        #e5e7eb;
    border: 1px dashed rgba(17,24,39,0.18);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.promo-wireframe__copy {
    display: grid;
    gap: 8px;
    text-align: center;
    color: #4b5563;
}
.promo-wireframe__copy span {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
}
.promo-wireframe__copy strong {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-family: "Sora", sans-serif;
}
.home-hero__panel { grid-template-columns: 1.2fr 0.8fr; padding: 26px; border-radius: 28px; background:
    radial-gradient(circle at top right, rgba(31,75,153,0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.home-hero__copy { display: grid; gap: 14px; align-content: center; }
.home-hero__copy h1 { margin: 0; font-family: "Sora", sans-serif; font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.home-hero__copy p { margin: 0; max-width: 620px; font-size: 1.04rem; line-height: 1.75; color: #4b5563; }
.home-hero__aside { display: grid; gap: 14px; }
.home-hero__card { padding: 20px; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06); }
.home-hero__card strong { display: block; margin-bottom: 6px; font-size: 1.15rem; }
.home-hero__card span { color: #667085; }
.category-strip { padding-top: 30px; }
.category-card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.category-showcase-card { overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.category-showcase-card img { width: 100%; height: 190px; object-fit: cover; }
.category-showcase-card--text {
    display: flex;
    min-height: 0;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}
.category-showcase-card--text .category-showcase-card__copy {
    width: 100%;
    min-height: 148px;
    align-content: center;
    padding: 22px 18px;
    background:
        radial-gradient(circle at top right, rgba(31, 75, 153, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.category-showcase-card__copy { padding: 16px; display: grid; gap: 6px; }
.category-showcase-card__copy strong { font-size: 1.08rem; }
.category-showcase-card__copy span { color: #667085; }
.category-directory { padding-top: 22px; }
.category-directory__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.category-directory__card {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.category-directory__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(17, 24, 39, 0.1);
    border-color: rgba(17,24,39,0.14);
}
.category-directory__card img { width: 100%; height: 188px; object-fit: cover; }
.category-directory__card--text {
    min-height: 190px;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(31, 75, 153, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.category-directory__copy { padding: 16px; display: grid; gap: 8px; }
.category-directory__copy strong { font-size: 1.04rem; line-height: 1.2; }
.category-directory__copy p { margin: 0; color: #667085; line-height: 1.5; font-size: 0.9rem; }
.category-directory__cta {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.92rem;
}
.category-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.category-pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-weight: 700; }
.category-pill strong { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: #f3f4f6; font-size: 0.82rem; }
.category-card { padding: 24px; position: relative; overflow: hidden; }
.category-card::after { display: none; }
.category-card strong { display: block; font-size: 1.32rem; margin-bottom: 8px; }
.category-card span { color: var(--primary); font-weight: 800; }
.feed-tabs-wrap {
    position: sticky;
    top: 82px;
    z-index: 44;
    margin-bottom: 6px;
    background: transparent;
    border-bottom: 0;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.feed-tabs-wrap.is-stuck {
    background: transparent;
}
.feed-tabs-wrap.is-stuck::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 50dvw);
    width: 100dvw;
    transform: none;
    background: rgba(0,0,0,0.94);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: -1;
    opacity: 1;
    transition: opacity 0.2s ease;
}
.feed-tabs-wrap::before {
    opacity: 0;
}
.feed-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.feed-tabs-wrap.is-stuck .feed-tabs {
    transform: translateY(0);
    opacity: 1;
}
.feed-tabs-wrap:not(.is-stuck) .feed-tabs {
    transform: translateY(-2px);
    opacity: 0.98;
}
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #9ca3af;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.feed-tab.is-active {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.feed-tabs-wrap.is-stuck .feed-tab { color: rgba(255,255,255,0.58); }
.feed-tabs-wrap.is-stuck .feed-tab.is-active {
    color: #fff;
    border-color: #fff;
}

.feed-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.feed-results-head strong { font-family: "Sora", sans-serif; font-size: 1rem; }

.feed-results-head span { color: #667085; font-size: 0.9rem; }

.feed-empty-state {
    margin-top: 16px;
    padding: 20px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    text-align: center;
    color: #667085;
}
.feed-loading {
    margin-top: 14px;
    text-align: center;
    color: #667085;
    font-size: 0.92rem;
}
.feed-sentinel { width: 100%; height: 1px; }

.product-card { overflow: hidden; display: flex; flex-direction: column; background: #fff; border-radius: 14px; }
.product-card {
    position: relative;
    opacity: 0;
    transform: translateY(14px);
    animation: productCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.product-card:nth-child(2n) { animation-delay: 0.04s; }
.product-card:nth-child(3n) { animation-delay: 0.08s; }
.product-card:nth-child(4n) { animation-delay: 0.12s; }
.product-card:nth-child(5n) { animation-delay: 0.16s; }
.product-card--skeleton {
    opacity: 1;
    transform: none;
    animation: none;
    pointer-events: none;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: #fff;
}
.product-card--skeleton .product-card__media,
.product-card--skeleton .product-card__body {
    background: #fff;
}
.product-skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #e5e7eb;
}
.product-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.65) 42%, transparent 100%);
    transform: translateX(-130%);
    animation: skeletonShimmer 1s ease-in-out infinite;
}
.product-skeleton--media {
    width: 100%;
    height: 100%;
    border-radius: 0;
}
.product-skeleton--title {
    height: 18px;
    width: 82%;
}
.product-skeleton--text {
    height: 12px;
    width: 100%;
}
.product-skeleton--text-short {
    width: 68%;
}
.product-skeleton--price {
    height: 18px;
    width: 74px;
}
.product-skeleton--badge {
    height: 16px;
    width: 78px;
    border-radius: 999px;
    justify-self: end;
}
.product-card--skeleton .product-card__body {
    padding: 11px 11px 12px;
    display: grid;
    gap: 6px;
}
.product-card--skeleton .product-card__footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}
.product-card--skeleton.product-card--masonry-1 .product-card__media { height: 236px; }
.product-card--skeleton.product-card--masonry-2 .product-card__media { height: 260px; }
.product-card--skeleton.product-card--masonry-3 .product-card__media { height: 224px; }
.product-card--skeleton.product-card--masonry-4 .product-card__media { height: 250px; }
.product-card--link { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.product-card--link:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(17, 24, 39, 0.12); border-color: rgba(17,24,39,0.16); }
.product-card__media { display: block; overflow: hidden; background: #f3f4f6; }
.product-card__media img, .product-card > img { width: 100%; height: 228px; object-fit: cover; transition: transform 0.25s ease; }
.product-card:hover .product-card__media img, .product-card:hover > img { transform: scale(1.04); }
.product-card__body { padding: 11px 11px 12px; display: grid; gap: 6px; }
.product-card__meta { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 0; }
.product-card__pill { padding: 7px 10px; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: 0.8rem; font-weight: 800; }
.product-card__body h3 { font-size: 0.99rem; margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
.product-card__body h3 a { color: inherit; }
.product-card__body p { margin: 0; color: #4b5563; line-height: 1.4; font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__footer { grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.product-card__sold { padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: #334155; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.product-card__actions { display: flex; margin-top: 4px; }
.product-card__cta {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: #111827;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}
.product-card__cta:hover { transform: translateY(-1px); }
.product-card__cta--disabled {
    background: #e5e7eb;
    color: #6b7280;
    cursor: default;
}
.price-tag { font-size: 1.02rem; font-weight: 800; color: var(--primary); line-height: 1.1; display: inline-flex; align-items: flex-start; gap: 1px; }
.price-tag__symbol { font-size: 0.8em; line-height: 1.15; }
.price-tag__decimals { font-size: 0.62em; line-height: 1.15; opacity: 0.9; }
.price-tag--large { font-size: 2rem; display: inline-flex; margin-bottom: 10px; }
.product-card--masonry-2 .product-card__media img { height: 260px; }
.product-card--masonry-3 .product-card__media img { height: 224px; }
.product-card--masonry-4 .product-card__media img { height: 250px; }
.floating-cart {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    width: fit-content;
    inline-size: fit-content;
    height: auto;
    min-width: 0;
    max-width: fit-content;
    background: var(--ink);
    color: #fff;
    padding: 10px 12px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    z-index: 30;
    white-space: nowrap;
}
@keyframes productCardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes skeletonShimmer {
    from { transform: translateX(-130%); }
    to { transform: translateX(130%); }
}
.floating-cart__icon-wrap {
    position: relative;
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 22px;
}
.floating-cart .icon { width: 18px; height: 18px; flex-basis: 18px; }
.floating-cart .icon svg { width: 16px; height: 16px; }
.floating-cart__label { font-size: 0.94rem; line-height: 1; }
.floating-cart__badge {
    position: absolute;
    top: -7px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #111827;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}
.mobile-search-dock {
    display: none;
    position: sticky;
    top: 82px;
    z-index: 45;
    padding: 10px var(--gutter) 10px;
    background: rgba(0,0,0,0.94);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
}
.mobile-search-dock.is-visible { pointer-events: auto; }
.mobile-search-dock__inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.mobile-search-dock.is-visible .mobile-search-dock__inner {
    transform: translateY(0);
    opacity: 1;
}
.mobile-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 10px 0 14px;
    border-radius: 999px;
    background: rgba(0,0,0,0.94);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 14px 26px rgba(17,24,39,0.18);
}
.mobile-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    min-height: 36px;
    color: #fff;
}
.mobile-search input::placeholder { color: rgba(255,255,255,0.58); }
.mobile-search__button {
    min-width: 72px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 800;
}
.site-footer { margin-top: auto; padding: 44px 0 36px; background: #0b0b0c; color: rgba(255,255,255,0.88); }
.not-found-page {
    flex: 1;
    display: grid;
    place-items: center;
    padding-top: 38px;
    padding-bottom: 48px;
}
.not-found-card {
    width: min(620px, 100%);
    padding: 34px 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}
.not-found-card__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}
.not-found-card h1 {
    margin: 0 0 10px;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.05;
}
.not-found-card p {
    margin: 0 auto;
    max-width: 460px;
    color: #667085;
    line-height: 1.7;
}
.not-found-card__actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}
.site-footer__grid { grid-template-columns: minmax(240px, 1.2fr) repeat(auto-fit, minmax(160px, 0.9fr)); align-items: start; }
.site-footer__logo { max-width: 180px; max-height: 54px; object-fit: contain; margin-bottom: 12px; }
.site-footer__brand strong { display: block; margin-bottom: 12px; font-family: "Sora", sans-serif; font-size: 1.2rem; }
.site-footer__brand p, .site-footer__text { color: rgba(255,255,255,0.64); line-height: 1.7; }
.site-footer__title { display: block; margin-bottom: 12px; color: #fff; font-weight: 800; }
.site-footer a, .site-footer__text { display: block; margin-bottom: 8px; }
.site-footer__social-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #fff;
    width: fit-content;
}
.site-footer__social-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 18px;
}
.site-footer__social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.site-footer__credit { padding-top: 0; text-align: center; }
.site-footer__credit a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.68);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0;
}
.site-footer__credit a span { color: #ef4444; }
.page-category .topbar { display: none; }
.category-app-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(0,0,0,0.94);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
}
.category-app-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 12px var(--gutter);
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 12px;
}
.category-app-header__brand { display: inline-flex; align-items: center; }
.category-app-header__brand .store-brand__logo-only { height: 42px !important; max-width: 170px; }
.category-app-header__brand .store-brand__badge { width: 42px; height: 42px; font-size: 1rem; }
.category-app-header__title {
    color: #fff;
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-app-header .product-app__icon-button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: inline-grid;
    place-items: center;
}
.category-app-header__back {
    display: none;
}
.category-products { padding-top: 18px; }

.detail-grid, .cart-layout, .admin-shell { display: grid; gap: 20px; }
.product-app__header,
.product-bottom-bar { display: none; }
.product-app__gallery {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px var(--gutter) 0;
    background: transparent;
}
.product-app__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(31,75,153,0.08), transparent 30%),
        #fff;
    box-shadow: var(--shadow);
}
.product-app__track::-webkit-scrollbar { display: none; }
.product-app__slide {
    flex: 0 0 100%;
    padding: 0;
    border: 0;
    background: transparent;
    scroll-snap-align: start;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}
.product-app__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(17,24,39,0.12)),
        var(--slide-image);
    background-size: cover;
    background-position: center;
    filter: blur(26px) saturate(1.08);
    transform: scale(1.12);
    opacity: 0.42;
    pointer-events: none;
}
.product-app__slide img {
    width: min(100%, 980px);
    height: min(68vh, 560px);
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.product-app__counter {
    position: absolute;
    right: calc(var(--gutter) + 14px);
    bottom: 14px;
    min-width: 54px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17,24,39,0.72);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    text-align: center;
}
@media (min-width: 961px) {
    .product-app {
        max-width: var(--container);
        margin: 0 auto;
        padding: 22px var(--gutter) 0;
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
        gap: 28px;
        align-items: start;
    }
    .product-app__gallery {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    .product-app__track {
        border-radius: 28px;
    }
    .product-app__slide img {
        width: 100%;
        max-width: 100%;
        height: min(72vh, 620px);
        object-fit: contain;
    }
    .product-app__counter {
        right: 14px;
    }
    .product-app__content.section {
        padding: 0;
    }
    .detail-copy {
        position: sticky;
        top: 94px;
        padding: 10px 0 0;
    }
}
.gallery-stage { border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.js-gallery-stage { position: relative; }
.gallery-stage img { width: 100%; height: 480px; object-fit: cover; }
.gallery-nav, .gallery-expand { position: absolute; z-index: 2; border: 0; cursor: pointer; }
.gallery-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px; background: rgba(17,24,39,0.68); color: #fff; font-size: 1.8rem; }
.gallery-nav--prev { left: 14px; }
.gallery-nav--next { right: 14px; }
.gallery-expand { right: 14px; bottom: 14px; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--ink); font-weight: 700; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumb-button { width: 88px; height: 88px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; }
.thumb-button.is-active { outline: 2px solid #111827; outline-offset: 2px; }
.thumb-button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.gallery-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.94); }
.gallery-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    background: #000;
    display: grid;
    grid-template-rows: auto 1fr;
}
.gallery-modal__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #fff;
}
.gallery-modal__count {
    min-width: 56px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    text-align: center;
    font-size: 0.84rem;
    font-weight: 800;
}
.gallery-modal__close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}
.gallery-modal__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.gallery-modal__track::-webkit-scrollbar { display: none; }
.gallery-modal__slide {
    flex: 0 0 100%;
    display: grid;
    place-items: center;
    scroll-snap-align: start;
    padding: 12px 16px 24px;
    position: relative;
    overflow: hidden;
}
.gallery-modal__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at center, rgba(255,255,255,0.04), rgba(0,0,0,0.38)),
        var(--slide-image);
    background-size: cover;
    background-position: center;
    filter: blur(32px) saturate(1.04);
    transform: scale(1.14);
    opacity: 0.34;
    pointer-events: none;
}
.gallery-modal__slide img {
    width: 100%;
    height: calc(100vh - 110px);
    object-fit: contain;
    background: #000;
    position: relative;
    z-index: 1;
}
.detail-copy { padding: 12px 0; }
.detail-price-top {
    display: inline-flex;
    margin-bottom: 10px;
}
.detail-variant-picker {
    display: grid;
    gap: 14px;
    margin: 18px 0 14px;
}
.detail-variant-picker__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.detail-variant-picker__head strong {
    font-size: 1rem;
    font-family: "Sora", sans-serif;
}
.detail-variant-picker__head span {
    color: #667085;
    font-size: 0.92rem;
}
.detail-variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 104px));
    gap: 8px;
    justify-content: start;
}
.detail-variant-card {
    border: 1px solid rgba(17,24,39,0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,244,238,0.96));
    border-radius: 14px;
    padding: 5px;
    display: grid;
    gap: 5px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.detail-variant-card:hover {
    transform: translateY(-2px);
    border-color: rgba(184,77,20,0.28);
}
.detail-variant-card.is-active {
    border-color: rgba(184,77,20,0.72);
    box-shadow: 0 18px 34px rgba(184,77,20,0.16);
}
.detail-variant-card__thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1 / 1;
}
.detail-variant-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-variant-card__copy {
    display: grid;
    gap: 2px;
}
.detail-variant-card__copy strong {
    font-size: 0.72rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.detail-variant-card__copy small {
    color: var(--primary);
    line-height: 1.2;
    font-size: 0.64rem;
    font-weight: 800;
}
.detail-description-card {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(17,24,39,0.08);
}
.detail-description-card strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #111827;
}
.detail-description {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.8;
    white-space: pre-line;
}
.detail-note-list { display: grid; gap: 10px; margin: 18px 0; }
.detail-note-list div { display: flex; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid rgba(17,24,39,0.08); }
.qty-selector { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0; background: #fff; padding: 8px; border-radius: 20px; border: 1px solid var(--border); }
.qty-btn { width: 54px; height: 54px; border: 0; border-radius: 16px; font-size: 1.8rem; background: var(--secondary); }
.qty-input { width: 76px; text-align: center; border: 0; font-size: 1.3rem; background: transparent; }

.panel { padding: 20px; }
.panel--sticky { position: sticky; top: 100px; }
.checkout-intro { margin-bottom: 18px; padding: 16px; border-radius: 16px; background: #f8fafc; }
.checkout-form, .admin-form { display: grid; gap: 16px; }
.checkout-form label span, .admin-form label span { display: block; margin-bottom: 8px; font-weight: 800; }
.checkout-form input, .checkout-form textarea, .admin-form input, .admin-form textarea, .admin-form select, .inline-form select { width: 100%; min-height: 56px; border-radius: 18px; border: 1px solid var(--border); padding: 14px 16px; background: #fff; }
.customer-field { display: grid; gap: 8px; }
.customer-field > span:first-child { display: block; font-weight: 800; }
.customer-input-wrap {
    position: relative;
    display: block;
}
.customer-input-wrap input {
    padding-right: 56px;
}
.customer-input-indicator {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: none;
    place-items: center;
    border: 1px solid transparent;
    background: transparent;
}
.customer-input-indicator::before {
    content: "";
    display: block;
}
.customer-input-wrap.is-loading .customer-input-indicator {
    display: inline-grid;
    border-color: rgba(17,24,39,0.14);
    background: #fff;
}
.customer-input-wrap.is-loading .customer-input-indicator::before {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(17,24,39,0.18);
    border-top-color: #111827;
    animation: spin 0.8s linear infinite;
}
.customer-input-wrap.is-success .customer-input-indicator {
    display: inline-grid;
    background: #16a34a;
    color: #fff;
}
.customer-input-wrap.is-success .customer-input-indicator::before {
    content: "✓";
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
}
.customer-input-wrap.is-success input {
    border-color: rgba(22,163,74,0.32);
    background: #f0fdf4;
}
.customer-input-wrap.is-loading input {
    border-color: rgba(17,24,39,0.18);
}
.summary-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px; border-radius: 16px; background: #f8fafc; }
.summary-box div { display: grid; gap: 4px; }
.summary-box strong { font-size: 1.25rem; }
.hint-box, .alert { padding: 14px 16px; border-radius: 14px; background: #f8fafc; border: 1px solid rgba(17,24,39,0.1); }
.alert--success { background: rgba(47,122,82,0.1); border-color: rgba(47,122,82,0.18); }
.cart-items, .simple-list, .customer-stack, .mini-order-list { display: grid; gap: 14px; }
.cart-row, .mini-order-row, .simple-list__row, .customer-head { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.cart-row { padding: 14px; border-radius: 18px; background: #fff; }
.cart-row img, .mini-order-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 18px; }
.cart-row__meta, .mini-order-row div { flex: 1; display: grid; gap: 4px; }
.cart-row__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}
.qty-selector--cart {
    margin: 0;
    padding: 6px;
}
.qty-selector--cart .qty-btn {
    width: 42px;
    height: 42px;
    font-size: 1.45rem;
}
.qty-selector--cart .qty-input {
    width: 54px;
    font-size: 1.08rem;
}
.cart-remove {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #f3f4f6;
    color: #6b7280;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    flex: 0 0 auto;
}
.cart-remove .icon { width: 16px; height: 16px; }
.cart-remove .icon svg { width: 16px; height: 16px; }
.empty-state { color: rgba(32,24,19,0.62); text-align: center; padding: 20px 0; }
.empty-state--admin {
    grid-column: 1 / -1;
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 28px;
    border: 1px dashed rgba(17,24,39,0.14);
    background:
        radial-gradient(circle at top right, rgba(31,75,153,0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #667085;
    font-size: 0.98rem;
    line-height: 1.7;
}
.empty-state--admin::before {
    content: "";
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    border-radius: 14px;
    display: block;
    background:
        radial-gradient(circle at center, rgba(31,75,153,0.18) 0, rgba(31,75,153,0.18) 32%, transparent 34%),
        linear-gradient(180deg, rgba(17,24,39,0.06) 0%, rgba(17,24,39,0.02) 100%);
}
.is-hidden { display: none !important; }
@keyframes spin {
    to { transform: rotate(360deg); }
}
.back-link { display: inline-flex; margin-bottom: 16px; font-weight: 800; color: var(--primary); }
.cart-app-header { display: none; }
.admin-auth-wrap {
    width: 100%;
    display: grid;
    place-items: center;
}
.success-page, .login-card { min-height: calc(100vh - 84px); display: grid; place-items: center; }
.success-card, .login-card { width: min(720px, calc(100% - 32px)); padding: 28px; }
.login-card {
    width: min(460px, 100%);
    min-height: 0;
    padding: 32px;
    justify-items: stretch;
    align-content: center;
    gap: 18px;
    margin: 0 auto;
}
.login-card h1 { text-align: center; }
.login-card__logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 14px 18px;
    border-radius: 22px;
    background: #111827;
}
.login-card__logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 74px;
    object-fit: contain;
    margin: 0 auto;
}
.login-card__brand-fallback {
    text-align: center;
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.admin-body { background: #f3f5f8; }
.admin-shell { min-height: 100vh; grid-template-columns: 280px 1fr; }
.admin-sidebar { padding: 28px 20px; background: #000; color: #fff; }
.admin-sidebar__top { margin-bottom: 24px; }
.admin-sidebar__sub { display: block; color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.admin-sidebar__close,
.admin-mobile-bar,
.admin-sidebar-backdrop { display: none; }
.brand-mark { display: block; font-family: "Sora", sans-serif; font-size: 1.4rem; margin-bottom: 8px; }
.admin-brand__logo-only { display: block; width: auto; max-width: 210px; height: 54px; object-fit: contain; }
.admin-nav { display: grid; gap: 10px; }
.admin-nav a { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav a:hover { background: rgba(255,255,255,0.12); }
.admin-nav__logout {
    background: rgba(239,68,68,0.14) !important;
    color: #fecaca !important;
    border: 1px solid rgba(239,68,68,0.22);
}
.admin-nav__logout:hover { background: rgba(239,68,68,0.22) !important; }
.admin-main { padding: 28px; }
.admin-header { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.admin-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-weight: 800;
}
.admin-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.search-field, .select-field { position: relative; display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.search-field { min-width: min(420px, 100%); gap: 10px; }
.search-field input, .select-field select { border: 0; outline: 0; background: transparent; min-height: 40px; width: 100%; }
.select-field { min-width: 190px; }
.promotion-target-fields { margin-top: 4px; }
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-tabs a { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.7); }
.filter-tabs .is-active { background: var(--ink); color: #fff; }
.dashboard-range-panel { margin-bottom: 18px; padding: 18px 20px; }
.dashboard-range-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}
.dashboard-range-form label { display: grid; gap: 8px; }
.dashboard-range-form span { font-weight: 800; }
.dashboard-range-panel__hint {
    margin: 12px 0 0;
    color: #667085;
    font-size: 0.92rem;
}
.stat-card { padding: 18px; display: grid; gap: 10px; }
.stat-card span { color: rgba(32,24,19,0.68); }
.stat-card strong { font-size: 2rem; }
.dashboard-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    padding: 22px;
    margin-bottom: 18px;
    background:
        radial-gradient(circle at top right, rgba(17,24,39,0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.dashboard-hero__copy { display: grid; gap: 10px; align-content: center; }
.dashboard-hero__copy h2 { margin: 0; font-family: "Sora", sans-serif; font-size: 1.8rem; }
.dashboard-hero__copy p { margin: 0; color: #667085; line-height: 1.7; max-width: 540px; }
.dashboard-hero__chart { display: grid; gap: 12px; }
.dashboard-chart-card {
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(17,24,39,0.06);
    display: grid;
    gap: 8px;
}
.dashboard-chart-card span { color: #667085; font-size: 0.9rem; }
.dashboard-chart-card strong { font-size: 1.35rem; }
.dashboard-chart-card__bar {
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}
.dashboard-chart-card__bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #111827 0%, #374151 100%);
}
.dashboard-stats-grid { margin-bottom: 18px; }
.stat-card--feature { position: relative; padding: 20px; }
.stat-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    background: #111827;
    color: #fff;
}
.stat-card--feature small { color: #667085; line-height: 1.5; }
.dashboard-panel { padding: 22px; }
.dashboard-product-list,
.dashboard-order-list { display: grid; gap: 12px; }
.dashboard-product-row,
.dashboard-order-row {
    display: grid;
    gap: 14px;
    align-items: center;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(17,24,39,0.06);
    padding: 12px 14px;
}
.dashboard-product-row {
    grid-template-columns: 68px minmax(0, 1fr) auto;
}
.dashboard-product-row img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 14px;
}
.dashboard-product-row__copy,
.dashboard-order-row__copy { display: grid; gap: 4px; min-width: 0; }
.dashboard-product-row__copy strong,
.dashboard-order-row__copy strong { font-size: 0.98rem; }
.dashboard-product-row__copy span,
.dashboard-order-row__copy span,
.dashboard-product-row__copy small { color: #667085; }
.dashboard-product-row__meta { text-align: right; }
.dashboard-order-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
}
.dashboard-order-row__avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    background: #111827;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}
.dashboard-order-row__meta {
    display: grid;
    gap: 8px;
    justify-items: end;
}
.dashboard-order-row__meta strong { font-size: 0.98rem; }
.table-panel { overflow: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th, .table td { padding: 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.status-badge { display: inline-flex; padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; }
.status-new { background: rgba(31,75,153,0.1); color: #1f4b99; }
.status-confirmed { background: rgba(39,110,241,0.12); color: #1950be; }
.status-completed { background: rgba(47,122,82,0.12); color: var(--success); }
.status-cancelled { background: rgba(179,44,44,0.12); color: #902020; }
.check-grid { display: grid; gap: 10px; }
.check-item { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.panel--form { padding: 24px; }
.panel--settings { max-width: 880px; }
.admin-dashboard-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-form__grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-form__grid--tight { align-items: start; }
.switch-item--inline {
    grid-template-columns: 1fr auto;
    align-items: center;
}
.settings-block {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(17,24,39,0.06);
}
.settings-block__head {
    display: grid;
    gap: 4px;
}
.settings-block__head strong {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
}
.settings-block__head small {
    color: #667085;
    line-height: 1.6;
}
.product-pricing-block.is-wholesale-disabled .js-wholesale-field {
    opacity: 0.56;
}
.product-variants-block {
    gap: 18px;
}
.product-variants-block__head {
    grid-template-columns: 1fr auto;
    align-items: center;
}
.variant-editor-list {
    display: grid;
    gap: 16px;
}
.variant-editor-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #fbf7f2);
    border: 1px solid rgba(17,24,39,0.08);
}
.variant-editor-card__top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}
.variant-editor-card__top strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Sora", sans-serif;
}
.variant-editor-card__top small {
    color: #667085;
    line-height: 1.5;
}
.variant-editor-card__remove {
    border: 0;
    background: transparent;
    color: #8a3b11;
    font-weight: 800;
    cursor: pointer;
}
.admin-gallery-preview--single {
    min-height: 0;
}
.privacy-page {
    padding-top: 30px;
    padding-bottom: 48px;
}
.privacy-page__card {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.privacy-content {
    color: #374151;
    line-height: 1.9;
    white-space: normal;
}
.cart-feedback-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 18px);
    z-index: 140;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(17,24,39,0.96);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 22px 48px rgba(17,24,39,0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
}
.cart-feedback-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.cart-fly-badge {
    position: fixed;
    z-index: 145;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    box-shadow: 0 22px 40px rgba(17,24,39,0.24);
    pointer-events: none;
    border: 2px solid rgba(255,255,255,0.86);
    background: #fff;
}
.cart-fly-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-fly-badge strong {
    position: absolute;
    right: -4px;
    top: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #111827;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(17,24,39,0.26);
}
.js-cart-anchor.is-cart-bump {
    animation: cartBump 0.72s ease;
}

@keyframes cartBump {
    0% { transform: scale(1); }
    35% { transform: scale(1.12); }
    62% { transform: scale(0.96); }
    100% { transform: scale(1); }
}
.form-field { display: grid; gap: 8px; }
.form-field > span { display: block; font-weight: 800; }
.file-field { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--border); cursor: pointer; transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; }
.file-field:hover,
.file-field.is-focused { border-color: rgba(17, 24, 39, 0.22); box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08); transform: translateY(-1px); }
.file-field__input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; overflow: hidden; }
.file-field__button {
    position: relative;
    display: inline-grid;
    place-items: center;
    min-width: 132px;
    height: 32px;
    padding: 0 14px 0 36px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.92rem;
    text-align: center;
    line-height: 32px;
}
.file-field__button::before,
.file-field__button::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.file-field__button::before {
    content: "+";
    left: 12px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.16);
    font-size: 0.9rem;
    line-height: 1;
}
.file-field__button::after {
    content: "";
    right: 12px;
    width: 16px;
    height: 16px;
}
.file-field__text { color: #667085; font-size: 0.95rem; }
.file-field.has-files .file-field__text { color: #111827; font-weight: 700; }
.admin-gallery-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.admin-gallery-preview figure { margin: 0; border-radius: 16px; overflow: hidden; background: #e5e7eb; aspect-ratio: 1 / 1; position: relative; border: 2px solid transparent; }
.admin-gallery-choice.is-primary { border-color: var(--primary); }
.admin-gallery-preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-gallery-choice__pick,
.image-picker {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    z-index: 2;
    cursor: pointer;
}
.admin-gallery-choice__remove {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 2;
    cursor: pointer;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    transition: transform 0.22s ease, background 0.22s ease;
}
.admin-gallery-choice__remove:hover {
    transform: scale(1.08);
    background: #dc2626;
}
.admin-gallery-choice__pick input { position: absolute; opacity: 0; pointer-events: none; }
.admin-gallery-choice__pick span,
.image-picker__check {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0;
    background: rgba(0,0,0,0.42);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.72);
    line-height: 1;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.admin-gallery-choice__pick span svg,
.image-picker__check svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    display: block;
    overflow: visible;
    transform: translate(-50%, -44%);
}
.admin-gallery-choice__pick:hover span,
.image-picker:hover .image-picker__check {
    transform: scale(1.08);
    border-color: #fff;
}
.admin-gallery-choice__pick input:checked + span,
.image-picker input:checked + .image-picker__check {
    background: #22c55e;
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.24);
}
.admin-gallery-choice__caption {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    margin: 0;
    min-height: 42px;
    padding: 6px 8px 6px 12px;
    border-radius: 14px;
    background: rgba(17,24,39,0.84);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.admin-gallery-choice__label {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}
.admin-gallery-choice.is-primary .admin-gallery-choice__caption,
.admin-gallery-preview__temp.is-primary .admin-gallery-choice__caption { opacity: 1; transform: translateY(0); }
.admin-gallery-preview--single { grid-template-columns: minmax(180px, 240px); }
.admin-gallery-preview__temp { position: relative; border-style: dashed !important; border-color: rgba(17, 24, 39, 0.16) !important; }
.category-check-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.category-check { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border); font-weight: 700; cursor: pointer; }
.category-check input { accent-color: #111827; width: 18px; height: 18px; }
.switch-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.switch-grid--cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.switch-item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 18px; background: #fff; font-weight: 700; }
.switch-item--card { justify-content: space-between; align-items: center; min-height: 74px; }
.switch-item--card > div { display: grid; gap: 4px; padding-right: 12px; }
.switch-item--card strong { font-size: 0.96rem; }
.switch-item--card small { color: #667085; font-size: 0.82rem; line-height: 1.45; font-weight: 600; }
.switch-item input {
    appearance: none;
    width: 48px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    cursor: pointer;
    transition: background 0.18s ease;
    flex: 0 0 auto;
}
.switch-item input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s ease;
}
.switch-item input:checked { background: #111827; }
.switch-item input:checked::after { transform: translateX(20px); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.form-actions--left { justify-content: flex-start; }
.admin-products-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.admin-product-card { padding: 0; overflow: hidden; }
.admin-product-card > img { width: 100%; height: 220px; object-fit: cover; }
.admin-product-card__body { padding: 16px; display: grid; gap: 14px; }
.admin-product-warning {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid rgba(249,115,22,0.2);
    color: #9a3412;
}
.admin-product-warning strong { font-size: 0.92rem; }
.admin-product-warning span { font-size: 0.84rem; line-height: 1.5; }
.admin-product-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.admin-product-card__top h2 { margin: 0 0 6px; font-size: 1.08rem; font-family: "Sora", sans-serif; }
.admin-product-card__top p { margin: 0; color: #667085; }
.admin-product-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.order-stack { display: grid; gap: 18px; }
.order-card { padding: 22px; }
.order-list { display: grid; gap: 12px; }
.order-list-card { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.order-list-card strong { display: block; margin-bottom: 6px; }
.order-list-card p { margin: 0; color: #667085; }
.order-list-card__right { display: grid; gap: 8px; justify-items: end; }
.order-card__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.order-card__head h2 { margin: 0 0 6px; font-family: "Sora", sans-serif; font-size: 1.2rem; }
.order-card__head p { margin: 0; color: #667085; }
.order-card__head > div:first-child { min-width: 0; }
.order-card__head > div:first-child p { overflow-wrap: anywhere; }
.order-card__head-right { display: grid; gap: 8px; justify-items: end; }
.order-card__meta-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.order-card__meta-grid div { padding: 14px 16px; border-radius: 14px; background: #f8fafc; border: 1px solid rgba(17,24,39,0.06); }
.order-card__meta-grid span { display: block; color: #667085; margin-bottom: 6px; }
.order-card__meta-grid small { display: block; color: #667085; margin-top: 4px; }
.order-card__meta-grid a,
.order-card__meta-grid strong { overflow-wrap: anywhere; }
.inline-links { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-links a { font-weight: 700; color: var(--primary); }
.order-notes { padding: 14px 16px; border-radius: 14px; background: #fff7ed; color: #9a3412; margin-bottom: 16px; }
.order-items-list { display: grid; gap: 10px; margin-bottom: 16px; }
.order-item-row { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(17,24,39,0.06); }
.order-item-row img { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; }
.order-item-row__copy { flex: 1; display: grid; gap: 4px; }
.order-item-row__copy span { color: #667085; }
.order-item-row__copy,
.order-item-row__copy strong,
.order-item-row__copy span { min-width: 0; overflow-wrap: anywhere; }
.order-status-form { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.product-card__stock { padding: 7px 10px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 0.8rem; font-weight: 800; }
.out-of-stock-box { padding: 16px 18px; border-radius: 14px; background: #fff1f2; color: #be123c; font-weight: 800; }
.customer-card { padding: 18px 20px; }
.customer-card h2 { margin: 0 0 6px; font-size: 1.08rem; font-family: "Sora", sans-serif; }
.customer-card p { margin: 0; color: #667085; font-weight: 600; }
.customer-whatsapp { white-space: nowrap; }
.customer-whatsapp .btn__icon { background: #25d366; }
.cropper-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; }
.cropper-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.cropper-modal__dialog { position: relative; z-index: 1; width: min(920px, calc(100% - 32px)); border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); padding: 18px; }
.cropper-modal__top { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 16px; }
.cropper-modal__top strong { display: block; font-family: "Sora", sans-serif; font-size: 1.1rem; margin-bottom: 6px; }
.cropper-modal__top p { margin: 0; color: #667085; }
.cropper-close { width: 42px; height: 42px; border: 0; border-radius: 999px; background: #111827; color: #fff; font-size: 1.6rem; cursor: pointer; }
.cropper-stage { padding: 12px; border-radius: 16px; background: #f8fafc; margin-bottom: 16px; }
.cropper-frame { position: relative; width: 100%; height: min(56vw, 480px); overflow: hidden; border-radius: 14px; background:
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    #e5e7eb; }
.cropper-frame img { position: absolute; inset: 0; max-width: none; user-select: none; cursor: grab; transform-origin: top left; }
.cropper-frame img.is-dragging { cursor: grabbing; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,0.46); cursor: move; }
.crop-box::before, .crop-box::after { content: ""; position: absolute; background: rgba(255,255,255,0.5); }
.crop-box::before { left: 33.333%; top: 0; bottom: 0; width: 1px; box-shadow: 33.333% 0 0 rgba(255,255,255,0.5); }
.crop-box::after { top: 33.333%; left: 0; right: 0; height: 1px; box-shadow: 0 33.333% 0 rgba(255,255,255,0.5); }
.crop-handle { position: absolute; width: 14px; height: 14px; border-radius: 999px; background: #fff; border: 2px solid #111827; }
.crop-handle--tl { top: -8px; left: -8px; cursor: nwse-resize; }
.crop-handle--tr { top: -8px; right: -8px; cursor: nesw-resize; }
.crop-handle--bl { bottom: -8px; left: -8px; cursor: nesw-resize; }
.crop-handle--br { bottom: -8px; right: -8px; cursor: nwse-resize; }
.cropper-controls { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.cropper-controls label { display: grid; gap: 8px; min-width: 260px; }
.cropper-controls input[type="range"] { width: 100%; }
.admin-confirm-modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; }
.admin-confirm-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.58); }
.admin-confirm-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100% - 32px));
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(17,24,39,0.22);
    padding: 20px;
}
.admin-confirm-modal__top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 14px;
}
.admin-confirm-modal__top strong {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 1.15rem;
    margin-bottom: 6px;
}
.admin-confirm-modal__top p,
.admin-confirm-modal__body p {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}
.admin-confirm-modal__body {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    margin-bottom: 16px;
}

@media (min-width: 760px) {
    .category-grid, .product-grid, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid, .cart-layout { grid-template-columns: 1.04fr 0.96fr; }
    .product-grid--featured { column-count: 3; column-gap: 12px; }
    .product-grid--featured > .product-card { margin-bottom: 12px; }
}

@media (min-width: 980px) {
    .topbar__nav { display: flex; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-grid, .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .product-grid--shop { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
    .product-grid--featured { column-count: 4; column-gap: 14px; }
    .product-grid--featured > .product-card { margin-bottom: 14px; }
    .product-card--shop-2, .product-card--shop-4 { margin-top: 26px; }
}

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 120;
        width: min(82vw, 320px);
        padding-bottom: 18px;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        overflow-y: auto;
    }
    .admin-body.is-sidebar-open .admin-sidebar { transform: translateX(0); }
    .admin-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 110;
        background: rgba(0,0,0,0.52);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
    .admin-body.is-sidebar-open .admin-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    .admin-sidebar__top {
        position: relative;
        padding-right: 48px;
    }
    .admin-sidebar__close {
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 999px;
        background: rgba(255,255,255,0.08);
        color: #fff;
        display: inline-grid;
        place-items: center;
    }
    .admin-mobile-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 100;
        margin: -28px -28px 18px;
        padding: 12px 16px;
        background: rgba(0,0,0,0.94);
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        backdrop-filter: blur(12px);
    }
    .admin-mobile-bar strong {
        flex: 1;
        min-width: 0;
        text-align: center;
        font-family: "Sora", sans-serif;
        font-size: 0.98rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .admin-mobile-bar__menu {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 999px;
        background: rgba(255,255,255,0.08);
        color: #fff;
        display: inline-grid;
        place-items: center;
        flex: 0 0 40px;
    }
    .admin-form__grid, .switch-grid, .order-card__meta-grid, .admin-dashboard-grid, .dashboard-range-form { grid-template-columns: 1fr; }
    .home-hero__panel, .site-footer__grid { grid-template-columns: 1fr; }
    .dashboard-hero { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    :root { --gutter: 8px; }
    .topbar__inner { min-height: 62px; }
    .topbar__inner { gap: 8px; }
    .store-brand span:last-child { display: none; }
    .store-brand__logo-only { height: 38px !important; max-width: 140px; }
    .topbar-search { display: inline-flex; }
    .topbar-search .icon { width: 14px; height: 14px; flex-basis: 14px; }
    .topbar-search .icon svg { width: 14px; height: 14px; }
    .topbar__cart {
        min-height: 36px;
        min-width: 36px;
        padding: 0;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
    }
    .topbar__cart .icon { width: 17px; height: 17px; }
    .topbar__cart .icon svg { width: 17px; height: 17px; }
    .topbar__cart-badge { top: -6px; right: -8px; }
    .mobile-search-dock { display: none !important; }
    .mini-order-row, .customer-head { flex-direction: column; align-items: stretch; }
    .cart-row {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }
    .cart-row__meta { min-width: 0; }
    .cart-row__meta strong,
    .cart-row__meta span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .cart-row__actions {
        justify-content: flex-end;
        gap: 6px;
    }
    .qty-selector--cart {
        margin: 0;
        padding: 4px;
        gap: 4px;
    }
    .qty-selector--cart .qty-btn {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        font-size: 1.2rem;
    }
    .qty-selector--cart .qty-input {
        width: 34px;
        font-size: 0.96rem;
    }
    .cart-remove {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }
    .summary-box { grid-template-columns: 1fr; }
    .gallery-stage img { height: 360px; }
    .order-card__head, .order-status-form { flex-direction: column; align-items: stretch; }
    .order-card { padding: 18px 16px; }
    .admin-header h1 {
        font-size: 1.2rem;
        line-height: 1.15;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .order-card__head-right { justify-items: start; }
    .order-card__meta-grid div { padding: 12px 14px; }
    .order-item-row {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
    }
    .order-item-row > strong {
        grid-column: 2;
        justify-self: start;
    }
    .form-actions { flex-direction: column; }
    .cropper-controls { flex-direction: column; align-items: stretch; }
    .cropper-controls label { min-width: 100%; }
    .file-field { flex-direction: column; align-items: stretch; }
    .file-field__button { width: 100%; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; align-items: start; }
    .product-grid--featured {
        column-count: 2;
        column-gap: 4px;
    }
    .product-grid--featured > .product-card { margin-bottom: 4px; }
    .product-grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-card--shop-2, .product-card--shop-4 { margin-top: 22px; }
    .product-card--shop .product-card__media img { height: 168px; }
    .product-card--shop-2 .product-card__media img,
    .product-card--shop-4 .product-card__media img { height: 220px; }
    .storefront-highlight { padding-top: 5px; }
    .product-grid--featured .product-card__media img { height: 184px; }
    .product-card--masonry-1 .product-card__media img { height: 180px; }
    .product-card--masonry-2 .product-card__media img { height: 214px; }
    .product-card--masonry-3 .product-card__media img { height: 188px; }
    .product-card--masonry-4 .product-card__media img { height: 208px; }
    .product-card--skeleton.product-card--masonry-1 .product-card__media { height: 180px; }
    .product-card--skeleton.product-card--masonry-2 .product-card__media { height: 214px; }
    .product-card--skeleton.product-card--masonry-3 .product-card__media { height: 188px; }
    .product-card--skeleton.product-card--masonry-4 .product-card__media { height: 208px; }
    .product-card__body { padding: 8px 8px 8px; gap: 4px; }
    .product-card--skeleton .product-card__body { padding: 8px 8px 8px; gap: 4px; }
    .product-card__body h3 { font-size: 0.92rem; }
    .product-card__body p { font-size: 0.83rem; -webkit-line-clamp: 2; }
    .price-tag { font-size: 1.12rem; }
    .product-card__sold { padding: 5px 8px; font-size: 0.72rem; }
    .floating-cart { display: none; }
    .floating-cart__badge { top: -6px; right: -8px; }
    .feed-tabs-wrap {
        top: 62px;
        margin: 0 -10px 12px;
        padding: 0 10px;
    }
    .feed-tabs-wrap.is-stuck::before {
        left: 0;
        width: auto;
        right: 0;
        transform: none;
    }
    .feed-tabs {
        gap: 18px;
        padding: 0 0 2px;
    }
    .feed-tab {
        min-height: 38px;
        font-size: 0.92rem;
        color: rgba(17,24,39,0.58);
        border-bottom-color: transparent;
    }
    .feed-tab.is-active {
        color: var(--ink);
        border-color: var(--ink);
    }
    .promo-wireframe { min-height: 0; }
    .promo-carousel__slide img { height: 100%; }
    .page-product .topbar { display: none; }
    .page-cart .topbar { display: none; }
    .page-product .site-footer { display: none; }
    .page-product .section--soft { padding-bottom: 92px; }
    .cart-app-header {
        display: block;
        position: sticky;
        top: 0;
        z-index: 60;
        background: rgba(0,0,0,0.94);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        backdrop-filter: blur(12px);
    }
    .cart-app-header__inner {
        max-width: var(--container);
        margin: 0 auto;
        padding: 12px var(--gutter);
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 12px;
    }
    .cart-app-header__title {
        color: #fff;
        font-family: "Sora", sans-serif;
        font-size: 1rem;
        text-align: center;
    }
    .category-app-header__inner {
        grid-template-columns: auto 1fr auto;
    }
    .category-app-header__brand {
        display: none;
    }
    .category-app-header__back {
        display: inline-grid;
    }
    .page-cart .cart-page { padding-top: 18px; }
    .product-app__header {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        gap: 10px;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 60;
        padding: 12px var(--gutter);
        background: rgba(0,0,0,0.94);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .product-app__icon-button {
        width: 42px;
        height: 42px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.08);
        display: inline-grid;
        place-items: center;
        color: #fff;
        position: relative;
        box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    }
    .product-app__icon-button .icon { width: 17px; height: 17px; }
    .product-app__icon-button .icon svg { width: 17px; height: 17px; }
    .product-app__search {
        min-height: 42px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 14px;
        border-radius: 999px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.08);
    }
    .product-app__search-button {
        border: 0;
        min-height: 30px;
        padding: 0 12px;
        border-radius: 999px;
        background: rgba(255,255,255,0.14);
        color: #fff;
        font-size: 0.8rem;
        font-weight: 800;
        white-space: nowrap;
    }
    .product-app__search input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        min-height: 40px;
        color: #fff;
    }
    .product-app__search input::placeholder { color: rgba(255,255,255,0.58); }
    .product-app__icon-button--cart .topbar__cart-badge { background: #111827; color: #fff; }
    .product-app__slide img { width: 100%; height: 66vw; min-height: 360px; max-height: 520px; object-fit: cover; }
    .product-app__gallery {
        padding: 0;
    }
    .product-app__track {
        border-radius: 0;
        box-shadow: none;
    }
    .product-app__content.section { padding-top: 18px; }
    .detail-variant-picker__head,
    .variant-editor-card__top,
    .product-variants-block__head {
        display: grid;
        grid-template-columns: 1fr;
    }
    .detail-variant-grid {
        grid-template-columns: repeat(4, minmax(0, 82px));
        gap: 6px;
        justify-content: start;
    }
    .detail-actions--desktop { display: none; }
    .product-bottom-bar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 65;
        padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(17,24,39,0.08);
    }
    .product-bottom-bar__inner {
        max-width: var(--container);
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .product-bottom-bar .btn {
        min-height: 48px;
        border-radius: 16px;
        padding: 12px 16px;
    }
    .privacy-page__card {
        padding: 22px 16px;
        border-radius: 22px;
    }
}

