/* ============================================================
   PRIX CIGARES — Design luxe & élégant
   Police : Playfair Display (titres) + Inter (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Spectral:wght@400;600;700&display=swap');

/* ---- Variables ---- */
/* Police : Playfair Display (titres + prix) + Inter (corps) */
:root {
  --bg:          #07101f;
  --bg-surface:  #0c1a2e;
  --bg-card:     #101f38;
  --bg-card-h:   #152742;
  --bg-input:    #09152a;
  --gold:        #c9a84c;
  --gold-l:      #e2c97a;
  --gold-d:      #a8842e;
  --gold-dim:    rgba(201,168,76,.12);
  --text:        #edf2ff;
  --text-muted:  #7b9cbf;
  --text-hint:   #2e4d6a;
  --border:      #162840;
  --border-l:    #1f3a56;
  --red:         #8b1a1a;
  --green:       #2d6a2d;
  --shadow:      0 8px 32px rgba(0,0,0,.75);
  --shadow-sm:   0 2px 12px rgba(0,0,0,.5);
  --radius:      4px;
  --radius-lg:   8px;
  --transition:  .2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* Texture subtile */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%2307101f'/%3E%3Crect x='0' y='0' width='1' height='1' fill='%230a1628' opacity='.5'/%3E%3C/svg%3E");
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-l); }

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

/* ============================================================
   MODAL VÉRIFICATION D'ÂGE
   ============================================================ */
#age-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
#age-modal.hidden { display: none; }

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--gold-d);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: var(--shadow), 0 0 80px rgba(201,168,76,.08);
  position: relative;
}

.modal-ornament {
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
}
.modal-ornament img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: var(--bg-surface);
  border-radius: 8px;
}

.modal-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: .5rem;
  letter-spacing: .04em;
}

.modal-box .modal-subtitle {
  font-size: .85rem;
  color: var(--text-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.modal-divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-d), transparent);
  margin: 0 auto 1.8rem;
}

.modal-box p {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  font-size: .95rem;
}

.modal-box .modal-question {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.modal-actions {
  display: flex;
  gap: .75rem;
  flex-direction: column;
}

.btn-age-yes {
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: #0b0904;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  padding: .9rem 2rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-age-yes:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,.35);
}

.btn-age-no {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-l);
  border-radius: var(--radius);
  padding: .75rem 2rem;
  cursor: pointer;
  font-size: .85rem;
  transition: all var(--transition);
}
.btn-age-no:hover { border-color: var(--text-muted); color: var(--text); }

