:root {
    --bg: #F9F9F9;
    --white: #fff;
    --ivory: #F8F5EF;
    --text: #1A1A1A;
    --muted: #6B6B6B;
    --gold: #B08D46;
    --gold-d: #96762f;
    --line: #E2DDD2;
    --danger: #b3261e;
    --ok: #2e7d4f;
    --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', 'Lato', system-ui, sans-serif
}

* {
    box-sizing: border-box
}

html {
    -webkit-text-size-adjust: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 var(--sans);
    padding-bottom: 72px
}

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

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

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
    margin: 0 0 .4em;
    line-height: 1.2
}

h1 {
    font-size: 28px
}

h2 {
    font-size: 22px
}

h3 {
    font-size: 17px
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px
}

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

.small {
    font-size: 13px
}

.center {
    text-align: center
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px
}

/* header */
.announce {
    background: var(--text);
    color: #e9e2d0;
    text-align: center;
    font-size: 12.5px;
    padding: 7px 12px
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--bg);
    border-bottom: 1px solid var(--line)
}

.header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px
}

.logo {
    font-family: var(--serif);
    letter-spacing: .14em;
    font-size: 19px;
    text-align: center;
    line-height: 1.1
}

.logo small {
    display: block;
    font: 500 8px var(--sans);
    letter-spacing: .4em;
    color: var(--muted);
    margin-top: 3px
}

.store-logo {
    width: auto;
    max-width: 170px;
    height: 65px;
    object-fit: contain;
    padding: 4px 0;
    margin: 0 auto
}

.crown {
    display: block;
    margin: 0 auto -1px;
    width: 18px;
    height: 11px;
    color: var(--gold)
}

.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    color: var(--text);
    cursor: pointer
}

.icon-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.hdr-right {
    display: flex
}

.badge {
    position: absolute;
    top: 5px;
    right: 3px;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    padding: 0 4px
}

.searchbar {
    display: none;
    padding: 0 0 12px
}

.searchbar.open {
    display: block
}

.searchbar form {
    display: flex;
    gap: 8px
}

/* drawer */
.drawer-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 50
}

.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 340px);
    background: var(--bg);
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .28s;
    overflow: auto;
    padding: 16px 20px 30px
}

body.menu-open .drawer {
    transform: none
}

body.menu-open .drawer-bg {
    opacity: 1;
    pointer-events: auto
}

.drawer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px
}

.drawer a.item,
.drawer summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    min-height: 48px;
    cursor: pointer;
    list-style: none
}

.drawer summary::-webkit-details-marker {
    display: none
}

.drawer summary::after {
    content: '';
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg);
    transition: .2s
}

.drawer details[open] summary::after {
    transform: rotate(-135deg)
}

.drawer .sub {
    background: rgba(255, 255, 255, .55);
    border-radius: 6px;
    padding: 6px 14px;
    margin-bottom: 6px
}

.drawer .sub a {
    display: block;
    padding: 11px 0;
    color: #444;
    font-size: 14px
}

.drawer hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 14px 0
}

.social {
    display: flex;
    gap: 18px;
    justify-content: center;
    padding: 6px 0
}

.social a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600
}

/* buttons & forms */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 4px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #fff;
    font: 600 14px var(--sans);
    letter-spacing: .02em;
    cursor: pointer;
    width: 100%
}

.btn:hover {
    background: var(--gold-d)
}

.btn.dark {
    background: var(--text);
    border-color: var(--text)
}

.btn.ghost {
    background: transparent;
    color: var(--text);
    border-color: #c9c3b6
}

.btn.auto {
    width: auto
}

.btn.sm {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed
}

.field {
    margin-bottom: 14px
}

.field label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #dcd6c9;
    border-radius: 4px;
    background: #fff;
    font: inherit;
    color: var(--text)
}

textarea {
    min-height: 100px
}

input[type=checkbox],
input[type=radio] {
    width: auto;
    min-height: 0
}

.err {
    color: var(--danger);
    font-size: 13px;
    margin-top: 4px
}

.flash {
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 4px;
    font-size: 14px
}

