/* ============================================================
   AYRVANA BOUTIQUE MARKETPLACE — Master Stylesheet
   Damerax Cloud Solutions
   Edition: Luxury Maison — Cormorant × DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&display=swap');

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:         #C9A96E;
  --gold-light:   #E2C99A;
  --gold-dark:    #A07840;
  --gold-pale:    #F5EDD9;
  --theme:        #C9A96E;
  --theme-dark:   #A07840;
  --theme-light:  #F5EDD9;
  --theme-orange: #C07840;

  --ink:          #0A0A0A;
  --ink-soft:     #1C1C1C;
  --ink-muted:    #4A4A4A;
  --ink-light:    #8A8A8A;

  --bg:           #F9F7F4;
  --bg-warm:      #F2EEE8;
  --surface:      #FFFFFF;
  --border:       #E4DDD4;
  --border-dark:  #C8BEB4;

  --danger:       #B03030;
  --success:      #2D7A56;
  --warn:         #B86820;

  --radius:       2px;
  --radius-lg:    4px;
  --shadow:       0 1px 8px rgba(10,10,10,0.06);
  --shadow-md:    0 4px 20px rgba(10,10,10,0.10);
  --shadow-lg:    0 12px 48px rgba(10,10,10,0.14);

  --sidebar-w:    240px;
  --topbar-h:     60px;

  --font-serif:   'Cormorant Garamond', 'Georgia', serif;
  --font-sans:    'DM Sans', 'Helvetica Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; }

/* ── UTILITY ──────────────────────────────────────────────── */
.req { color: var(--danger); }

/* ── ALERTS ───────────────────────────────────────────────── */
.alert {
  padding: .8rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  border-left: 3px solid;
}
.alert-success { background: #EAF5EE; color: var(--success); border-color: var(--success); }
.alert-error   { background: #FAECEC; color: var(--danger);  border-color: var(--danger); }
.alert-warn    { background: #FDF2E4; color: var(--warn);    border-color: var(--warn); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .22s ease;
  white-space: nowrap;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-dark);
}
.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-full { width: 100%; justify-content: center; }
.btn-sm   { padding: .35rem .9rem; font-size: .72rem; }

.btn-sale   { background: #FDF2E4; color: var(--warn);    border-color: #F0D8B8; }
.btn-edit   { background: #EFF4FB; color: #2155A0;        border-color: #C0D4EE; }
.btn-delete { background: #FAECEC; color: var(--danger);  border-color: #ECCACA; }
.btn-sale:hover   { background: #F6E4CC; }
.btn-edit:hover   { background: #D8E4F8; }
.btn-delete:hover { background: #F5DADA; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* WhatsApp button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #25D366;
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s;
  width: 100%;
  justify-content: center;
}
.btn-whatsapp::before { content: ''; display: inline-block; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z'/%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12c0 2.136.565 4.14 1.543 5.877L0 24l6.29-1.521A11.94 11.94 0 0 0 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0zm0 22c-1.886 0-3.638-.503-5.148-1.375L3 22l1.414-4.696A9.94 9.94 0 0 1 2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10z'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-whatsapp:hover { background: #1aab52; }
.btn-whatsapp-lg {
  padding: .9rem 2rem;
  font-size: .82rem;
  margin-top: 1.5rem;
}

/* ── FORMS ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .45rem;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: .9rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.12);
}
.form-group input[type="file"] {
  padding: .5rem;
  background: var(--bg-warm);
  border: 1px dashed var(--border-dark);
}
.form-group small { font-size: .76rem; color: var(--ink-light); margin-top: .35rem; display: block; }
.form-group small a { color: var(--gold-dark); text-decoration: underline; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .9rem; font-weight: 500; }
.checkbox-label input { width: auto; accent-color: var(--gold); }
.color-row { display: flex; gap: .6rem; align-items: center; }
.color-row input[type="color"] { width: 48px; height: 42px; border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 2px; cursor: pointer; }
.color-row input[type="text"] { flex: 1; }

/* ── CARD ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card-header { margin-bottom: 1.4rem; }
.card-header h3 { font-size: .92rem; font-weight: 700; color: var(--ink); letter-spacing: .04em; text-transform: uppercase; }
.card-header p  { font-size: .82rem; color: var(--ink-light); margin-top: .25rem; }

/* ── AUTH PAGE ────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 48px,
      rgba(201,169,110,.04) 48px,
      rgba(201,169,110,.04) 49px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(201,169,110,.04) 48px,
      rgba(201,169,110,.04) 49px
    );
  pointer-events: none;
}
.sa-auth { background: #050505; }

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  border: 1px solid rgba(201,169,110,.2);
  position: relative;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 2rem; right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.auth-brand { text-align: center; margin-bottom: 2.2rem; }
.auth-logo-icon {
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: .6rem;
  font-family: var(--font-serif);
  letter-spacing: .2em;
}
.auth-logo-img {
  height: 60px;
  width: auto;
  margin: 0 auto .9rem;
  object-fit: contain;
}
.auth-brand h1 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  font-family: var(--font-serif);
  letter-spacing: .06em;
}
.auth-brand h1 span { color: var(--gold-dark); }
.auth-brand p { font-size: .78rem; color: var(--ink-light); margin-top: .4rem; letter-spacing: .06em; text-transform: uppercase; }

/* ── ADMIN LAYOUT ─────────────────────────────────────────── */
.admin-body { display: flex; min-height: 100vh; background: var(--bg); }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform .25s ease;
  border-right: 1px solid rgba(201,169,110,.1);
}
/* replaced by sidebar-v2 below */
.sidebar-nav { flex: 1; padding: .5rem 0; overflow-y: auto; }
.sidebar-logo { height: 52px; width: auto; max-width: 180px; object-fit: contain; border-radius: 2px; }
.brand-icon { font-size: 1.1rem; color: var(--gold); font-family: var(--font-serif); letter-spacing: .2em; }
.brand-name { font-size: .82rem; font-weight: 600; color: #fff; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
.brand-sub  { font-size: .65rem; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .1em; }

/* replaced by sidebar-v2 below */

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 99;
  backdrop-filter: blur(2px);
}

/* Main area */
.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.admin-topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.8rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 var(--border);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--ink);
  padding: .2rem;
}
.topbar-title {
  font-size: .72rem;
  font-weight: 700;
  flex: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.topbar-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .8rem;
  border-radius: 50px;
  background: var(--gold-pale);
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid rgba(201,169,110,.3);
}
.sa-badge { background: var(--ink); color: var(--gold-light); border-color: transparent; }
.topbar-user { font-size: .78rem; color: var(--ink-light); letter-spacing: .02em; }

/* Content */
.admin-content { padding: 2rem 1.8rem; flex: 1; max-width: 1200px; }

/* ── STATS ROW ────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card-highlight { border-color: rgba(201,169,110,.35); background: linear-gradient(135deg, var(--gold-pale), #fff); }
.stat-icon { font-size: 1.2rem; margin-bottom: .4rem; opacity: .6; }
.stat-num  { font-size: 1.8rem; font-weight: 300; color: var(--ink); line-height: 1; font-family: var(--font-serif); }
.stat-card-highlight .stat-num { color: var(--gold-dark); }
.stat-label { font-size: .68rem; color: var(--ink-light); margin-top: .35rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-header h3 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); }

/* ── PRODUCT MINI GRID (dashboard) ───────────────────────── */
.product-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.product-mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.product-mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-mini-card.soldout { opacity: .55; }
.product-mini-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-warm); }
.product-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.soldout-badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--ink); color: #fff;
  font-size: .6rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 1px;
  text-transform: uppercase; letter-spacing: .08em;
}
.product-mini-info { padding: .75rem; }
.product-mini-title { font-size: .8rem; font-weight: 500; color: var(--ink); line-height: 1.35; margin-bottom: .25rem; }
.product-mini-price { font-size: .85rem; font-weight: 700; color: var(--gold-dark); font-family: var(--font-serif); }
.product-mini-qty   { font-size: .7rem; color: var(--ink-light); margin-top: .2rem; }

/* ── SUPER ADMIN GRID ─────────────────────────────────────── */
.sa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.current-logo { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.current-logo img { height: 48px; width: auto; border-radius: 2px; border: 1px solid var(--border); }
.current-logo span { font-size: .78rem; color: var(--ink-light); letter-spacing: .04em; }

.owner-status {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--bg-warm);
  padding: .8rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.owner-name { font-size: .86rem; font-weight: 600; }
.badge { font-size: .66rem; font-weight: 700; padding: .2rem .65rem; border-radius: 1px; text-transform: uppercase; letter-spacing: .06em; }
.badge-success { background: #EAF5EE; color: var(--success); }

.info-box {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  font-size: .83rem;
}
.info-box code { font-family: monospace; font-size: .8rem; color: var(--gold-dark); word-break: break-all; }

.checklist h4 { font-size: .76rem; font-weight: 700; margin-bottom: .7rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: .1em; }
.checklist ul { list-style: none; }
.checklist li { font-size: .86rem; padding: .3rem 0; color: var(--ink-light); }
.checklist li.done { color: var(--ink); }

/* ── PRODUCT TABLE ────────────────────────────────────────── */
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.search-bar-form { display: flex; gap: .5rem; flex: 1; min-width: 200px; }
.search-input { flex: 1; padding: .55rem 1rem; border: 1px solid var(--border-dark); border-radius: var(--radius); font-size: .86rem; outline: none; background: var(--surface); color: var(--ink); }
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,.1); }

.filter-tabs { display: flex; gap: .4rem; }
.filter-tab {
  padding: .38rem .9rem;
  border-radius: 1px;
  font-size: .72rem;
  font-weight: 600;
  border: 1px solid var(--border-dark);
  color: var(--ink-muted);
  transition: all .15s;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.filter-tab:hover { border-color: var(--gold); color: var(--gold-dark); }
.filter-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--ink);
  color: rgba(255,255,255,.55);
  padding: .8rem 1rem;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.data-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); font-size: .86rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-warm); }

