/* ==========================================================================
   FIAVIA STORE — PREMIUM DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS — couleurs / typographie / espacement / ombres / radius
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs principales (peuvent être surchargées via inline style avec --brand) */
  --c-bg: #ffffff;
  --c-bg-alt: #f8f9fb;
  --c-bg-soft: #f3f4f8;
  --c-text: #0f172a;
  --c-text-muted: #6b7280;
  --c-text-soft: #9aa3af;
  --c-border: #e5e7eb;
  --c-border-soft: #eef0f3;
  --c-success: #10b981;
  --c-warning: #f59e0b;
  --c-danger: #ef4444;
  --c-info: #3b82f6;

  /* Brand (overrides Bootstrap --bs-primary visually) */
  --c-brand: var(--brand, #0f172a);
  --c-brand-2: var(--brand-2, #4f46e5);
  --c-brand-soft: rgba(79, 70, 229, .08);

  /* Typographie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Espacements verticaux entre sections */
  --section-y: clamp(48px, 6vw, 96px);
  --section-y-sm: clamp(32px, 4vw, 56px);

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Ombres */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --sh-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --sh-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
  --sh-lg: 0 12px 32px rgba(15, 23, 42, .12), 0 4px 8px rgba(15, 23, 42, .06);
  --sh-xl: 0 24px 56px rgba(15, 23, 42, .18);
  --sh-brand: 0 12px 32px rgba(79, 70, 229, .25);

  /* Transitions */
  --tr-fast: .12s ease;
  --tr-mid: .22s cubic-bezier(.2, .8, .2, 1);
  --tr-slow: .35s cubic-bezier(.2, .8, .2, 1);
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -.005em;
}

a { color: var(--c-brand-2); transition: color var(--tr-fast); }
a:hover { color: var(--c-brand); }

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }

img { display: block; max-width: 100%; height: auto; }

/* Selection */
::selection { background: var(--c-brand-soft); color: var(--c-brand-2); }

/* Scrollbar fine sur desktop */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; border: 2px solid #fff; }
  ::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
}

/* --------------------------------------------------------------------------
   3. TOPBAR (announcement)
   -------------------------------------------------------------------------- */
.pal-topbar {
  background: linear-gradient(90deg, var(--c-brand), var(--c-brand-2));
  color: #fff;
  font-size: 13px;
  letter-spacing: .01em;
}
.pal-topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; gap: 16px;
}
.pal-topbar a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.pal-topbar a:hover { color: #fff; }
.pal-topbar-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .2); padding: 2px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   4. NAVBAR
   -------------------------------------------------------------------------- */
.pal-nav {
  background: #fff;
  border-bottom: 1px solid var(--c-border-soft);
  position: sticky; top: 0; z-index: 1020;
  transition: box-shadow var(--tr-mid), background var(--tr-mid);
}
.pal-nav.is-scrolled {
  box-shadow: var(--sh-md);
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, .92);
}
.pal-nav-row {
  display: flex; align-items: center;
  padding: 16px 0;
  gap: 24px;
}
.pal-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--c-text); text-decoration: none;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.pal-brand img { height: 32px; width: auto; }
.pal-brand:hover { color: var(--c-brand-2); }

/* nav links */
.pal-nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.pal-nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--c-text);
  text-decoration: none; transition: background var(--tr-fast), color var(--tr-fast);
}
.pal-nav-link:hover { background: var(--c-bg-alt); color: var(--c-brand-2); }
.pal-nav-link.is-active { color: var(--c-brand-2); background: var(--c-brand-soft); }

/* search bar */
.pal-search {
  position: relative; flex: 1 1 auto; max-width: 520px;
}
.pal-search input {
  width: 100%; height: 44px;
  background: var(--c-bg-alt); border: 1px solid transparent;
  border-radius: 999px; padding: 0 16px 0 44px;
  font-size: 14px; color: var(--c-text); outline: none;
  transition: border-color var(--tr-fast), background var(--tr-fast), box-shadow var(--tr-fast);
}
.pal-search input::placeholder { color: var(--c-text-soft); }
.pal-search input:focus {
  background: #fff; border-color: var(--c-brand-2);
  box-shadow: 0 0 0 4px var(--c-brand-soft);
}
.pal-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--c-text-muted); font-size: 16px; pointer-events: none;
}
.pal-search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: transparent; color: var(--c-text-muted); cursor: pointer; display: none;
}
.pal-search input:not(:placeholder-shown) + .pal-search-clear { display: inline-flex; align-items: center; justify-content: center; }

