/* =========================================================
   Maulikta — Premium B2C Ecommerce Design System
   Built on top of Bootstrap 5 (utility/grid layer untouched)
   ========================================================= */

:root {
  /* Brand palette */
  --luxe-ink:        #12131a;
  --luxe-ink-soft:    #1c1e29;
  --luxe-surface:     #ffffff;
  --luxe-surface-alt: #f7f6f3;
  --luxe-border:      #e7e3da;
  --luxe-gold:         #b8925a;
  --luxe-gold-light:   #d8b88a;
  --luxe-gold-dark:    #8f6d3e;
  --luxe-text:         #1c1e29;
  --luxe-text-muted:   #6b6f7b;
  --luxe-success:      #1f7a4d;
  --luxe-danger:       #b3372c;
  --luxe-warning:      #b8863a;

  /* Type scale */
  --luxe-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --luxe-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing / radii / motion */
  --luxe-radius-sm: 6px;
  --luxe-radius-md: 12px;
  --luxe-radius-lg: 20px;
  --luxe-shadow-sm: 0 2px 8px rgba(18, 19, 26, 0.06);
  --luxe-shadow-md: 0 8px 24px rgba(18, 19, 26, 0.10);
  --luxe-shadow-lg: 0 20px 60px rgba(18, 19, 26, 0.16);
  --luxe-transition: 220ms cubic-bezier(.4,0,.2,1);
}

/* =========================================================
   Base
   ========================================================= */
html { scroll-behavior: smooth; }

body {
  font-family: var(--luxe-font-body);
  color: var(--luxe-text);
  background-color: var(--luxe-surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-serif {
  font-family: var(--luxe-font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-gold { color: var(--luxe-gold-dark) !important; }
.bg-ink { background-color: var(--luxe-ink) !important; }
.bg-surface-alt { background-color: var(--luxe-surface-alt) !important; }

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

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--luxe-gold-dark);
  font-weight: 600;
}

.section-pad { padding-block: clamp(3rem, 6vw, 6rem); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--luxe-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Focus visibility for accessibility (WCAG) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--luxe-gold-dark);
  outline-offset: 2px;
}

/* =========================================================
   Announcement bar
   ========================================================= */
.announcement-bar {
  background: var(--luxe-ink);
  color: #f2ede3;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 0;
  text-align: center;
}
.announcement-bar a { color: var(--luxe-gold-light); text-underline-offset: 3px; text-decoration: underline; }

/* =========================================================
   Navbar
   ========================================================= */
.luxe-navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--luxe-border);
  transition: box-shadow var(--luxe-transition);
}
.luxe-navbar.scrolled { box-shadow: var(--luxe-shadow-sm); }

.luxe-brand {
  font-family: var(--luxe-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.luxe-brand span { color: var(--luxe-gold-dark); }

.luxe-navbar .nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--luxe-text);
  padding: 0.5rem 0.9rem !important;
  position: relative;
}
.luxe-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.15rem;
  height: 2px;
  background: var(--luxe-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--luxe-transition);
}
.luxe-navbar .nav-link:hover::after,
.luxe-navbar .nav-link.active::after { transform: scaleX(1); }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--luxe-text);
  position: relative;
  transition: background var(--luxe-transition);
}
.icon-btn:hover { background: var(--luxe-surface-alt); }