.flash.ok {
    background: #e8f3ec;
    color: var(--ok)
}

.flash.bad {
    background: #fbeaea;
    color: var(--danger)
}

/* sections */
section.block {
    padding: 26px 0
}

.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px
}

.sec-head a {
    font-size: 13px;
    color: var(--gold)
}

.hero {
    position: relative;
    min-height: 340px;
    background: linear-gradient(120deg, #d9c9a8, #8a6d3b 70%, #3d2f18);
    color: #fff;
    display: flex;
    align-items: flex-end;
    overflow: hidden
}

.hero[style] {
    background-position: center;
    background-size: cover
}

.hero::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -40px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%)
}

.hero .in {
    position: relative;
    padding: 28px 20px 34px;
    max-width: 520px
}

.hero h1 {
    font-size: 34px
}

.hero p {
    margin: 0 0 18px;
    opacity: .92
}

.hero .btn {
    width: auto;
    background: var(--gold);
    border-color: var(--gold)
}

.hero-slides,
.hero-slide {
    width: 100%;
    min-height: inherit
}

.hero-slide {
    display: none;
    align-items: flex-end;
    background: linear-gradient(120deg, #d9c9a8, #8a6d3b 70%, #3d2f18);
    background-position: center;
    background-size: cover
}

.hero-slide.is-active {
    display: flex
}

.slider-controls {
    position: absolute;
    z-index: 1;
    right: max(20px, calc((100vw - 1120px) / 2));
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 8px
}

.slider-controls button {
    min-width: 34px;
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: rgba(35, 27, 14, .35);
    color: #fff;
    cursor: pointer
}

.slider-dots {
    display: flex;
    gap: 5px
}

.slider-dots button {
    min-width: 10px;
    min-height: 10px;
    width: 10px;
    height: 10px;
    padding: 0
}

.slider-dots button[aria-current="true"] {
    background: #fff
}

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

.cat {
    text-align: center;
    font-size: 12.5px
}

.cat .ring {
    width: 74px;
    height: 74px;
    margin: 0 auto 6px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--ivory)
}

.banner {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(110deg, var(--ivory), #e7dcc3);
    padding: 26px 22px;
    min-height: 140px
}

.banner h2 {
    margin-bottom: 2px
}

.banner a.lnk {
    color: var(--gold);
    font-size: 13px
}

.banner img {
    position: absolute;
    right: -10px;
    top: 0;
    height: 100%;
    width: 50%;
    object-fit: cover;
    opacity: .95
}

.banner .txt {
    position: relative;
    max-width: 55%
}

/* product grid & card */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px
}

.card {
    position: relative;
    display: block
}

.card .ph {
    aspect-ratio: 1/1;
    background: var(--ivory);
    border-radius: 6px;
    overflow: hidden
}

.card .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.card h3 {
    font: 500 13.5px var(--sans);
    margin: 9px 0 2px
}

.price {
    font-weight: 600
}

.price s {
    color: var(--muted);
    font-weight: 400;
    font-size: .88em;
    margin-left: 5px
}

.off {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    font-size: 10.5px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: 1px
}

.tag {
    position: absolute;
    left: 8px;
    top: 8px;
    background: rgba(255, 255, 255, .92);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px
}

.tag.pre {
    background: var(--text);
    color: #fff
}

.tag.out {
    background: #eee;
    color: var(--muted)
}

.heart {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 40px;
    height: 40px;
    background: none;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2
}

.heart svg {
    width: 20px;
    height: 20px;
    stroke: #444;
    fill: none;
    stroke-width: 1.5
}

.heart.on svg {
    fill: var(--gold);
    stroke: var(--gold)
}

/* shop toolbar */
.toolbar {
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0 */
    display: flex;
    position: relative;
    margin: 0 auto;
}

.filter-disclosure {
    position: relative;
    min-width: 0
}

.filter-disclosure>summary {
    list-style: none
}

.filter-disclosure>summary::-webkit-details-marker {
    display: none
}

.filter-disclosure>summary::after {
    content: '+';
    margin-left: auto;
    font-size: 18px;
    line-height: 1
}