.modal-legal {
  margin-top: 1.5rem;
  font-size: .75rem;
  color: var(--text-hint);
  font-style: italic;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.site-logo a { color: inherit; display: flex; flex-direction: column; }
.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logo-cigare {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.logo-sub {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 5px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.last-update {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: right;
}
.last-update strong { color: var(--gold); display: block; font-size: .8rem; }

/* ============================================================
   HERO / BARRE DE RECHERCHE
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: .8rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 2.5rem;
}

.search-wrapper {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1rem;
}

#search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-l);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: .9rem 1.1rem .9rem 2.8rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
#search-input:focus {
  border-color: var(--gold-d);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
#search-input::placeholder { color: var(--text-hint); }
#search-input::-webkit-search-cancel-button,
#search-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }

.search-clear {
  position: absolute;
  right: .8rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: .2rem;
  display: none;
}
.search-clear.visible { display: block; }

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.main-layout {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  gap: 2rem;
  padding: 2rem;
}

/* ---- Sidebar filtres ---- */
.sidebar {
  width: 240px;
  flex-shrink: 0;
}

.filter-section {
  background: var(--bg-card);
  border: 1px solid var(--border-l);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.filter-title {
  font-family: 'Spectral', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--gold-l);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border-l);
}

.filter-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
  cursor: pointer;
}
.filter-item input[type="radio"],
.filter-item input[type="checkbox"] {
  accent-color: var(--gold);
  cursor: pointer;
}
.filter-item label {
  font-size: .875rem;
  color: var(--text-muted);
  cursor: pointer;
  flex: 1;
}
.filter-item:hover label { color: var(--text); }
.filter-item.active label { color: var(--gold); font-weight: 500; }

.price-range {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.price-input {
  width: 80px;
  background: var(--bg-card-h);
  border: 1px solid var(--border-l);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .85rem;
  padding: .4rem .6rem;
  outline: none;
}
.price-input:focus { border-color: var(--gold-d); }
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-input[type="number"] { -moz-appearance: textfield; }

.price-sep { color: var(--text-hint); font-size: .8rem; }

.sort-select {
  width: 100%;
  background: var(--bg-card-h);
  border: 1px solid var(--border-l);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .875rem;
  padding: .5rem .7rem;
  outline: none;
  cursor: pointer;
  appearance: none;
}
.sort-select:focus { border-color: var(--gold-d); }

/* ---- Bandeau résultats (au-dessus du layout) ---- */
.results-bar {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: .6rem 2rem .2rem;
}

.results-count {
  font-size: .875rem;
  color: var(--text-muted);
}
.results-count strong { color: var(--gold); }

/* ---- Zone produits ---- */
.products-area { flex: 1; min-width: 0; min-height: 80vh; }

/* ---- Grille produits ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

/* ---- Carte produit ---- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-d), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover {
  border-color: var(--border-l);
  background: var(--bg-card-h);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm), 0 0 20px rgba(201,168,76,.06);
}
.product-card:hover::before { opacity: 1; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  margin-bottom: .4rem;
}

.badge-new {
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: #0b0904;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: .15rem .45rem;
  border-radius: 3px;
  text-transform: uppercase;
  line-height: 1.4;
  flex-shrink: 0;
}

.badge-discontinued {
  background: linear-gradient(135deg, #7a1a1a, #c0392b);
  color: #fff;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: .15rem .45rem;
  border-radius: 3px;
  text-transform: uppercase;
  line-height: 1.4;
  flex-shrink: 0;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
  margin-bottom: .3rem;
}

.card-category {
  font-size: .65rem;
  color: #4d7a9e;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card-prices {
  margin-top: .4rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
}

.price-unit {
  display: flex;
  flex-direction: column;
}
.price-label { font-size: .65rem; color: #4d7a9e; letter-spacing: .08em; text-transform: uppercase; }
.price-value {
  font-family: 'Spectral', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.price-value.secondary { font-size: 1rem; color: var(--text); }
.box-price { display: block; margin-top: .5rem; }

.card-variation {
  display: inline-block;
  font-size: .7rem;
  padding: .2rem .5rem;
  border-radius: 3px;
  font-weight: 500;
  margin-top: .4rem;
  white-space: nowrap;
}
.var-up   { background: rgba(139,26,26,.2); color: #e05c5c; }
.var-down { background: rgba(45,106,45,.2); color: #5cb85c; }
.var-same { background: rgba(90,80,60,.2);  color: var(--text-muted); }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .875rem;
  padding: .4rem .8rem;
  cursor: pointer;
  transition: all var(--transition);
  min-width: 36px;
  text-align: center;
}
.page-btn:hover { border-color: var(--gold-d); color: var(--gold); }
.page-btn.active { background: var(--gold-d); border-color: var(--gold-d); color: #0b0904; font-weight: 600; }
.page-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ---- États vides / chargement ---- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-hint);
  grid-column: 1 / -1;
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-h) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  height: 180px;
  border-radius: var(--radius-lg);
}

/* ============================================================
   PAGE PRODUIT
   ============================================================ */
.product-page { max-width: 900px; width: 100%; margin: 2.5rem auto; padding: 0 2rem 4rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: .875rem;
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--gold); }

.product-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.product-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-d) 30%, var(--gold) 50%, var(--gold-d) 70%, transparent);
}

.product-hero-brand {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: .6rem;
}