/* nav action buttons (icon buttons) */
.pal-nav-actions {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
}
.pal-icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-bg-alt); border: none; border-radius: 12px;
  color: var(--c-text); font-size: 18px; cursor: pointer; text-decoration: none;
  transition: background var(--tr-fast), color var(--tr-fast), transform var(--tr-fast);
}
.pal-icon-btn:hover { background: var(--c-brand-soft); color: var(--c-brand-2); transform: translateY(-1px); }
.pal-icon-btn-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--c-brand-2); color: #fff;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* lang dropdown */
.pal-lang-btn { gap: 6px; font-size: 13px; font-weight: 600; padding: 0 12px; width: auto; height: 42px; }
.pal-dropdown-menu {
  background: #fff; border: 1px solid var(--c-border-soft);
  border-radius: 14px; box-shadow: var(--sh-lg);
  padding: 6px; min-width: 200px;
}
.pal-dropdown-menu .dropdown-item {
  border-radius: 8px; padding: 10px 12px; font-size: 14px; color: var(--c-text);
}
.pal-dropdown-menu .dropdown-item:hover { background: var(--c-bg-alt); color: var(--c-brand-2); }

/* mobile menu */
.pal-burger {
  display: none; width: 42px; height: 42px;
  border: none; background: var(--c-bg-alt); border-radius: 12px;
  align-items: center; justify-content: center; font-size: 20px; cursor: pointer; color: var(--c-text);
}

@media (max-width: 991.98px) {
  .pal-nav-links, .pal-search { display: none; }
  .pal-burger { display: inline-flex; }
  .pal-nav-row { gap: 12px; padding: 12px 0; }
  .pal-icon-btn { width: 40px; height: 40px; }
  .pal-lang-btn { display: none; }
}

