/* ========================================================================
   OUTLET FC24 – Public Catalog Styles  (mobile-first, dark theme)
   ======================================================================== */

:root {
  --red:        #e63946;
  --red-dark:   #c62a35;
  --red-glow:   rgba(230,57,70,.25);
  --bg:         #0a0a0a;
  --bg-2:       #111111;
  --surface:    #161616;
  --surface-2:  #1e1e1e;
  --surface-3:  #252525;
  --border:     #272727;
  --border-2:   #333;
  --text:       #f2f2f2;
  --text-sub:   #c0c0c0;
  --text-muted: #6e6e6e;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 1px 3px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.4);
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --header-h:   64px;
  --search-h:   56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
* { scrollbar-width: thin; scrollbar-color: #333 transparent; }

/* Text selection */
::selection { background: rgba(230,57,70,.35); color: #fff; }

/* Focus visible - replace browser default */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }

button { cursor: pointer; font-family: inherit; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17,17,17,.85);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-outlet {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--red);
  text-transform: uppercase;
  font-feature-settings: 'ss01';
  text-shadow: 0 0 20px rgba(230,57,70,.4);
}

.logo-brand {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
}

.logo-icon {
  background: var(--red);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .15s, border-color .15s;
}
.btn-icon:hover { background: var(--surface); border-color: var(--red); }

/* ── Search ────────────────────────────────────────────────────────────── */
.search-bar {
  background: rgba(17,17,17,.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: .6rem 1rem .8rem;
  position: sticky;
  top: var(--header-h);
  z-index: 99;
  border-bottom: 1px solid var(--border);
}
.search-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
#search-input {
  width: 100%;
  padding: .7rem 2.5rem .7rem 2.75rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  height: 46px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  font-family: inherit;
  font-weight: 400;
}
#search-input::placeholder { color: var(--text-muted); }
#search-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); background: var(--surface-2); }
.clear-search {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  width: 32px;
  height: 32px;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.main-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100dvh - var(--header-h) - var(--search-h));
}

/* ── Filters Panel ──────────────────────────────────────────────────────── */
.filters-panel {
  width: 260px;
  flex-shrink: 0;
  padding: 1rem;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  position: sticky;
  top: calc(var(--header-h) + var(--search-h));
  height: calc(100dvh - var(--header-h) - var(--search-h));
  overflow-y: auto;
  display: none; /* Hidden on mobile until toggled */
}

.filters-panel.open { display: block; }

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.filters-title { font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text); }
.filter-section { margin-bottom: 1.25rem; }
.filter-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: .5rem; }

/* Category tree */
.filter-tree { display: flex; flex-direction: column; gap: .1rem; }
.cat-parent-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: .4rem .5rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.cat-parent-btn:hover, .cat-parent-btn.active { background: rgba(230,57,70,.12); color: var(--red); }
.cat-children { padding-left: .75rem; display: flex; flex-direction: column; gap: .1rem; }
.cat-child-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: .32rem .5rem;
  border-radius: 6px;
  font-size: .84rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.cat-child-btn:hover, .cat-child-btn.active { background: rgba(230,57,70,.08); color: var(--red); }

/* Brand chips */
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .25rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s cubic-bezier(.34,1.56,.64,1);
  color: var(--text-muted);
}
.chip:hover { border-color: var(--red); color: var(--text); }
.chip.active { background: var(--red); color: #fff; border-color: var(--red); transform: scale(1.05); }

.filter-select {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .875rem;
  background: var(--surface);
  color: var(--text);
  appearance: auto;
  height: 40px;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--red);
  font-size: .82rem;
  cursor: pointer;
  padding: .25rem .5rem;
}
.btn-text:hover { text-decoration: underline; }
.btn-text:hover { text-decoration: underline; }

/* ── Products Area ──────────────────────────────────────────────────────── */
.products-area { flex: 1; padding: 1rem; min-width: 0; }

.products-meta {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}

/* ── Product Card ──────────────────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .22s var(--ease-spring), box-shadow .22s var(--ease), border-color .18s var(--ease);
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  animation: cardIn .4s var(--ease) forwards;
  /* subtle gloss line on top */
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.08) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 16px 48px rgba(0,0,0,.55), 0 0 0 1px rgba(230,57,70,.35); border-color: var(--red); }
.product-card:active { transform: translateY(0); }