.table-thumb {
  width: 50px; height: 50px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border);
}
.table-product-title { font-weight: 600; font-size: .88rem; }
.table-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.tag-pill {
  background: var(--ink);
  color: var(--gold-light);
  font-size: .66rem;
  padding: .15rem .5rem;
  border-radius: 1px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.status-badge {
  font-size: .66rem;
  font-weight: 700;
  padding: .22rem .65rem;
  border-radius: 1px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.status-active  { background: #EAF5EE; color: var(--success); }
.status-soldout { background: #FAECEC; color: var(--danger); }

.action-btns { display: flex; gap: .4rem; }
.empty-cell { text-align: center; color: var(--ink-light); padding: 2.5rem !important; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }

.pagination { display: flex; gap: .4rem; padding: 1rem; justify-content: center; }
.page-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--border-dark);
  color: var(--ink-muted);
  transition: all .15s;
}
.page-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.page-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── ADD PRODUCT ──────────────────────────────────────────── */
.add-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.upload-zone {
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  position: relative;
  transition: border-color .2s;
  background: var(--bg-warm);
}
.upload-zone:has(#uploadPlaceholder:hover) { border-color: var(--gold); }
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  cursor: pointer;
  padding: 2rem;
  transition: background .15s;
}
.upload-placeholder:hover { background: var(--gold-pale); }
.upload-icon { font-size: 2rem; margin-bottom: .8rem; opacity: .4; }
.upload-text { font-weight: 600; color: var(--ink-muted); margin-bottom: .3rem; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.upload-sub  { font-size: .76rem; color: var(--ink-light); }

.upload-preview { width: 100%; height: 280px; object-fit: cover; }
.ai-loader {
  position: absolute; inset: 0;
  background: rgba(249,247,244,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ai-spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ai-status {
  padding: .7rem 1rem;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 500;
  margin-top: .8rem;
  letter-spacing: .02em;
  border-left: 2px solid;
}
.ai-success { background: #EAF5EE; color: var(--success); border-color: var(--success); }
.ai-error   { background: #FAECEC; color: var(--danger);  border-color: var(--danger); }

/* Edit product */
.edit-current-image { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--bg-warm); }
.edit-current-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── STOREFRONT ───────────────────────────────────────────── */
.storefront { background: var(--bg); }

/* HEADER */
.store-header {
  background: var(--ink);
  border-bottom: 1px solid rgba(201,169,110,.25);
  padding: 1.1rem 1.4rem .9rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.store-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .85rem;
  position: relative;
}
.store-logo { height: 44px; width: auto; object-fit: contain; }
.store-logo-text {
  font-size: 1.4rem;
  color: var(--gold);
  font-family: var(--font-serif);
  letter-spacing: .2em;
}
.store-name {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: #fff;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.store-tagline {
  font-size: .62rem;
  color: var(--gold-light);
  margin-top: .15rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: .75;
}

/* Search */
.store-search { position: relative; }
.search-wrap { position: relative; }
.search-wrap .search-icon {
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%);
  font-size: .8rem; pointer-events: none; color: rgba(255,255,255,.3);
}
.search-wrap input {
  width: 100%;
  padding: .6rem 1rem .6rem 2.5rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1px;
  font-size: .85rem;
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
  transition: border-color .18s, background .18s;
  letter-spacing: .02em;
}
.search-wrap input::placeholder { color: rgba(255,255,255,.3); }
.search-wrap input:focus {
  border-color: rgba(201,169,110,.5);
  background: rgba(255,255,255,.09);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 200;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-warm); }
.search-result-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 2px; }
.sr-title { font-size: .86rem; font-weight: 600; letter-spacing: .02em; }
.sr-price { font-size: .8rem; color: var(--gold-dark); font-weight: 700; font-family: var(--font-serif); }

/* Tag filter bar */
.tag-filter-bar {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: .65rem 1.2rem;
}
.tag-filter-scroll {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.tag-filter-scroll::-webkit-scrollbar { display: none; }
.tag-chip {
  display: inline-block;
  padding: .28rem .9rem;
  border: 1px solid var(--border-dark);
  border-radius: 1px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: all .18s;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: transparent;
}
.tag-chip:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-pale); }
.tag-chip.active { background: var(--ink); border-color: var(--ink); color: var(--gold-light); }

/* Main & Sections */
.store-main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.2rem 7rem; }

.section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--gold);
}
.product-count {
  background: var(--ink);
  color: var(--gold-light);
  padding: .15rem .6rem;
  border-radius: 1px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
}