/* mobile offcanvas drawer */
.pal-drawer {
  position: fixed; top: 0; bottom: 0; left: -340px;
  width: 320px; max-width: 88vw; background: #fff; z-index: 1080;
  display: flex; flex-direction: column;
  transition: left var(--tr-mid); box-shadow: 8px 0 32px rgba(0, 0, 0, .12);
}
.pal-drawer.is-open { left: 0; }
.pal-drawer-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .35);
  z-index: 1075; opacity: 0; pointer-events: none;
  transition: opacity var(--tr-mid);
}
.pal-drawer-overlay.is-open { opacity: 1; pointer-events: all; }
.pal-drawer-head {
  padding: 20px; border-bottom: 1px solid var(--c-border-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.pal-drawer-body { padding: 16px 20px; flex: 1; overflow: auto; }
.pal-drawer-foot { padding: 16px 20px; border-top: 1px solid var(--c-border-soft); display: flex; gap: 8px; }
.pal-drawer-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 10px; color: var(--c-text); text-decoration: none;
  font-size: 15px; font-weight: 500;
}
.pal-drawer-link:hover { background: var(--c-bg-alt); color: var(--c-brand-2); }
.pal-drawer-link i { width: 20px; text-align: center; color: var(--c-text-muted); }

/* --------------------------------------------------------------------------
   5. BUTTONS — premium variants
   -------------------------------------------------------------------------- */
.btn-pal {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1.5px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast), color var(--tr-fast);
  text-decoration: none; user-select: none; white-space: nowrap;
}
.btn-pal:hover { transform: translateY(-1px); }
.btn-pal:active { transform: translateY(0); }
.btn-pal:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.btn-pal-primary { background: var(--c-brand-2); color: #fff !important; box-shadow: 0 4px 14px rgba(79, 70, 229, .3); }
.btn-pal-primary:hover { background: #4338ca; box-shadow: 0 8px 20px rgba(79, 70, 229, .4); color: #fff !important; }

.btn-pal-dark { background: var(--c-text); color: #fff !important; }
.btn-pal-dark:hover { background: #1e293b; color: #fff !important; }

.btn-pal-light { background: #fff; color: var(--c-text) !important; border-color: var(--c-border); }
.btn-pal-light:hover { background: var(--c-bg-alt); border-color: var(--c-text-soft); color: var(--c-text) !important; }

.btn-pal-outline { background: transparent; color: var(--c-text) !important; border-color: var(--c-border); }
.btn-pal-outline:hover { background: var(--c-text); color: #fff !important; border-color: var(--c-text); }

.btn-pal-ghost { background: transparent; color: var(--c-text) !important; }
.btn-pal-ghost:hover { background: var(--c-bg-alt); color: var(--c-brand-2) !important; }

.btn-pal-success { background: var(--c-success); color: #fff !important; box-shadow: 0 4px 14px rgba(16, 185, 129, .25); }
.btn-pal-success:hover { background: #059669; color: #fff !important; }

.btn-pal-danger { background: var(--c-danger); color: #fff !important; }

.btn-pal-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-pal-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn-pal-block { width: 100%; }
.btn-pal-icon-only { padding: 12px; aspect-ratio: 1; }

/* --------------------------------------------------------------------------
   6. SECTION & TYPOGRAPHY UTILITIES
   -------------------------------------------------------------------------- */
.pal-section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.pal-section-sm { padding-top: var(--section-y-sm); padding-bottom: var(--section-y-sm); }
.pal-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.pal-section-eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
  color: var(--c-brand-2); font-weight: 700; margin-bottom: 6px;
}
.pal-section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin: 0; line-height: 1.15; }
.pal-section-sub { color: var(--c-text-muted); margin-top: 8px; font-size: 15px; }
.pal-section-link { color: var(--c-text); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pal-section-link:hover { color: var(--c-brand-2); }
.pal-section-link i { transition: transform var(--tr-fast); }
.pal-section-link:hover i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.pal-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
  padding: clamp(48px, 8vw, 120px) 0 clamp(64px, 8vw, 120px);
}
.pal-hero::before {
  content: ""; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--c-brand-soft) 0%, transparent 70%);
  z-index: 0; pointer-events: none;
}
.pal-hero::after {
  content: ""; position: absolute; bottom: -300px; left: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, .08) 0%, transparent 70%);
  z-index: 0; pointer-events: none;
}
.pal-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.pal-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-brand-soft); color: var(--c-brand-2);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px;
}
.pal-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -.025em; margin: 0 0 18px;
}
.pal-hero-title em { font-style: normal; background: linear-gradient(135deg, var(--c-brand-2), #06b6d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pal-hero-sub { font-size: 18px; color: var(--c-text-muted); line-height: 1.55; margin: 0 0 28px; max-width: 520px; }
.pal-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pal-hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.pal-hero-stat-num { font-size: 28px; font-weight: 800; color: var(--c-text); letter-spacing: -.02em; }
.pal-hero-stat-lbl { font-size: 13px; color: var(--c-text-muted); }

.pal-hero-media { position: relative; }
.pal-hero-img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-xl); box-shadow: var(--sh-xl);
}
.pal-hero-card {
  position: absolute; background: #fff; padding: 14px 18px;
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 12px;
}
.pal-hero-card.tl { top: 24px; left: -24px; }
.pal-hero-card.br { bottom: 24px; right: -24px; }
.pal-hero-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--c-brand-soft); color: var(--c-brand-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.pal-hero-card-title { font-size: 13px; font-weight: 700; color: var(--c-text); }
.pal-hero-card-sub { font-size: 11px; color: var(--c-text-muted); }

@media (max-width: 991.98px) {
  .pal-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .pal-hero-stats { gap: 20px; }
  .pal-hero-card.tl { left: 16px; top: 16px; }
  .pal-hero-card.br { right: 16px; bottom: 16px; }
}

/* --------------------------------------------------------------------------
   8. TRUST STRIP
   -------------------------------------------------------------------------- */
.pal-trust {
  background: var(--c-bg-alt); padding: 28px 0;
  border-top: 1px solid var(--c-border-soft);
  border-bottom: 1px solid var(--c-border-soft);
}
.pal-trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.pal-trust-item {
  display: flex; align-items: center; gap: 14px;
}
.pal-trust-icon {
  width: 48px; height: 48px; flex: 0 0 48px;
  background: #fff; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--c-brand-2);
  box-shadow: var(--sh-sm);
}
.pal-trust-title { font-size: 14px; font-weight: 700; margin: 0; color: var(--c-text); }
.pal-trust-sub { font-size: 12px; color: var(--c-text-muted); margin: 2px 0 0; }

@media (max-width: 767.98px) {
  .pal-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* --------------------------------------------------------------------------
   9. CATEGORY TILES
   -------------------------------------------------------------------------- */
.pal-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.pal-cat-tile {
  position: relative; display: block; text-decoration: none; color: var(--c-text);
  background: var(--c-bg-alt); border-radius: var(--r-lg); padding: 24px 16px;
  text-align: center; transition: transform var(--tr-mid), box-shadow var(--tr-mid);
  border: 1px solid transparent; overflow: hidden;
}
.pal-cat-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--c-border-soft); color: var(--c-brand-2); }
.pal-cat-img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 12px; background: #fff; box-shadow: var(--sh-sm);
}
.pal-cat-name { font-size: 13px; font-weight: 600; margin: 0; }
.pal-cat-count { font-size: 11px; color: var(--c-text-muted); margin-top: 2px; }

@media (max-width: 991.98px) {
  .pal-cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 575.98px) {
  .pal-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pal-cat-tile { padding: 16px 8px; }
  .pal-cat-img { width: 52px; height: 52px; }
}