.card-image {
  aspect-ratio: 4/3;
  background: #222;
  overflow: hidden;
  position: relative;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .card-image img { transform: scale(1.05); }
.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #222, #1a1a1a);
}
.card-image-placeholder svg { opacity: .2; }

.card-status-badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: .2rem .55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.card-status-badge.sold { background: var(--red); }

/* OUTLET tag on top-left of every card */
.card-outlet-tag {
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: var(--red);
  color: #fff;
  font-size: .6rem;
  font-weight: 900;
  padding: .2rem .45rem;
  border-radius: 3px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.card-body { padding: .75rem .85rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.card-name { font-size: .9rem; font-weight: 600; color: var(--text); line-height: 1.35; letter-spacing: -.1px; }
.card-brand { font-size: .72rem; color: var(--text-muted); letter-spacing: .4px; text-transform: uppercase; font-weight: 500; }
.card-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--red);
  margin-top: auto;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(230,57,70,.4);
  transition: text-shadow .2s;
}
.product-card:hover .card-price { text-shadow: 0 0 30px rgba(230,57,70,.7); }
.card-condition {
  font-size: .68rem;
  background: var(--surface-2);
  color: var(--text-muted);
  padding: .18rem .5rem;
  border-radius: 4px;
  width: fit-content;
  border: 1px solid var(--border-2);
  letter-spacing: .3px;
  font-weight: 500;
  text-transform: uppercase;
}
.card-cta {
  font-size: .72rem;
  color: var(--red);
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-top: .3rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  opacity: 0;
  transition: opacity .2s;
}
.card-cta::after { content: '→'; transition: transform .2s; }
.product-card:hover .card-cta { opacity: 1; }
.product-card:hover .card-cta::after { transform: translateX(3px); }

/* ── Shimmer skeleton loading ───────────────────────────────────────────── */
@keyframes shimmer {
  from { background-position: -600px 0; }
  to   { background-position: 600px 0; }
}
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.skeleton-img {
  aspect-ratio: 4/3;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-body { padding: .75rem; display: flex; flex-direction: column; gap: .45rem; }
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-line--short { width: 60%; }
.skeleton-line--price  { width: 40%; height: 16px; }

/* ── Loading / empty states ─────────────────────────────────────────────── */
.loading-spinner {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--text-muted);
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}
.no-results p { margin-bottom: 1rem; }

