/* ============================================================
   PULLSHKA — Men's Fashion E-Commerce Storefront
   Luxury minimal aesthetic · Inter typeface · Stone accent
   ============================================================ */

:root {
  --white: #FFFFFF;
  --black: #0F0F0F;
  --bg: #FAFAFA;
  --stone: #C4B5A3;
  --stone-light: #E8E0D6;
  --stone-dark: #A89882;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --green: #16A34A;
  --green-bg: #F0FDF4;
  --red: #DC2626;
  --red-bg: #FEF2F2;
  --yellow: #CA8A04;
  --yellow-bg: #FEFCE8;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --transition: 0.25s ease;
  --header-h: 64px;
  --container: 1280px;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; font-size: inherit; }

/* ── Focus visible (accessibility) ────────────────── */
:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 0;
}
/* Dark backgrounds get a light outline */
.admin-sidebar :focus-visible,
[data-theme="night"] :focus-visible { outline-color: #fff; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ── Container ─────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── Announcement Bar ──────────────────────────────── */
.announcement-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Header ────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

/* ── Announcement bar ─────────────────────────────── */
.announce-bar {
  background: var(--gray-900);
  color: #fff;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  height: 36px;
  line-height: 36px;
}
.announce-bar.hidden { display: none; }
.announce-track { position: relative; height: 100%; }
.announce-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.announce-slide.active { opacity: 1; pointer-events: auto; }
.announce-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  z-index: 1;
}
.announce-close:hover { color: #fff; }

/* ── Utility bar (above main header — Nike-style) ────── */
.utility-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    font-size: 0.7rem;
    color: #111;
}
.utility-bar a {
    color: #111;
    text-decoration: none;
    transition: color .15s;
}
.utility-bar a:hover { color: #525252; text-decoration: underline; }
.utility-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.utility-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}
.utility-bar-right a { padding: 0 8px; }
.utility-bar-divider {
    width: 1px;
    height: 12px;
    background: #999;
}
@media (max-width: 768px) {
    .utility-bar { padding: 0 16px; font-size: 0.65rem; }
    .utility-bar-left { display: none; }
}

/* ── Header search bar (visible input, Nike-style) ───── */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
}
.header-search-input {
    width: 180px;
    height: 36px;
    padding: 0 14px 0 36px;
    border: none;
    border-radius: 999px;
    background: #f5f5f5;
    font-size: 0.8rem;
    font-family: inherit;
    color: #111;
    transition: width .25s ease, background .15s;
}
.header-search-input:focus {
    width: 260px;
    background: #e5e5e5;
    outline: none;
}
.header-search-input:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}
.header-search-input::placeholder { color: #737373; }
.header-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #111;
    pointer-events: none;
}
@media (max-width: 900px) {
    .header-search-input { width: 140px; }
    .header-search-input:focus { width: 180px; }
}
@media (max-width: 640px) {
    .header-search { display: none; }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 24px;
  max-width: 1440px;
  margin: 0 auto;
}
.header-left { display: flex; align-items: center; gap: 24px; flex: 1; }
.header-right { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background var(--transition);
  position: relative;
  color: var(--black);
}
.header-icon:hover { background: var(--gray-100); }

.lang-switch {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.menu-toggle { display: none; }

/* Desktop Nav */
.nav-desktop { display: flex; gap: 24px; }
.nav-desktop a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
}
.nav-desktop a:hover { color: var(--black); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width var(--transition);
}
.nav-desktop a:hover::after { width: 100%; }

/* Cart Count Badge */
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--black);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}
.cart-count.has-items { opacity: 1; transform: scale(1); }

/* Wishlist Count Badge — same pill as the cart counter, red tint */
.wishlist-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e11d48;
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}
.wishlist-count.has-items { opacity: 1; transform: scale(1); }
.wishlist-toggle { position: relative; }

/* ── Mobile Menu ───────────────────────────────────── */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: var(--white);
  z-index: 1101;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
}
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.mobile-menu-nav { padding: 16px 0; }
.mobile-menu-nav a,
.mobile-menu-parent {
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}
.mobile-menu-nav a:hover,
.mobile-menu-parent:hover { background: var(--gray-50); color: var(--black); }

.mobile-menu-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-menu-parent svg { flex: 0 0 auto; color: var(--gray-500); }

.mobile-menu-sep {
  height: 1px;
  background: var(--gray-200);
  margin: 12px 20px;
}
.mobile-menu-all {
  color: var(--black) !important;
  font-weight: 600 !important;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 4px;
}

.mobile-menu-social-label {
  padding: 6px 20px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.mobile-menu-social {
  display: flex;
  gap: 14px;
  padding: 4px 20px 20px;
}
.mobile-menu-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  color: var(--black);
  background: var(--white);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.mobile-menu-social a:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-1px);
}

/* Two-level stage: root + submenu panels slide horizontally. */
.mobile-menu-stage {
  position: relative;
  height: calc(100% - 57px);
  overflow: hidden;
}
.mobile-menu-level {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  visibility: hidden;
}
.mobile-menu-level[data-level="root"] { transform: translateX(0); }
.mobile-menu-level.is-active { transform: translateX(0); visibility: visible; }
.mobile-menu.in-sub .mobile-menu-level[data-level="root"] { transform: translateX(-100%); visibility: hidden; }