/* --------------------------------------------------------------------------
   10. PRODUCT CARD — Sora-inspired (portrait 3:4, slide-up actions)
   -------------------------------------------------------------------------- */

/* Local tokens for the card aesthetic */
:root {
  --pc-bg: #ffffff;
  --pc-img-bg: #f3ede4;            /* warm beige tint behind product image */
  --pc-text: #2d2118;              /* deep earth text */
  --pc-muted: #8b7d6e;              /* muted brown */
  --pc-cta-bg: #f5f0e8;            /* cream */
  --pc-cta-bg-hover: #ede5d8;      /* warm */
  --pc-cta-text: #2d2118;
  --pc-shadow: 0 16px 40px rgba(74, 40, 64, .12);
  --pc-radius: 16px;
}

.pal-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
@media (max-width: 1199.98px) { .pal-products-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; } }
@media (max-width: 767.98px)  { .pal-products-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; } }
@media (max-width: 380px)     { .pal-products-grid { grid-template-columns: 1fr; } }

.product-card {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  background: var(--pc-bg);
  border-radius: var(--pc-radius); overflow: hidden;
  transition: transform .4s cubic-bezier(.25, .46, .45, .94), box-shadow .4s ease;
  box-shadow: 0 1px 3px rgba(74, 40, 64, .04);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pc-shadow);
  color: inherit;
}

/* ── Image wrapper ────────────────────────────────────────────────────── */
.product-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--pc-img-bg);
  border-top-left-radius: var(--pc-radius);
  border-top-right-radius: var(--pc-radius);
}
.product-img-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(200, 168, 107, .08) 100%);
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none; z-index: 1;
}
.product-card:hover .product-img-wrap::after { opacity: 1; }