.hidden { display: none !important; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .72rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .18s var(--ease);
  min-height: 44px;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: .2px;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, transparent 100%);
  pointer-events: none;
}
.btn-primary  { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover  { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 4px 20px rgba(230,57,70,.45), 0 1px 3px rgba(0,0,0,.3); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-outline  { background: transparent; color: var(--text-sub); border-color: var(--border-2); }
.btn-outline:hover  { background: var(--surface-2); border-color: #4a4a4a; color: #fff; }
.btn-full     { width: 100%; }
.btn-danger   { background: #dc3545; color: #fff; border-color: #dc3545; }
.btn-danger:hover { background: #b02a37; }

/* ── Modals ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  animation: fadeIn .18s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }

.modal-content {
  background: var(--surface);
  border: 1px solid rgba(230,57,70,.2);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 700px;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 1.25rem;
  position: relative;
  animation: slideUp .25s cubic-bezier(.34,1.2,.64,1);
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
.modal-content--narrow { max-width: 460px; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } }

.modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: var(--text-muted);
  transition: background .12s, color .12s;
}
.modal-close:hover { background: var(--red); color: #fff; border-color: var(--red); }
.modal-title { font-size: 1.15rem; font-weight: 800; margin-bottom: .5rem; color: var(--text); }

/* ── Product detail inside modal ────────────────────────────────────────── */
.product-gallery {
  margin: -1.25rem -1.25rem .75rem;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}
.gallery-main {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #1a1a1a;
}
.gallery-thumbs {
  display: flex;
  gap: .5rem;
  padding: .5rem .75rem;
  overflow-x: auto;
  background: rgba(0,0,0,.3);
}
.gallery-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: .5;
  transition: opacity .12s;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--red); }

.product-detail-info { padding: .25rem 0 .5rem; }
.detail-name  { font-size: 1.3rem; font-weight: 900; color: var(--text); margin-bottom: .3rem; }
.detail-meta  { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.detail-badge {
  font-size: .75rem;
  padding: .2rem .6rem;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.detail-price {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: .75rem;
  letter-spacing: -.8px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(230,57,70,.3);
}
.detail-desc  { font-size: .95rem; line-height: 1.7; color: rgba(255,255,255,.75); margin-bottom: 1rem; white-space: pre-wrap; }
.detail-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Inquiry form ───────────────────────────────────────────────────────── */
.inquiry-product-name { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-group { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .75rem; }
.form-group label { font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.8); letter-spacing: .2px; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .12s, box-shadow .12s;
  min-height: 44px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-checkbox { flex-direction: row; align-items: flex-start; gap: .6rem; }
.checkbox-label { display: flex; gap: .6rem; cursor: pointer; font-size: .85rem; line-height: 1.4; align-items: flex-start; color: rgba(255,255,255,.75); }
.checkbox-label input { margin-top: .15rem; min-width: 18px; height: 18px; accent-color: var(--red); }

.form-error {
  background: rgba(220,53,69,.15);
  border: 1px solid rgba(220,53,69,.4);
  color: #ff6b7a;
  padding: .6rem .75rem;
  border-radius: 6px;
  font-size: .875rem;
  margin-bottom: .75rem;
}

/* ── Wishlist FAB ────────────────────────────────────────────────────────── */
.wishlist-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 180;
  display: flex;
  align-items: center;
  gap: .55rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .75rem 1.25rem .75rem .9rem;
  font-size: .88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(230,57,70,.5), 0 2px 8px rgba(0,0,0,.4);
  transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease), opacity .2s;
  letter-spacing: .2px;
  animation: fabIn .35s var(--ease-spring);
}
@keyframes fabIn {
  from { transform: translateY(80px) scale(.8); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.wishlist-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 32px rgba(230,57,70,.6); }
.wishlist-fab:active { transform: scale(.97); }
.wishlist-fab-count {
  background: #fff;
  color: var(--red);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 900;
  flex-shrink: 0;
  transition: transform .2s var(--ease-spring);
}
.wishlist-fab:hover .wishlist-fab-count { transform: scale(1.15); }

/* ── Add-to-list button on card ─────────────────────────────────────────── */
.card-add-btn {
  position: absolute;
  bottom: .5rem;
  right: .5rem;
  z-index: 3;
  background: rgba(15,15,15,.85);
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .18s var(--ease-spring);
  backdrop-filter: blur(4px);
  opacity: 0;
}
.product-card:hover .card-add-btn { opacity: 1; }
.card-add-btn:hover { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.15); }
.card-add-btn.in-list {
  opacity: 1;
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.card-add-btn.in-list:hover { background: #a01e28; transform: scale(1.1); }

/* ── Wishlist items in modal ─────────────────────────────────────────────── */
.wishlist-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.wishlist-item:last-child { border-bottom: none; }
.wishlist-item-img {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-2);
  flex-shrink: 0;
}
.wishlist-item-img-ph {
  width: 52px;
  height: 40px;
  background: var(--surface-2);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .65rem;
}
.wishlist-item-info { flex: 1; min-width: 0; }
.wishlist-item-name { font-size: .88rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wishlist-item-price { font-size: .8rem; color: var(--red); font-weight: 700; }
.wishlist-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: .2rem .4rem;
  border-radius: 4px;
  transition: color .12s;
  flex-shrink: 0;
  line-height: 1;
}
.wishlist-item-remove:hover { color: var(--red); }

/* ── Success icon ────────────────────────────────────────────────────────── */
.success-icon {
  width: 64px; height: 64px;
  background: #1a3a1a;
  border: 2px solid #4caf50;
  color: #81c784;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 1rem auto;
}

/* ── Filters overlay (mobile) ───────────────────────────────────────────── */
.filters-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 50;
}

/* ── Responsive: desktop ────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .filters-panel { display: block; }
  #toggle-filters-btn { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
  .modal-content { border-radius: 16px; margin: auto; }
  .modal-overlay { align-items: center; }
  .outlet-hero { padding: 2.5rem 1rem 2rem; }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .modal-content { padding: 1.75rem; }
}

/* ── Mobile filters (slide in from left) ───────────────────────────────── */
@media (max-width: 767px) {
  .filters-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: 280px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    display: block;
  }
  .filters-panel.open {
    transform: translateX(0);
    display: block;
  }
}

/* ── Share / social buttons ─────────────────────────────────────────────── */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity .12s;
  color: #fff;
  min-height: 40px;
}
.share-btn:hover { opacity: .85; }
.share-btn--copy   { background: #333; border: 1px solid var(--border); }
.share-btn--native { background: var(--red); }

/* ── Outlet hero banner ─────────────────────────────────────────────────── */
.outlet-hero {
  background: linear-gradient(135deg, #111 0%, #1a0a0a 40%, #0d0d0d 60%, #111 100%);
  background-size: 300% 300%;
  animation: heroGradient 8s ease infinite;
  border-bottom: 3px solid var(--red);
  padding: 1.75rem 1rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.outlet-hero::before {
  content: 'OUTLET';
  position: absolute;
  font-size: 9rem;
  font-weight: 900;
  color: rgba(230,57,70,.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  letter-spacing: 10px;
  white-space: nowrap;
  animation: watermarkPulse 6s ease-in-out infinite;
}
@keyframes heroGradient {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes watermarkPulse {
  0%,100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: .4; transform: translate(-50%,-50%) scale(1.04); }
}
.outlet-hero-label {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 3px;
  margin-bottom: .6rem;
  box-shadow: 0 0 20px rgba(230,57,70,.5);
  animation: labelPulse 2s ease-in-out infinite;
}
@keyframes labelPulse {
  0%,100% { box-shadow: 0 0 20px rgba(230,57,70,.5); }
  50%      { box-shadow: 0 0 35px rgba(230,57,70,.85); }
}
.outlet-hero-title {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: .4rem;
}
.outlet-hero-title span {
  background: linear-gradient(90deg, var(--red) 0%, #ff6b6b 50%, var(--red) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 3s linear infinite;
}
@keyframes textShimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}
.outlet-hero-sub {
  font-size: .9rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE – zapobieganie overflow i pełna szerokość ekranu
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Zabezpieczenie przed wyjazdem poza ekran */
  #app,
  .main-layout,
  .products-area,
  .search-bar-inner,
  .header-inner { min-width: 0; width: 100%; }

  /* Siatka produktów – 2 kolumny na małych ekranach */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
    padding: .5rem;
  }

  /* Karta produktu – bez overflow */
  .product-card { min-width: 0; }
  .card-body { padding: .6rem .65rem .75rem; }
  .card-name { font-size: .82rem; }
  .card-price { font-size: 1rem; }

  /* Modal – pełna szerokość na mobilnym */
  .modal-content {
    width: 100%;
    max-width: 100% !important;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: 92dvh;
  }
  .modal-overlay { align-items: flex-end; }
  .modal-content--narrow { max-width: 100% !important; }

  /* Galeria w modalu */
  .product-gallery img { max-height: 240px; }
  .gallery-thumbs { gap: .35rem; }
  .gallery-thumb { width: 52px; height: 40px; }

  /* Akcje w detalu – pełna szerokość */
  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; justify-content: center; }

  /* Hero – mniejszy padding */
  .outlet-hero { padding: 1.25rem .75rem 1rem; }
  .outlet-hero::before { font-size: 5rem; }

  /* Search bar */
  .search-bar-inner { gap: .4rem; }
  .filter-chips-row { gap: .3rem; }
  .chip { font-size: .75rem; padding: .3rem .65rem; }

  /* FAB wishlist – bez etykiety na bardzo małych */
  .wishlist-fab-label { display: none; }
  .wishlist-fab { padding: .7rem .85rem; border-radius: 50px; }

  /* Meta produktów */
  .products-meta { padding: .4rem .75rem; font-size: .8rem; }

  /* Wishlist modal */
  #wishlist-modal .modal-content { max-height: 85dvh; overflow-y: auto; }
}

@media (max-width: 374px) {
  /* Bardzo małe ekrany (iPhone SE i starsze) */
  .products-grid { grid-template-columns: 1fr; }
  .outlet-hero-title { font-size: 1.6rem; }
}
