/* ============================================================
   Luxe Meds — Design System
   Lightweight, dependency-free CSS (no external fonts/libraries)
   ============================================================ */

:root {
  --navy: #1F3A5F;
  --navy-dark: #142842;
  --gold: #C9A227;
  --gold-light: #E7CE7A;
  --cream: #F8F6F1;
  --white: #FFFFFF;
  --ink: #24262B;
  --ink-soft: #5B5F66;
  --border: #E4E1D9;
  --success: #1E7A46;
  --success-bg: #E5F4EB;
  --warn: #9A6B00;
  --warn-bg: #FCF1D8;
  --danger: #B3261E;
  --danger-bg: #FBEAE8;
  --info: #1F5B8C;
  --info-bg: #E6F0F8;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(31, 58, 95, 0.08);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy-dark); margin: 0 0 12px; line-height: 1.25; }
p { margin: 0 0 12px; color: var(--ink-soft); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; }

/* ---- Buttons ---- */
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; text-align: center; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-block { display: block; width: 100%; margin-bottom: 10px; text-align: center; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.link-btn { background: none; border: none; color: var(--danger); cursor: pointer; text-decoration: underline; font-size: 14px; padding: 0; }

/* ---- Top bar & Header ---- */
.topbar { background: var(--navy-dark); color: #f0efe9; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; flex-wrap: wrap; gap: 6px; }
.topbar-social a { margin-left: 14px; color: var(--gold-light); font-weight: 600; }
.site-header { background: var(--white); box-shadow: var(--shadow); position: relative; z-index: 20; }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.logo { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--navy-dark); letter-spacing: 0.5px; }
.logo span { color: var(--gold); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a { font-weight: 600; font-size: 15px; color: var(--ink); padding: 6px 0; }
.main-nav > a:hover { color: var(--navy); }
.nav-dropdown { position: relative; }
.nav-dropdown .caret { font-size: 11px; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); padding: 10px 0; min-width: 190px; display: none; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 9px 18px; font-size: 14px; font-weight: 500; }
.dropdown-menu a:hover { background: var(--cream); }
.cart-link { position: relative; }
.cart-badge { background: var(--gold); color: var(--navy-dark); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; margin-left: 4px; }
.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-dark); display: block; }

/* ---- Flash ---- */
.flash-wrap { margin-top: 16px; }
.alert { padding: 12px 18px; border-radius: var(--radius); margin-bottom: 14px; font-size: 14px; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }

/* ---- Hero ---- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 70px 0 50px; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero-text { flex: 1 1 420px; }
.eyebrow { color: var(--gold-light); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 12px; }
.hero-text h1 { color: #fff; font-size: 42px; margin: 10px 0 14px; }
.hero-text p { color: #d7dde6; font-size: 17px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: #fff; color: #fff; }
.hero-actions .btn-outline:hover { background: #fff; color: var(--navy-dark); }
.hero-badges { flex: 1 1 320px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.badge-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); padding: 18px; text-align: center; font-weight: 600; color: var(--gold-light); }

/* ---- Sections ---- */
.section { padding: 56px 0; }
.section-alt { background: var(--cream); }
.section-title { text-align: center; font-size: 28px; margin-bottom: 30px; }
.center-cta { text-align: center; margin-top: 26px; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.category-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease; }
.category-card:hover { transform: translateY(-4px); }
.category-card-name { font-family: var(--font-heading); font-size: 20px; }
.category-card-cta { color: var(--gold-light); font-weight: 600; font-size: 14px; }