.product-img,
.product-img-alt {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.product-card:hover .product-img { transform: scale(1.07); }

.product-img-alt {
  position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease;
}
.product-card:hover .product-img-alt { opacity: 1; }

/* ── Badge (top-left) ─────────────────────────────────────────────────── */
.product-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 5px 10px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  line-height: 1;
}
.product-badge.sale { background: #2d2118; color: #f5f0e8; }
.product-badge.new  { background: #b5c0a8; color: #ffffff; }
.product-badge.feat { background: #c8a86b; color: #2d2118; }
.product-badge.out  { background: #4a3d30; color: #f5f0e8; }

/* ── Slide-up actions bar ─────────────────────────────────────────────── */
.product-actions {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 0; width: 100%;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.25, .46, .45, .94);
  z-index: 3;
}
.product-card:hover .product-actions { transform: translateY(0); }

.product-add-btn {
  flex: 1 1 auto; height: 44px; border: 0; cursor: pointer;
  background: var(--pc-cta-bg); color: var(--pc-cta-text);
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  font-family: inherit;
  transition: background .3s ease, color .3s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.product-add-btn:hover { background: var(--pc-cta-bg-hover); }
.product-add-btn.is-disabled, .product-add-btn:disabled {
  background: #e8e1d4; color: rgba(45, 33, 24, .5); cursor: not-allowed;
}

.product-fav-btn {
  flex: 0 0 44px; width: 44px; height: 44px; border: 0; cursor: pointer;
  background: rgba(245, 240, 232, .92); backdrop-filter: blur(4px);
  color: var(--pc-cta-text);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s ease;
}
.product-fav-btn:hover { background: #f5f0e8; }
.product-fav-btn.is-active { color: #c8a86b; }
.product-fav-btn.is-active svg { fill: currentColor; }

/* hidden quick-view trigger (used by image click on mobile) */
.product-qv-trigger { display: none; }

/* ── Info section ─────────────────────────────────────────────────────── */
.product-info-wrap {
  padding: 18px 20px;
  display: flex; flex-direction: column;
  min-height: 130px;
  border-bottom-left-radius: var(--pc-radius);
  border-bottom-right-radius: var(--pc-radius);
}

.product-card-title {
  font-size: 1rem; font-weight: 500; color: var(--pc-text);
  margin: 0 0 4px; line-height: 1.3;
  font-family: var(--font-display, "Inter", system-ui, sans-serif);
  letter-spacing: -.005em;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}

.product-card-cat {
  font-size: 10.5px; color: var(--pc-muted);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  margin: 0 0 12px; line-height: 1.3;
}

.product-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto;
}

.product-card-price {
  font-size: 1.05rem; font-weight: 500; color: var(--pc-text);
  font-family: var(--font-display, "Inter", system-ui, sans-serif);
  letter-spacing: -.01em;
  display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.product-card-old-price {
  font-size: .85rem; color: var(--pc-muted);
  text-decoration: line-through; font-weight: 400;
}

/* ── Mobile adaptation ────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .product-card { border-radius: 12px; box-shadow: 0 2px 8px rgba(74, 40, 64, .06); }
  .product-card:hover { transform: none; box-shadow: 0 4px 12px rgba(74, 40, 64, .08); }
  .product-img-wrap { border-radius: 12px 12px 0 0; }
  .product-info-wrap { padding: 12px 14px; min-height: 110px; border-radius: 0 0 12px 12px; }
  .product-card-title { font-size: .9rem; min-height: 2.4em; }
  .product-card-price { font-size: .95rem; }
  .product-card-old-price { font-size: .78rem; }
  .product-card-cat { font-size: 9.5px; margin-bottom: 8px; }
  .product-badge { top: 10px; left: 10px; padding: 4px 8px; font-size: 9px; letter-spacing: .12em; }
  /* Always show actions on mobile */
  .product-actions { transform: translateY(0); }
  .product-add-btn { height: 38px; font-size: 10px; letter-spacing: .12em; }
  .product-fav-btn { flex: 0 0 38px; width: 38px; height: 38px; }
}

/* ── Polish 2026 : ombre + radius + OOS + rating empty ────────────────── */
.product-card {
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(20, 14, 10, .06), 0 1px 2px rgba(20, 14, 10, .04);
  transition: transform .25s cubic-bezier(.25, .46, .45, .94), box-shadow .25s ease, opacity .25s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px rgba(20, 14, 10, .14), 0 4px 10px -4px rgba(20, 14, 10, .08);
}
.product-img-wrap {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.product-info-wrap {
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}
.product-card:hover .product-img { transform: scale(1.05); }

/* Image : transition fluide quand on switch sur le placeholder SVG genere */
.product-img { background: #fafaf9; }

/* Badge legere ombre pour le faire ressortir */
.product-badge {
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}

/* Rupture de stock : carte plus discrete + badge marque */
.product-card.is-out-of-stock { opacity: .68; }
.product-card.is-out-of-stock:hover { opacity: .85; transform: translateY(-1px); }
.product-card.is-out-of-stock .product-img { filter: grayscale(.35); }
.product-card.is-out-of-stock .product-badge.out {
  background: #dc2626; color: #fff; font-weight: 700;
}

/* Rating quand 0 avis : indication discrete au lieu de 5 etoiles vides */
.product-card-rating-empty {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--pc-muted, #9b9384);
  font-style: italic;
  margin: 0 0 8px;
  opacity: .8;
}
.product-card-rating-empty i { font-size: 11px; opacity: .7; }

/* Wishlist heart : feedback hover plus marque (existing slide-up bar) */
.product-fav-btn { transition: background .25s ease, color .25s ease, transform .15s ease; }
.product-fav-btn:hover { transform: scale(1.08); color: #dc2626; }
.product-fav-btn:hover svg { fill: currentColor; }

@media (max-width: 639px) {
  .product-card,
  .product-img-wrap,
  .product-info-wrap { border-radius: 14px; }
  .product-img-wrap { border-radius: 14px 14px 0 0; }
  .product-info-wrap { border-radius: 0 0 14px 14px; }
}

/* ── List view ────────────────────────────────────────────────────────── */
.pal-products-grid.is-list { grid-template-columns: 1fr; }
.pal-products-grid.is-list .product-card { display: grid; grid-template-columns: 220px 1fr; align-items: stretch; }
.pal-products-grid.is-list .product-img-wrap { aspect-ratio: 1 / 1; border-radius: var(--pc-radius) 0 0 var(--pc-radius); }
.pal-products-grid.is-list .product-info-wrap { border-radius: 0 var(--pc-radius) var(--pc-radius) 0; padding: 24px; }
.pal-products-grid.is-list .product-actions { transform: translateY(0); }
@media (max-width: 575.98px) {
  .pal-products-grid.is-list .product-card { grid-template-columns: 1fr; }
  .pal-products-grid.is-list .product-img-wrap { border-radius: 12px 12px 0 0; aspect-ratio: 3/4; }
  .pal-products-grid.is-list .product-info-wrap { border-radius: 0 0 12px 12px; padding: 14px; }
}

/* --------------------------------------------------------------------------
   11. SHOP PAGE
   -------------------------------------------------------------------------- */
.pal-shop-head {
  background: linear-gradient(180deg, var(--c-bg-alt), #fff);
  border-bottom: 1px solid var(--c-border-soft);
  padding: 32px 0;
}
.pal-shop-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.pal-shop-meta { color: var(--c-text-muted); font-size: 14px; margin-top: 4px; }

.pal-shop-body { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 32px 0; }
@media (max-width: 991.98px) { .pal-shop-body { grid-template-columns: 1fr; } }

.pal-shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--c-border-soft); margin-bottom: 24px;
}
.pal-shop-toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pal-shop-view {
  display: inline-flex; background: var(--c-bg-alt); border-radius: 10px; padding: 4px; gap: 4px;
}
.pal-shop-view button {
  width: 32px; height: 32px; border: none; background: transparent;
  border-radius: 6px; color: var(--c-text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.pal-shop-view button.is-active { background: #fff; color: var(--c-text); box-shadow: var(--sh-xs); }

/* sidebar filters card */
.pal-filters {
  background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r-lg);
  padding: 20px; position: sticky; top: 100px;
}
.pal-filter-block { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--c-border-soft); }
.pal-filter-block:last-child { border: 0; margin: 0; padding: 0; }
.pal-filter-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--c-text); margin-bottom: 12px;
}
.pal-filter-input {
  width: 100%; height: 42px; padding: 0 14px;
  border: 1.5px solid var(--c-border); border-radius: 10px;
  font-size: 14px; background: #fff; color: var(--c-text); outline: none;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.pal-filter-input:focus { border-color: var(--c-brand-2); box-shadow: 0 0 0 4px var(--c-brand-soft); }
select.pal-filter-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.pal-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pal-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--c-bg-alt); color: var(--c-text);
  text-decoration: none; font-size: 12px; font-weight: 600;
  transition: background var(--tr-fast);
}
.pal-chip:hover { background: var(--c-brand-soft); color: var(--c-brand-2); }
.pal-chip-x { color: var(--c-text-muted); }

/* --------------------------------------------------------------------------
   12. PRODUCT DETAIL PAGE
   -------------------------------------------------------------------------- */
.pal-pd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 32px 0 64px; }
@media (max-width: 991.98px) { .pal-pd-grid { grid-template-columns: 1fr; gap: 32px; } }

.pal-pd-gallery { display: grid; grid-template-columns: 80px 1fr; gap: 16px; }
.pal-pd-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 540px; overflow-y: auto; padding-right: 6px; }
.pal-pd-thumb {
  width: 80px; height: 80px; border-radius: var(--r-md);
  overflow: hidden; cursor: pointer; flex: 0 0 80px;
  border: 2px solid transparent; transition: border-color var(--tr-fast);
}
.pal-pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pal-pd-thumb.is-active { border-color: var(--c-text); }

.pal-pd-stage {
  position: relative; aspect-ratio: 1 / 1; background: var(--c-bg-alt);
  border-radius: var(--r-xl); overflow: hidden;
}
.pal-pd-stage-img { width: 100%; height: 100%; object-fit: contain; }
.pal-pd-stage-zoom {
  position: absolute; bottom: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-sm); font-size: 16px; color: var(--c-text);
}

@media (max-width: 575.98px) {
  .pal-pd-gallery { grid-template-columns: 1fr; }
  .pal-pd-thumbs { flex-direction: row; max-height: none; overflow-x: auto; padding-right: 0; padding-bottom: 6px; }
  .pal-pd-thumb { flex: 0 0 64px; width: 64px; height: 64px; }
}

.pal-pd-info { display: flex; flex-direction: column; gap: 16px; }
.pal-pd-cat { font-size: 12px; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pal-pd-name { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0; line-height: 1.15; }
.pal-pd-rating { display: inline-flex; align-items: center; gap: 8px; }
.pal-pd-rating-stars { color: var(--c-warning); }
.pal-pd-rating-count { font-size: 13px; color: var(--c-text-muted); }
.pal-pd-prices { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-border-soft); }
.pal-pd-price-now { font-size: 32px; font-weight: 800; color: var(--c-text); letter-spacing: -.02em; }
.pal-pd-price-old { font-size: 18px; color: var(--c-text-muted); text-decoration: line-through; }
.pal-pd-price-save { background: var(--c-danger); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.pal-pd-short { color: var(--c-text-muted); font-size: 15px; line-height: 1.6; }

/* qty stepper */
.pal-qty {
  display: inline-flex; align-items: center; height: 48px;
  border: 1.5px solid var(--c-border); border-radius: 12px; overflow: hidden;
}
.pal-qty button {
  width: 44px; height: 100%; background: transparent; border: none; cursor: pointer;
  font-size: 18px; color: var(--c-text); display: inline-flex; align-items: center; justify-content: center;
}
.pal-qty button:hover { background: var(--c-bg-alt); }
.pal-qty input {
  width: 56px; height: 100%; border: none; outline: none; text-align: center;
  font-size: 15px; font-weight: 600; color: var(--c-text);
  background: transparent;
}
.pal-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pal-pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pal-pd-actions .btn-pal { flex: 1 1 auto; min-width: 160px; height: 48px; }

.pal-pd-meta {
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--c-border-soft); padding-top: 16px; margin-top: 8px;
}
.pal-pd-meta-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-text-muted); }
.pal-pd-meta-row strong { color: var(--c-text); font-weight: 600; }