/* Header shows back button only when inside a submenu. */
.mobile-menu-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--black);
}
.mobile-menu.in-sub .mobile-menu-back { display: inline-flex; }
.mobile-menu.in-sub .mobile-menu-logo { display: none; }

.mobile-menu-title {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  display: none;
}
.mobile-menu.in-sub .mobile-menu-title { display: block; }

/* ── Search Overlay ────────────────────────────────── */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 1200;
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.search-overlay.active { transform: translateY(0); }
.search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.search-bar-wrap svg { flex-shrink: 0; color: var(--gray-400); }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  padding: 8px 0;
  background: transparent;
}
.search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.search-results {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 12px;
  max-height: 60vh;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.search-result-item:hover { background: var(--gray-50); }
.search-result-img { width: 48px; height: 60px; object-fit: cover; border-radius: 4px; }
.search-result-info { flex: 1; }
.search-result-name { font-size: 0.85rem; font-weight: 500; }
.search-result-price { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; }
.search-no-results { padding: 24px 0; text-align: center; color: var(--gray-500); font-size: 0.9rem; }

/* ── Cart Drawer ───────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}
.cart-drawer.active { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
}
.cart-header-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.cart-footer {
  border-top: 1px solid var(--gray-200);
  padding: 16px 20px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
.cart-shipping-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--gray-500);
  margin-top: 10px;
}

/* Cart Item */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.cart-item-img { width: 64px; height: 80px; object-fit: cover; border-radius: 4px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.85rem; font-weight: 500; }
.cart-item-variant { font-size: 0.75rem; color: var(--gray-500); margin-top: 2px; }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cart-item-price { font-size: 0.85rem; font-weight: 600; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
}
.cart-item-qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: background var(--transition);
}
.cart-item-qty button:hover { background: var(--gray-100); }
.cart-item-qty span { font-size: 0.8rem; font-weight: 500; min-width: 20px; text-align: center; }
.cart-item-remove {
  font-size: 0.72rem;
  color: var(--gray-400);
  text-decoration: underline;
  margin-top: 4px;
  cursor: pointer;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--red); }
.cart-empty { text-align: center; padding: 48px 0; color: var(--gray-500); }
.cart-empty svg { margin: 0 auto 12px; color: var(--gray-300); }
.cart-empty p { font-size: 0.9rem; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover { background: var(--gray-800); }

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn-secondary:hover { background: var(--black); color: var(--white); }

.btn-stone {
  background: var(--stone);
  color: var(--white);
}
.btn-stone:hover { background: var(--stone-dark); }

.btn-sm { padding: 8px 16px; font-size: 0.72rem; }
.btn-lg { padding: 16px 36px; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn.loading { opacity: 0.6; cursor: not-allowed; }
.btn.loading { position: relative; color: transparent; }
.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Forms ─────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--gray-700);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(15,15,15,0.14);
}
.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 0;
  box-shadow: none;
}
.form-input.error { border-color: var(--red); }
.form-error { color: var(--red); font-size: 0.75rem; margin-top: 4px; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.75rem; color: var(--gray-500); margin-top: 4px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--black);
}
.form-check label { font-size: 0.85rem; cursor: pointer; }

/* ── Flash Messages ────────────────────────────────── */
.flash, .flash-message {
  position: relative;
  padding: 16px 44px 16px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin: 20px auto;
  max-width: 640px;
  border-radius: var(--radius);
  border: 1px solid #000;
  background: #fff;
  animation: flashIn 0.3s ease;
}
.flash p, .flash-message p {
  margin: 0;
  line-height: 1.5;
  color: inherit;
  font-weight: inherit;
}
.flash .flash-close, .flash-message .flash-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.flash .flash-close:hover, .flash-message .flash-close:hover { opacity: 1; }
.flash-success { background: #f0fdf4; color: #14532d; border-color: #14532d; }
.flash-error   { background: #fef2f2; color: #7f1d1d; border-color: #7f1d1d; }
.flash-info    { background: #fff;    color: #000;    border-color: #000; }
.flash-warning { background: #fffbeb; color: #78350f; border-color: #78350f; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Hero / Banner ─────────────────────────────────── */
.hero {
  position: relative;
  height: 75vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.hero-content { position: relative; z-index: 1; max-width: 600px; padding: 0 24px; }
.hero-title {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-bottom: 28px;
}
.hero .btn { border-color: var(--white); }
.hero .btn-secondary { color: var(--white); }
.hero .btn-secondary:hover { background: var(--white); color: var(--black); }

/* ── Section ───────────────────────────────────────── */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 80px 0; }
.section-bg { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
}
.section-subtitle {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 8px;
}

/* ── Product Grid ────────────────────────────────────
   Items pinned to start so a long-named card can't stretch every
   neighbour taller. Grid items get min-width:0 so columns honour
   the 1fr track instead of expanding to fit min-content (long
   product names were forcing certain columns 2× wider than others
   and clipping the rightmost card off the viewport). */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.product-grid-3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Critical: lets the 1fr column actually shrink. Without this a
     card with a long unbreakable product name forced its column
     wider than its siblings, breaking row alignment. */
  min-width: 0;
}
.product-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-100);
  /* CSS-only fallback for broken / 0-byte images: the alt text becomes
     visible centered in the otherwise-empty box, so the card still has
     a recognizable identity instead of looking like a layout error. */
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  /* If the <img> 404s the alt text is shown — neutral and centered. */
  color: var(--gray-500);
  font-size: 0.72rem;
  text-align: center;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }

.product-card-hover {
  position: absolute;
  inset: 0;
  display: none;
}
.product-card:hover .product-card-hover { display: block; }
.product-card:hover .product-card-main { display: none; }

.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
}
.badge-new { background: var(--black); color: var(--white); }
.badge-sale { background: var(--red); color: var(--white); }
.badge-limited { background: var(--stone); color: var(--white); }