.filter-disclosure[open]>summary::after {
    content: '−'
}

.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 6px
}

.chip {
    white-space: nowrap;
    padding: 7px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13px
}

.chip.on {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold)
}

.filters {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    width: min(82vw, 300px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12)
}

.filters .field {
    margin-bottom: 8px
}

.filters .field label {
    font-size: 12px;
    margin-bottom: 3px
}

.filters input,
.filters select {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 13px
}

.filters .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.filters .filter-checkbox {
    font-size: 13px;
    margin-bottom: 8px
}

.filters>.btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px
}

.pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 22px 0;
    flex-wrap: wrap
}

.pager a,
.pager span {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font-size: 14px
}

.pager .cur {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold)
}

/* product page */
.pd {
    display: grid;
    gap: 18px
}

.pd-img {
    aspect-ratio: 1/1;
    background: var(--ivory);
    border-radius: 8px;
    overflow: hidden
}

.pd-img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px
}

.thumbs button {
    width: 60px;
    height: 60px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    background: var(--ivory);
    cursor: pointer
}

.thumbs button.on {
    border-color: var(--gold)
}

.opt-label {
    font-size: 13px;
    margin: 14px 0 6px
}

.opts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.opt {
    min-width: 46px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #cfc8b8;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-size: 13.5px
}

.opt.on {
    border-color: var(--gold);
    box-shadow: inset 0 0 0 1px var(--gold)
}

.opt[disabled] {
    color: #aaa;
    text-decoration: line-through;
    cursor: not-allowed
}

.stock {
    font-size: 13px;
    margin: 10px 0
}

.stock.ok {
    color: var(--ok)
}

.stock.pre {
    color: var(--gold-d)
}

.stock.out {
    color: var(--danger)
}

.pd-actions {
    display: grid;
    gap: 10px;
    margin: 16px 0
}

.assure {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    font-size: 11.5px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    margin: 8px 0
}

details.acc {
    border-bottom: 1px solid var(--line)
}

details.acc summary {
    padding: 14px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none
}

details.acc summary::after {
    content: '›';
    transform: rotate(90deg);
    color: var(--muted)
}

details.acc[open] summary::after {
    transform: rotate(-90deg)
}

details.acc .body {
    padding: 0 0 14px;
    color: #444
}

.stars {
    color: var(--gold);
    letter-spacing: 2px
}

/* cart / checkout */
.panel {
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--line)
}

.line {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line)
}

.line:last-child {
    border: 0
}

.line img {
    width: 76px;
    height: 76px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--ivory)
}

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d9d3c5;
    border-radius: 4px;
    margin-top: 6px
}

.qty button {
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    font-size: 18px;
    cursor: pointer
}

.qty input {
    width: 36px;
    min-height: 36px;
    border: 0;
    text-align: center;
    padding: 0
}

.sum div {
    display: flex;
    justify-content: space-between;
    padding: 5px 0
}

.sum .total {
    font-weight: 700;
    font-size: 17px;
    border-top: 1px solid var(--line);
    margin-top: 6px;
    padding-top: 10px
}

.pay {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #ddd6c8;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #fff
}

.pay.on {
    border-color: var(--gold);
    background: #fcf9f1
}

.pay .logo-pay {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    flex: none
}

.pay b {
    display: block;
    font-size: 14px
}

.pay span.h {
    font-size: 12px;
    color: var(--muted)
}

.lb-bkash {
    background: #E2136E
}

.lb-nagad {
    background: #F6921E
}

.lb-rocket {
    background: #8C3494
}

.lb-cod {
    background: #3b3b3b
}

.lb-bank {
    background: #6a5a3a
}

.notice {
    background: #fbf6e9;
    border: 1px solid #ecdcae;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    margin: 12px 0
}

/* tracking */
.timeline {
    list-style: none;
    margin: 16px 0;
    padding: 0 0 0 6px
}

.timeline li {
    position: relative;
    padding: 0 0 22px 28px;
    color: var(--muted)
}