/* tabs */
.pal-tabs { border-bottom: 1px solid var(--c-border); display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.pal-tab {
  padding: 14px 18px; background: transparent; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--c-text-muted);
  position: relative; transition: color var(--tr-fast);
}
.pal-tab:hover { color: var(--c-text); }
.pal-tab.is-active { color: var(--c-text); }
.pal-tab.is-active::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--c-text); border-radius: 2px;
}
.pal-tab-panel { display: none; padding: 8px 0; line-height: 1.65; color: var(--c-text); }
.pal-tab-panel.is-active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.pal-specs-table { width: 100%; border-collapse: collapse; }
.pal-specs-table tr { border-bottom: 1px solid var(--c-border-soft); }
.pal-specs-table th, .pal-specs-table td { padding: 12px 4px; font-size: 14px; text-align: left; }
.pal-specs-table th { color: var(--c-text-muted); font-weight: 500; width: 35%; }
.pal-specs-table td { color: var(--c-text); font-weight: 600; }

/* video block */
.pal-pd-video { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--sh-md); }
.pal-pd-video iframe { width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   13. CART / CHECKOUT / FORMS
   -------------------------------------------------------------------------- */
.pal-form-label { font-size: 13px; font-weight: 600; color: var(--c-text); margin-bottom: 6px; display: block; }
.pal-input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--c-border); border-radius: 12px;
  font-size: 14px; background: #fff; color: var(--c-text); outline: none;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.pal-input:focus { border-color: var(--c-brand-2); box-shadow: 0 0 0 4px var(--c-brand-soft); }