.product-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text);
  line-height: 1.25;
  margin-bottom: .6rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.product-hero-category {
  font-size: .75rem;
  color: var(--text-hint);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.product-prices-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.product-price-block { display: flex; flex-direction: column; gap: .2rem; }
.product-price-label {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-price-main {
  font-family: 'Spectral', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.product-price-main.secondary { font-size: 1.6rem; color: var(--text); }
.product-price-sub { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }

.product-meta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.meta-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: .3rem .8rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.meta-chip strong { color: var(--text); }

/* ---- Graphique historique ---- */
.history-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}

.chart-container { position: relative; height: 280px; width: 100%; max-width: 100%; }

.history-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5rem;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  min-width: 480px;
}
.history-table th {
  text-align: left;
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.history-table td {
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td { background: var(--bg-card); }
.history-table .price-col { color: var(--gold); font-weight: 600; font-family: 'Spectral', serif; }

/* ============================================================
   SOURCE OFFICIELLE
   ============================================================ */
.source-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem;
  text-align: center;
  margin-top: auto;
}
.source-banner p { font-size: .8rem; color: var(--text-muted); line-height: 1.7; }
.source-banner a { color: var(--gold-d); }
.source-banner a:hover { color: var(--gold); }
.source-banner .source-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--text-hint);
  margin-bottom: .4rem;
  letter-spacing: .08em;
}

/* ============================================================
   BANDEAU AVERTISSEMENT SANITAIRE (Loi Évin)
   ============================================================ */
.health-warning {
  background: #060e1a;
  border-top: 1px solid #1a2e45;
  text-align: center;
  padding: .55rem 2rem;
}
.health-warning p {
  font-size: .72rem;
  color: #aaa;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--gold-d);
  border-radius: var(--radius);
  padding: .8rem 1.6rem;
  font-size: .875rem;
  color: var(--text);
  z-index: 500;
  opacity: 0;
  transition: all .3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Filtre variation ---- */
/* ---- Filtre marques ---- */
.brand-search-wrap { margin-bottom: .6rem; }

.brand-search-input {
  width: 100%;
  background: var(--bg-card-h);
  border: 1px solid var(--border-l);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .85rem;
  padding: .4rem .6rem;
  outline: none;
  box-sizing: border-box;
}
.brand-search-input:focus { border-color: var(--gold-d); }

.brand-list {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-l) transparent;
}

.brand-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  width: 100%;
  background: var(--bg-card-h);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .8rem;
  padding: .35rem .65rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}
.brand-btn:hover { border-color: var(--border-l); color: var(--text); }
.brand-btn.active {
  border-color: var(--gold-d);
  color: var(--gold);
  background: rgba(201,168,76,.08);
}
.brand-btn-count {
  font-size: .72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.brand-btn.active .brand-btn-count { color: var(--gold-d); }

.variation-filters {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.var-filter-btn {
  display: block;
  cursor: pointer;
  touch-action: manipulation;
}
.var-filter-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.var-filter-btn span {
  display: block;
  width: 100%;
  padding: .45rem .8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text);
  background: var(--bg-card-h);
  transition: all var(--transition);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.var-filter-btn input:checked + span {
  border-color: var(--gold-d);
  color: var(--gold);
  background: rgba(201,168,76,.08);
}
.var-filter-btn:hover span,
.var-filter-btn:active span { border-color: var(--border-l); color: var(--text); }

/* ---- Bouton retour en haut ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--bg-card-h);
  border-color: var(--gold-l);
  color: var(--gold-l);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .main-layout { flex-direction: column; padding: 1rem; }
  .sidebar { width: 100%; }
  .filter-section { padding: 1rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 600px) {
  .hero { padding: 2rem 1rem; }
  .header-inner { padding: 0; height: 60px; }
  .logo-main { font-size: 1.2rem; }
  .logo-cigare { width: 28px; height: 28px; }
  .header-meta { display: none; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .product-card { padding: 1rem; }
  .product-hero { padding: 1.5rem; }
  .product-prices-row { gap: 1.5rem; }
  .history-section { padding: 1.5rem; }
  .product-page { padding: 0 1rem 3rem; }
  .modal-box { padding: 1.8rem 1.4rem; width: 94%; }
  .modal-box h2 { font-size: 1.5rem; }
  .modal-ornament { margin-bottom: .8rem; }
  .modal-ornament img { width: 80px; height: 80px; }
  .modal-box .modal-question { font-size: 1rem; }
  .modal-box p { font-size: .85rem; margin-bottom: 1rem; }
  .modal-divider { margin: 0 auto 1.2rem; }
}

@media (max-width: 600px) {
  .health-warning { padding: .35rem 1rem; }
  .health-warning p { font-size: .6rem; letter-spacing: .02em; }
}

@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
}