.product-card-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateY(0); }
.product-card-action-btn {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.product-card-action-btn:hover { background: var(--black); color: var(--white); }

.product-card-info { padding: 12px 4px; }
.product-card-name {
  /* `display: block` — kills the inline min-content contribution that
     was forcing CSS-grid columns to widen to fit the longest product
     name (e.g. "Pull&Bear Men's Shoes – Model 2241/640/001"). With
     block + overflow:hidden, the name shrinks to its column instead. */
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.product-card-price {
  font-size: 0.85rem;
  color: var(--gray-600);
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 4px;
  overflow: hidden;
  min-width: 0;
}
.product-card-price .old-price {
  text-decoration: line-through;
  color: var(--gray-400);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}
.product-card-price .sale-price {
  color: var(--red);
  font-weight: 600;
  flex-shrink: 0;
}
.product-card-colors {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
}
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--gray-500);
}
.product-card-rating .stars { color: var(--yellow); }

/* ── Product Detail ────────────────────────────────── */
.product-detail { padding: 32px 0 64px; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery-main {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb {
  width: 72px;
  height: 90px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--black); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info { }
.product-breadcrumb {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.product-breadcrumb a { transition: color var(--transition); }
.product-breadcrumb a:hover { color: var(--black); }
.product-breadcrumb span { margin: 0 6px; }
.product-title {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.product-price-group { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.product-price { font-size: 1.2rem; font-weight: 600; }
.product-price-old { font-size: 1rem; color: var(--gray-400); text-decoration: line-through; }
.product-price-save { font-size: 0.8rem; color: var(--red); font-weight: 500; }

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.product-rating-row .stars { color: var(--yellow); }
.product-rating-row .count { color: var(--gray-500); }

.product-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Size selector */
.size-selector { margin-bottom: 20px; }
.size-selector-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.size-selector-label span { font-size: 0.8rem; font-weight: 500; }
.size-selector-label a { font-size: 0.75rem; color: var(--gray-500); text-decoration: underline; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 48px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
  background: var(--white);
}
.size-btn:hover { border-color: var(--black); }
.size-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }
.size-btn.out-of-stock {
  color: var(--gray-300);
  border-color: var(--gray-100);
  cursor: not-allowed;
  position: relative;
}
.size-btn.out-of-stock::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1px;
  background: var(--gray-300);
  transform: rotate(-12deg);
}

/* Color selector */
.color-selector { margin-bottom: 24px; }
.color-selector-label { font-size: 0.8rem; font-weight: 500; margin-bottom: 8px; }
.color-options { display: flex; gap: 10px; }
.color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.color-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.color-btn.active::before, .color-btn:hover::before { border-color: var(--black); }

/* Quantity + add to cart */
.product-actions { display: flex; gap: 12px; margin-bottom: 20px; }
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.qty-selector button {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
}
.qty-selector button:hover { background: var(--gray-100); }
.qty-selector input {
  width: 48px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  font-size: 0.9rem;
  font-weight: 500;
}
.qty-selector input:focus { outline: none; }
.qty-selector input:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }

.btn-add-cart { flex: 1; }

.product-wishlist-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray-500);
  transition: color var(--transition);
  margin-bottom: 24px;
}
.product-wishlist-btn:hover { color: var(--black); }
.product-wishlist-btn.in-wishlist { color: var(--red); }

/* Accordion */
.product-accordion { border-top: 1px solid var(--gray-200); }
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.accordion-icon { transition: transform 0.3s ease; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-body-inner {
  padding: 0 0 14px;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ── Shop / Category Page ──────────────────────────── */
.shop-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 32px;
}
.shop-title {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.shop-count { font-size: 0.85rem; color: var(--gray-500); margin-top: 4px; }

/* shop-layout grid is controlled by shop.php inline styles */
.shop-layout { }

/* Sidebar Filters */
.shop-sidebar { }
.filter-group { margin-bottom: 28px; }
.filter-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.filter-list { }
.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--gray-600);
  transition: color var(--transition);
}
.filter-item:hover { color: var(--black); }
.filter-item input { accent-color: var(--black); }
.filter-item .count { margin-left: auto; font-size: 0.75rem; color: var(--gray-400); }

