/* ===== Papey - tshock.ir inspired theme ===== */
:root {
    --papey-dark: #1a1a1a;
    --papey-darker: #111111;
    --papey-light: #f7f5f2;
    --papey-cream: #faf8f5;
    --papey-accent: #c8a96a;
    --papey-accent-dark: #a8894e;
    --papey-muted: #6b6b6b;
    --papey-border: #e5e0d8;
    --papey-success: #2e7d32;
    --papey-danger: #c62828;
    --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--papey-cream);
    color: var(--papey-dark);
    margin: 0;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--papey-accent-dark); }
img { max-width: 100%; }

.container-papey { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Fill short pages while keeping the footer after long page content. */
.storefront-shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.storefront-shell > main { flex: 1; width: 100%; }
.storefront-shell > .site-header, .storefront-shell > .site-footer { flex-shrink: 0; }

/* ---- Header ---- */
.top-bar { background: var(--papey-darker); color: #ddd; font-size: 0.8rem; text-align: center; padding: 6px 0; }
.site-header { background: #fff; border-bottom: 1px solid var(--papey-border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; flex-wrap: wrap; }
.logo { font-size: 1.7rem; font-weight: 900; letter-spacing: -1px; color: var(--papey-dark); }
.logo span { color: var(--papey-accent); }
.main-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.main-nav a { font-size: 0.95rem; font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--papey-accent); color: var(--papey-dark); }
.nav-category { position: relative; }
.nav-category:has(.nav-submenu) > a::after { content: '⌄'; margin-right: 5px; font-size: .72rem; }
.nav-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: -12px;
    min-width: 152px;
    padding: 8px;
    border: 1px solid var(--papey-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
    z-index: 110;
}
.nav-submenu::before { content: ''; position: absolute; top: -11px; right: 0; left: 0; height: 12px; }
.nav-category:hover .nav-submenu,
.nav-category:focus-within .nav-submenu { display: block; }
.main-nav .nav-submenu a { display: block; padding: 8px 10px; border: 0; border-radius: 7px; white-space: nowrap; }
.main-nav .nav-submenu a:hover,
.main-nav .nav-submenu a.active { background: var(--papey-light); color: var(--papey-dark); }
.header-actions { display: flex; gap: 16px; align-items: center; }
.header-actions a { position: relative; font-size: 0.9rem; font-weight: 600; }
.cart-badge {
    position: absolute; top: -10px; left: -14px;
    background: var(--papey-accent); color: #fff;
    font-size: 0.65rem; border-radius: 50%;
    min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.search-box { display: flex; border: 1px solid var(--papey-border); border-radius: 24px; overflow: hidden; background: var(--papey-light); }
.search-box input { border: 0; background: transparent; padding: 8px 14px; font-family: inherit; outline: none; width: 170px; }
.search-box button { border: 0; background: transparent; padding: 0 14px; cursor: pointer; }

/* ---- Hero ---- */
.hero {
    background: linear-gradient(120deg, #1a1a1a 0%, #2d2d2d 60%, #4a3f2a 100%);
    color: #fff; border-radius: var(--radius);
    margin: 24px 0; padding: 64px 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    overflow: hidden;
}
.hero h1 { font-size: 2.6rem; margin: 0 0 12px; font-weight: 900; }
.hero p { color: #cbbf9f; font-size: 1.1rem; max-width: 480px; }
.btn-hero { display: inline-block; margin-top: 20px; background: var(--papey-accent); color: #1a1a1a; padding: 12px 32px; border-radius: 28px; font-weight: 700; }
.btn-hero:hover { background: #fff; color: #1a1a1a; }
.hero-art { font-size: 8rem; opacity: 0.9; }

/* ---- Section titles ---- */
.section-title { text-align: center; margin: 48px 0 24px; }
.section-title h2 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.section-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--papey-accent); margin: 10px auto 0; border-radius: 2px; }

/* ---- Category circles ---- */
.cat-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.cat-circle { text-align: center; width: 110px; }
.cat-circle .circle {
    width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; background: linear-gradient(135deg, #26221c, #4a3f2a);
    color: var(--papey-accent); border: 3px solid var(--papey-border);
    transition: transform .2s, border-color .2s;
}
.cat-circle:hover .circle { transform: translateY(-4px); border-color: var(--papey-accent); }
.cat-circle .name { font-size: 0.9rem; font-weight: 600; }

/* ---- Product grid ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 16px 0 40px; }
.product-card { background: #fff; border: 1px solid var(--papey-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; position: relative; }
.product-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.10); transform: translateY(-3px); }
.product-media { position: relative; }
.product-card .img-wrap { aspect-ratio: 1; background: var(--papey-light); display: block; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.badge-new { position: absolute; top: 12px; z-index: 2; font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 12px; color: #fff; }
.badge-new { background: var(--papey-dark); right: 12px; }
.product-discount { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 4px 9px; border-radius: 6px; background: #fff1ef; color: #a93e32; font-size: .72rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.product-discount bdi { font-weight: 800; }
.favorite-button { position: absolute; top: 10px; left: 10px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(38,34,28,.10); border-radius: 50%; background: #fff; color: #52483e; box-shadow: 0 2px 8px rgba(38,34,28,.09); cursor: pointer; transition: color .15s ease, background .15s ease, box-shadow .15s ease; }
.favorite-button .favorite-icon { display: block; width: 21px; height: 21px; flex-shrink: 0; }
.favorite-button:hover { color: #b53245; background: #fff6f7; box-shadow: 0 3px 10px rgba(38,34,28,.13); }
.favorite-button:focus-visible { outline: 3px solid var(--papey-accent-dark); outline-offset: 3px; }
.favorite-button.is-favorite { color: #b53245; background: #fff1f3; border-color: #efccd2; }
.favorite-button.is-favorite .favorite-icon { fill: currentColor; }
.product-card .info { padding: 14px; }
.product-card .info h3 { font-size: 0.95rem; font-weight: 600; margin: 0 0 8px; min-height: 2.4em; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price { font-weight: 800; color: var(--papey-dark); }
.old-price { font-size: 0.8rem; color: #aaa; text-decoration: line-through; }

/* ---- Buttons / forms ---- */
.btn-papey { display: inline-block; background: var(--papey-dark); color: #fff; border: 0; padding: 12px 28px; border-radius: 10px; font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; text-align: center; }
.btn-papey:hover { background: var(--papey-accent-dark); color: #fff; }
.btn-papey:disabled { background: #999; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--papey-dark); border: 1.5px solid var(--papey-dark); }
.btn-outline:hover { background: var(--papey-dark); color: #fff; }
.btn-danger-papey { background: var(--papey-danger); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
input.form-input, select.form-input, textarea.form-input { width: 100%; padding: 11px 14px; border: 1px solid var(--papey-border); border-radius: 10px; font-family: inherit; font-size: 0.95rem; background: #fff; }
input.form-input:focus, select.form-input:focus, textarea.form-input:focus { outline: 2px solid var(--papey-accent); border-color: var(--papey-accent); }
label.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-group { margin-bottom: 16px; }
.validation-message { color: var(--papey-danger); font-size: 0.8rem; }

/* ---- Product catalog / filters ---- */
.catalog-page { margin: 32px 0 52px; }
.catalog-heading { margin-bottom: 24px; text-align: center; }
.catalog-heading h1 { margin: 4px 0 8px; font-size: 1.9rem; }
.catalog-heading p { margin: 0; color: var(--papey-muted); }
.catalog-kicker { color: var(--papey-accent-dark) !important; font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.catalog-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; }
.catalog-filters { position: sticky; top: 92px; padding: 18px; border: 1px solid var(--papey-border); border-radius: var(--radius); background: #fff; }
.catalog-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--papey-border); }
.catalog-filter-head h2 { margin: 0; font-size: 1rem; }
.filter-reset { padding: 0; border: 0; background: transparent; color: var(--papey-accent-dark); font-family: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--papey-border); }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-group > label:first-child { display: block; margin-bottom: 8px; font-size: .82rem; font-weight: 800; }
.price-filter-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-filter-inputs .form-input { min-width: 0; padding: 9px 10px; font-size: .82rem; }
.clothing-type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.clothing-type-option {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--papey-border);
    border-radius: 12px;
    color: var(--papey-dark);
    font-family: inherit;
    font-size: .84rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.clothing-type-option.is-tshirt { background: linear-gradient(145deg, #fff9ed, #f2ddaf); }
.clothing-type-option.is-hoodie { background: linear-gradient(145deg, #393633, #181716); color: #fff; }
.clothing-type-option:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 0, 0, .12); }
.clothing-type-option.is-selected { border: 3px solid var(--papey-accent-dark); box-shadow: 0 0 0 3px rgba(200, 169, 106, .18); }
.clothing-type-icon { font-size: 2rem; line-height: 1; }
.subcategory-options { display: flex; flex-wrap: wrap; gap: 6px; }
.subcategory-option {
    padding: 7px 10px;
    border: 1px solid var(--papey-border);
    border-radius: 999px;
    background: #fff;
    color: var(--papey-dark);
    font-family: inherit;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
}
.subcategory-option:hover, .subcategory-option.is-selected { border-color: var(--papey-dark); background: var(--papey-dark); color: #fff; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 4px; }
.catalog-toolbar p { margin: 0; color: var(--papey-muted); font-size: .85rem; }
.catalog-toolbar p strong { color: var(--papey-dark); }
.catalog-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--papey-muted); font-size: .8rem; font-weight: 700; }
.catalog-toolbar .form-input { width: 145px; padding: 8px 10px; font-size: .8rem; }

/* ---- Product detail ---- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 32px 0; }
.product-detail .gallery img { border-radius: var(--radius); border: 1px solid var(--papey-border); width: 100%; }
.gallery-main img, .gallery-main video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--papey-border); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb { width: 72px; height: 72px; border-radius: 10px; border: 2px solid var(--papey-border); overflow: hidden; cursor: pointer; position: relative; background: var(--papey-light); }
.gallery-thumb.active { border-color: var(--papey-dark); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-video { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 1.6rem; background: var(--papey-darker); color: #fff; }
.color-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--papey-border); cursor: pointer; display: inline-block; margin-left: 8px; }
.color-dot.selected { border-color: var(--papey-dark); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--papey-dark); }
.color-name { font-size: 0.85rem; color: var(--papey-muted); margin-bottom: 14px; }
.size-chip { display: inline-block; min-width: 48px; text-align: center; padding: 8px 12px; border: 1.5px solid var(--papey-border); border-radius: 8px; cursor: pointer; margin-left: 8px; margin-bottom: 8px; font-weight: 600; background: #fff; }
.size-chip.selected { border-color: var(--papey-dark); background: var(--papey-dark); color: #fff; }
.size-chip.out { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.qty-box { display: inline-flex; align-items: center; border: 1.5px solid var(--papey-border); border-radius: 10px; overflow: hidden; margin-left: 12px; }
.qty-box button { width: 40px; height: 44px; border: 0; background: var(--papey-light); font-size: 1.2rem; cursor: pointer; }
.qty-box span { width: 52px; text-align: center; font-weight: 700; }
.favorite-detail-button { width: 100%; margin-top: 10px; }
.favorite-detail-button.is-favorite { border-color: #c62828; color: #c62828; }
.favorite-detail-button.is-favorite:hover { background: #c62828; color: #fff; }

/* ---- Tables / cart ---- */
.table-papey { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.table-papey th { background: var(--papey-dark); color: #fff; padding: 12px; font-size: 0.85rem; text-align: right; }
.table-papey td { padding: 12px; border-bottom: 1px solid var(--papey-border); font-size: 0.9rem; vertical-align: middle; }
.table-papey tr:last-child td { border-bottom: 0; }
.status-chip { font-size: 0.75rem; padding: 4px 10px; border-radius: 12px; font-weight: 700; display: inline-block; }
.status-Paid, .status-Delivered { background: #e8f5e9; color: var(--papey-success); }
.status-Pending, .status-Processing { background: #fff8e1; color: #f57f17; }
.status-PaymentFailed, .status-Cancelled { background: #ffebee; color: var(--papey-danger); }
.status-Shipped { background: #e3f2fd; color: #1565c0; }

/* Status row tints (order tables) — softer versions of the chip colors */
.row-Paid td, .row-Delivered td { background: #f1faf2; }
.row-Pending td, .row-Processing td { background: #fdf9ec; }
.row-PaymentFailed td, .row-Cancelled td { background: #fdf3f4; }
.row-Shipped td { background: #f0f7fe; }

/* ---- Jalali date picker ---- */
.jdp-wrap { position: relative; display: flex; gap: 4px; align-items: center; }
.jdp-input { cursor: pointer; }
.jdp-popup { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 60; width: 270px;
             background: #fff; border: 1px solid var(--papey-border); border-radius: 12px; padding: 12px;
             box-shadow: 0 8px 24px rgba(0,0,0,0.15); direction: rtl; }
.jdp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.jdp-nav { border: 1px solid var(--papey-border); background: var(--papey-light); border-radius: 8px;
           width: 30px; height: 30px; cursor: pointer; font-size: 1rem; font-weight: 700; }
.jdp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.jdp-week span { text-align: center; font-size: 0.7rem; color: var(--papey-muted); padding: 4px 0; font-weight: 700; }
.jdp-day { border: 0; background: transparent; border-radius: 8px; height: 32px; cursor: pointer; font-size: 0.85rem; }
.jdp-day:hover { background: var(--papey-light); }
.jdp-day.today { border: 1px solid var(--papey-accent); color: var(--papey-accent); font-weight: 700; }
.jdp-day.selected { background: var(--papey-accent); color: #fff; font-weight: 700; }
.jdp-foot { display: flex; gap: 6px; justify-content: space-between; margin-top: 10px; }

.card-box { background: #fff; border: 1px solid var(--papey-border); border-radius: var(--radius); padding: 24px; }

/* ---- Modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100;
                 display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: #fff; border-radius: 14px; width: 100%; max-width: 640px; max-height: 85vh;
             overflow-y: auto; padding: 20px; animation: modal-in 0.15s ease-out; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-close { border: 0; background: var(--papey-light); border-radius: 8px; width: 34px; height: 34px;
               cursor: pointer; font-size: 1rem; }
.modal-close:hover { background: var(--papey-border); }
@keyframes modal-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Header account dropdown ---- */
.account-menu { position: relative; }
.account-toggle { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.account-dropdown { position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px;
                    background: #fff; border: 1px solid var(--papey-border); border-radius: 12px; padding: 8px;
                    box-shadow: 0 10px 30px rgba(0,0,0,0.14); display: none; z-index: 90; }
/* invisible bridge over the 10px gap so hover doesn't break while moving to the menu */
.account-dropdown::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown { display: block; animation: modal-in 0.12s ease-out; }
.account-dropdown hr { border: 0; border-top: 1px solid var(--papey-border); margin: 6px 4px; }
.account-dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; white-space: nowrap; }
.account-dropdown a:hover { background: var(--papey-light); }
.alert-papey { padding: 14px 18px; border-radius: 10px; margin: 12px 0; font-weight: 600; }
.alert-success { background: #e8f5e9; color: var(--papey-success); }
.alert-danger { background: #ffebee; color: var(--papey-danger); }
.alert-info { background: #e3f2fd; color: #1565c0; }

/* ---- Admin ---- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side { width: 230px; background: var(--papey-darker); color: #ccc; padding: 24px 0; flex-shrink: 0; }
.admin-side .brand { color: #fff; font-size: 1.3rem; font-weight: 900; text-align: center; margin-bottom: 28px; }
.admin-side .brand span { color: var(--papey-accent); }
.admin-side a { display: block; padding: 12px 24px; font-size: 0.9rem; color: #ccc; }
.admin-side a:hover, .admin-side a.active { background: rgba(200,169,106,0.15); color: var(--papey-accent); }
.admin-main { flex: 1; padding: 32px; background: var(--papey-cream); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--papey-border); }
.stat-card .num { font-size: 1.6rem; font-weight: 900; margin-top: 6px; }

/* ---- Admin checkbox styling ---- */
.admin-main input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--papey-border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.admin-main input[type="checkbox"]:hover {
    border-color: var(--papey-accent);
    box-shadow: 0 0 0 3px rgba(200,169,106,0.15);
}
.admin-main input[type="checkbox"]:checked {
    background: var(--papey-dark);
    border-color: var(--papey-dark);
}
.admin-main input[type="checkbox"]:checked::after {
    content: '✓';
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.admin-main input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--papey-accent);
    outline-offset: 2px;
}
/* Admin checkbox label styling */
.admin-main label:has(input[type="checkbox"]) {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}
.admin-main label:has(input[type="checkbox"]):hover {
    background: rgba(0,0,0,0.03);
}
.admin-category-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.admin-category-group { padding: 10px; border: 1px solid var(--papey-border); border-radius: 10px; background: var(--papey-light); }
.admin-category-root { font-weight: 800 !important; }
.admin-category-children { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 5px; }
.admin-category-children label { padding: 4px 8px !important; font-size: .78rem !important; }

/* ---- FAQ ---- */
.faq-item { background: #fff; border: 1px solid var(--papey-border); border-radius: var(--radius); margin-bottom: 10px; }
.faq-item summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::before { content: '＋'; margin-left: 10px; color: var(--papey-accent); }
.faq-item[open] summary::before { content: '－'; }
.faq-item .faq-body { padding: 0 20px 16px; color: var(--papey-muted); font-size: 0.9rem; }

/* ---- Footer ---- */
.site-footer { background: var(--papey-darker); color: #aaa; margin-top: 64px; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { display: block; padding: 5px 0; font-size: 0.85rem; color: #aaa; }
.site-footer a:hover { color: var(--papey-accent); }
.site-footer .footer-category-root { color: #ddd; font-weight: 700; margin-top: 4px; }
.site-footer .footer-category-child { padding-right: 12px; font-size: .8rem; }
.footer-bottom { border-top: 1px solid #333; margin-top: 32px; padding-top: 20px; text-align: center; font-size: 0.8rem; }

@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; }
    .hero { flex-direction: column; text-align: center; padding: 40px 24px; }
    .main-nav { display: none; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-filters { position: static; }
    .catalog-toolbar { align-items: flex-start; flex-direction: column; }
    .admin-shell { flex-direction: column; }
    .admin-side { width: 100%; }
}

/* ===== Account area (My Account) ===== */
.account-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin: 32px 0 56px;
    align-items: start;
}

/* Sidebar */
.account-side {
    background: #fff;
    border: 1px solid var(--papey-border);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.account-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(120deg, var(--papey-dark), #3a3325);
    color: #fff;
}
.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--papey-accent);
    color: var(--papey-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.account-user-name { font-weight: 800; font-size: 0.95rem; }
.account-user-phone { font-size: 0.78rem; color: #d8cfb8; margin-top: 2px; }

.account-nav { display: flex; flex-direction: column; padding: 10px; }
.account-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--papey-dark);
    transition: background 0.15s ease, color 0.15s ease;
}
.account-nav a:hover { background: var(--papey-light); color: var(--papey-dark); }
.account-nav a.active {
    background: rgba(200,169,106,0.14);
    color: var(--papey-accent-dark);
    font-weight: 800;
}
.account-nav a.active .acc-ico { filter: none; }
.account-nav .acc-ico { width: 22px; text-align: center; filter: grayscale(0.4); }
.account-nav .acc-logout {
    margin-top: 6px;
    border-top: 1px solid var(--papey-border);
    border-radius: 0 0 10px 10px;
    padding-top: 14px;
    color: var(--papey-danger);
}
.account-nav .acc-logout:hover { background: #fdf3f4; color: var(--papey-danger); }

/* ---- Customer orders and favorites ---- */
.empty-orders, .empty-favorites { text-align: center; max-width: 440px; margin: 20px auto; padding: 24px 12px; }
.empty-orders-icon, .empty-favorites-icon { font-size: 3rem; margin: 0; color: var(--papey-accent-dark); }
.empty-orders h2, .empty-favorites h2 { margin: 8px 0; font-size: 1.1rem; }
.empty-orders p:not(.empty-orders-icon), .empty-favorites p:not(.empty-favorites-icon) { color: var(--papey-muted); font-size: .88rem; line-height: 1.9; margin: 0 0 18px; }
.account-orders-table-wrap, .order-items-table-wrap { overflow: visible; }
.account-orders-table { min-width: 0; }
.account-orders-table small { color: var(--papey-muted); font-size: .75rem; }
.order-row-actions { display: flex; flex-wrap: wrap; gap: 5px; min-width: 280px; }
.order-row-actions .btn-papey { padding: 5px 8px; white-space: nowrap; }
.favorites-count { margin: 0 0 14px; color: var(--papey-muted); font-size: .87rem; }

.order-detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.order-detail-head h1 { margin: 7px 0 5px; font-size: 1.35rem; }
.order-detail-head p { margin: 0; color: var(--papey-muted); font-size: .84rem; }
.back-link { font-size: .82rem; color: var(--papey-accent-dark); font-weight: 700; }
.order-action-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.order-action-bar .btn-papey { padding: 8px 12px; }
.order-summary-card h2, .order-updates-card h2, .order-items-card h2, .order-addresses-grid h2 { margin: 0 0 16px; font-size: 1rem; }
.order-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; }
.order-summary-grid > div { border: 1px solid var(--papey-border); border-radius: 10px; padding: 11px; display: flex; flex-direction: column; gap: 5px; }
.order-summary-grid span { font-size: .75rem; color: var(--papey-muted); }
.order-summary-grid strong { font-size: .88rem; }
.order-updates-card, .order-items-card { margin-top: 18px; }
.order-updates { list-style: none; margin: 0; padding: 0 10px 0 0; border-right: 2px solid var(--papey-border); }
.order-updates li { position: relative; display: flex; gap: 12px; min-height: 54px; padding: 0 16px 14px 0; }
.order-update-dot { position: absolute; right: -7px; top: 4px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--papey-success); box-shadow: 0 0 0 2px var(--papey-success); }
.order-updates .is-failed .order-update-dot { background: var(--papey-danger); box-shadow: 0 0 0 2px var(--papey-danger); }
.order-updates strong { font-size: .88rem; }
.order-updates p { margin: 3px 0 0; color: var(--papey-muted); font-size: .78rem; line-height: 1.8; }
.order-items-card .table-papey { min-width: 700px; }
.order-items-card tfoot th, .order-items-card tfoot td { background: var(--papey-light); }
.order-items-card .order-grand-total th, .order-items-card .order-grand-total td { background: var(--papey-dark); color: #fff; font-size: .95rem; }
.order-addresses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.order-addresses-grid address { color: var(--papey-muted); font-size: .88rem; font-style: normal; line-height: 2; }
.order-addresses-grid address strong { color: var(--papey-dark); }
.order-not-found { text-align: center; max-width: 480px; margin: 36px auto; }
.order-not-found h1 { font-size: 1.2rem; }
.order-not-found p { color: var(--papey-muted); font-size: .9rem; margin-bottom: 20px; }

/* Content */
.account-content { min-width: 0; }
.account-page-head { margin-bottom: 18px; }
.account-page-head h1 { font-size: 1.35rem; font-weight: 800; margin: 0; }

.account-hero {
    background: linear-gradient(120deg, #1a1a1a 0%, #2d2d2d 60%, #4a3f2a 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 20px;
}
.account-hero h1 { font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; }
.account-hero h1 strong { color: var(--papey-accent); }
.account-hero p { margin: 0; font-size: 0.88rem; color: #ddd; line-height: 2; }
.account-hero p a { color: var(--papey-accent); font-weight: 700; border-bottom: 1px dashed var(--papey-accent); }

/* Stat cards */
.account-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}
.account-stat {
    background: #fff;
    border: 1px solid var(--papey-border);
    border-radius: var(--radius);
    padding: 18px 16px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.account-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.07); }
.account-stat-num { display: block; font-size: 1.5rem; font-weight: 900; }
.account-stat-lbl { display: block; font-size: 0.78rem; color: var(--papey-muted); margin-top: 4px; font-weight: 600; }

/* Quick links */
.account-section-h { font-size: 1rem; font-weight: 800; margin: 0 0 12px; }
.account-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}
.account-quick {
    background: #fff;
    border: 1px solid var(--papey-border);
    border-radius: var(--radius);
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.account-quick:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    border-color: var(--papey-accent);
    color: var(--papey-dark);
}
.account-quick-ico { font-size: 1.6rem; }
.account-quick-lbl { font-size: 0.82rem; font-weight: 700; }
.account-quick.logout { border-color: #f0d5d5; }
.account-quick.logout:hover { border-color: var(--papey-danger); }
.account-quick.logout .account-quick-lbl { color: var(--papey-danger); }

/* Last order strip */
.account-last-order {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--papey-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: box-shadow 0.15s ease;
}
.account-last-order:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.06); color: var(--papey-dark); }
.account-last-order .alo-main { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.account-last-order .alo-date { font-size: 0.78rem; color: var(--papey-muted); }
.account-last-order .alo-total { font-weight: 900; color: var(--papey-accent-dark); }

/* Two-column layout inside account pages */
.account-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 992px) {
    .account-shell { grid-template-columns: 1fr; }
    .account-side { position: static; }
    .account-two-col { grid-template-columns: 1fr; }
    .account-nav { flex-direction: row; overflow-x: auto; padding: 8px; }
    .account-nav a { white-space: nowrap; }
    .account-nav .acc-logout { margin-top: 0; border-top: 0; padding-top: 11px; border-radius: 10px; }
    .order-addresses-grid { grid-template-columns: 1fr; }
}

/* Account order tables collapse into labelled cards on narrow screens rather
   than forcing the customer to scroll the page horizontally. */
@media (max-width: 700px) {
    .account-orders-card { padding: 12px; }
    .account-orders-table,
    .account-orders-table tbody,
    .account-orders-table tr,
    .account-orders-table td,
    .order-items-card .table-papey,
    .order-items-card .table-papey tbody,
    .order-items-card .table-papey tr,
    .order-items-card .table-papey td,
    .order-items-card .table-papey tfoot {
        display: block;
        width: 100%;
    }

    .account-orders-table thead,
    .order-items-card .table-papey thead {
        display: none;
    }

    .account-orders-table tbody,
    .order-items-card .table-papey tbody {
        display: grid;
        gap: 12px;
    }

    .account-orders-table tbody tr,
    .order-items-card .table-papey tbody tr {
        border: 1px solid var(--papey-border);
        border-radius: 10px;
        padding: 4px 12px;
        overflow: hidden;
    }

    .account-orders-table tbody td,
    .order-items-card .table-papey tbody td {
        display: grid;
        grid-template-columns: minmax(84px, 36%) 1fr;
        gap: 10px;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--papey-border);
        text-align: left;
    }

    .account-orders-table tbody td::before,
    .order-items-card .table-papey tbody td::before {
        content: attr(data-label);
        color: var(--papey-muted);
        font-size: .78rem;
        font-weight: 700;
        text-align: right;
    }

    .account-orders-table tbody td:last-child,
    .order-items-card .table-papey tbody td:last-child {
        border-bottom: 0;
    }

    .account-orders-table .order-row-actions {
        min-width: 0;
        width: 100%;
    }

    .account-orders-table .order-row-actions .btn-papey {
        flex: 1 1 calc(50% - 4px);
    }

    .order-items-card .table-papey tfoot {
        margin-top: 12px;
        border: 1px solid var(--papey-border);
        border-radius: 10px;
        overflow: hidden;
    }

    .order-items-card .table-papey tfoot tr {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .order-items-card .table-papey tfoot th,
    .order-items-card .table-papey tfoot td {
        padding: 10px 12px;
    }

    .order-items-card .table-papey tfoot th {
        grid-column: 1;
        text-align: right;
    }

    .order-items-card .table-papey tfoot td {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
    }
}

/* Blazor defaults */
h1:focus { outline: none; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid var(--papey-danger); }
#blazor-error-ui { display: none; }
/* Responsive navigation and storefront */
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid #8d6b29; outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; right: 16px; z-index: 200; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.mobile-menu, .admin-mobile-menu, .catalog-filter-toggle { display: none; }
.header-inner { padding: 14px 16px; }
.home-hero { margin: 24px 0 40px; padding: 48px; border-radius: 28px; background: #20261f; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.home-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: #766342; }
.home-hero .home-eyebrow { color: #d8c393; }
.home-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.35; margin: 18px 0; font-weight: 900; }
.home-hero h1 span { color: #dbc28c; }
.home-hero p { color: #dedfd6; line-height: 2; max-width: 430px; }
.home-hero-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.home-hero .btn-papey { background: #dbc28c; color: #20261f; }
.home-guide-link { text-decoration: underline; text-underline-offset: 5px; padding: 12px 0; font-size: .85rem; }
.home-hero-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: center; }
.home-hero-product { padding: 8px; border-radius: 18px; background: #faf8f5; color: #20261f; transform: rotate(4deg); box-shadow: 0 16px 28px #0003; }
.home-hero-product:nth-child(2) { transform: rotate(-5deg); margin-top: 48px; }
.home-hero-product img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; }
.home-hero-product > span { display: flex; justify-content: space-between; gap: 8px; padding: 12px 4px; font-size: .8rem; font-weight: 700; }
.home-hero-empty { font-size: 4rem; font-weight: 900; grid-column: 1 / -1; text-align: center; }
.home-hero-empty span { display: block; font-size: 1rem; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.home-section-heading h2 { margin: 6px 0 0; font-size: 1.6rem; }
.home-section-heading > a { font-size: .85rem; padding: 12px 0; }
.home-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.home-category { display: flex; align-items: center; gap: 24px; padding: 24px; background: #eee8dc; border: 1px solid #e4dccb; border-radius: 18px; transition: background .2s; }
.home-category:nth-child(2n) { background: #e6e9e1; border-color: #dce0d6; }
.home-category:hover { background: #dfd4bd; color: #20261f; }
.home-category-icon { font-size: 3rem; }
.home-category h3 { margin: 0 0 8px; font-size: 1.4rem; }
.home-category div > span { font-size: .85rem; }
.home-products-section { margin: 48px 0; }
.home-help { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; background: #eee8dc; border-radius: 24px; padding: 32px; margin: 48px 0; }
.home-help p { line-height: 1.9; color: var(--papey-muted); }
.home-help .faq-item { background: #faf8f5; }
.home-help .faq-body a { text-decoration: underline; }
.catalog-results, .admin-main, .checkout-layout > *, .form-grid > *, .admin-form-grid > * { min-width: 0; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin-bottom: 48px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.admin-side { flex-shrink: 0; }
.admin-side hr { border-color: #444; }
.admin-main h1 { font-size: clamp(1.35rem, 3vw, 2rem); overflow-wrap: anywhere; }
.admin-main .card-box { min-width: 0; }
.admin-main .btn-papey { white-space: normal; }
.price-row { flex-wrap: wrap; }
@media (max-width: 1100px) {
    .main-nav { display: none; }
    .mobile-menu { display: block; }
    .mobile-menu > summary, .admin-mobile-menu > summary { cursor: pointer; list-style: none; min-height: 44px; padding: 10px 14px; border: 1px solid var(--papey-border); border-radius: 10px; font-weight: 700; }
    summary::-webkit-details-marker { display: none; }
    .mobile-menu-panel { position: absolute; right: 16px; left: 16px; top: 100%; background: white; padding: 16px; border: 1px solid var(--papey-border); border-radius: 0 0 16px 16px; box-shadow: 0 18px 30px #0002; max-height: calc(100dvh - 140px); overflow-y: auto; }
    .mobile-menu-panel > a, .mobile-category summary, .mobile-category a { display: block; min-height: 44px; padding: 11px 12px; border-radius: 8px; }
    .mobile-menu-panel a:hover { background: var(--papey-light); }
    .mobile-category summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; }
    .mobile-category summary::after { content: '+'; }
    .mobile-category[open] summary::after { content: '−'; }
    .mobile-category a { margin-right: 16px; border-right: 2px solid var(--papey-border); }
    .header-actions > :not(.header-cart) { display: none; }
}
@media (max-width: 768px) {
    .header-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 12px; padding: 10px 16px; }
    .logo { grid-column: 1; grid-row: 1; }
    .mobile-menu { grid-column: 2; grid-row: 1; }
    .header-actions { grid-column: 3; grid-row: 1; padding: 0 6px; }
    .header-cart { display: flex; align-items: center; min-height: 44px; white-space: nowrap; }
    .search-box { grid-column: 1 / -1; grid-row: 2; width: 100%; border-radius: 12px; }
    .search-box input { width: 100%; min-width: 0; font-size: 16px; min-height: 44px; }
    .search-box button { min-width: 44px; }
    .home-hero { grid-template-columns: 1fr; gap: 22px; padding: 26px 24px; margin: 16px 0 32px; border-radius: 20px; }
    .home-hero h1 { font-size: 2.8rem; margin: 12px 0; }
    .home-hero p { font-size: .95rem; margin-bottom: 0; }
    .home-hero-actions { margin-top: 18px; gap: 8px 16px; }
    .home-hero-gallery { gap: 16px; padding: 0 8px 8px; }
    .home-hero-product img { aspect-ratio: 1; }
    .home-hero-product:nth-child(2) { margin-top: 20px; }
    .home-hero-product > span { font-size: .7rem; padding: 8px 2px; }
    .home-section-heading h2 { font-size: 1.25rem; }
    .home-section-heading > a { font-size: .75rem; }
    .home-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .home-category { padding: 18px 12px; gap: 10px; flex-direction: column; align-items: start; }
    .home-category h3 { font-size: 1.2rem; }
    .home-category-icon { font-size: 2.4rem; }
    .home-products-section { margin: 32px 0; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-card .info { padding: 12px; }
    .product-card h3 { font-size: .85rem; line-height: 1.7; }
    .product-card .price { font-size: .85rem; }
    .product-card .old-price { font-size: .7rem; }
    .badge-new { font-size: .65rem; padding: 4px 7px; }
    .favorite-button { min-width: 44px; min-height: 44px; }
    .home-help { grid-template-columns: 1fr; gap: 24px; padding: 24px 18px; margin: 32px 0; }
    .home-help h2 { font-size: 1.3rem; }
    .checkout-layout, .form-grid { grid-template-columns: 1fr; gap: 18px; }
    .catalog-filters { padding: 14px; }
    .catalog-filter-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; background: none; border: 0; font-weight: 700; cursor: pointer; }
    .catalog-filter-toggle span { font-size: .8rem; color: var(--papey-muted); }
    .catalog-filter-body { display: none; }
    .catalog-filter-body.is-open { display: block; padding-top: 16px; }
    .catalog-toolbar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
    .catalog-toolbar label { flex: 1; justify-content: end; }
    .catalog-toolbar .form-input { min-width: 0; }
    .form-input { font-size: 16px; min-height: 44px; }
    .btn-papey, .qty-box button, .size-chip { min-height: 44px; }
    .qty-box button { min-width: 44px; }
    input[type=checkbox] { width: 20px; height: 20px; accent-color: #9a793e; flex-shrink: 0; }
    .filter-group label { min-height: 44px; }
    .admin-side { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    .admin-side .brand { margin: 0; font-size: 1rem; }
    .admin-desktop-nav { display: none; }
    .admin-mobile-menu { display: block; }
    .admin-mobile-menu > summary { border-color: #555; white-space: nowrap; }
    .admin-mobile-menu nav { position: absolute; right: 12px; left: 12px; top: 72px; z-index: 120; padding: 12px; background: #202020; border-radius: 12px; box-shadow: 0 12px 24px #0004; max-height: calc(100dvh - 90px); overflow-y: auto; }
    .admin-side nav a { min-height: 44px; }
    .admin-main { padding: 22px 16px; }
    .card-box { padding: 18px; }
    .stat-card { padding: 16px 12px; }
    .admin-main .form-input { max-width: 100%; }
    .mobile-card-table, .mobile-card-table > tbody { display: block; background: transparent; }
    .mobile-card-table > thead { display: none; }
    .mobile-card-table > tbody > tr { display: block; background: white; border: 1px solid var(--papey-border); border-radius: 14px; padding: 8px 14px; margin-bottom: 14px; }
    .mobile-card-table > tbody > tr > td { display: block; text-align: right; padding: 10px 0; overflow-wrap: anywhere; border-bottom: 1px solid var(--papey-border); }
    .mobile-card-table > tbody > tr > td[data-label]::before { content: attr(data-label); display: block; color: var(--papey-muted); font-size: .75rem; font-weight: 500; margin-bottom: 6px; }
    .mobile-card-table > tbody > tr > td:last-child { border: 0; }
    .mobile-card-table .btn-papey { margin-bottom: 4px; }
    .site-footer { margin-top: 40px; padding-top: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .site-footer a { min-height: 44px; display: flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 768px) {
    .admin-main .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-card .num { font-size: 1.2rem; overflow-wrap: anywhere; }
    .admin-category-picker { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1200px) {
    .admin-side { width: 200px; padding: 20px 14px; }
    .admin-main { padding: 24px 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-main .table-papey { font-size: .8rem; }
    .admin-main .table-papey th, .admin-main .table-papey td { padding: 8px; }
}
.size-chip { background: white; font: inherit; cursor: pointer; }
.size-chip.selected { background: var(--papey-dark); color: white; }
@media (max-width: 768px) {
    button.color-dot { width: 44px; height: 44px; margin: 4px; }
    .product-detail > div { min-width: 0; }
}
@media (max-width: 768px) {
    .admin-filter-body { display: none; }
    .admin-filter-body.is-open { display: block; margin-top: 16px; }
    .admin-main .mobile-card-table > tbody > tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
    .admin-main .mobile-card-table > tbody > tr > td:first-child,
    .admin-main .mobile-card-table > tbody > tr > td:nth-child(2),
    .admin-main .mobile-card-table > tbody > tr > td:last-child,
    .admin-main .mobile-card-table > tbody > tr > td[colspan] { grid-column: 1 / -1; }
}
.order-detail-field { display: flex; gap: 8px; padding: 4px 0; font-size: .9rem; }
@media (max-width: 768px) {
    .jdp-popup { width: min(270px, 100%); }
    .jdp-day { height: 44px; }
    .jdp-nav { min-height: 44px; min-width: 44px; }
    .order-detail-field { flex-direction: column; gap: 4px; padding: 8px 0; }
}
.unlimited-stock-toggle { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px; background: var(--papey-light); border: 1px solid var(--papey-border); border-radius: 10px; font-weight: 600; }