.timeline li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #cfc8b8;
    background: #fff
}

.timeline li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 19px;
    bottom: -3px;
    width: 2px;
    background: #ddd6c8
}

.timeline li:last-child::after {
    display: none
}

.timeline li.done {
    color: var(--text)
}

.timeline li.done::before {
    background: var(--gold);
    border-color: var(--gold)
}

.timeline li.done::after {
    background: var(--gold)
}

.timeline small {
    display: block;
    color: var(--muted)
}

/* bottom nav */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: rgba(248, 245, 239, .97);
    border-top: 1px solid var(--line);
    display: flex;
    padding-bottom: env(safe-area-inset-bottom, 0)
}

.bottom-nav a {
    flex: 1;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    color: var(--muted);
    position: relative;
    gap: 2px
}

.bottom-nav a.on {
    color: var(--gold)
}

.bottom-nav svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.bottom-nav .badge {
    top: 4px;
    right: calc(50% - 18px)
}

/* footer */
.footer {
    background: var(--ivory);
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding: 28px 0 18px;
    font-size: 13.5px
}

.footer .cols {
    display: grid;
    gap: 22px
}

.footer h3 {
    font: 600 13px var(--sans);
    letter-spacing: .05em
}

.footer a {
    display: block;
    padding: 4px 0;
    color: #444
}

.news form {
    display: flex;
    gap: 8px
}

.news .btn {
    width: auto
}

.wa {
    position: fixed;
    right: 14px;
    bottom: 78px;
    z-index: 35;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    font-weight: 700;
    font-size: 11px
}

/* sim gateway */
.sim {
    max-width: 420px;
    margin: 28px auto;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line)
}

.sim .top {
    padding: 22px;
    color: #fff;
    text-align: center;
    font-size: 22px;
    font-weight: 700
}

.sim .bd {
    padding: 18px
}

.sim-bkash .top {
    background: #E2136E
}

.sim-nagad .top {
    background: #F6921E
}

.sim-rocket .top {
    background: #8C3494
}

table.t {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 13.5px
}

table.t th,
table.t td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top
}

.status {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 12px;
    background: #eee
}

.status.paid,
.status.delivered {
    background: #e1f1e7;
    color: var(--ok)
}

.status.failed,
.status.cancelled {
    background: #fbeaea;
    color: var(--danger)
}

.admin-page {
    padding: 0;
    min-height: 100vh
}

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

.admin-sidebar {
    background: #211f1b;
    color: #f8f5ef;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.admin-brand {
    font: 500 17px var(--serif);
    letter-spacing: .1em;
    padding: 6px 10px 20px
}

.admin-brand small {
    display: block;
    font: 500 9px var(--sans);
    letter-spacing: .25em;
    color: #c6b98f;
    margin-top: 4px
}

.admin-nav-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: #bdb7ab;
    padding: 10px
}

.admin-nav {
    display: grid;
    gap: 4px
}

.admin-settings-menu {
    min-width: 0
}

.admin-settings-menu>summary {
    display: block;
    padding: 10px;
    border-radius: 5px;
    color: #e8e2d7;
    font: 500 13px var(--sans);
    cursor: pointer;
    list-style: none
}

.admin-settings-menu>summary::-webkit-details-marker {
    display: none
}

.admin-settings-menu>summary::after {
    content: '⌄';
    float: right;
    color: #c6b98f
}

.admin-settings-menu[open]>summary::after {
    content: '⌃'
}

.admin-settings-menu>summary:hover,
.admin-settings-menu>summary[aria-current=page] {
    background: #39352d;
    color: #fff
}

.admin-settings-submenu {
    display: grid;
    gap: 2px;
    padding: 2px 0 4px 12px
}

.admin-settings-submenu a {
    padding: 8px 10px;
    color: #c6b98f;
    font-size: 12px
}

.admin-settings-submenu a:hover {
    background: #39352d;
    color: #fff
}

.admin-nav a,
.admin-sidebar-bottom>a,
.admin-sidebar-bottom button {
    display: block;
    padding: 10px;
    border: 0;
    border-radius: 5px;
    color: #e8e2d7;
    background: none;
    text-align: left;
    font: 500 13px var(--sans);
    cursor: pointer
}