.cart-count {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--luxe-gold-dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-luxe {
  background: var(--luxe-ink);
  color: #fff;
  border: 1px solid var(--luxe-ink);
  border-radius: var(--luxe-radius-sm);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: transform var(--luxe-transition), box-shadow var(--luxe-transition), background var(--luxe-transition);
}
.btn-luxe:hover { background: #000; color: #fff; box-shadow: var(--luxe-shadow-md); transform: translateY(-1px); }
.btn-luxe:active { transform: translateY(0); }

.btn-luxe-outline {
  background: transparent;
  color: var(--luxe-ink);
  border: 1px solid var(--luxe-ink);
  border-radius: var(--luxe-radius-sm);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--luxe-transition);
}
.btn-luxe-outline:hover { background: var(--luxe-ink); color: #fff; }

.btn-gold {
  background: linear-gradient(135deg, var(--luxe-gold-light), var(--luxe-gold-dark));
  color: #1c1200;
  border: none;
  border-radius: var(--luxe-radius-sm);
  padding: 0.85rem 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: filter var(--luxe-transition), transform var(--luxe-transition);
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); color: #1c1200; }

.btn-icon-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--luxe-border);
  background: #fff;
  transition: all var(--luxe-transition);
}
.btn-icon-circle:hover { border-color: var(--luxe-ink); transform: translateY(-2px); box-shadow: var(--luxe-shadow-sm); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 20% 0%, #23253080 0%, transparent 60%), var(--luxe-ink);
  color: #f6f4ef;
  border-radius: 0 0 32px 32px;
}
.hero .eyebrow { color: var(--luxe-gold-light); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.hero p.lead { color: #cfcdc4; }
.hero-media {
  border-radius: var(--luxe-radius-lg);
  overflow: hidden;
  box-shadow: var(--luxe-shadow-lg);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display:block; }

/* =========================================================
   Cards / Products
   ========================================================= */
.category-card {
  border-radius: var(--luxe-radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  display: block;
  box-shadow: var(--luxe-shadow-sm);
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
  display: flex; align-items: flex-end;
  padding: 1.25rem;
  color: #fff;
  font-family: var(--luxe-font-display);
  font-size: 1.2rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--luxe-border);
  border-radius: var(--luxe-radius-md);
  overflow: hidden;
  transition: box-shadow var(--luxe-transition), transform var(--luxe-transition), border-color var(--luxe-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--luxe-shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.product-media {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--luxe-surface-alt);
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease, opacity 300ms ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-media .img-secondary { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.product-media .wishlist-toggle, .product-media .badge-luxe { z-index: 2; } /* keep above the hover photo */
.product-card:hover .product-media .img-secondary { opacity: 1; }

.badge-luxe {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--luxe-ink);
  color: #fff;
  text-transform: uppercase;
}
.badge-luxe.sale { background: var(--luxe-danger); }
.badge-luxe.new { background: var(--luxe-success); }

.wishlist-toggle {
  position: absolute; top: 0.65rem; right: 0.65rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--luxe-border);
  transition: all var(--luxe-transition);
}
.wishlist-toggle:hover { background: #fff; transform: scale(1.08); }
.wishlist-toggle.active { color: var(--luxe-danger); border-color: var(--luxe-danger); }

.quick-add {
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--luxe-transition);
}
.product-card:hover .quick-add { transform: translateY(0); opacity: 1; }

.product-body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-title { font-weight: 600; font-size: 0.95rem; }
.product-meta { font-size: 0.78rem; color: var(--luxe-text-muted); }
.price { font-weight: 700; }
.price .was { text-decoration: line-through; color: var(--luxe-text-muted); font-weight: 400; margin-left: 0.4rem; font-size: 0.85em; }

.star-row { color: var(--luxe-gold-dark); font-size: 0.8rem; }

/* =========================================================
   Filters / Shop
   ========================================================= */
.filter-panel { border: 1px solid var(--luxe-border); border-radius: var(--luxe-radius-md); padding: 1.25rem; }
.filter-panel .form-check-label { font-size: 0.9rem; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #fff;
  outline: 1px solid var(--luxe-border);
  display: inline-block; cursor: pointer;
}
.swatch.selected { outline: 2px solid var(--luxe-ink); }

/* =========================================================
   Sections / misc
   ========================================================= */
.divider-gold { width: 56px; height: 3px; background: var(--luxe-gold); border-radius: 2px; }

.testimonial-card { border-radius: var(--luxe-radius-md); background: var(--luxe-surface-alt); padding: 2rem; height: 100%; }

.trust-strip { border-top: 1px solid var(--luxe-border); border-bottom: 1px solid var(--luxe-border); }
.trust-strip .item { display: flex; align-items: center; gap: 0.75rem; }
.trust-strip .item i { font-size: 1.4rem; color: var(--luxe-gold-dark); }

.newsletter-band { background: var(--luxe-ink); color: #f6f4ef; border-radius: var(--luxe-radius-lg); }
.newsletter-band input.form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.newsletter-band input.form-control::placeholder { color: #b9b6ac; }

footer.luxe-footer { background: var(--luxe-surface-alt); border-top: 1px solid var(--luxe-border); }
footer.luxe-footer h6 { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--luxe-text-muted); }
footer.luxe-footer a.footer-link { font-size: 0.9rem; color: var(--luxe-text); display: block; padding: 0.25rem 0; }
footer.luxe-footer a.footer-link:hover { color: var(--luxe-gold-dark); }

/* =========================================================
   Cart / Checkout
   ========================================================= */
.cart-line { border-bottom: 1px solid var(--luxe-border); padding: 1rem 0; }
.cart-line img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--luxe-radius-sm); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--luxe-border); border-radius: var(--luxe-radius-sm); }
.qty-stepper button { width: 34px; height: 34px; background: none; border: none; }
.qty-stepper input { width: 40px; border: none; text-align: center; }

.summary-card { border: 1px solid var(--luxe-border); border-radius: var(--luxe-radius-md); padding: 1.5rem; position: sticky; top: 100px; }

.checkout-steps { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.checkout-steps .step {
  flex: 1; text-align: center; padding: 0.6rem 0.5rem;
  border-bottom: 3px solid var(--luxe-border);
  font-size: 0.82rem; color: var(--luxe-text-muted); font-weight: 600;
}
.checkout-steps .step.active { border-color: var(--luxe-gold-dark); color: var(--luxe-ink); }
.checkout-steps .step.done { border-color: var(--luxe-success); color: var(--luxe-success); }

.payment-option {
  border: 1px solid var(--luxe-border); border-radius: var(--luxe-radius-md);
  padding: 1rem; cursor: pointer; transition: all var(--luxe-transition);
}
.payment-option.selected { border-color: var(--luxe-ink); box-shadow: 0 0 0 1px var(--luxe-ink); }

/* =========================================================
   Auth cards
   ========================================================= */
.auth-card { max-width: 440px; margin-inline: auto; border: 1px solid var(--luxe-border); border-radius: var(--luxe-radius-lg); padding: 2.25rem; box-shadow: var(--luxe-shadow-sm); }

/* =========================================================
   Account / dashboard shell
   ========================================================= */
.account-sidebar .nav-link {
  border-radius: var(--luxe-radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--luxe-text);
  font-weight: 500;
  font-size: 0.92rem;
}
.account-sidebar .nav-link.active { background: var(--luxe-ink); color: #fff; }
.account-sidebar .nav-link:hover:not(.active) { background: var(--luxe-surface-alt); }

.stat-tile { border: 1px solid var(--luxe-border); border-radius: var(--luxe-radius-md); padding: 1.25rem; }
.stat-tile .value { font-family: var(--luxe-font-display); font-size: 1.9rem; font-weight: 700; }

table.luxe-table thead th {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--luxe-text-muted); border-bottom-width: 1px; font-weight: 700;
}
table.luxe-table td { vertical-align: middle; font-size: 0.9rem; }

.status-pill { font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.65rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.status-pill.pending { background: #fdf1dd; color: #8a5a00; }
.status-pill.processing { background: #e6effc; color: #1c5cba; }
.status-pill.shipped { background: #e8e6fb; color: #4b3fb0; }
.status-pill.delivered { background: #e3f6ea; color: var(--luxe-success); }
.status-pill.cancelled { background: #fbe6e4; color: var(--luxe-danger); }

/* =========================================================
   Admin shell
   ========================================================= */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--luxe-ink); color: #eceae4;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand { font-family: var(--luxe-font-display); font-size: 1.25rem; padding: 1.5rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar .nav-link { color: #cfccc2; padding: 0.7rem 1.25rem; font-size: 0.9rem; border-left: 3px solid transparent; }
.admin-sidebar .nav-link i { width: 20px; display: inline-block; }
.admin-sidebar .nav-link.active { color: #fff; background: rgba(255,255,255,0.06); border-left-color: var(--luxe-gold); }
.admin-sidebar .nav-link:hover:not(.active) { color: #fff; }
.admin-main { flex: 1; background: var(--luxe-surface-alt); min-height: 100vh; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--luxe-border); }

.role-badge { font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.55rem; border-radius: 6px; text-transform: uppercase; }
.role-badge.super-admin { background: #1c1e29; color: #fff; }
.role-badge.admin { background: #efe1c8; color: #8f6d3e; }
.role-badge.manager { background: #dfeee5; color: #1f7a4d; }
.role-badge.support { background: #e6effc; color: #1c5cba; }
.role-badge.customer { background: #eee; color: #555; }

/* =========================================================
   Marketplace: stores, seller workspace, moderation
   ========================================================= */
.status-pill.approved, .status-pill.paid, .status-pill.live { background: #e3f6ea; color: var(--luxe-success); }
.status-pill.rejected, .status-pill.suspended, .status-pill.failed { background: #fbe6e4; color: var(--luxe-danger); }
.status-pill.hidden { background: #eee; color: #555; }
.role-badge.vendor { background: #f3e6d3; color: #7a4f12; }

.store-card { display: block; background: #fff; border: 1px solid var(--luxe-border); border-radius: var(--luxe-radius-md); overflow: hidden; height: 100%; transition: transform var(--luxe-transition), box-shadow var(--luxe-transition); }
.store-card:hover { transform: translateY(-3px); box-shadow: var(--luxe-shadow-md); }
.store-card-banner { height: 130px; background: linear-gradient(135deg, var(--luxe-ink-soft), var(--luxe-gold-dark)); }
.store-card-banner img { width: 100%; height: 100%; object-fit: cover; }
.store-card-body { padding: 0 1.25rem 1.25rem; }
.store-logo {
  width: 64px; height: 64px; margin-top: -32px; margin-bottom: .75rem; border-radius: 50%; overflow: hidden;
  border: 3px solid #fff; background: var(--luxe-ink); color: var(--luxe-gold-light); box-shadow: var(--luxe-shadow-sm);
  display: flex; align-items: center; justify-content: center; font-family: var(--luxe-font-display); font-size: 1.6rem;
}
.store-logo img { width: 100%; height: 100%; object-fit: cover; }

.store-hero { position: relative; min-height: 260px; background: linear-gradient(135deg, var(--luxe-ink), var(--luxe-gold-dark)); color: #fff; }
.store-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.store-hero .container { position: relative; }
.store-hero .store-logo { width: 96px; height: 96px; margin: 0; font-size: 2.4rem; }

.sold-by { border: 1px solid var(--luxe-border); border-radius: var(--luxe-radius-md); padding: .9rem 1rem; }

.sell-hero { background: var(--luxe-ink); color: #f2ede3; }
.sell-step { counter-increment: sell; position: relative; padding-left: 3rem; }
.sell-step::before {
  content: counter(sell); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--luxe-gold); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.form-section-title { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--luxe-text-muted); }

.seller-tabs .nav-link { color: var(--luxe-text-muted); font-weight: 600; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.seller-tabs .nav-link.active { color: var(--luxe-ink); border-bottom-color: var(--luxe-gold); background: transparent; }
.cart-store-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--luxe-text-muted); }
img.img-fallback { object-fit: cover; }

/* =========================================================
   Cookie / GDPR consent banner
   ========================================================= */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080;
  background: var(--luxe-ink); color: #f2ede3;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  padding: 1.1rem 1.25rem;
  transform: translateY(100%);
  transition: transform 400ms ease;
}
.consent-banner.show { transform: translateY(0); }
.consent-banner a { color: var(--luxe-gold-light); text-decoration: underline; }

/* =========================================================
   Toast (mini cart / alerts)
   ========================================================= */
.luxe-toast {
  position: fixed; top: 90px; right: 20px; z-index: 1090;
  background: #fff; border: 1px solid var(--luxe-border);
  border-radius: var(--luxe-radius-md); box-shadow: var(--luxe-shadow-md);
  padding: 1rem 1.25rem; min-width: 300px;
  transform: translateX(120%); transition: transform var(--luxe-transition);
}
.luxe-toast.show { transform: translateX(0); }

/* =========================================================
   Skeleton loading
   ========================================================= */
.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: var(--luxe-radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 991.98px) {
  .summary-card { position: static; }
  .admin-sidebar { position: fixed; left: -260px; z-index: 1050; transition: left var(--luxe-transition); }
  .admin-sidebar.open { left: 0; }
  .admin-main { width: 100%; }
}

/* =========================================================
   Image picker (js/image-picker.js)
   ========================================================= */
.img-picker-drop {
  border: 1.5px dashed var(--luxe-border); border-radius: var(--luxe-radius-md); background: var(--luxe-surface-alt);
  padding: 1.1rem; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .2rem;
  transition: border-color var(--luxe-transition), background var(--luxe-transition);
}
.img-picker-drop:hover, .img-picker-drop:focus-visible, .img-picker-drop.is-over { border-color: var(--luxe-gold); background: #fbf7ef; outline: none; }
.img-picker-drop .bi { color: var(--luxe-gold-dark); }
.img-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; margin-top: .6rem; }
.img-picker-grid:empty { display: none; }
.img-picker-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--luxe-border); background: #f4f1ea; display: flex; align-items: center; justify-content: center; }
.img-picker-thumb.is-cover { border: 2px solid var(--luxe-gold); }
.img-picker-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-picker-badge { position: absolute; top: 4px; left: 4px; background: var(--luxe-gold); color: #fff; font-size: .62rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.img-picker-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 2px; padding: 3px; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity var(--luxe-transition); }
.img-picker-thumb:hover .img-picker-actions, .img-picker-thumb:focus-within .img-picker-actions { opacity: 1; }
@media (hover: none) { .img-picker-actions { opacity: 1; } }
.img-picker-actions button { border: 0; background: rgba(255,255,255,.92); border-radius: 6px; width: 26px; height: 26px; padding: 0; font-size: .8rem; color: var(--luxe-ink); }
.img-picker-actions button[data-act=remove] { color: var(--luxe-danger); }

/* Category admin */
.cat-row-child td:first-child { padding-left: 2.2rem; }
.cat-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #f4f1ea; }

/* =========================================================
   Ad slots (js/ads.js) — quiet, clearly labelled, space reserved
   ========================================================= */
.ad-slot { position: relative; display: flex; flex-direction: column; justify-content: center; }
.ad-slot .ad-label { font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--luxe-text-muted); margin-bottom: .25rem; }
.ad-placeholder {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; text-align: center;
  border: 1.5px dashed var(--luxe-border); border-radius: var(--luxe-radius-md); background: repeating-linear-gradient(45deg, #faf8f4, #faf8f4 10px, #f4f1ea 10px, #f4f1ea 20px);
  color: var(--luxe-text-muted); font-size: .8rem; padding: .75rem;
}
.ad-placeholder code { color: var(--luxe-gold-dark); }
.ad-infeed { height: 100%; }

.ads-preview-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1100; background: #7a4f12; color: #fff; padding: .5rem .9rem; border-radius: 999px; font-size: .82rem; box-shadow: var(--luxe-shadow-md); display: flex; gap: .6rem; align-items: center; }
.ads-preview-bar button { border: 0; background: #fff; color: #7a4f12; border-radius: 999px; padding: .15rem .7rem; font-weight: 700; font-size: .78rem; }

.preview-notice { background: #fdf1dd; color: #6b4a00; font-size: .8rem; text-align: center; padding: .35rem 1rem; border-bottom: 1px solid #f1dfb8; }

/* House ad: shown in ad slots until Google ads are switched on */
.ad-house {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .35rem; text-decoration: none;
  color: #f2ede3; background: linear-gradient(120deg, var(--luxe-ink) 0%, var(--luxe-ink-soft) 60%, #3a2e1c 100%);
  border-radius: var(--luxe-radius-md); padding: 1rem 1.25rem; position: relative; overflow: hidden;
  transition: transform var(--luxe-transition), box-shadow var(--luxe-transition);
}
.ad-house:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--luxe-shadow-md); }
.ad-house .ad-label { color: var(--luxe-gold-light); opacity: .8; margin: 0; }
.ad-house-body { display: flex; align-items: center; gap: 1rem; }
.ad-house-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(184,146,90,.18); color: var(--luxe-gold-light); font-size: 1.2rem; }
.ad-house-text { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.ad-house-text strong { font-family: var(--luxe-font-display); font-size: 1.15rem; font-weight: 600; color: #fff; }
.ad-house-text span { font-size: .85rem; color: #cfc8bb; }
.ad-house-cta { flex-shrink: 0; font-size: .82rem; font-weight: 700; color: var(--luxe-ink); background: var(--luxe-gold); padding: .5rem .9rem; border-radius: 999px; white-space: nowrap; }
/* Tall formats (sidebar rectangle, in-feed card): stack vertically and centre */
.ad-house-rectangle .ad-house-body, .ad-house-infeed .ad-house-body { flex-direction: column; text-align: center; gap: .75rem; }
.ad-house-rectangle, .ad-house-infeed { align-items: center; text-align: center; }
@media (max-width: 767.98px) {
  .ad-house-horizontal .ad-house-body { flex-wrap: wrap; gap: .6rem; }
  .ad-house-horizontal .ad-house-text span { display: none; }
  .ad-house-horizontal .ad-house-text strong { font-size: 1rem; }
  .ad-house-horizontal .ad-house-cta { flex-basis: 100%; text-align: center; }
}
@media (max-width: 575.98px) { .ad-horizontal { min-height: 100px !important; } }

/* Phones: Bootstrap's g-5 gutter (3rem) is wider than the container padding and
   causes a sideways scroll; the consent buttons also need to wrap. */
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .consent-banner .d-flex.gap-2 { flex-wrap: wrap; flex-shrink: 1 !important; }
  .store-hero { min-height: 220px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
.d-contents { display: contents; }

/* Admin top bar: let the title and action buttons wrap on small phones */
.admin-topbar { flex-wrap: wrap; gap: .5rem; }
.admin-topbar > .d-flex { flex-wrap: wrap; }