/* Featured strip */
.featured-section { margin-bottom: 3rem; }
.featured-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.featured-strip::-webkit-scrollbar { display: none; }
.featured-card {
  flex: 0 0 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(10,10,10,.12);
  border-color: var(--gold);
}
.featured-card img { width: 160px; height: 160px; object-fit: cover; }
.featured-card-info { padding: .65rem .75rem; background: var(--surface); }
.featured-card-title { font-size: .74rem; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .04em; }
.featured-card-price { font-size: .82rem; font-weight: 700; color: var(--gold-dark); font-family: var(--font-serif); }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.2rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .24s, box-shadow .24s, border-color .24s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(10,10,10,.13);
  border-color: var(--gold);
}
.product-card-link { flex: 1; display: flex; flex-direction: column; }
.product-card-img  { aspect-ratio: 1; overflow: hidden; background: var(--bg-warm); position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.07); }
.featured-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink);
  color: var(--gold-light);
  font-size: .6rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 1px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.product-card-body { padding: .9rem 1rem .5rem; flex: 1; }
.product-card-title {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product-card-price {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  font-family: var(--font-serif);
  letter-spacing: .02em;
}
.product-card-footer { padding: .7rem 1rem .9rem; }

.empty-store {
  grid-column: 1/-1;
  text-align: center;
  padding: 5rem 1rem;
  color: var(--ink-light);
}
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-light); }
.empty-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: .4; }

/* Product detail */
.product-header {
  background: var(--ink);
  border-bottom: 1px solid rgba(201,169,110,.2);
  padding: .95rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.back-btn {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .18s;
}
.back-btn:hover { color: var(--gold); }
.product-header-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.store-logo-sm { height: 26px; width: auto; border-radius: 2px; }

.product-detail { max-width: 1000px; margin: 0 auto; padding: 2rem 1.2rem 5rem; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.product-detail-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-warm);
  aspect-ratio: 1;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.soldout-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-family: var(--font-serif);
}

.product-detail-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.product-detail-title {
  font-size: 1.75rem;
  font-weight: 400;
  font-family: var(--font-serif);
  line-height: 1.15;
  margin-bottom: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
}
.product-detail-price {
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  font-family: var(--font-serif);
  letter-spacing: .02em;
  border-bottom: 1px solid var(--border);
  padding-bottom: .9rem;
}
.product-detail-desc {
  margin-top: 1.3rem;
  color: var(--ink-muted);
  line-height: 1.85;
  font-size: .92rem;
}
.product-detail-meta { margin-top: 1.5rem; font-size: .78rem; color: var(--ink-light); letter-spacing: .04em; }
.soldout-msg {
  margin-top: 1.5rem;
  padding: .9rem 1.2rem;
  background: #FAECEC;
  color: var(--danger);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .85rem;
  border-left: 3px solid var(--danger);
}

.related-section { margin-top: 3.5rem; }