textarea.pal-input { min-height: 120px; padding: 14px; resize: vertical; line-height: 1.5; height: auto; }

.pal-card {
  background: #fff; border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg); padding: 24px;
}
.pal-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--c-border-soft);
}
.pal-card-title { font-size: 16px; font-weight: 700; margin: 0; }

.pal-cart-item {
  display: grid; grid-template-columns: 80px 1fr auto auto auto;
  align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--c-border-soft);
}
.pal-cart-item:last-child { border: 0; }
.pal-cart-img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; background: var(--c-bg-alt); }
.pal-cart-name { font-size: 14px; font-weight: 600; }
.pal-cart-meta { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }
.pal-cart-line { font-size: 15px; font-weight: 700; min-width: 90px; text-align: right; }
.pal-cart-remove {
  width: 36px; height: 36px; border-radius: 10px;
  background: transparent; border: 1.5px solid var(--c-border);
  color: var(--c-danger); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--tr-fast), border-color var(--tr-fast);
}
.pal-cart-remove:hover { background: var(--c-danger); color: #fff; border-color: var(--c-danger); }

@media (max-width: 575.98px) {
  .pal-cart-item { grid-template-columns: 64px 1fr auto; gap: 10px; }
  .pal-cart-img { width: 64px; height: 64px; }
  .pal-cart-line { display: none; }
}

.pal-summary {
  position: sticky; top: 100px;
  background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r-lg); padding: 24px;
}
.pal-summary-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.pal-summary-row strong { font-weight: 600; }
.pal-summary-divider { border: 0; border-top: 1px solid var(--c-border-soft); margin: 12px 0; }
.pal-summary-total { font-size: 22px; font-weight: 800; }