/* Price range */
.price-range-inputs { display: flex; gap: 8px; align-items: center; }
.price-range-inputs input {
  width: 80px;
  padding: 6px 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.8rem;
  text-align: center;
}
.price-range-sep { color: var(--gray-400); font-size: 0.8rem; }

/* Sort Bar */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.shop-toolbar-left { display: flex; align-items: center; gap: 12px; }
.shop-toolbar-right { display: flex; align-items: center; gap: 12px; }
.filter-toggle-mobile {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.shop-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-sort label { font-size: 0.8rem; color: var(--gray-500); }
.shop-sort select {
  padding: 6px 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.8rem;
  background: var(--white);
}
.grid-toggle { display: flex; gap: 4px; }
.grid-toggle-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-400);
  transition: all var(--transition);
}
.grid-toggle-btn.active { border-color: var(--black); color: var(--black); }

/* Grid density +/- control (desktop only) */
.grid-density {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}
.grid-density-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.15s;
}
.grid-density-btn:hover { border-color: var(--gray-400); color: var(--black); }
.grid-density-btn:disabled { opacity: .3; cursor: not-allowed; }
.grid-density-btn:disabled:hover { border-color: var(--gray-200); color: var(--gray-500); }
.grid-density-val {
  width: 24px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-700);
  user-select: none;
}
@media (max-width: 900px) {
  .grid-density { display: none; }
}

/* Active Filters */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 0.75rem;
}
.active-filter-tag button {
  display: flex;
  align-items: center;
  color: var(--gray-500);
}
.clear-filters {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-decoration: underline;
  cursor: pointer;
}
.clear-filters:hover { color: var(--black); }

/* ── Pagination ────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 40px 0;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.pagination a:hover { background: var(--gray-100); }
.pagination .current {
  background: var(--black);
  color: var(--white);
}
.pagination .dots { color: var(--gray-400); }

/* ── Reviews ───────────────────────────────────────── */
.reviews-section { padding: 48px 0; border-top: 1px solid var(--gray-200); }
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.reviews-avg { display: flex; align-items: center; gap: 8px; }
.reviews-avg-score { font-size: 2rem; font-weight: 600; }
.reviews-avg-stars { color: var(--yellow); }
.reviews-avg-count { font-size: 0.85rem; color: var(--gray-500); }

.review-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.review-card-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 8px; }
.review-author { font-size: 0.9rem; font-weight: 500; }
.review-date { font-size: 0.75rem; color: var(--gray-500); }
.review-stars { color: var(--yellow); font-size: 0.85rem; margin-bottom: 8px; }
.review-text { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; }

.review-form { padding: 24px; background: var(--gray-50); border-radius: var(--radius-lg); margin-top: 24px; }
.review-form-title { font-size: 1rem; font-weight: 600; margin-bottom: 16px; }

.star-rating { display: flex; gap: 4px; direction: rtl; margin-bottom: 16px; }
.star-rating input { display: none; }
.star-rating label {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--gray-300);
  transition: color var(--transition);
}
.star-rating label:hover, .star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: var(--yellow); }

/* ── Checkout ──────────────────────────────────────── */
.checkout-page { padding: 32px 0 64px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 48px; }

.checkout-section { margin-bottom: 32px; }
.checkout-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}

.checkout-summary {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.summary-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}
.summary-item-img { width: 56px; height: 70px; object-fit: cover; border-radius: 4px; }
.summary-item-info { flex: 1; }
.summary-item-name { font-size: 0.85rem; font-weight: 500; }
.summary-item-variant { font-size: 0.75rem; color: var(--gray-500); }
.summary-item-price { font-size: 0.85rem; font-weight: 500; text-align: right; }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.85rem;
}
.summary-row.total {
  font-weight: 700;
  font-size: 1rem;
  border-top: 2px solid var(--black);
  margin-top: 8px;
  padding-top: 12px;
}
.discount-badge { color: var(--green); font-weight: 500; }

.coupon-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.coupon-form input { flex: 1; }

/* ── Account ───────────────────────────────────────── */
.account-page { padding: 40px 0 64px; }
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.account-nav { }
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--gray-600);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.account-nav-link:hover { background: var(--gray-100); color: var(--black); }
.account-nav-link.active { background: var(--black); color: var(--white); }

.account-content { }
.account-title {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 24px;
}