/* Search page header */
.product-header .search-header-form {
  display: flex; flex: 1; gap: .5rem;
}
.search-input-header {
  flex: 1; padding: .5rem 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1px; font-size: .85rem; outline: none;
  background: rgba(255,255,255,.07); color: #fff;
  letter-spacing: .02em;
}
.search-input-header:focus { border-color: rgba(201,169,110,.5); }
.search-input-header::placeholder { color: rgba(255,255,255,.3); }
.btn-search {
  padding: .5rem 1rem; border: none;
  background: var(--gold); color: var(--ink);
  border-radius: 1px; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.btn-search:hover { background: var(--gold-light); }

/* ── STORE FOOTER ─────────────────────────────────────────── */
.store-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  background: var(--ink);
  font-size: .68rem;
  color: rgba(255,255,255,.2);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.store-footer strong { color: var(--gold); font-weight: 500; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .sa-grid                { grid-template-columns: 1fr; }
  .add-product-layout     { grid-template-columns: 1fr; }
  .product-detail-grid    { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .admin-main    { margin-left: 0; }
  .menu-toggle   { display: block; }
  .admin-content { padding: 1.3rem 1rem; }

  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }

  .product-grid      { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .product-grid-mini { grid-template-columns: repeat(2, 1fr); }

  .list-toolbar { flex-direction: column; align-items: stretch; }
  .search-bar-form { width: 100%; }
}


@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .product-card-title { font-size: .72rem; }
  .btn-whatsapp { font-size: .72rem; padding: .55rem .7rem; }
  .featured-card { flex: 0 0 140px; }
  .featured-card img { width: 140px; height: 140px; }
  .product-detail-title { font-size: 1.35rem; }
}


/* Landscape: sidebar nav scrolls, nothing else changes */
@media (orientation: landscape) and (max-height: 500px) {
  .sidebar-nav { overflow-y: auto; }
  .sidebar-brand { padding: .6rem 1rem; }
  .nav-section-label { padding: .3rem 1.2rem .1rem; }
  .nav-item { padding: .4rem 1.2rem; }
  .sidebar-footer { display: none; }
}

/* ============================================================
   CART, CHECKOUT, ORDERS, BILL
   ============================================================ */

/* ── CART ─────────────────────────────────────────────────── */
.cart-layout { display:grid; grid-template-columns:1fr 360px; gap:1.5rem; align-items:start; }
.cart-item { display:flex; gap:1rem; padding:1.1rem 0; border-bottom:1px solid var(--border); align-items:flex-start; }
.cart-item:last-child { border-bottom:none; }
.cart-item-img { width:80px; height:80px; object-fit:cover; border-radius:var(--radius); flex-shrink:0; border:1px solid var(--border); }
.cart-item-info { flex:1; }
.cart-item-title { font-weight:600; font-size:.86rem; margin-bottom:.3rem; text-transform:uppercase; letter-spacing:.04em; }
.cart-item-price { font-size:.78rem; color:var(--ink-light); }
.cart-item-subtotal { font-weight:700; font-size:.92rem; color:var(--ink); white-space:nowrap; font-family:var(--font-serif); }
.cart-qty-row { display:flex; align-items:center; gap:.5rem; margin-top:.6rem; }
.qty-btn {
  width:28px; height:28px;
  border:1px solid var(--border-dark);
  background:var(--surface);
  border-radius:var(--radius);
  font-size:.9rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all .15s;
}
.qty-btn:hover { border-color:var(--gold); color:var(--gold-dark); background:var(--gold-pale); }
.qty-num { font-weight:700; min-width:24px; text-align:center; font-family:var(--font-serif); }
.remove-btn { background:none; border:none; color:var(--danger); font-size:.72rem; cursor:pointer; margin-left:.5rem; letter-spacing:.04em; text-transform:uppercase; }
.remove-btn:hover { text-decoration:underline; }

.summary-row { display:flex; justify-content:space-between; padding:.55rem 0; border-bottom:1px solid var(--border); font-size:.86rem; }
.summary-row:last-child { border-bottom:none; }
.summary-total { font-weight:700; font-size:1rem; color:var(--ink); padding-top:.8rem; font-family:var(--font-serif); }

/* Cart icon float */
.cart-float { position:fixed; bottom:1.8rem; right:1.8rem; z-index:80; }
.cart-float-btn {
  background:var(--ink);
  color:var(--gold-light);
  border:1px solid rgba(201,169,110,.3);
  width:52px; height:52px;
  border-radius:50%;
  font-size:1.2rem;
  box-shadow:var(--shadow-lg);
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  position:relative;
  text-decoration:none;
  transition:transform .2s, background .2s;
}
.cart-float-btn:hover { transform:scale(1.06); background:var(--gold); color:var(--ink); border-color:var(--gold); }
.cart-count-badge {
  position:absolute;
  top:-4px; right:-4px;
  background:var(--danger);
  color:#fff;
  font-size:.6rem;
  font-weight:800;
  width:18px; height:18px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:2px solid #fff;
}

/* Add to cart button */
.btn-addcart {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  background:var(--ink);
  color:#fff;
  padding:.65rem 1.2rem;
  border-radius:var(--radius);
  font-size:.72rem;
  font-weight:700;
  border:1px solid var(--ink);
  cursor:pointer;
  transition:background .2s, color .2s, border-color .2s;
  width:100%;
  justify-content:center;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.btn-addcart:hover { background:var(--gold); color:var(--ink); border-color:var(--gold); }
.btn-addcart-lg { padding:.9rem 2rem; font-size:.8rem; }

/* Product card footer 2-button layout */
.product-card-footer-2 { display:grid; grid-template-columns:1fr 1fr; gap:.5rem; padding:.7rem 1rem 1rem; }

/* ── CHECKOUT ─────────────────────────────────────────────── */
.checkout-layout { display:grid; grid-template-columns:1fr 360px; gap:1.5rem; align-items:start; }
.checkout-item { display:flex; gap:.8rem; padding:.75rem 0; border-bottom:1px solid var(--border); align-items:center; }
.checkout-item:last-child { border-bottom:none; }
.checkout-item-img { width:52px; height:52px; object-fit:cover; border-radius:var(--radius); border:1px solid var(--border); flex-shrink:0; }
.checkout-item-info { flex:1; }
.checkout-item-title { font-size:.82rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.checkout-item-meta  { font-size:.74rem; color:var(--ink-light); }
.checkout-item-sub   { font-weight:700; font-size:.88rem; color:var(--ink); font-family:var(--font-serif); }

/* Payment options */
.payment-options { display:flex; flex-direction:column; gap:.7rem; }
.payment-option {
  display:flex;
  align-items:center;
  gap:.9rem;
  padding:.95rem 1rem;
  border:1px solid var(--border-dark);
  border-radius:var(--radius);
  cursor:pointer;
  transition:all .18s;
}
.payment-option:hover { border-color:var(--gold); background:var(--gold-pale); }
.payment-option.selected { border-color:var(--ink); background:var(--bg-warm); }
.payment-option input[type="radio"] { display:none; }
.payment-icon { font-size:1.3rem; opacity:.7; }
.payment-label { font-weight:700; font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; }
.payment-sub   { font-size:.74rem; color:var(--ink-light); margin-top:.1rem; }

/* ── ORDERS ───────────────────────────────────────────────── */
.status-new       { background:#EBF2FE; color:#1A4DA8; }
.status-confirmed { background:#EAF5EE; color:var(--success); }
.status-shipped   { background:#FDF2E4; color:var(--warn); }
.status-delivered { background:#F0FAF5; color:#166534; }
.status-cancelled { background:#FAECEC; color:var(--danger); }

/* ── PRODUCT GALLERY ──────────────────────────────────────── */
.product-gallery { position:relative; }
.product-gallery-main { aspect-ratio:1; overflow:hidden; border-radius:var(--radius-lg); background:var(--bg-warm); }
.product-gallery-main img { width:100%; height:100%; object-fit:cover; transition:opacity .2s; }
.product-gallery-thumbs { display:flex; gap:.5rem; margin-top:.6rem; overflow-x:auto; scrollbar-width:none; }
.product-gallery-thumbs::-webkit-scrollbar { display:none; }
.gallery-thumb { width:60px; height:60px; border-radius:var(--radius); overflow:hidden; flex-shrink:0; border:2px solid transparent; cursor:pointer; transition:border-color .18s; }
.gallery-thumb.active { border-color:var(--gold); }
.gallery-thumb img { width:100%; height:100%; object-fit:cover; }

/* ── STORE SETTINGS (dxpanel) ─────────────────────────────── */
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }

/* ── QUICK ORDER FORM (product page) ──────────────────────── */
.quick-order-card {
  background:var(--bg-warm);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:1.3rem;
  margin-top:1.3rem;
}
.quick-order-title {
  font-size:.72rem;
  font-weight:700;
  margin-bottom:1rem;
  color:var(--ink-muted);
  text-transform:uppercase;
  letter-spacing:.12em;
}

/* ── RESPONSIVE UPGRADES ──────────────────────────────────── */
@media(max-width:900px) {
  .cart-layout     { grid-template-columns:1fr; }
  .checkout-layout { grid-template-columns:1fr; }
  .settings-grid   { grid-template-columns:1fr; }
}
@media(max-width:480px) {
  .product-card-footer-2 { grid-template-columns:1fr; }
}

/* ── HEADER CART BUTTON ───────────────────────────────────── */
.header-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.07);
  border-radius: 1px;
  font-size: 1rem;
  margin-left: auto;
  flex-shrink: 0;
  transition: background .18s, border-color .18s;
  border: 1px solid rgba(201,169,110,.2);
  color: rgba(255,255,255,.7);
}
.header-cart-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ============================================================
   SIDEBAR V2 — SVG Icons, Section Labels, User Footer
   ============================================================ */

.sidebar-monogram {
  width: 44px; height: 44px;
  background: var(--theme);
  color: #111;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid #1e1e1e;
}
.sidebar-brand-text { min-width: 0; }
.brand-name {
  font-size: .88rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .02em;
}
.brand-sub { font-size: .68rem; color: #555; text-transform: uppercase; letter-spacing: .07em; margin-top: .1rem; }

/* Section labels */
.nav-section-label {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #3a3a3a;
  padding: .9rem 1.2rem .3rem;
  text-transform: uppercase;
}

/* Nav items */
.nav-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .62rem 1.2rem;
  color: #888;
  font-size: .85rem;
  font-weight: 500;
  transition: all .14s;
  border-left: 2px solid transparent;
  border-radius: 0;
  position: relative;
}
.nav-item:hover { background: #181818; color: #ddd; }
.nav-item.active { background: #181818; color: #fff; border-left-color: var(--theme); }
.nav-item.active .nav-icon { color: var(--theme); }

/* SVG icons */
.nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: inherit;
}
.nav-icon svg { width: 18px; height: 18px; }

.nav-label { flex: 1; }

.nav-badge {
  background: var(--danger);
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  padding: .15rem .45rem;
  border-radius: 50px;
  min-width: 18px;
  text-align: center;
}

.nav-ext {
  opacity: .3;
  display: flex; align-items: center;
}
.nav-item:hover .nav-ext { opacity: .7; }

.nav-item-danger { color: #7a4444 !important; }
.nav-item-danger:hover { color: #e88 !important; background: #1a1111 !important; }

/* Sidebar user footer */
.sidebar-footer {
  padding: 0;
  border-top: 1px solid #1e1e1e;
  margin-top: auto;
}
.sidebar-footer-user {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.2rem .7rem;
}
.sf-avatar {
  width: 32px; height: 32px;
  background: #222;
  border: 1.5px solid #333;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  color: var(--theme);
  flex-shrink: 0;
}
.sf-info { min-width: 0; }
.sf-name { font-size: .8rem; font-weight: 700; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-role { font-size: .65rem; color: #555; text-transform: uppercase; letter-spacing: .06em; }
.sf-credit { font-size: .62rem; color: #2e2e2e; text-align: center; padding: .4rem; border-top: 1px solid #1a1a1a; letter-spacing: .05em; }

/* ============================================================
   STOREFRONT FOOTER — E-Commerce
   ============================================================ */

.store-footer {
  background: #0d0d0d;
  border-top: 2px solid #1a1a1a;
  padding: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
}
.footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.footer-icon {
  font-size: 1.6rem;
  color: var(--theme);
  line-height: 1;
  flex-shrink: 0;
}
.footer-name {
  font-size: .92rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer-tagline {
  font-size: .72rem;
  color: #555;
  letter-spacing: .06em;
  margin-top: .2rem;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-links a {
  font-size: .82rem;
  color: #666;
  font-weight: 500;
  letter-spacing: .03em;
  transition: color .14s;
}
.footer-links a:hover { color: var(--theme); }

.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-content: flex-start;
}
.footer-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border: 1px solid #222;
  border-radius: 50px;
  color: #555;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: all .14s;
}
.footer-tag:hover { border-color: var(--theme); color: var(--theme); }

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1a1a1a;
  padding: 1rem 0 1.2rem;
  margin-top: 1.5rem;
  font-size: .74rem;
  color: #333;
}
.footer-credit strong { color: #555; }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: .4rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   BOTTOM NAV — Storefront (mobile + desktop)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: #0d0d0d;
  border-top: 1px solid #222;
  display: flex;
  align-items: stretch;
  height: 60px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.4);
  padding-bottom: env(safe-area-inset-bottom);
}

.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #555;
  text-decoration: none;
  transition: color .15s;
  position: relative;
  padding: 6px 0;
}
.bnav-item:hover  { color: #aaa; }
.bnav-item.active { color: #D4A843; }

.bnav-icon {
  position: relative;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.bnav-icon svg { width: 22px; height: 22px; }

.bnav-label {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.bnav-badge {
  position: absolute;
  top: -5px; right: -8px;
  background: #D4A843;
  color: #111;
  font-size: .55rem;
  font-weight: 900;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #0d0d0d;
}

/* WhatsApp item — green tint on hover */
.bnav-item:last-child:hover { color: #25D366; }

/* Push store main content above bottom nav */
.store-main  { padding-bottom: 80px !important; }
.store-footer { margin-bottom: 60px; }

/* Collapsible product cards for mobile */
@media (max-width: 768px) {
  .product-card-collapsible {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
  }
  
  .product-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    background: var(--surface);
  }
  
  .product-card-header:hover {
    background: var(--bg-warm);
  }
  
  .product-card-header-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
  }
  
  .product-card-header-info {
    flex: 1;
    min-width: 0;
  }
  
  .product-card-header-title {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .product-card-header-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--ink-light);
  }
  
  .product-card-header-price {
    font-weight: 700;
    color: var(--gold-dark);
  }
  
  .product-card-expand-icon {
    font-size: 1rem;
    color: var(--ink-light);
    transition: transform 0.2s;
  }
  
  .product-card-collapsible.expanded .product-card-expand-icon {
    transform: rotate(180deg);
  }
  
  .product-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0.75rem;
  }
  
  .product-card-collapsible.expanded .product-card-body {
    max-height: 300px;
    padding: 0 0.75rem 0.75rem 0.75rem;
  }
  
  .product-card-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
  }
  
  .product-card-detail-row:last-child {
    border-bottom: none;
  }
  
  .product-card-detail-label {
    font-weight: 600;
    color: var(--ink-muted);
  }
  
  .product-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
  
  .product-card-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================================
   AYRVANA ROYAL INDIAN HERITAGE DESIGN SYSTEM
   ============================================================ */

/* Royal Wallpaper Background Pattern */
.royal-wallpaper {
  background-color: #09030d !important;
  background-image: 
    /* Gold stars / sparkles */
    radial-gradient(rgba(212, 175, 55, 0.09) 1.5px, transparent 1.5px),
    /* Repeating SVG Indian Palace Jaali / Tile pattern */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0C17.9 0 0 17.9 0 40s17.9 40 40 40 40-17.9 40-40S62.1 0 40 0zm0 76C20.1 76 4 59.9 4 40S20.1 4 40 4s36 16.1 36 36-16.1 36-36 36z' fill='%23d4af37' fill-opacity='0.025'/%3E%3Cpath d='M40 10c-16.5 0-30 13.5-30 30s13.5 30 30 30 30-13.5 30-30-13.5-30-30-30zm0 56c-14.3 0-26-11.7-26-26s11.7-26 26-26 26 11.7 26 26-11.7 26-26 26z' fill='%23d4af37' fill-opacity='0.035'/%3E%3Ccircle cx='40' cy='40' r='5' fill='%23d4af37' fill-opacity='0.045'/%3E%3Cpath d='M0 40h10m60 0h10M40 0v10m0 60v10M8 8l7 7m50 50l7 7M8 72l7-7m50-50l7-7' stroke='%23d4af37' stroke-opacity='0.03' stroke-width='1.2' fill='none'/%3E%3C/svg%3E"),
    /* Luxury linear dark-purple blend */
    linear-gradient(135deg, #09030d 0%, #19052b 50%, #09030d 100%) !important;
  background-size: 40px 40px, 80px 80px, 100% 100% !important;
}

/* Gold Foil Text Gradient */
.gold-foil-text {
  background: linear-gradient(135deg, #ffffff 10%, #ffe9b3 35%, #d4af37 60%, #b8860b 85%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #d4af37;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}

/* Glassmorphism Containers */
.royal-glass {
  background: rgba(15, 7, 24, 0.82) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.8),
    inset 0 0 30px rgba(212, 175, 55, 0.15) !important;
}

/* Ornate Double-border Cards */
.royal-card {
  background: rgba(22, 10, 32, 0.65) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(212, 175, 55, 0.22) !important;
  outline: 1.5px solid rgba(212, 175, 55, 0.06);
  outline-offset: 4px;
  border-radius: 16px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  position: relative;
}
.royal-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(212, 175, 55, 0.75) !important;
  outline-color: rgba(212, 175, 55, 0.35) !important;
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2), 0 8px 20px rgba(0,0,0,0.6) !important;
  background: rgba(29, 13, 42, 0.8) !important;
}

/* Palace Arch Framings */
.palace-arch {
  border-radius: 240px 240px 16px 16px !important;
  border-top-left-radius: 50% 160px !important;
  border-top-right-radius: 50% 160px !important;
}

/* Real-gold CTA Shimmer Button */
.btn-royal-shimmer {
  background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%) !important;
  color: #0c0414 !important;
  position: relative;
  overflow: hidden;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase;
  border-radius: 30px !important;
  padding: 0.9rem 2.5rem !important;
  text-decoration: none;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35) !important;
  transition: all 0.4s ease !important;
}
.btn-royal-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 25%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 30%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.7) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shimmer-sweep-loop 4.5s infinite linear;
}
@keyframes shimmer-sweep-loop {
  0% { left: -60%; }
  35% { left: 140%; }
  100% { left: 140%; }
}
.btn-royal-shimmer:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.65) !important;
  background: #ffffff !important;
  color: #0c0414 !important;
}

/* Ornate Line Separators */
.ornate-divider {
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' width='100%25' height='20'%3E%3Cpath d='M0 10h38l4-6 4 6-4 6-4-6m16 0l-4-6-4 6 4 6 4-6m8 0h38' stroke='%23d4af37' stroke-opacity='0.75' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='50' cy='10' r='3' fill='%23d4af37' fill-opacity='0.9'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin: 3.5rem 0;
  width: 100%;
}

/* ============================================================
   AYRVANA SELLER CENTER (OWNER CONSOLE) DESIGN OVERRIDES
   ============================================================ */

body.owner-console {
  background-color: #faf6ff !important; /* Soft warm lavender backdrop instead of cold slate */
  color: #2e1065 !important; /* Deep violet-purple text */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Sidebar Overrides (Royal Heritage Maroon & Lavender Theme) */
body.owner-console .sidebar {
  background-color: #3b0712 !important; /* Rich deep maroon */
  border-right: 1px solid #470014 !important;
  display: flex !important;
  flex-direction: column !important;
}
body.owner-console .sidebar-brand {
  background: #270209 !important; /* Deepest burgundy header */
  padding: 1.5rem 1.25rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
  border-bottom: 1px solid #3b0712 !important;
}
body.owner-console .brand-name {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.5px !important;
}
body.owner-console .brand-sub {
  color: #C9A96E !important; /* Heritage Gold */
  font-size: 0.65rem !important;
  font-weight: bold !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
}
body.owner-console .nav-section-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #d8b4fe !important; /* Medium lavender */
  letter-spacing: 1.5px !important;
  padding: 1.5rem 1.25rem 0.5rem 1.25rem !important;
  text-transform: uppercase !important;
}
body.owner-console .nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.75rem 1.25rem !important;
  color: #e2d5f0 !important; /* Light lavender-gray */
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
  border-left: 3px solid transparent !important;
  background: transparent !important;
  text-transform: none !important;
  letter-spacing: 0px !important;
}
body.owner-console .nav-item:hover {
  background-color: rgba(216, 180, 254, 0.1) !important; /* Soft lavender glow */
  color: #ffffff !important;
}
body.owner-console .nav-item.active {
  background-color: rgba(126, 34, 206, 0.25) !important; /* Translucent purple active background */
  color: #ffffff !important;
  border-left-color: #C9A96E !important; /* Gold stripe */
  font-weight: 600 !important;
}
body.owner-console .nav-icon {
  font-size: 1.1rem !important;
  width: 20px !important;
  text-align: center !important;
}
body.owner-console .nav-badge {
  margin-left: auto !important;
  padding: 0.15rem 0.5rem !important;
  border-radius: 20px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
}
body.owner-console .badge-lavender {
  background-color: #7e22ce !important;
  color: #ffffff !important;
}
body.owner-console .badge-green {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

/* Sidebar Footer */
body.owner-console .sidebar-footer {
  margin-top: auto !important;
  background-color: #270209 !important; /* Deepest burgundy footer */
  padding: 1.25rem !important;
  border-top: 1px solid #3b0712 !important;
  display: block !important;
}
body.owner-console .sidebar-footer-user {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}
body.owner-console .sf-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #7e22ce 0%, #3b0712 100%) !important; /* Purple to maroon */
  border: 1.5px solid #C9A96E !important; /* Gold border */
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-family: 'Georgia', serif !important;
  font-size: 0.85rem !important;
}
body.owner-console .sf-info {
  display: flex !important;
  flex-direction: column !important;
}
body.owner-console .sf-name {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
}
body.owner-console .sf-role {
  color: #C9A96E !important; /* Gold role text */
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
body.owner-console .sf-credit {
  color: #885c66 !important; /* Muted maroon-gray text */
  font-size: 0.65rem !important;
  margin-top: 0.75rem !important;
  text-align: center !important;
  letter-spacing: 0.5px !important;
}

/* Topbar Overrides */
body.owner-console .admin-topbar {
  background-color: #ffffff !important;
  border-bottom: 2px solid #f3e8ff !important; /* Elegant lavender border */
  box-shadow: 0 1px 3px 0 rgba(126, 34, 206, 0.04) !important;
}
body.owner-console .topbar-title {
  color: #3b0712 !important; /* Rich maroon title */
  font-family: 'Georgia', serif !important; /* Serif for high-end look */
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  letter-spacing: 0px !important;
  text-transform: none !important;
}
body.owner-console .topbar-user span {
  color: #2e1065 !important;
  font-weight: 600 !important;
}

/* Cards & Content Layout */
body.owner-console .admin-content {
  padding: 2.25rem 2rem !important;
}
body.owner-console .card {
  background-color: #ffffff !important;
  border: 1px solid #f3e8ff !important; /* Lavender card borders */
  border-radius: 12px !important;
  box-shadow: 0 4px 20px -2px rgba(126, 34, 206, 0.04), 0 2px 4px -1px rgba(126, 34, 206, 0.02) !important;
  padding: 1.75rem !important;
}

/* Stats Cards (Premium Dashboard Metrics) */
body.owner-console .stats-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 1.5rem !important;
  margin-bottom: 2.5rem !important;
}
body.owner-console .stat-card {
  background-color: #ffffff !important;
  border: 1px solid #f3e8ff !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  box-shadow: 0 4px 15px -3px rgba(126, 34, 206, 0.03) !important;
  transition: all 0.2s ease-in-out !important;
}
body.owner-console .stat-card:hover {
  transform: translateY(-3px) !important;
  border-color: #e9d5ff !important;
  box-shadow: 0 10px 25px -5px rgba(126, 34, 206, 0.08) !important;
}
body.owner-console .stat-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px !important;
  background-color: #f5f3ff !important; /* Light lavender tint */
  color: #7e22ce !important; /* Purple icon */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.4rem !important;
  flex-shrink: 0 !important;
  margin-bottom: 0 !important;
}
body.owner-console .stat-card-highlight {
  border-color: #c5a880 !important; /* Gold border */
  background: linear-gradient(135deg, #fdfbf7 0%, #ffffff 100%) !important;
}
body.owner-console .stat-card-highlight .stat-icon {
  background-color: #C9A96E !important; /* Gold block */
  color: #ffffff !important;
}
body.owner-console .stat-info-wrap {
  display: flex !important;
  flex-direction: column !important;
}
body.owner-console .stat-num {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: #3b0712 !important; /* Maroon stat value */
}
body.owner-console .stat-label {
  font-size: 0.72rem !important;
  color: #7e22ce !important; /* Purple label */
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-top: 0.25rem !important;
}

/* Sections & Product Mini Grid */
body.owner-console .section-header h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #3b0712 !important; /* Maroon title */
  font-family: 'Georgia', serif !important;
  letter-spacing: 0px !important;
  text-transform: none !important;
}
body.owner-console .product-grid-mini {
  gap: 1.5rem !important;
}
body.owner-console .product-mini-card {
  background-color: #ffffff !important;
  border: 1px solid #f3e8ff !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(126, 34, 206, 0.03) !important;
}
body.owner-console .product-mini-info {
  padding: 1rem !important;
}
body.owner-console .product-mini-title {
  color: #2e1065 !important; /* Purple text */
  font-weight: 600 !important;
}
body.owner-console .product-mini-price {
  color: #3b0712 !important; /* Maroon price tag */
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
}

/* Tables & Lists */
body.owner-console .data-table {
  background-color: #ffffff !important;
}
body.owner-console .data-table th {
  background-color: #fdfaff !important; /* Soft lavender-gray header */
  color: #581c87 !important; /* Deep purple header text */
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.5px !important;
  border-bottom: 2px solid #f3e8ff !important;
}
body.owner-console .data-table td {
  border-bottom: 1px solid #f3e8ff !important;
  color: #2e1065 !important;
}
body.owner-console .data-table tr:hover td {
  background-color: #fbf7ff !important;
}

/* Forms & Inputs */
body.owner-console .form-group label {
  color: #581c87 !important; /* Purple label */
  font-weight: 600 !important;
  font-size: 0.75rem !important;
}
body.owner-console .form-group input,
body.owner-console .form-group textarea,
body.owner-console .form-group select {
  border: 1px solid #d8b4fe !important; /* Lavender border */
  border-radius: 6px !important;
  padding: 0.65rem 0.85rem !important;
  font-size: 0.9rem !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
}
body.owner-console .form-group input:focus,
body.owner-console .form-group textarea:focus,
body.owner-console .form-group select:focus {
  border-color: #7e22ce !important; /* Purple active border */
  box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.15) !important;
}

