:root {
    --cream: #faf7f2;
    --olive: #6b5e35;
    --olive-dark: #574d2b;
    --green: #12332a;
    --text: #1f1f1f;
    --muted: #767267;
    --border: #e4ded2;
    --error: #c0392b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
}

h1, h2, h3, .serif {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Store header / footer ---------- */
.store-header {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}
.store-header .bar {
    max-width: 1180px;
    margin: 0 auto;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 24px;
}
.store-header .logo {
    font-family: Georgia, serif;
    font-size: 26px;
    letter-spacing: 4px;
    font-weight: 400;
    white-space: nowrap;
}
.store-header nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--muted);
    flex: 1;
    justify-content: center;
}
.store-header .search {
    flex: 1;
    max-width: 320px;
}
.store-header .search input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0 16px;
    background: #fff;
    font-size: 13px;
}
.store-header .icons {
    display: flex;
    align-items: center;
    gap: 20px;
}
.store-header .icons a, .store-header .icons span {
    color: var(--text);
    display: flex;
}
.announcement-bar {
    background: #d9c98e;
    color: #2c260f;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 8px 12px;
}

.store-footer {
    background: var(--green);
    color: #dfe7e2;
    margin-top: 60px;
    padding: 50px 0 20px;
}
.store-footer .container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}
.store-footer h3 { font-size: 22px; letter-spacing: 2px; margin: 0 0 12px; }
.store-footer p { color: #b7c3bc; font-size: 14px; line-height: 1.6; }
.store-footer h4 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #9fb0a6; margin: 0 0 14px; }
.store-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.store-footer a { color: #dfe7e2; font-size: 14px; }
.store-footer a:hover { color: #fff; }
.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #7f9089;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding-top: 20px;
}

/* ---------- Home page ---------- */
.hero {
    position: relative;
    max-width: 1180px;
    margin: 24px auto 0;
    border-radius: 4px;
    overflow: hidden;
    height: 420px;
}
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .caption {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero .caption h1 { font-size: 40px; margin: 0 0 20px; line-height: 1.25; }
.hero .caption a.btn { background: var(--olive); color: #fff; padding: 12px 28px; font-size: 12px; letter-spacing: 1px; border-radius: 2px; }

.section-title { text-align: center; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 60px 0 28px; }

.category-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
}
.category-grid .cat-card { position: relative; border-radius: 4px; overflow: hidden; grid-row: span 2; }
.category-grid .cat-card.small { grid-row: span 1; }
.category-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-grid .label { position: absolute; bottom: 16px; left: 16px; color: #fff; font-size: 14px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

.signature-band { background: #d8d9bd; padding: 50px 0; margin-top: 60px; }
.signature-band .section-title { color: #4b4c36; margin-top: 0; }
.signature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.signature-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.signature-card .name { margin-top: 14px; font-size: 15px; }
.signature-card .price { color: var(--muted); font-size: 13px; }

.quote-block { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 1180px; margin: 60px auto; gap: 40px; }
.quote-block img { width: 100%; border-radius: 4px; }
.quote-block blockquote { font-family: Georgia, serif; font-size: 24px; line-height: 1.5; font-style: italic; color: #333; }

/* ---------- Auth pages ---------- */
.auth-split {
    min-height: calc(100vh - 84px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-split .visual { position: relative; }
.auth-split .visual img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 100%; }
.auth-split .panel { display: flex; align-items: center; justify-content: center; padding: 60px 40px; }
.auth-box { width: 100%; max-width: 460px; }
.auth-box h2 { font-size: 32px; margin: 0 0 8px; }
.auth-box .subtitle { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; color: #3a3a3a; }
.field .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
    outline: none;
}
.field input:focus, .field select:focus { border-color: var(--olive); }
.field .hint { font-size: 11px; color: var(--muted); margin-top: 6px; font-style: italic; }
.field .error-msg { font-size: 12px; color: var(--error); margin-top: 6px; min-height: 14px; }
.field.error input { border-color: var(--error); }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-wrap .toggle-password {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--muted); font-size: 16px; padding: 4px;
}

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); margin: 18px 0; }
.checkbox-row input { margin-top: 3px; }
.checkbox-row a { color: var(--text); text-decoration: underline; }

.btn-primary {
    width: 100%; height: 50px; background: var(--olive); color: #fff; border: none; border-radius: 3px;
    font-size: 13px; letter-spacing: 1.5px; font-weight: 600; transition: background .2s;
}
.btn-primary:hover:not(:disabled) { background: var(--olive-dark); }
.btn-primary:disabled { background: #cfc8ae; cursor: not-allowed; }

.btn-google {
    width: 100%; height: 48px; border: 1px solid var(--border); background: #f2f0ea; border-radius: 3px;
    display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; letter-spacing: 1px; font-weight: 600;
}

.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-footer-link { text-align: center; margin-top: 26px; color: var(--muted); font-size: 14px; }
.auth-footer-link a { font-weight: 600; color: var(--text); text-decoration: underline; }

.alert { padding: 12px 16px; border-radius: 4px; font-size: 13px; margin-bottom: 20px; }
.alert-error { background: #fbe9e7; color: var(--error); border: 1px solid #f3c9c3; }
.alert-success { background: #e7f3ea; color: #23703a; border: 1px solid #bfe2c8; }

/* OTP */
.otp-inputs { display: flex; gap: 12px; justify-content: center; margin: 24px 0 8px; }
.otp-inputs input {
    width: 56px; height: 60px; text-align: center; font-size: 24px; border: 1px solid var(--border); border-radius: 4px;
}
.otp-timer { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.otp-timer button { background: none; border: none; color: var(--olive); font-weight: 600; text-decoration: underline; }
.otp-timer button:disabled { color: var(--muted); text-decoration: none; cursor: not-allowed; }

/* ---------- Account layout (profile/addresses/settings) ---------- */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 0; max-width: 1180px; margin: 0 auto; min-height: 60vh; }
.account-sidebar { padding: 40px 24px; border-right: 1px solid var(--border); }
.account-sidebar .welcome { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.account-sidebar .member-name { font-family: Georgia, serif; font-size: 24px; margin: 0 0 4px; }
.account-sidebar .member-badge { color: var(--olive); font-size: 13px; font-style: italic; }
.account-sidebar nav { margin-top: 32px; display: flex; flex-direction: column; }
.account-sidebar nav a { padding: 12px 0; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 10px; border-left: 2px solid transparent; padding-left: 10px; }
.account-sidebar nav a.active { color: var(--olive); border-left-color: var(--olive); font-weight: 600; }
.account-sidebar .logout { margin-top: 40px; display: block; color: var(--muted); font-size: 14px; text-decoration: underline; }

.account-main { padding: 40px; }
.account-main h1 { font-family: Georgia, serif; font-size: 30px; margin: 0 0 24px; }
.account-eyebrow { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--olive); margin-bottom: 6px; }

.card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 30px; margin-bottom: 24px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.card-header h3 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 10px; }
.card-header a.edit-link { font-size: 13px; color: var(--olive); font-weight: 600; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-grid .item .label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.detail-grid .item .value { font-size: 15px; }

.avatar-circle { width: 56px; height: 56px; border-radius: 50%; background: #cfe0ff; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #2c4a8f; overflow: hidden; }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }

.danger-link { color: var(--error); font-size: 14px; text-decoration: underline; }

/* Addresses */
.address-toolbar { margin-bottom: 24px; }
.btn-block {
    width: 100%; padding: 14px; background: var(--text); color: #fff; border: none; border-radius: 3px;
    font-size: 12px; letter-spacing: 1.5px; font-weight: 600; text-align: center; display: block;
}
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.address-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 22px; position: relative; }
.address-card .name-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.address-card .name { font-weight: 600; font-size: 15px; }
.address-card .edit-icon { color: var(--muted); }
.address-card address { font-style: normal; color: #444; font-size: 14px; line-height: 1.6; }
.address-card .badges { margin-top: 14px; display: flex; gap: 8px; }
.badge { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; background: #efece3; color: #4a4636; font-weight: 600; }
.badge.default { background: var(--text); color: #fff; }
.address-card .actions { margin-top: 14px; display: flex; gap: 14px; font-size: 12px; }
.address-card .actions button, .address-card .actions a { background: none; border: none; text-decoration: underline; color: var(--muted); padding: 0; font-size: 12px; }
.address-card .actions .set-default { color: var(--olive); }

.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { text-decoration: underline; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Avatar cropper modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal-overlay.open { display: flex; }
.crop-modal { background: #fff; border-radius: 8px; padding: 24px; width: 380px; max-width: 92vw; }
.crop-modal h4 { margin: 0 0 14px; font-size: 16px; }
.crop-stage { width: 100%; height: 280px; border-radius: 6px; overflow: hidden; background: #222; position: relative; touch-action: none; cursor: grab; }
.crop-stage canvas { display: block; }
.crop-controls { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.crop-controls input[type="range"] { flex: 1; }
.crop-actions { display: flex; gap: 12px; }
.crop-actions button { flex: 1; height: 42px; border-radius: 3px; border: 1px solid var(--border); background: #fff; font-size: 13px; }
.crop-actions .confirm { background: var(--olive); color: #fff; border: none; }

/* Simple confirmation modal (block/unblock, delete) */
.confirm-modal { background: #fff; border-radius: 8px; padding: 28px; width: 380px; max-width: 92vw; text-align: center; }
.confirm-modal p { color: var(--muted); font-size: 14px; margin: 10px 0 22px; }
.confirm-modal .row { display: flex; gap: 12px; }
.confirm-modal button { flex: 1; height: 44px; border-radius: 3px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: #fff; }
.confirm-modal .danger { background: var(--error); color: #fff; border: none; }

/* ---------- Admin ---------- */
.admin-body { background: #f4f2ec; min-height: 100vh; }
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--green); }
.admin-login-card { background: #163b2f; border: 1px solid #204a3b; border-radius: 8px; padding: 46px; width: 380px; color: #e7ede9; }
.admin-login-card h2 { color: #fff; text-align: center; letter-spacing: 3px; font-size: 22px; margin-bottom: 6px; }
.admin-login-card .subtitle { text-align: center; color: #9fb0a6; font-size: 13px; margin-bottom: 28px; }
.admin-login-card .field label { color: #cfe0da; }
.admin-login-card .field input { background: #0f2b22; border-color: #295646; color: #fff; }
.admin-login-card .btn-primary { background: #b99a3f; }
.admin-login-card .btn-primary:hover { background: #a4872f; }

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--green); color: #dfe7e2; padding: 30px 20px; }
.admin-sidebar .logo { font-family: Georgia, serif; letter-spacing: 3px; font-size: 20px; margin-bottom: 40px; }
.admin-sidebar nav a { display: block; padding: 12px 10px; border-radius: 4px; font-size: 14px; color: #cddad2; margin-bottom: 4px; }
.admin-sidebar nav a.active { background: rgba(255,255,255,0.08); color: #fff; font-weight: 600; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 32px; background: #fff; border-bottom: 1px solid var(--border); }
.admin-main { flex: 1; }
.admin-content { padding: 32px; }

.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px; }
.admin-search { position: relative; flex: 1; max-width: 340px; }
.admin-search input { width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 4px; padding: 0 40px 0 14px; }
.admin-search .clear-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); font-size: 16px; display: none; }
.admin-search .clear-btn.show { display: block; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.admin-table th { text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--border); background: #faf9f5; }
.admin-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table tr:last-child td { border-bottom: none; }
.status-pill { font-size: 11px; padding: 4px 12px; border-radius: 12px; font-weight: 600; }
.status-pill.active { background: #e2f3e7; color: #1e7a3d; }
.status-pill.blocked { background: #fbe6e4; color: var(--error); }
.action-btn { font-size: 12px; padding: 6px 14px; border-radius: 4px; border: 1px solid var(--border); background: #fff; }
.action-btn.block { color: var(--error); border-color: #f3c9c3; }
.action-btn.unblock { color: #1e7a3d; border-color: #bfe2c8; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 4px; border: 1px solid var(--border); font-size: 13px; background: #fff; }
.pagination .current { background: var(--text); color: #fff; border-color: var(--text); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-split .visual { display: none; }
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
    .category-grid, .signature-grid, .quote-block, .detail-grid, .address-grid, .store-footer .container { grid-template-columns: 1fr; }
}

/* =====================================================================
   Catalog: shared bits (toasts, badges, steppers, links)
   ===================================================================== */
.muted { color: var(--muted); }
.link-btn { background: none; border: none; padding: 0; color: var(--muted); text-decoration: underline; font-size: 13px; }
.link-btn:hover { color: var(--text); }

.toast-stack { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 300; }
.toast { padding: 12px 18px; border-radius: 4px; font-size: 13px; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: opacity .4s, transform .4s; max-width: 340px; }
.toast-success { background: #23703a; }
.toast-error { background: var(--error); }
.toast.hide { opacity: 0; transform: translateY(8px); }

.store-header .nav-active { color: var(--text); font-weight: 600; }
.store-header form.search { flex: 1; max-width: 320px; margin: 0; }
.icon-with-badge { position: relative; }
.badge-count { position: absolute; top: -8px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--olive); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.badge-count[hidden] { display: none; }

.tag { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; font-weight: 600; z-index: 2; }
.tag-discount { background: var(--olive); color: #fff; }
.tag-soldout { background: #2b2b2b; color: #fff; }
.tag-inline { background: #efe9d3; color: var(--olive-dark); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 3px; }

.stepper { display: inline-flex; border: 1px solid var(--border); border-radius: 3px; background: #fff; }
.stepper button { width: 38px; height: 38px; border: none; background: none; font-size: 18px; }
.stepper button:disabled { color: #c9c4b6; cursor: not-allowed; }
.stepper input { width: 42px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 14px; background: #fff; }

.stock-msg { font-size: 13px; padding: 10px 14px; border-radius: 4px; margin: 14px 0; }
.stock-msg.in { background: #e7f3ea; color: #23703a; display: inline-block; padding: 6px 12px; }
.stock-msg.low { background: #fff4de; color: #8a5a00; }
.stock-msg.out { background: #fbe9e7; color: var(--error); }

.price-row { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 10px; }
.price-now { font-size: 16px; font-weight: 600; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 13px; }

.wish-btn { background: #fff; border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text); }
.wish-btn svg { fill: none; }
.wish-btn.active { color: var(--error); border-color: #f3c9c3; }
.wish-btn.active svg { fill: currentColor; }
.wish-btn.large { width: 50px; height: 50px; flex-shrink: 0; }

/* =====================================================================
   Product listing
   ===================================================================== */
.shop-wrap { padding-top: 20px; }
.shop-title { font-family: Georgia, serif; font-size: 30px; font-weight: 400; margin: 6px 0 0; }
.shop-title small { display: block; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 12px; color: var(--muted); letter-spacing: 1px; margin-top: 4px; }
.shop-topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.shop-controls { display: flex; gap: 12px; flex-wrap: wrap; }
.shop-controls select, .filters select { height: 42px; border: 1px solid var(--border); border-radius: 4px; padding: 0 12px; background: #fff; font-size: 13px; }
.shop-search { position: relative; display: flex; }
.shop-search input { height: 42px; width: 260px; border: 1px solid var(--border); border-radius: 4px 0 0 4px; padding: 0 36px 0 14px; font-size: 13px; background: #fff; }
.shop-search .clear-btn { position: absolute; right: 84px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 18px; color: var(--muted); display: none; }
.shop-search .clear-btn.show { display: block; }
.shop-search .search-go { height: 42px; padding: 0 16px; border: none; background: var(--olive); color: #fff; border-radius: 0 4px 4px 0; font-size: 12px; letter-spacing: 1px; }

.shop-layout { display: grid; grid-template-columns: 230px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 150px; }
.filter-block { margin-bottom: 26px; }
.filter-block h4 { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.radio-row { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 5px 0; cursor: pointer; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 3px; padding: 0 10px; font-size: 13px; background: #fff; }
.filters select { width: 100%; }
.clear-all { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); text-decoration: underline; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.product-media { position: relative; aspect-ratio: 1; overflow: hidden; background: #f1eee6; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-media .wish-btn { position: absolute; top: 10px; right: 10px; z-index: 2; }
.product-card.is-sold-out .product-media img { opacity: .55; }
.product-info { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.product-name { font-size: 15px; line-height: 1.35; }
.product-name:hover { text-decoration: underline; }
.btn-card { margin-top: auto; height: 38px; border: 1px solid var(--text); background: none; border-radius: 3px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; }
.btn-card:hover:not(:disabled) { background: var(--text); color: #fff; }
.btn-card:disabled { border-color: var(--border); color: #aaa398; cursor: not-allowed; }

.shop-wrap .pagination a { text-decoration: none; }

/* =====================================================================
   Product details
   ===================================================================== */
.pdp { padding-top: 20px; }
.pdp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; margin-top: 16px; }
.zoom-wrap { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #f1eee6; cursor: zoom-in; border: 1px solid var(--border); }
.zoom-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s ease-out; transform-origin: center center; }
.zoom-wrap.zoomed img { transform: scale(2.3); cursor: zoom-out; }
.zoom-hint { font-size: 11px; color: var(--muted); margin: 8px 0 12px; text-align: center; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb-btn { width: 74px; height: 74px; border: 2px solid transparent; border-radius: 4px; overflow: hidden; padding: 0; background: #f1eee6; }
.thumb-btn.active { border-color: var(--olive); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pdp-title { font-size: 32px; line-height: 1.2; margin: 6px 0 12px; }
.rating-line { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 16px; }
.stars { color: #c79a1d; letter-spacing: 2px; font-size: 16px; }
.pdp-price { margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.pdp-price .price-now { font-size: 28px; }
.pdp-price .price-was { font-size: 16px; }
.you-save { width: 100%; font-size: 13px; color: #23703a; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; }
.qty-row label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.pdp-actions { display: flex; gap: 12px; align-items: center; }
.pdp-actions .btn-primary { flex: 1; }

.offers, .highlights, .description { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.offers h4, .highlights h4, .description h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.offer { display: flex; gap: 12px; align-items: baseline; font-size: 13px; margin-bottom: 8px; }
.offer .code { border: 1px dashed var(--olive); color: var(--olive-dark); padding: 3px 9px; font-weight: 700; letter-spacing: 1px; font-size: 12px; border-radius: 3px; background: #faf6e8; }
.offer em { color: var(--muted); font-style: normal; }
.offer-off { opacity: .6; }
.highlights ul { margin: 0; padding-left: 18px; line-height: 1.8; font-size: 14px; }
.description p { line-height: 1.7; font-size: 14px; color: #444; margin: 0; white-space: pre-line; }

.reviews-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; max-width: 900px; margin: 0 auto; }
.review-summary { text-align: center; }
.big-rating { font-family: Georgia, serif; font-size: 52px; line-height: 1; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 8px; font-size: 12px; margin-top: 6px; }
.bar { height: 6px; background: #ece7da; border-radius: 3px; overflow: hidden; }
/* .bar div { height: 100%; background: #c79a1d; } */
.review-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 3px; padding: 10px 12px; font: inherit; font-size: 14px; margin-top: 10px; resize: vertical; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 26px; color: #d8d2c0; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #c79a1d; }
.error-msg { font-size: 12px; color: var(--error); min-height: 14px; margin: 6px 0; }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-meta { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.review-item p { margin: 0; font-size: 14px; line-height: 1.6; }

/* =====================================================================
   Cart / wishlist
   ===================================================================== */
.cart-wrap { padding-top: 20px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; margin-top: 22px; }
.cart-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 16px; margin-bottom: 14px; align-items: start; }
.cart-img { width: 110px; height: 110px; border-radius: 4px; overflow: hidden; background: #f1eee6; display: block; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-row.is-disabled .cart-img img { opacity: .45; filter: grayscale(1); }
.cart-row.is-disabled .product-name { color: var(--muted); }
.cart-controls { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.cart-line-total { font-weight: 600; font-size: 16px; }
.cart-summary { position: sticky; top: 150px; margin-bottom: 0; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; }
.sum-row.savings { color: #23703a; }
.sum-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 600; }
.checkout-btn { display: flex; align-items: center; justify-content: center; margin-top: 14px; }
.checkout-btn.is-disabled { background: #cfc8ae; cursor: not-allowed; pointer-events: auto; }
.checkout-btn.is-disabled:hover { background: #cfc8ae; }
.cart-summary [hidden] { display: none; }
.wishlist-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.wishlist-item { display: flex; flex-direction: column; align-items: flex-start; }
.wishlist-item .product-card { width: 100%; }

/* =====================================================================
   Admin: catalog management
   ===================================================================== */
.btn-admin { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; background: var(--olive); color: #fff; border: none; border-radius: 4px; font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.btn-admin:hover:not(:disabled) { background: var(--olive-dark); }
.btn-admin:disabled { background: #cfc8ae; cursor: not-allowed; }
.btn-ghost { height: 42px; padding: 0 20px; background: #fff; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; color: var(--text); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
a.action-btn { display: inline-block; }
.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); display: block; }
.confirm-modal .primary { background: var(--olive); color: #fff; border: none; }

.form-modal { background: #fff; border-radius: 8px; padding: 28px; width: 440px; max-width: 94vw; }
.form-modal h4 { margin: 0 0 18px; font-size: 18px; font-family: Georgia, serif; font-weight: 400; }
.form-modal .row { display: flex; gap: 12px; margin-top: 8px; }
.form-modal .row button { flex: 1; }

.product-form { max-width: 920px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .span-2 { grid-column: span 2; }
.field textarea { width: 100%; border: 1px solid var(--border); border-radius: 3px; padding: 12px 14px; font: inherit; font-size: 14px; background: #fff; outline: none; resize: vertical; }
.field textarea:focus { border-color: var(--olive); }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.image-tile { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: #f1eee6; }
.image-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-tile .remove-img { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 1; }
.image-tile .main-tag { position: absolute; left: 6px; bottom: 6px; background: var(--olive); color: #fff; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; }

.crop-modal-lg { background: #fff; border-radius: 8px; padding: 24px; width: 560px; max-width: 94vw; }
.cropper-stage { width: 100%; height: 380px; background: #222; border-radius: 6px; overflow: hidden; }
.cropper-stage img { display: block; max-width: 100%; }
.crop-tools { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
    .shop-layout, .pdp-grid, .reviews-grid, .cart-layout, .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: span 1; }
    .filters, .cart-summary { position: static; }
    .cart-row { grid-template-columns: 80px 1fr; }
    .cart-img { width: 80px; height: 80px; }
    .cart-line-total { grid-column: 2; }
    .store-header form.search { display: none; }
}

/* Disabled state for ghost buttons (e.g. "Add image" once the image limit is reached) */
.btn-ghost:disabled { opacity: .5; cursor: not-allowed; background: #f1eee6; color: var(--muted); }

/* =====================================================================
   Checkout, orders, order status, admin orders and inventory
   ===================================================================== */
.admin-select { height: 42px; border: 1px solid var(--border); border-radius: 4px; padding: 0 12px; background: #fff; font-size: 13px; }
.modal-textarea { width: 100%; border: 1px solid var(--border); border-radius: 3px; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; margin-bottom: 4px; }

/* status badges (shared by customer and admin) */
.order-status { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
.st-pending { background: #fff4de; color: #8a5a00; }
.st-shipped { background: #e4eefb; color: #1f4f96; }
.st-out_for_delivery { background: #ece6fa; color: #5a3a9a; }
.st-delivered { background: #e7f3ea; color: #23703a; }
.st-cancelled { background: #fbe9e7; color: var(--error); }
.st-return_requested { background: #fde8d4; color: #9a4a00; }
.status-pill.low { background: #fff4de; color: #8a5a00; }

/* checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; margin-top: 22px; }
.checkout-section { margin-bottom: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-head h3 { margin: 0; font-family: Georgia, serif; font-weight: 400; font-size: 20px; }
.checkout-addresses { display: grid; gap: 12px; }
.checkout-address { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; cursor: pointer; background: #fff; }
.checkout-address.selected { border-color: var(--olive); background: #faf8ef; }
.checkout-address input[type="radio"] { margin-top: 4px; accent-color: var(--olive); }
.checkout-address .body { flex: 1; }
.checkout-address .top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.checkout-address .lines { font-size: 13px; line-height: 1.7; color: #444; }
.checkout-address .actions { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; }
.checkout-address .actions a { color: var(--muted); text-decoration: underline; }
.chip { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; background: #efe9d3; color: var(--olive-dark); padding: 3px 8px; border-radius: 3px; font-weight: 600; }
.chip-default { background: var(--olive); color: #fff; }
.checkout-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.checkout-item:first-of-type { border-top: none; }
.checkout-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.line-total { font-weight: 600; }

/* success */
.success-wrap { max-width: 640px; text-align: center; padding: 50px 0 70px; }
.success-illustration { width: 220px; height: auto; margin-bottom: 10px; }
.success-text { color: #555; line-height: 1.7; margin: 10px auto 24px; }
.success-meta { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; padding: 18px; background: #faf8ef; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 28px; }
.success-meta span { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.success-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.success-actions .btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 0 28px; height: 46px; }

/* my orders */
.order-search { margin-bottom: 20px; }
.order-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 16px; overflow: hidden; }
.order-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #faf8ef; border-bottom: 1px solid var(--border); }
.order-id { font-weight: 700; letter-spacing: .5px; }
.order-items { padding: 14px 18px; display: grid; gap: 10px; }
.order-item { display: flex; gap: 12px; align-items: center; }
.order-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
.order-item .name { font-size: 14px; }
.order-item.is-cancelled { opacity: .55; }
.order-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--border); }

/* order details */
.order-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.action-link { display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; width: auto; text-decoration: none; color: var(--text); }
.danger-outline { border-color: var(--error); color: var(--error); }
.danger-outline:hover:not(:disabled) { background: var(--error); color: #fff; }
.detail-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.detail-item:last-child { border-bottom: none; }
.detail-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 4px; }
.detail-item.is-cancelled img, .detail-item.is-cancelled .product-name, .detail-item.is-cancelled .line-total { opacity: .5; }
.item-cancelled { font-size: 12px; color: var(--error); margin-top: 4px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.box-title { margin: 0 0 12px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* admin orders / inventory */
.status-box { margin-top: 20px; padding: 16px; border: 1px solid var(--border); border-radius: 6px; background: #faf8ef; }
.status-box label { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 16px 20px; }
.stat-card span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stat-card strong { font-size: 26px; font-family: Georgia, serif; font-weight: 400; }
.stat-card.warn strong { color: #8a5a00; }
.stat-card.bad strong { color: var(--error); }
.stock-input { width: 90px; height: 34px; border: 1px solid var(--border); border-radius: 3px; padding: 0 8px; font-size: 13px; }

@media (max-width: 900px) {
    .checkout-layout, .detail-grid, .stat-cards { grid-template-columns: 1fr; }
    .detail-item { grid-template-columns: 60px 1fr; }
    .detail-item img { width: 60px; height: 60px; }
    .detail-item .line-total { grid-column: 2; }
}

/* ---------- Address: invalid pin code at checkout ---------- */
.checkout-address.is-invalid { border-color: var(--error); background: #fdf3f1; }
.checkout-address.is-invalid .lines { color: var(--muted); }

/* ---------- Per-quantity cancel / return ---------- */
.st-returned { background: #e7e9f3; color: #3b4a8a; }
.st-partially_returned { background: #fde8d4; color: #9a4a00; }
.qty-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.chip-q { font-size: 11px; padding: 3px 9px; border-radius: 12px; background: #f1efe6; color: #55523f; }
.chip-q strong { font-weight: 700; }
.chip-cancelled { background: #fbe9e7; color: var(--error); }
.chip-pending { background: #fff4de; color: #8a5a00; }
.chip-returned { background: #e7e9f3; color: #3b4a8a; }
.chip-rejected { background: #eee; color: #666; }
.return-line { font-size: 12px; margin-top: 8px; padding: 8px 10px; border-left: 3px solid #d9d4bb; background: #faf8ef; line-height: 1.6; }
.return-line.rl-requested { border-left-color: #e0a63a; }
.return-line.rl-approved { border-left-color: #3f9b5a; }
.return-line.rl-rejected { border-left-color: #b5b5b5; }
.item-actions { display: flex; gap: 18px; margin-top: 8px; }
.qty-pick { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; text-align: left; font-size: 13px; }
.qty-pick select { height: 36px; min-width: 70px; border: 1px solid var(--border); border-radius: 3px; padding: 0 8px; background: #fff; }
.qty-pick[hidden] { display: none; }

/* ---------- Unavailable / blocked products (bag, wishlist, product page) ---------- */
.tag-unavailable { background: var(--error); color: #fff; }
.product-card.is-unavailable .product-media img { opacity: .4; filter: grayscale(1); }
.product-card.is-unavailable .product-name { color: var(--muted); pointer-events: none; }
.cart-img { position: relative; }
.unavail-badge { position: absolute; left: 6px; top: 6px; background: var(--error); color: #fff; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.pdp-unavailable-banner { background: #fbe9e7; color: var(--error); border: 1px solid #f3c9c3; border-radius: 6px; padding: 16px 18px; margin: 0 0 22px; font-size: 14px; line-height: 1.6; }
.pdp-unavailable-banner strong { display: block; font-size: 16px; margin-bottom: 2px; }
.pdp-unavailable-banner[hidden] { display: none; }
.pdp.is-unavailable .gallery img { opacity: .45; filter: grayscale(1); }
.pdp.is-unavailable .pdp-actions button, .pdp.is-unavailable .qty-row .stepper button { opacity: .5; pointer-events: none; }
.pdp.is-unavailable .pdp-price, .pdp.is-unavailable .offers { opacity: .5; }

/* ---------- Wallet ---------- */
.wallet-balance { background:#6b6b3d; color:#fff; border-radius:10px; padding:22px 26px; margin-bottom:22px; }
.wallet-balance span { display:block; font-size:12px; letter-spacing:.12em; text-transform:uppercase; opacity:.8; }
.wallet-balance strong { display:block; font-size:34px; margin:6px 0; font-family:inherit; }
.wallet-balance p { margin:0; font-size:13px; opacity:.85; }
.wallet-heading { margin:26px 0 10px; }
.wallet-invite { border:1px solid #e4e0cf; border-radius:10px; padding:16px 18px; background:#fff; }
.wallet-invite p { margin:0 0 12px; font-size:14px; }
.invite-row { margin-bottom:10px; }
.invite-row label { display:block; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:#8a876f; margin-bottom:4px; }
.copy-box { display:flex; gap:8px; }
.copy-box input { flex:1; padding:9px 10px; border:1px solid #d9d5c2; border-radius:6px; background:#faf9f4; font-size:13px; }
.copy-btn { padding:0 16px; border:1px solid #6b6b3d; background:#fff; color:#6b6b3d; border-radius:6px; cursor:pointer; font-weight:600; }
.wallet-table { width:100%; border-collapse:collapse; font-size:14px; }
.wallet-table th { text-align:left; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:#8a876f; padding:8px 10px; border-bottom:1px solid #e4e0cf; }
.wallet-table td { padding:12px 10px; border-bottom:1px solid #efece0; vertical-align:top; }
.wallet-credit { color:#23703a; font-weight:700; }
.wallet-debit { color:#b3261e; font-weight:700; }

/* ---------- Checkout: payment + coupon ---------- */
.pay-options { display:grid; gap:10px; margin:10px 0 4px; }
.pay-option { display:flex; gap:12px; align-items:flex-start; border:1px solid #d9d5c2; border-radius:8px; padding:12px 14px; cursor:pointer; background:#fff; }
.pay-option input { margin-top:4px; }
.pay-option.disabled { opacity:.55; cursor:not-allowed; background:#f6f4ec; }
.pay-option small { display:block; color:#8a876f; margin-top:2px; }
.coupon-box { border:1px dashed #b8b48f; border-radius:8px; padding:12px; margin:12px 0; background:#fbfaf3; }
.coupon-form { display:flex; gap:8px; }
.coupon-form input { flex:1; padding:9px 10px; border:1px solid #d9d5c2; border-radius:6px; text-transform:uppercase; }
.coupon-form button, .coupon-applied button { padding:0 14px; border:1px solid #6b6b3d; background:#6b6b3d; color:#fff; border-radius:6px; cursor:pointer; font-weight:600; }
.coupon-applied { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.coupon-applied button { background:#fff; color:#b3261e; border-color:#b3261e; padding:6px 12px; }
.coupon-msg { font-size:12px; margin:6px 0 0; }
.coupon-msg.ok { color:#23703a; } .coupon-msg.err { color:#b3261e; }
.coupon-chip { display:inline-block; border:1px solid #c9c5a8; border-radius:999px; padding:3px 10px; font-size:12px; margin:6px 6px 0 0; cursor:pointer; background:#fff; }
.sum-row.discount strong, .sum-row.discount span:last-child { color:#23703a; }

/* ---------- Payment failed ---------- */
.fail-badge { color:#b3261e; }
.retry-methods { max-width:460px; margin:18px auto; text-align:left; }
[hidden] { display: none !important; }

/* ---------- Admin dashboard / reports / offers ---------- */
.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin-bottom:20px; }
.stat-card { background:#fff; border:1px solid var(--border); border-radius:8px; padding:18px 20px; }
.stat-card span { display:block; font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--muted); }
.stat-card strong { display:block; font-size:26px; margin-top:6px; font-family:Georgia,serif; font-weight:400; }
.dash-card { padding:18px 20px; margin-bottom:20px; background:#fff; border:1px solid var(--border); border-radius:8px; }
.dash-card h3 { margin:0 0 12px; font-family:Georgia,serif; font-weight:400; }
.dash-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.chart-filters { display:flex; gap:6px; }
.chart-filters button { padding:6px 14px; border:1px solid var(--border); background:#fff; border-radius:999px; cursor:pointer; font-size:13px; }
.chart-filters button.active { background:#6b6b3d; color:#fff; border-color:#6b6b3d; }
.rank-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:20px; }
.rank-list { list-style:none; margin:0; padding:0; }
.rank-list li { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid #f0eee4; font-size:13px; }
.rank-list li:last-child { border-bottom:none; }
.rank-no { width:22px; height:22px; border-radius:50%; background:#efecdc; text-align:center; line-height:22px; font-size:11px; font-weight:700; flex:none; }
.rank-img { width:36px; height:36px; object-fit:cover; border-radius:4px; flex:none; }
.rank-name { flex:1; min-width:0; } .rank-name small, .rank-num small { display:block; color:var(--muted); font-size:11px; }
.rank-num { text-align:right; white-space:nowrap; }

.report-filters { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; margin-bottom:18px; }
.report-filters label { display:block; font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
.report-filters select, .report-filters input[type=date] { height:40px; border:1px solid var(--border); border-radius:4px; padding:0 10px; background:#fff; }
.btn-olive { height:40px; padding:0 18px; background:#6b6b3d; color:#fff; border:none; border-radius:4px; cursor:pointer; font-weight:600; text-decoration:none; display:inline-flex; align-items:center; }
.btn-outline { height:40px; padding:0 16px; background:#fff; color:#6b6b3d; border:1px solid #6b6b3d; border-radius:4px; cursor:pointer; font-weight:600; text-decoration:none; display:inline-flex; align-items:center; }
.form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; }
.form-grid .field label { display:block; font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
.form-grid .field input, .form-grid .field select { width:100%; height:40px; border:1px solid var(--border); border-radius:4px; padding:0 10px; background:#fff; box-sizing:border-box; }
.form-grid .field .err { color:var(--error); font-size:12px; min-height:16px; margin:3px 0 0; }
.tab-row { display:flex; gap:6px; margin-bottom:18px; border-bottom:1px solid var(--border); }
.tab-row a { padding:10px 18px; text-decoration:none; color:var(--muted); border-bottom:2px solid transparent; margin-bottom:-1px; }
.tab-row a.active { color:#6b6b3d; border-bottom-color:#6b6b3d; font-weight:600; }
.status-pill.live { background:#e2f3e7; color:#1e7a3d; } .status-pill.paused, .status-pill.expired { background:#efeee8; color:#6f6d5c; } .status-pill.scheduled { background:#e5eefb; color:#2c4a8f; }
.link-danger { background:none; border:none; color:var(--error); cursor:pointer; font-size:13px; padding:0; text-decoration:underline; }
.link-plain { background:none; border:none; color:#6b6b3d; cursor:pointer; font-size:13px; padding:0; text-decoration:underline; margin-right:10px; }