/* ---- Product grid / cards ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease; }
.product-card:hover { transform: translateY(-3px); }
.product-card-img { position: relative; aspect-ratio: 4/3; background: var(--cream); overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--cream); color: var(--ink-soft); font-weight: 600; text-align: center; padding: 10px; font-size: 13px; }
.img-placeholder.large { aspect-ratio: 4/3; font-size: 16px; }
.img-placeholder.small { width: 64px; height: 64px; font-size: 12px; border-radius: 8px; }
.tag-sale, .tag-set, .tag-individual { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--navy-dark); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag-set { left: auto; right: 10px; background: var(--navy); color: #fff; }
.product-card-body { padding: 16px; }
.product-card-body h3 { font-size: 16px; margin: 4px 0; }
.product-card-cat { font-size: 12px; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.price-line { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.price-line.large { font-size: 26px; }
.price-final { font-weight: 700; color: var(--navy-dark); font-size: 18px; }
.price-line.large .price-final { font-size: 30px; }
.price-original { text-decoration: line-through; color: var(--ink-soft); font-size: 14px; }
.price-save { background: var(--success-bg); color: var(--success); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.rating-line { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0; }
.stars { color: var(--gold); letter-spacing: 2px; }
.stars-sm { font-size: 13px; }
.stars-lg { font-size: 26px; display: block; }
.stars-count { color: var(--ink-soft); font-size: 12px; }

/* ---- Trust / custom CTA ---- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; text-align: center; }
.trust-item h3 { font-size: 17px; }
.custom-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.custom-cta-inner h2 { margin-bottom: 6px; }

/* ---- Shop page ---- */
.shop-header { text-align: center; margin-bottom: 24px; }
.filter-bar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-weight: 700; margin-right: 4px; color: var(--navy-dark); }
.filter-chip { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.filter-chip.active, .filter-chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty-state { text-align: center; padding: 40px 0; color: var(--ink-soft); }

/* ---- Product detail ---- */
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--navy); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.product-detail-img img { border-radius: var(--radius); width: 100%; }
.product-desc { margin: 16px 0; }
.fabric-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 20px; }
.fabric-tags li { background: var(--cream); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--navy-dark); }
.size-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.size-option { border: 2px solid var(--border); border-radius: 8px; padding: 10px 16px; font-weight: 700; cursor: pointer; position: relative; }
.size-option input { position: absolute; opacity: 0; }
.size-option:has(input:checked), .size-option.selected { border-color: var(--navy); background: var(--navy); color: #fff; }
.size-option.disabled { opacity: 0.4; cursor: not-allowed; }
.qty-input { width: 90px; padding: 10px; border-radius: 8px; border: 1px solid var(--border); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; color: var(--navy-dark); }
.set-note { font-size: 13px; background: var(--info-bg); color: var(--info); padding: 10px 14px; border-radius: 8px; }
.set-note a { text-decoration: underline; font-weight: 700; }
.trust-mini { margin-top: 18px; font-size: 12px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Reviews (Temu-style) ---- */
.reviews-summary { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.reviews-summary-avg { text-align: center; }
.avg-number { font-size: 44px; font-weight: 700; color: var(--navy-dark); display: block; font-family: var(--font-heading); }
.reviews-summary-bars { flex: 1 1 300px; max-width: 420px; }
.bar-row { display: grid; grid-template-columns: 60px 1fr 30px; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.bar-track { background: var(--border); border-radius: 999px; height: 8px; overflow: hidden; }
.bar-fill { background: var(--gold); height: 100%; }
.review-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; max-width: 520px; margin-bottom: 34px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; font-size: 30px; }
.star-input input { display: none; }
.star-input label { color: var(--border); cursor: pointer; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--gold); }
.review-list { display: flex; flex-direction: column; gap: 20px; }
.review-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.review-item-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.verified-badge { background: var(--success-bg); color: var(--success); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.review-date { color: var(--ink-soft); font-size: 12px; margin-left: 6px; }
.review-text { margin: 6px 0 0; }

/* ---- Custom order page ---- */
.custom-order-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 34px; align-items: start; }
.custom-step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.step-num { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; background: var(--navy); color: #fff; border-radius: 50%; font-size: 13px; margin-right: 8px; }
.option-picker { display: flex; gap: 12px; flex-wrap: wrap; }
.option-card { border: 2px solid var(--border); border-radius: 10px; padding: 12px 16px; text-align: center; cursor: pointer; position: relative; min-width: 130px; }
.option-card input { position: absolute; opacity: 0; }
.option-card:has(input:checked), .option-card.selected { border-color: var(--navy); background: var(--cream); }
.option-card small { display: block; color: var(--ink-soft); margin-top: 4px; }
.color-picker { display: flex; gap: 16px; flex-wrap: wrap; }
.color-option { text-align: center; cursor: pointer; position: relative; }
.color-option input { position: absolute; opacity: 0; }
.swatch { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--border); margin: 0 auto 6px; }
.color-option:has(input:checked) .swatch, .color-option.selected .swatch { box-shadow: 0 0 0 3px var(--navy); }
.color-option small { font-size: 12px; }
.optional { color: var(--ink-soft); font-weight: 400; font-size: 13px; }
.field-hint { font-size: 12.5px; color: var(--ink-soft); }
.logo-preview { max-width: 160px; margin-top: 12px; border-radius: 8px; border: 1px solid var(--border); }
.custom-order-summary { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; position: sticky; top: 20px; }
.custom-order-summary h3 { color: #fff; }
.summary-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; margin: 0 0 16px; }
.summary-list dt { color: var(--gold-light); font-weight: 700; }
.summary-list dd { margin: 0; word-break: break-word; }
.summary-price { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 14px; margin-bottom: 10px; font-size: 15px; }
.summary-price strong { font-size: 22px; color: var(--gold-light); }
.custom-order-summary .btn-primary { background: var(--gold); color: var(--navy-dark); margin-top: 14px; }
.custom-order-summary .btn-primary:hover { background: var(--gold-light); }
.custom-order-summary .field-hint { color: #cdd6e2; }

/* ---- Cart ---- */
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item-img img, .cart-item-img .img-placeholder { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-item-info h3 { font-size: 15px; margin-bottom: 2px; }
.cart-item-info p { font-size: 13px; margin: 2px 0; }
.custom-tags { font-size: 12.5px; }
.custom-notes { font-style: italic; font-size: 12.5px; }
.swatch-inline { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; margin-left: 4px; border: 1px solid var(--border); }
.cart-item-actions { text-align: right; }
.cart-item-actions input[type=number] { width: 60px; padding: 6px; border-radius: 6px; border: 1px solid var(--border); text-align: center; }
.line-total { font-weight: 700; margin: 8px 0; }
.empty-cart { text-align: center; padding: 60px 0; }
.cart-summary { background: var(--cream); border-radius: var(--radius); padding: 24px; position: sticky; top: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 15px; }
.summary-row.total-row { font-size: 18px; font-weight: 700; border-top: 1px solid var(--border); padding-top: 12px; }
.summary-line-item { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }

/* ---- Checkout ---- */
.checkout-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.checkout-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=file], textarea, select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: var(--font-body); color: var(--ink);
}
textarea { resize: vertical; }
.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.payment-method-option { display: flex; gap: 12px; border: 2px solid var(--border); border-radius: 10px; padding: 14px 16px; cursor: pointer; }
.payment-method-option:has(input:checked), .payment-method-option.selected { border-color: var(--navy); background: var(--cream); }
.payment-method-option p { margin: 2px 0 0; font-size: 13px; }
.checkout-summary { position: sticky; top: 20px; }

/* ---- Order confirmation / tracking ---- */
.order-confirmation { max-width: 700px; margin: 0 auto; }
.confirmation-head { text-align: center; margin-bottom: 26px; }
.order-ref-card { display: flex; justify-content: space-around; background: var(--cream); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; flex-wrap: wrap; gap: 14px; text-align: center; }
.order-ref-card span { display: block; font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1px; }
.order-ref-card strong { font-size: 18px; }
.badge { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; display: inline-block; }
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.upload-screenshot-block { background: #fff; border: 1px dashed var(--navy); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.upload-screenshot-block form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.order-items-list { background: var(--cream); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.confirmation-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.track-order-form { background: var(--cream); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.status-tracker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.tracker-step { flex: 1 1 100px; text-align: center; opacity: 0.4; }
.tracker-step.done { opacity: 1; }
.tracker-dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--border); margin: 0 auto 6px; }
.tracker-step.done .tracker-dot { background: var(--navy); }
.tracker-label { font-size: 11px; font-weight: 600; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-dark); color: #cfd6e0; padding: 50px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; }
.footer-grid h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-grid a { display: block; margin-bottom: 8px; font-size: 14px; color: #cfd6e0; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-logo { margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; flex-wrap: wrap; gap: 10px; }
.admin-link { color: #7f8ba0; font-size: 12px; }
.whatsapp-float { position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,0.25); z-index: 50; }

/* ---- Admin ---- */
.admin-body { background: var(--cream); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--navy-dark); color: #cfd6e0; padding: 26px 18px; flex-shrink: 0; }
.admin-logo { display: block; margin-bottom: 4px; }
.admin-role { font-size: 12px; color: var(--gold-light); margin-bottom: 22px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #cfd6e0; display: flex; justify-content: space-between; align-items: center; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav a.logout-link { margin-top: 16px; color: #e08b85; }
.nav-badge { background: var(--gold); color: var(--navy-dark); font-size: 11px; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.admin-sidebar-toggle { display: none; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { background: #fff; padding: 18px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); }
.admin-topbar h1 { margin: 0; font-size: 22px; }
.admin-username { font-size: 13px; color: var(--ink-soft); }
.admin-content { padding: 26px 30px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat-card span { display: block; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 6px; }
.stat-card strong { font-size: 24px; color: var(--navy-dark); }
.stat-card.highlight { border: 2px solid var(--gold); }
.admin-panel { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 24px; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.admin-table th { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.admin-thumb.placeholder { display: inline-block; background: var(--cream); }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-form { display: inline-block; }
.admin-form .form-row { margin-bottom: 4px; }
.checkbox-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.checkbox-inline { font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.size-checkbox-group { display: flex; gap: 16px; flex-wrap: wrap; }
.table-input { padding: 6px 8px; font-size: 13px; }
.inline-add-form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.admin-filter-form { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-filter-form input, .admin-filter-form select { width: auto; }
.order-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 20px; }
.status-update-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.mt { margin-top: 26px; }
.custom-orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.custom-order-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.custom-order-card-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.custom-order-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

.admin-login-body { background: var(--navy-dark); display: flex; align-items: center; justify-content: center; min-height: 100vh; font-family: var(--font-body); }
.admin-login-card { background: #fff; border-radius: var(--radius); padding: 40px; max-width: 380px; width: 100%; text-align: center; }
.admin-login-card h1 { font-size: 22px; margin: 16px 0 20px; }
.back-to-site { display: block; margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .product-detail-grid, .custom-order-grid, .cart-layout, .checkout-layout, .order-detail-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .custom-order-summary, .cart-summary, .checkout-summary { position: static; }
}
@media (max-width: 780px) {
  .nav-toggle { display: flex; flex-direction: column; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 14px 20px; box-shadow: var(--shadow); display: none; gap: 14px; }
  .main-nav.open { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; padding-left: 14px; display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .hero-text h1 { font-size: 30px; }
  .admin-sidebar { position: fixed; left: -240px; top: 0; bottom: 0; z-index: 40; transition: left .2s ease; }
  .admin-sidebar.open { left: 0; }
  .admin-sidebar-toggle { display: block; position: fixed; top: 14px; left: 14px; z-index: 50; background: var(--navy-dark); color: #fff; border: none; padding: 8px 12px; border-radius: 8px; font-size: 18px; }
  .admin-topbar { padding-left: 60px; }
}
@media (max-width: 480px) {
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item-actions { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; text-align: left; }
}

/* ============================================================
   Homepage presentation slideshow (added — does not modify any
   rule above). Shows the 11 exported brand-presentation slides
   as a full-width, auto-playing image carousel directly under
   the header, on the homepage only. Vanilla JS, no new library.
   ============================================================ */
.hero-slideshow { position: relative; width: 100%; background: #FFF8F6; overflow: hidden; }
/* Height is driven by the padding-top percentage trick (16:9 = 56.25%) rather
   than the CSS aspect-ratio property alone, so the slideshow still renders at
   the correct size in older WebKit-based browsers/webviews that don't support
   aspect-ratio — without it, this box collapses to 0px since its slide layers
   are all position:absolute and contribute no intrinsic height. */
.hero-slideshow-viewport { position: relative; width: 100%; max-width: 1920px; margin: 0 auto; height: 0; padding-top: 56.25%; max-height: 85vh; overflow: hidden; }
@supports (aspect-ratio: 16 / 9) {
  .hero-slideshow-viewport { aspect-ratio: 16 / 9; height: auto; padding-top: 0; }
}
.hero-slides { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.hero-slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 900ms ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; background: #FFF8F6; }

.hero-slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 999px; border: none;
  background: rgba(31, 58, 95, 0.55); color: #fff; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3; transition: background .2s ease, transform .15s ease;
}
.hero-slide-nav:hover { background: var(--navy); }
.hero-slide-nav:active { transform: translateY(-50%) scale(0.94); }
.hero-slide-prev { left: 16px; }
.hero-slide-next { right: 16px; }

.hero-slide-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-slide-dot { width: 9px; height: 9px; border-radius: 999px; border: none; padding: 0; cursor: pointer; background: rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 1px rgba(31, 58, 95, 0.15); transition: background .2s ease, transform .2s ease; }
.hero-slide-dot.is-active { background: var(--gold); transform: scale(1.25); }
.hero-slide-dot:focus-visible, .hero-slide-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 780px) {
  .hero-slideshow-viewport { max-height: 60vh; }
  .hero-slide-nav { width: 34px; height: 34px; font-size: 12px; }
  .hero-slide-prev { left: 8px; }
  .hero-slide-next { right: 8px; }
}
@media (max-width: 480px) {
  .hero-slideshow-viewport { max-height: 46vh; }
  .hero-slide-dot { width: 7px; height: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