/* Buttons */
body.owner-console .btn {
  border-radius: 6px !important;
  font-size: 0.8rem !important;
  padding: 0.55rem 1.25rem !important;
  letter-spacing: 0.5px !important;
}
body.owner-console .btn-primary {
  background-color: #3b0712 !important; /* Maroon button */
  border-color: #3b0712 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}
body.owner-console .btn-primary:hover {
  background-color: #270209 !important; /* Darker burgundy hover */
  border-color: #270209 !important;
  color: #ffffff !important;
}
body.owner-console .btn-secondary {
  border-color: #d8b4fe !important; /* Lavender border */
  background-color: #ffffff !important;
  color: #7e22ce !important; /* Purple text */
}
body.owner-console .btn-secondary:hover {
  background-color: #fdfaff !important;
  color: #6b21a8 !important;
}

/* Mobile Bottom Nav */
@media (max-width: 768px) {
  body.owner-console .bottom-nav-owner {
    background-color: #ffffff !important;
    border-top: 1px solid #f3e8ff !important;
    box-shadow: 0 -2px 10px rgba(126, 34, 206, 0.05) !important;
  }
  body.owner-console .bottom-nav-owner a {
    color: #94a3b8 !important;
  }
}

/* ============================================================
   AYRVANA STOREFRONT PILLS OVERRIDES (CONTRAST & HOVER)
   ============================================================ */

/* Tag/Collection filter chips readability and hover (Purple text when inactive) */
body .chip-bar .chip {
  background: rgba(15, 7, 24, 0.03) !important;
  border: 1.5px solid #C9A96E !important; /* Gold border */
  color: #7e22ce !important; /* Premium purple for contrast */
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}
body .chip-bar .chip:hover,
body .chip-bar .chip.active {
  background: linear-gradient(135deg, #7e22ce 0%, #3b0712 100%) !important; /* Purple to Maroon gradient */
  border-color: #C9A96E !important;
  color: #ffffff !important;
  box-shadow: 0 5px 15px rgba(126, 34, 206, 0.25) !important;
  transform: translateY(-2px) !important;
}

/* Style for tag chips */
body .tag-chip {
  background: rgba(15, 7, 24, 0.03) !important;
  border: 1.5px solid #C9A96E !important;
  color: #7e22ce !important; /* Premium purple for contrast */
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}
body .tag-chip:hover,
body .tag-chip.active {
  background: linear-gradient(135deg, #7e22ce 0%, #3b0712 100%) !important;
  border-color: #C9A96E !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(126, 34, 206, 0.2) !important;
}

/* Public Storefront Product Card Readability Overrides */
body .royal-card .product-card-title,
body .royal-card .prod-title {
  color: #ffffff !important;
}
body .royal-card .product-card-price,
body .royal-card .prod-price {
  color: #d4af37 !important;
}

/* ============================================================
   GLOBAL MOBILE RESPONSIVE OVERRIDES (PWA / APP LOOK & FEEL)
   ============================================================ */
@media (max-width: 768px) {
  /* Dynamic Grids: Native 2-Column layout on mobile */
  body .catalog-grid, 
  body .m-cards-grid,
  body .boutique-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 1rem !important;
    padding: 0 0.8rem !important;
    margin: 1.5rem auto 3rem auto !important;
  }
  
  /* Cards Styling for Mobile */
  body .royal-card,
  body .product-card,
  body .boutique-card {
    border-radius: 12px !important;
    outline-width: 1px !important;
    outline-offset: 2px !important;
    padding: 0 0 1rem 0 !important; /* Remove heavy card padding */
  }
  
  body .boutique-card {
    padding: 1.5rem 1rem !important;
  }

  body .product-card-img-wrap, 
  body .product-card-img {
    border-radius: 12px 12px 0 0 !important;
  }
  
  body .product-card-body,
  body .prod-card-body {
    padding: 0.8rem !important;
  }
  
  /* Text and Price scaling */
  body .product-card-title,
  body .prod-title {
    font-size: 0.85rem !important;
    height: 2.2rem !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.25 !important;
  }
  
  body .product-card-price,
  body .prod-price {
    font-size: 0.98rem !important;
  }
  
  body .prod-boutique {
    font-size: 0.65rem !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 0.25rem !important;
  }
  
  /* Boutique Header mobile tweaks */
  body .b-header {
    padding: 3rem 1rem 2rem 1rem !important;
  }
  body .b-logo-wrap {
    width: 84px !important;
    height: 84px !important;
    margin-bottom: 0.8rem !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.8), 0 0 0 4px rgba(212, 175, 55, 0.15) !important;
  }
  body .b-title {
    font-size: 2rem !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    line-height: 1.2 !important;
  }
  body .b-tagline {
    font-size: 0.95rem !important;
    margin-top: 0.35rem !important;
  }
  
  /* Filters mobile styling */
  body .chip-bar {
    margin: 1.5rem 0 !important;
    gap: 0.4rem !important;
    padding: 0 0.8rem !important;
  }
  body .chip {
    padding: 0.4rem 1rem !important;
    font-size: 0.78rem !important;
  }
  
  /* PWA product page tweaks */
  body .p-title {
    font-size: 1.6rem !important;
  }
  body .p-price {
    font-size: 1.4rem !important;
  }
  body .p-grid {
    gap: 1.5rem !important;
    margin: 1.5rem auto !important;
  }
}