/* Order history table */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
}
.orders-table td {
  padding: 12px 12px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.orders-table tr:hover { background: var(--gray-50); }

/* ── Wishlist ──────────────────────────────────────── */
.wishlist-page { padding: 40px 0 64px; }
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.wishlist-empty {
  text-align: center;
  padding: 80px 0;
}
.wishlist-empty svg { margin: 0 auto 16px; color: var(--gray-300); }
.wishlist-empty p { color: var(--gray-500); margin-bottom: 16px; }

/* ── Status Badges ─────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-pending { background: var(--yellow-bg); color: var(--yellow); }
.status-confirmed, .status-processing { background: #EFF6FF; color: #2563EB; }
.status-shipped { background: #F0F9FF; color: #0284C7; }
.status-delivered { background: var(--green-bg); color: var(--green); }
.status-cancelled { background: var(--red-bg); color: var(--red); }
.status-refunded { background: var(--gray-100); color: var(--gray-600); }

/* ── Auth Pages ────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--header-h) - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-title {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 8px;
}
.auth-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.auth-footer a { color: var(--black); font-weight: 500; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--gray-400);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ── Empty States ──────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}
.empty-state svg { margin: 0 auto 16px; color: var(--gray-300); }
.empty-state h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 20px; }

/* ── Collections Banner ────────────────────────────── */
.collection-banner {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.collection-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}
.collection-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}
.collection-banner-title {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.collection-banner-desc {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 8px;
}

/* ── Newsletter Strip ──────────────────────────────── */
.newsletter-strip {
  background: var(--black);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.newsletter-strip-title {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.newsletter-strip-desc {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 24px;
}
.newsletter-input-wrap {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  overflow: hidden;
}
.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--white);
  font-size: 0.85rem;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-submit {
  padding: 12px 16px;
  color: var(--stone);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.newsletter-submit:hover { color: var(--white); }

/* ── Perks bar ─────────────────────────────────────── */
.ft-perks {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
}
.ft-perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ft-perk {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ft-perk svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gray-700);
}
.ft-perk strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}
.ft-perk span {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.65);
  padding: 0;
}

/* Brand mark — "P" monogram at the top of the footer */
.ft-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ft-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, color .2s;
}
.ft-brand-mark:hover {
  transform: translateY(-2px);
  color: #d4c2a8;
}
.ft-brand-mark svg { display: block; }
.ft-brand-tag {
  margin-top: 12px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
}

/* Newsletter banner */
.ft-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ft-newsletter-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.ft-newsletter-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  max-width: 380px;
  line-height: 1.5;
}
.ft-newsletter-form { flex-shrink: 0; }
.ft-newsletter-input-wrap {
  display: flex;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.ft-newsletter-input-wrap:focus-within {
  border-color: rgba(255,255,255,0.5);
}
.ft-newsletter-input-wrap input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 12px 16px;
  font-size: 0.85rem;
  width: 260px;
  outline: none;
}
.ft-newsletter-input-wrap input::placeholder { color: rgba(255,255,255,0.35); }
.ft-newsletter-input-wrap button {
  background: #fff;
  color: var(--gray-900);
  border: none;
  padding: 12px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.ft-newsletter-input-wrap button:hover { background: var(--gray-200); }
.ft-newsletter-hint {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
}

/* Link columns */
.ft-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 48px 0;
}
.ft-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.ft-col ul { list-style: none; padding: 0; margin: 0; }
.ft-col ul li { margin-bottom: 0; }
.ft-col ul a {
  display: inline-block;
  font-size: 0.85rem;
  padding: 5px 0;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.ft-col ul a:hover { color: #fff; }

/* Contact list */
.ft-contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ft-contact-list svg { color: rgba(255,255,255,0.4); flex-shrink: 0; }

/* Social icons */
.ft-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.ft-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.ft-social a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: translateY(-2px);
}

/* Bottom bar */
.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}
.ft-bottom-left { display: flex; align-items: center; gap: 16px; }
.ft-bottom-left p { margin: 0; }
.ft-bottom-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ft-bottom-location svg { opacity: 0.6; }
.ft-bottom-center { display: flex; gap: 20px; }
.ft-bottom-center a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.ft-bottom-center a:hover { color: rgba(255,255,255,0.8); }