.admin-nav a:hover,
.admin-nav a[aria-current=page] {
    background: #39352d;
    color: #fff
}

.admin-nav .admin-sub-link {
    margin-left: 12px;
    font-size: 12px;
    color: #c6b98f
}

.admin-sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #49443a;
    padding-top: 12px
}

.admin-sidebar-bottom form {
    margin: 0
}

.admin-sidebar-bottom button {
    width: 100%
}

.admin-sidebar-bottom button:hover,
.admin-sidebar-bottom>a:hover {
    background: #39352d
}

.admin-main {
    min-width: 0
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 18px
}

.admin-header h1 {
    margin: 2px 0 0;
    font-size: 23px
}

.admin-content {
    padding: 18px;
    min-width: 0
}

.admin-image-preview {
    width: 140px;
    height: 140px;
    object-fit: cover;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 10px
}

.admin-brand-preview {
    width: auto;
    max-width: 240px;
    height: 90px;
    object-fit: contain;
    margin: 8px 0
}

.admin-banner-preview {
    width: min(100%, 560px);
    max-height: 180px;
    object-fit: cover;
    margin: 8px 0
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 16px
}

.admin-toolbar input,
.admin-toolbar select {
    width: auto;
    min-width: 170px;
    flex: 1
}

.admin-toolbar .btn {
    flex: 0 0 auto
}

.admin-product-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap
}

.admin-table-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px
}

.admin-table-card table.t {
    min-width: 720px
}

.admin-table-card table.t th {
    background: var(--ivory);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted)
}

.admin-table-card table.t td {
    padding: 12px 10px
}

.scroll-x {
    overflow-x: auto
}

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

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px
}

.stat b {
    display: block;
    font: 500 22px var(--serif)
}

/* wider screens */
@media(min-width:768px) {
    body {
        padding-bottom: 0
    }

    .bottom-nav {
        display: none
    }

    .wa {
        bottom: 20px
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px 18px
    }

    .cats {
        grid-template-columns: repeat(6, 1fr)
    }

    .cat .ring {
        width: 96px;
        height: 96px
    }

    .hero {
        min-height: 480px
    }

    .hero h1 {
        font-size: 50px
    }

    .pd {
        grid-template-columns: 1.1fr 1fr;
        gap: 40px
    }

    .footer .cols {
        grid-template-columns: 2fr 1fr 1fr 1.4fr
    }

    .cart-grid,
    .co-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: 24px;
        align-items: start
    }

    .banner {
        min-height: 200px
    }

    .admin-shell {
        display: grid;
        grid-template-columns: 230px minmax(0, 1fr)
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        height: 100vh
    }

    .admin-header {
        padding: 18px 26px
    }

    .admin-content {
        padding: 24px 26px
    }
}

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

@media(max-width:767px) {
    .admin-sidebar {
        gap: 4px
    }

    .admin-brand {
        padding-bottom: 8px
    }

    .admin-nav {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap
    }

    .admin-nav a,
    .admin-settings-menu>summary {
        white-space: nowrap
    }

    .admin-nav .admin-sub-link {
        margin-left: 0
    }

    .admin-settings-menu {
        flex: 0 0 auto
    }

    .admin-settings-menu[open] {
        position: relative
    }

    .admin-settings-submenu {
        position: absolute;
        z-index: 5;
        top: 100%;
        left: 0;
        min-width: 190px;
        padding: 6px;
        border: 1px solid #49443a;
        border-radius: 5px;
        background: #25231f
    }

    .admin-sidebar-bottom {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 4px;
        padding-top: 8px
    }

    .admin-sidebar-bottom form {
        margin-left: auto
    }

    .admin-sidebar-bottom>a,
    .admin-sidebar-bottom button {
        white-space: nowrap
    }

    .admin-header {
        align-items: flex-start
    }

    .admin-content {
        padding: 14px 12px
    }

    .admin-content .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important
    }
}