/* steps indicator */
.pal-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px 0 8px; flex-wrap: wrap; }
.pal-step { display: inline-flex; align-items: center; gap: 8px; }
.pal-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-bg-alt); color: var(--c-text-muted);
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.pal-step.is-done .pal-step-num { background: var(--c-success); color: #fff; }
.pal-step.is-active .pal-step-num { background: var(--c-text); color: #fff; }
.pal-step-label { font-size: 13px; color: var(--c-text-muted); font-weight: 600; }
.pal-step.is-active .pal-step-label { color: var(--c-text); }
.pal-step-bar { width: 32px; height: 2px; background: var(--c-bg-alt); }
.pal-step.is-done + .pal-step-bar { background: var(--c-success); }

/* --------------------------------------------------------------------------
   14. MINI CART OFFCANVAS
   -------------------------------------------------------------------------- */
.pal-minicart {
  position: fixed; top: 0; right: -440px; bottom: 0;
  width: 420px; max-width: 92vw; background: #fff; z-index: 1080;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, .12); transition: right var(--tr-mid);
}
.pal-minicart.is-open { right: 0; }
.pal-minicart-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .35);
  z-index: 1075; opacity: 0; pointer-events: none;
  transition: opacity var(--tr-mid);
}
.pal-minicart-overlay.is-open { opacity: 1; pointer-events: all; }
.pal-minicart-head {
  padding: 20px 24px; border-bottom: 1px solid var(--c-border-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.pal-minicart-title { font-size: 16px; font-weight: 700; margin: 0; }
.pal-minicart-body { padding: 8px 12px; flex: 1 1 auto; overflow-y: auto; }
.pal-minicart-item {
  display: grid; grid-template-columns: 64px 1fr auto;
  align-items: center; gap: 12px; padding: 12px;
}
.pal-minicart-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--c-bg-alt); }
.pal-minicart-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.pal-minicart-line { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }
.pal-minicart-qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.pal-minicart-qty button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--c-border); background: #fff; cursor: pointer; line-height: 1; }
.pal-minicart-qty input { width: 36px; height: 24px; border: 1px solid var(--c-border); border-radius: 6px; text-align: center; font-size: 12px; }
.pal-minicart-rem {
  width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent;
  color: var(--c-text-muted); cursor: pointer;
}
.pal-minicart-rem:hover { color: var(--c-danger); background: rgba(239, 68, 68, .08); }
.pal-minicart-foot { padding: 18px 24px; border-top: 1px solid var(--c-border-soft); }
.pal-minicart-empty {
  text-align: center; padding: 60px 24px; color: var(--c-text-muted);
}
.pal-minicart-empty i { font-size: 48px; color: var(--c-text-soft); display: block; margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.pal-footer {
  background: #0f172a; color: #cbd5e1; margin-top: var(--section-y);
  padding: clamp(40px, 6vw, 80px) 0 0;
}
.pal-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
}
.pal-footer-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: #fff; margin: 0 0 16px;
}
.pal-footer-link {
  display: block; padding: 6px 0; color: #cbd5e1; text-decoration: none;
  font-size: 14px; transition: color var(--tr-fast);
}
.pal-footer-link:hover { color: #fff; }
.pal-footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: #fff; text-decoration: none; margin-bottom: 12px; }
.pal-footer-brand img { height: 32px; }
.pal-footer-about { font-size: 14px; color: #94a3b8; line-height: 1.7; max-width: 360px; }

.pal-footer-newsletter input {
  width: 100%; height: 44px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px;
  padding: 0 14px; color: #fff; font-size: 14px; outline: none; transition: border-color var(--tr-fast);
}
.pal-footer-newsletter input::placeholder { color: #64748b; }
.pal-footer-newsletter input:focus { border-color: var(--c-brand-2); }
.pal-footer-newsletter button {
  margin-top: 8px; width: 100%; padding: 12px;
  background: var(--c-brand-2); color: #fff;
  border: none; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background var(--tr-fast);
}
.pal-footer-newsletter button:hover { background: #4338ca; }

.pal-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: #94a3b8;
}
.pal-footer-socials { display: inline-flex; gap: 8px; }
.pal-footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: none;
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; transition: background var(--tr-fast); text-decoration: none;
}
.pal-footer-social:hover { background: var(--c-brand-2); color: #fff; }

@media (max-width: 991.98px) {
  .pal-footer-grid { grid-template-columns: 1fr 1fr; }
  .pal-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .pal-footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .pal-footer-bottom { justify-content: center; text-align: center; flex-direction: column; }
}

/* --------------------------------------------------------------------------
   16. UTILITIES & PAGE LOADER
   -------------------------------------------------------------------------- */
.pal-skeleton { background: linear-gradient(90deg, #f0f3f7 0%, #f8f9fb 50%, #f0f3f7 100%); background-size: 200% 100%; animation: pal-skel 1.4s infinite linear; }
@keyframes pal-skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

#page-loader { background: #fff; transition: opacity .3s ease; }
#page-loader.hidden { opacity: 0; pointer-events: none; }
.pal-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--c-border); border-top-color: var(--c-brand-2);
  animation: pal-spin .8s linear infinite;
}
@keyframes pal-spin { to { transform: rotate(360deg); } }

/* announce flash */
.pal-flash {
  position: fixed; top: 90px; right: 24px; z-index: 1100;
  background: #fff; border: 1px solid var(--c-border-soft); border-radius: 12px;
  padding: 14px 18px; box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 12px; font-size: 14px;
  transform: translateX(120%); transition: transform var(--tr-mid);
  max-width: 360px;
}
.pal-flash.is-show { transform: translateX(0); }
.pal-flash i { font-size: 20px; color: var(--c-success); }
.pal-flash.error i { color: var(--c-danger); }

/* responsive helpers */
.pal-only-desktop { display: block; }
.pal-only-mobile { display: none; }
@media (max-width: 991.98px) {
  .pal-only-desktop { display: none; }
  .pal-only-mobile { display: block; }
}
