/**
 * DS Mobile App — Feuille de style
 * Compatible PrestaShop 1.7.8 · Mobile-first
 */

/* ── VARIABLES ─────────────────────────────────────── */
:root {
  --ds-rose:   #E8476A;
  --ds-rose-l: #FFF0F3;
  --ds-gold:   #D4A230;
  --ds-teal:   #1A8C6A;
  --ds-teal-l: #E6F7F2;
  --ds-dark:   #1C1320;
  --ds-text:   #2D1F2A;
  --ds-muted:  #9B8A94;
  --ds-bg:     #FDF8F6;
  --ds-border: #F0E8EC;
  --ds-shadow: 0 2px 16px rgba(60,20,40,0.10);
}

/* ── CURRENCY BAR ──────────────────────────────────── */
.ds-currency-bar {
  background: var(--ds-dark);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 1rem;
  font-size: 12px;
  font-weight: 500;
  position: relative;
  z-index: 1050;
  flex-wrap: wrap;
}
.ds-cur-label { opacity: 0.5; }
.ds-cur-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.ds-cur-btn:hover { background: rgba(255,255,255,0.15); }
.ds-cur-btn.active { background: var(--ds-rose); border-color: var(--ds-rose); color: #fff; }

/* ── URGENCE BANNER ────────────────────────────────── */
.ds-urgence {
  background: #FFF0F3;
  border-bottom: 1px solid #FFB3C8;
}
.ds-urgence-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-text);
}
.ds-urgence-inner strong { color: var(--ds-rose); }
.ds-urgence-close {
  background: none;
  border: none;
  color: var(--ds-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  flex-shrink: 0;
}

/* ── LIVRAISON BADGE ───────────────────────────────── */
.ds-delivery-badge {
  background: var(--ds-teal-l);
  border: 1px solid #8FD9BF;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 1rem 0;
  font-size: 13px;
  color: #0F5E48;
  line-height: 1.7;
}
.ds-dlv-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.ds-dlv-item:last-child { margin-bottom: 0; }
.ds-dlv-green { color: var(--ds-teal); font-weight: 600; }

/* ── WHATSAPP FLOAT ────────────────────────────────── */
.ds-wa-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ds-wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
  color: #fff !important;
}
.ds-wa-float span { white-space: nowrap; }

/* ── BOTTOM NAV (mobile) ───────────────────────────── */
.ds-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--ds-border);
  display: flex;
  z-index: 999;
  height: 62px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.ds-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none !important;
  color: var(--ds-muted) !important;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  transition: color 0.15s;
}
.ds-nav-item.active { color: var(--ds-rose) !important; }
.ds-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 3px;
  background: var(--ds-rose);
  border-radius: 0 0 4px 4px;
}
.ds-nav-icon { font-size: 20px; line-height: 1; }
.ds-nav-lbl { font-size: 10px; }
.ds-nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: var(--ds-rose);
  color: #fff;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Espace pour bottom nav */
.ds-has-bottom-nav { padding-bottom: 62px !important; }
.ds-has-bottom-nav footer { margin-bottom: 62px; }
.ds-has-bottom-nav .ds-wa-float { bottom: 78px; }

/* ── BOUTONS ADD TO CART ───────────────────────────── */
.add-to-cart.ds-loading,
[data-button-action="add-to-cart"].ds-loading {
  pointer-events: none;
  opacity: 0.8;
}
.ds-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ds-spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }

/* ── TOAST ─────────────────────────────────────────── */
.ds-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ds-dark);
  color: #fff;
  padding: 11px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.ds-toast-success { background: var(--ds-teal); }
.ds-toast-error   { background: #c0392b; }
.ds-toast-info    { background: var(--ds-rose); }
.ds-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── INSTALL BANNER ────────────────────────────────── */
.ds-install-banner {
  position: fixed;
  bottom: 80px;
  left: 12px; right: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 1001;
  border: 1px solid var(--ds-border);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.ds-install-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.ds-install-icon { font-size: 28px; flex-shrink: 0; }
.ds-install-content > div { flex: 1; }
.ds-install-content strong { display: block; font-size: 14px; color: var(--ds-text); margin-bottom: 2px; }
.ds-install-content small { font-size: 12px; color: var(--ds-muted); }
.ds-install-btn {
  background: var(--ds-rose); color: #fff;
  border: none; border-radius: 8px;
  padding: 8px 14px; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: inherit;
}
.ds-install-close {
  background: none; border: none;
  color: var(--ds-muted); cursor: pointer;
  font-size: 18px; padding: 0 4px; flex-shrink: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .ds-urgence-inner { font-size: 12px; }
  .ds-wa-float span { display: none; }
  .ds-wa-float { padding: 14px; border-radius: 50%; width: 52px; height: 52px; justify-content: center; }
  .ds-delivery-badge { font-size: 12px; }
}
@media (min-width: 769px) {
  .ds-bottom-nav { display: none !important; }
  .ds-has-bottom-nav { padding-bottom: 0 !important; }
  .ds-has-bottom-nav footer { margin-bottom: 0; }
  .ds-has-bottom-nav .ds-wa-float { bottom: 24px; }
}

/* ── BOUTON WA CATÉGORIE ───────────────────────────── */
.ds-cat-wa-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 1.5rem;
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
    width: fit-content;
}
.ds-cat-wa-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff !important;
}

/* ── BOUTON WA PRODUIT PERSONNALISÉ ────────────────── */
.ds-prod-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #25D366 !important;
    text-decoration: none !important;
    border: 2px solid #25D366;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 12px;
    width: 100%;
    cursor: pointer;
    transition: all 0.15s;
}
.ds-prod-wa-btn:hover {
    background: #25D366;
    color: #fff !important;
}

/* ── MOBILE ────────────────────────────────────────── */
@media (max-width: 768px) {
    .ds-cat-wa-btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 13px 16px;
    }
}