/* Payment icons */
.ft-payments { display: flex; gap: 6px; align-items: center; }
.ft-pay-icon {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.ft-pay-icon:hover { opacity: 1; }

/* ── Toast Notifications ───────────────────────────── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  animation: toastIn 0.3s ease;
  max-width: 340px;
}
.toast.toast-out { animation: toastOut 0.3s ease forwards; }
.toast-success { border-left: 3px solid var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-info { border-left: 3px solid #2563EB; }
@keyframes toastIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(50px); } }

/* ── Loading Spinner ───────────────────────────────── */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* ── Skeleton Loading ──────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .ft-perks-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-newsletter { flex-direction: column; gap: 24px; text-align: center; padding: 36px 0; }
  .ft-newsletter-text p { max-width: none; }
  .ft-newsletter-input-wrap input { width: 200px; }
  .ft-columns { grid-template-columns: repeat(2, 1fr); gap: 32px; padding: 36px 0; }
  .ft-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .ft-bottom-left { flex-direction: column; gap: 6px; }
  .ft-bottom-center { flex-wrap: wrap; justify-content: center; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  /* .shop-layout handled by shop.php */
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  .container { padding: 0 16px; }

  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-grid-3 { grid-template-columns: repeat(2, 1fr); }

  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { position: static; }

  /* shop-layout + sidebar handled by shop.php */

  .hero { height: 60vh; min-height: 360px; }
  .hero-title { font-size: 2rem; }

  .ft-perks-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ft-columns { grid-template-columns: 1fr; gap: 28px; }
  .ft-newsletter-input-wrap { flex-direction: column; }
  .ft-newsletter-input-wrap input { width: 100%; }
  .ft-newsletter-input-wrap button { width: 100%; padding: 14px; }

  .account-layout { grid-template-columns: 1fr; }
  .account-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
  .account-nav-link { white-space: nowrap; }

  .wishlist-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 40px 0; }
  .section-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .cart-drawer { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .product-actions .btn-add-cart { order: -1; }
  .hero-title { font-size: 1.6rem; }
}

/* ── Utilities ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.72rem; }
.text-muted { color: var(--gray-500); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.visible { display: block !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   Static content pages (about, contact, faq, privacy, terms,
   shipping, size-guide), announcement bar, cookie consent,
   bottom tab bar, PLP chips / badges / hover swap, PDP sticky
   CTA, accordions, free-ship progress
   ============================================================ */

.container-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

.static-page { padding: 3rem 1.25rem 5rem; }
.static-page-header { text-align: center; margin: 2rem 0 3rem; }
.static-page-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
.static-page-header .lead { color: var(--gray-600, #666); margin-top: 0.75rem; font-size: 1.05rem; }
.static-page-body { line-height: 1.7; color: var(--black, #111); }
.static-page-body h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; font-weight: 600; }
.static-page-body h3 { margin: 1.75rem 0 0.75rem; font-size: 1.15rem; font-weight: 600; }
.static-page-body p, .static-page-body ul, .static-page-body ol { margin-bottom: 1rem; }
.static-page-body ul, .static-page-body ol { padding-left: 1.5rem; }
.static-page-body li { margin-bottom: 0.35rem; }
.static-page-body a { text-decoration: underline; text-underline-offset: 3px; }
.static-page-cta { display: flex; gap: 0.75rem; margin-top: 2.5rem; flex-wrap: wrap; }

.static-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3rem;
  margin-top: 2rem;
}
.static-page-info h3 { margin-top: 1.5rem; margin-bottom: 0.25rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.static-page-info h3:first-child { margin-top: 0; }
.static-page-info address { font-style: normal; line-height: 1.6; }
.static-page-form h3 { margin-bottom: 1.25rem; }

.contact-form .form-group { margin-bottom: 1rem; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--gray-300, #d4d4d4);
  border-radius: var(--radius, 6px);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--black, #000);
}

.faq-list { margin-top: 1rem; }
.faq-item {
  border-bottom: 1px solid var(--gray-200, #e5e5e5);
  padding: 1.25rem 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-right: 1.5rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 300;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 0.85rem; color: var(--gray-600, #666); line-height: 1.65; }

.size-table, .shipping-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.92rem;
}
.size-table th, .size-table td,
.shipping-table th, .shipping-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200, #e5e5e5);
}
.size-table th, .shipping-table th {
  font-weight: 600;
  background: var(--gray-50, #f6f6f6);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.breadcrumb { margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--gray-600, #666); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: var(--gray-400, #aaa); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--black, #111); font-weight: 500; }

/* Announcement bar */
.announcement-bar { background: #000; color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.announcement-inner { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1.25rem; }
.announcement-inner p { margin: 0; flex: 1; text-align: center; }
.announcement-close { background: none; border: none; color: #fff; cursor: pointer; padding: 0.25rem; opacity: 0.7; display: flex; align-items: center; }
.announcement-close:hover { opacity: 1; }

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--gray-200, #e5e5e5);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 9998;
  padding: 1rem 0;
}
.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0 1.25rem;
}
.cookie-consent-text { margin: 0; font-size: 0.88rem; flex: 1; min-width: 260px; line-height: 1.5; }
.cookie-consent-text a { text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: 0.5rem; }

/* Bottom tab bar — mobile only */
.bottom-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--gray-200, #e5e5e5);
  z-index: 100;
}
.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.25rem 0.75rem;
  min-height: 56px;
  color: var(--black, #111);
  text-decoration: none;
  font-size: 0.68rem;
  gap: 0.2rem;
}
.bottom-tab:active { background: var(--gray-50, #f6f6f6); }
.bottom-tab svg { opacity: 0.85; }

/* PLP polish: badges, chips, hover swap */
.product-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #fff;
  padding: 0.25rem 0.6rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border-radius: 2px;
  z-index: 2;
}
.product-card-badge-new { background: #000; color: #fff; }
.product-card-badge-sale { background: #c21e3a; color: #fff; }

.applied-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--gray-50, #f6f6f6);
  border: 1px solid var(--gray-200, #e5e5e5);
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}
.filter-chip:hover { background: var(--gray-100, #eee); }
.filter-chip svg { opacity: 0.6; }

/* PDP accordions + sticky CTA */
.pdp-accordion { border-top: 1px solid var(--gray-200, #e5e5e5); }
.pdp-accordion:last-child { border-bottom: 1px solid var(--gray-200, #e5e5e5); }
.pdp-accordion summary {
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pdp-accordion summary::-webkit-details-marker { display: none; }
.pdp-accordion summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; }
.pdp-accordion[open] summary::after { content: "−"; }
.pdp-accordion p { padding-bottom: 1rem; color: var(--gray-600, #666); line-height: 1.6; }

.pdp-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--gray-200, #e5e5e5);
  padding: 0.75rem 1rem;
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.pdp-sticky-cta .btn { width: 100%; }

/* Free shipping progress */
.free-ship-bar {
  background: var(--gray-50, #f6f6f6);
  border-radius: var(--radius, 6px);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.free-ship-bar-text { font-size: 0.88rem; margin-bottom: 0.5rem; }
.free-ship-bar-track { height: 6px; background: var(--gray-200, #e5e5e5); border-radius: 999px; overflow: hidden; }
.free-ship-bar-fill { height: 100%; background: #000; transition: width 0.3s ease; }

/* Responsive */
@media (max-width: 768px) {
  .static-page-grid { grid-template-columns: 1fr; gap: 2rem; }
  .static-page { padding: 2rem 1rem 6rem; }
  .bottom-tabbar { display: flex; }
  body { padding-bottom: 60px; }
  .pdp-sticky-cta { display: block; }
  .size-table, .shipping-table { font-size: 0.82rem; display: block; overflow-x: auto; }
  .announcement-inner { padding: 0.5rem 1rem; font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .static-page-header h1 { font-size: 1.75rem; }
  .cookie-consent-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-consent-actions { justify-content: center; }
}

/* ============================================================
   HEADER LOGO · MAIN NAV · MEN MEGA-MENU · SOLDE / INFLUENCER
   ============================================================ */

/* Logo image replaces the text logo */
.logo { display: inline-flex; align-items: center; }
.logo-img {
    height: 42px; width: auto; display: block;
    object-fit: contain;
}
@media (max-width: 768px) { .logo-img { height: 30px; } }

/* 3-column grid header: Logo | Nav (centered) | Search+Icons */
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 0 32px;
    height: var(--header-h);
}
.header-col-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: start;
}
.header-col-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
}

/* Desktop nav (center column) */
.nav-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}
.nav-desktop > a,
.nav-desktop > .nav-item-has-mega > a {
    position: relative;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-700);
    padding: 18px 0;
    transition: color .2s;
    white-space: nowrap;
}
.nav-desktop > a:hover,
.nav-desktop > .nav-item-has-mega > a:hover { color: var(--black); }

/* Animated underline */
.nav-desktop > a::after,
.nav-desktop > .nav-item-has-mega > a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 14px;
    height: 2px; background: var(--black);
    transform: scaleX(0);
    transition: transform .25s ease;
    transform-origin: left;
}
.nav-desktop > a:hover::after,
.nav-desktop > .nav-item-has-mega:hover > a::after { transform: scaleX(1); }

/* Solde / Sale highlight in red */
.nav-desktop a.nav-sale {
    color: #e11900;
    font-weight: 700;
}
.nav-desktop a.nav-sale:hover { color: #b00d00; }
.nav-desktop a.nav-sale::after { background: #e11900; }

/* Influencer with subtle golden accent */
.nav-desktop a.nav-influencer {
    color: #b8860b;
    font-weight: 600;
}
.nav-desktop a.nav-influencer::before {
    content: "★";
    margin-right: 6px;
    font-size: 0.75em;
}
.nav-desktop a.nav-influencer:hover { color: #8b6508; }
.nav-desktop a.nav-influencer::after { background: #b8860b; }

/* ── MEGA MENU (Men) — multi-column with feature card ── */
.nav-item-has-mega { position: static; }

.mega-menu {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--white);
    border-top: none;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .25s ease, visibility .2s;
    z-index: 90;
}
.nav-item-has-mega:hover > .mega-menu,
.nav-item-has-mega:focus-within > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-menu-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 36px 48px 44px;
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.2fr;
    gap: 40px;
}
@media (max-width: 1100px) {
    .mega-menu-inner { grid-template-columns: repeat(3, 1fr); }
    .mega-col-feature { display: none; }
}
.mega-col-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--black);
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}
.mega-col-title a { color: inherit; text-decoration: none; }
.mega-col-title a:hover { color: var(--gray-600); }
.mega-col-list { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.mega-col-list a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray-600);
    text-decoration: none;
    transition: color .15s;
}
.mega-col-list a:hover { color: var(--black); }

/* Feature card on the right of the mega menu */
.mega-col-feature { display: flex; align-items: stretch; }
.mega-feature-card {
    display: flex; flex-direction: column; justify-content: flex-end;
    width: 100%; min-height: 260px;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%),
        url('/assets/images/brand/pullshka-logo.png') center 30% / 60% no-repeat,
        #f5f5f5;
    color: #fff;
    border-radius: 2px;
    text-decoration: none;
    transition: transform .3s ease;
}
.mega-feature-card:hover { transform: translateY(-2px); }
.mega-feature-eyebrow {
    display: block; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; opacity: 0.9;
}
.mega-feature-title {
    display: block; font-size: 1.4rem; font-weight: 800;
    line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 12px;
}
.mega-feature-cta {
    display: inline-block; font-size: 0.82rem; font-weight: 600;
    text-decoration: underline; text-underline-offset: 4px;
}

/* ── Perfumes bestseller row — 3 small product cards on the right side
   of the Perfumes mega-menu (Zara / Lattafa / Zimaya winners). */
.mega-menu-perfumes .mega-col-features {
    grid-column: span 3;
    min-width: 0;
}
.mega-feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.mega-feature-card-sm {
    display: flex; flex-direction: column; gap: 4px;
    text-decoration: none; color: inherit;
    transition: transform .18s ease;
}
.mega-feature-card-sm:hover { transform: translateY(-2px); }
.mega-feature-img {
    display: block;
    width: 90%;
    aspect-ratio: 1 / 1;
    background: #f4f4f5;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto 8px;
}
.mega-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega-feature-placeholder { background: linear-gradient(135deg, #efefef, #e4e4e4); }
.mega-feature-brand {
    font-size: .62rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: #9a9a9a;
}
.mega-feature-name {
    font-size: .82rem; font-weight: 500; color: #111;
    line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.mega-feature-price {
    font-size: .78rem; font-weight: 600; color: #111; margin-top: 2px;
}

/* ── Mobile adjustments (merged with responsive block below) ── */
@media (max-width: 1024px) {
    .mega-menu { display: none; }
}
.mobile-submenu-link { font-size: 0.85rem !important; color: var(--gray-600) !important; padding-left: 28px !important; }

/* ============================================================
   NIKE-STYLE NAV TYPOGRAPHY — bigger, bolder, tighter
   ============================================================ */

/* Futura is Nike's brand font. Fall back through common system alternatives,
   then Helvetica Neue / Arial. Matches Nike.com/fr visually on Windows + macOS. */
:root {
    --nav-font-stack: "Futura", "Futura PT", "Trebuchet MS", "Helvetica Neue",
                      "Helvetica", "Arial", sans-serif;
}

.nav-desktop > a,
.nav-desktop > .nav-item-has-mega > a {
    font-family: var(--nav-font-stack) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    padding: 22px 0 !important;
    color: var(--black) !important;
}

.nav-desktop { gap: 38px; }

/* Keep the uppercase feel (existing rules already do this, reinforcing
   here in case another selector wins specificity). */
.nav-desktop > a,
.nav-desktop > .nav-item-has-mega > a {
    text-transform: uppercase;
}

/* Sale stays bold-red but now matches the new size/weight */
.nav-desktop a.nav-sale {
    font-family: var(--nav-font-stack) !important;
    font-weight: 800 !important;
    color: #e11900 !important;
}

/* Influencer — keep accent but match bigger size */
.nav-desktop a.nav-influencer {
    font-family: var(--nav-font-stack) !important;
    font-weight: 700 !important;
    color: #b8860b !important;
}

/* Logo next to menu — slightly larger so it doesn't look lost */
.logo-img { height: 32px; }
@media (max-width: 768px) { .logo-img { height: 24px; } }

/* Logo — bigger on desktop for Nike-style prominence */
.logo-img { height: 42px; }
@media (max-width: 768px) { .logo-img { height: 30px; } }

/* Mega-menu column titles use the same nav font stack */
.mega-col-title {
    font-family: var(--nav-font-stack);
}

/* Fine-tune spacing so the bigger nav doesn't overlap the logo */
@media (max-width: 1200px) { .nav-desktop { gap: 22px; } }
@media (max-width: 1024px) {
    .nav-desktop { display: none; }
    .header-inner { grid-template-columns: auto 1fr; padding: 0 16px; gap: 12px; }
    .header-col-actions { justify-self: end; }
    .header-search-input { width: 120px; }
    .header-search-input:focus { width: 160px; }
}

/* Hide old announcement bar — utility bar replaces it */
.announcement-bar { display: none !important; }

/* ── New-In mega-menu — category cards with text inside image ── */
.mega-newin-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 24px 48px 28px;
    max-width: 1200px;
    margin: 0 auto;
}
.mega-newin-card {
    text-decoration: none;
    color: #fff;
    flex: 0 0 auto;
    width: 180px;
    transition: transform .2s ease;
}
.mega-newin-card:hover {
    transform: translateY(-3px);
}
.mega-newin-img {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    background: #222;
}
.mega-newin-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.mega-newin-card:hover .mega-newin-img img {
    transform: scale(1.06);
}
.mega-newin-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
    pointer-events: none;
}
.mega-newin-placeholder {
    width: 100%;
    height: 100%;
    background: #333;
}
.mega-newin-name {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
    line-height: 1.2;
}
@media (max-width: 900px) {
    .mega-newin-grid { gap: 12px; padding: 16px 20px; }
    .mega-newin-card { width: 140px; }
    .mega-newin-img { height: 170px; }
}
