@charset "UTF-8";

/* ============================================================
   LAYOUT
   ============================================================ */

.shop-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.shop-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.shop-sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* mise en page 2 colonnes du panier (articles + récapitulatif) */
.shop-cart-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.shop-cart-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-cart-summary {
  width: 340px;
  flex-shrink: 0;
  padding: 28px;
}

@media (max-width: 991.98px) {
  .shop-container {
    padding: 0 16px 60px;
  }

  .shop-layout {
    flex-direction: column;
  }

  .shop-sidebar {
    width: 100%;
  }

  .shop-cart-layout {
    flex-direction: column;
  }

  .shop-cart-summary {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .shop-item-row .shop-item-name {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* ============================================================
   PANEL / CARD SYSTEM
   ============================================================ */

.shop-panel {
  background: hsl(from var(--primary-color) h s calc(l - 6));
  border: 1px solid var(--detail-color);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.shop-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(from var(--text-color) h s l / 0.55);
}

.shop-item-card {
  background: var(--secondary-color);
  border: 1px solid hsl(from var(--text-color) h s l / 0.08);
  border-radius: 14px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

a.shop-item-card,
.shop-item-card.is-clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.shop-item-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  border-color: hsl(from var(--interaction-color) h s l / 0.4);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.shop-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 26px;
  border-radius: 10px;
  border: none;
  font-family: "Exo 2", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 13px;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--interaction-color), var(--detail-color));
  box-shadow: 0 8px 18px hsl(from var(--interaction-color) h s l / 0.3);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.shop-btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px hsl(from var(--interaction-color) h s l / 0.4);
  color: var(--primary-color);
}

.shop-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Exo 2", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 13px;
  color: var(--interaction-color);
  background: transparent;
  border: 2px solid var(--interaction-color);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, color 0.25s ease;
}

.shop-btn-outline:hover {
  transform: translateY(-3px);
  background: var(--interaction-color);
  color: var(--primary-color);
}

/* ============================================================
   ACCOUNT PANEL (sidebar)
   ============================================================ */

.shop-account-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.shop-account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.shop-account-name {
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: hsl(from var(--important-color) h s l / 0.16);
  color: var(--important-color);
  margin-top: 6px;
}

.shop-account-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.shop-account-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  border-radius: 10px;
  background: hsl(from var(--text-color) h s l / 0.06);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: hsl(from var(--text-color) h s l / 0.85);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.shop-account-action i {
  font-size: 14px;
}

.shop-account-action:hover {
  background: hsl(from var(--interaction-color) h s l / 0.16);
  color: var(--interaction-color);
}

.shop-cart-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(from var(--interaction-color) h s l / 0.14);
  color: var(--interaction-color);
  font-size: 17px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.shop-cart-btn:hover {
  background: hsl(from var(--interaction-color) h s l / 0.28);
  color: var(--interaction-color);
  transform: translateY(-2px);
}

.shop-recent-row:last-child {
  border-bottom: none !important;
}

/* ============================================================
   CATEGORY NAV (sidebar)
   ============================================================ */

.shop-nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: hsl(from var(--text-color) h s l / 0.05);
  border: 1px solid hsl(from var(--text-color) h s l / 0.06);
  color: hsl(from var(--text-color) h s l / 0.85);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.shop-nav-row:hover {
  background: hsl(from var(--text-color) h s l / 0.1);
  border-color: hsl(from var(--text-color) h s l / 0.12);
  color: var(--text-color);
  transform: translateX(2px);
}

.shop-nav-row.is-active {
  background: hsl(from var(--interaction-color) h s l / 0.16);
  border-color: hsl(from var(--interaction-color) h s l / 0.4);
  color: var(--interaction-color);
}

.shop-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 0 26px;
}

.shop-nav-sub .shop-nav-row {
  font-size: 13px;
  padding: 8px 10px;
}

/* ============================================================
   CATEGORY ICON (nav rows, grid cards, category banner)
   ============================================================ */

.shop-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
}

.shop-cat-icon--glyph {
  background: linear-gradient(145deg, hsl(from var(--interaction-color) h s l / 0.9), hsl(from var(--detail-color) h s l / 0.9));
  color: var(--primary-color);
}

.shop-cat-icon--img img {
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

/* variante "bare" : petite icône dans une ligne de nav, sans grosse pastille */
.shop-nav-row .shop-cat-icon--bare {
  border-radius: 7px;
}

.shop-nav-row .shop-cat-icon--glyph.shop-cat-icon--bare {
  font-size: 13px;
}

.shop-nav-sub .shop-cat-icon--bare.shop-cat-icon--glyph {
  font-size: 11px;
}

/* fallback conservé : encore utilisé par offers/select --*/
.shop-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(145deg, hsl(from var(--interaction-color) h s l / 0.9), hsl(from var(--detail-color) h s l / 0.9));
  color: var(--primary-color);
  font-size: 24px;
}

/* ============================================================
   WELCOME BANNER
   ============================================================ */

.shop-banner {
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.shop-banner-icon {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px hsl(from var(--interaction-color) h s l / 0.35);
}

.shop-banner-icon img {
  max-width: 60%;
  max-height: 60%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

/* ============================================================
   CATEGORY GRID (shop home)
   ============================================================ */

.shop-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.shop-category-card {
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.shop-category-card-body {
  flex: 1;
  min-width: 0;
}

.shop-category-card-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.shop-category-card-count {
  font-size: 13px;
  color: hsl(from var(--text-color) h s l / 0.55);
}

.shop-category-card-arrow {
  color: hsl(from var(--text-color) h s l / 0.4);
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .shop-category-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CATEGORY BANNER (category detail)
   ============================================================ */

.shop-category-banner {
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.shop-category-banner-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--interaction-color), var(--detail-color));
  box-shadow: 0 12px 26px hsl(from var(--interaction-color) h s l / 0.3);
  color: var(--primary-color);
  font-size: 32px;
}

.shop-category-banner-icon img {
  max-width: 65%;
  max-height: 65%;
}

/* ============================================================
   PRODUCT GRID (category detail)
   ============================================================ */

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

a.shop-product-card,
.shop-product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.shop-product-card.is-discounted {
  border-color: hsl(from var(--interaction-color) h s l / 0.5);
}

.shop-product-image {
  height: 140px;
  background: linear-gradient(150deg, hsl(from var(--secondary-color) h s calc(l + 8)), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-product-image img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.shop-product-image i {
  font-size: 44px;
  color: hsl(from var(--interaction-color) h s l / 0.85);
}

.shop-product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.shop-product-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}

.shop-product-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--interaction-color);
  font-family: "Exo 2", sans-serif;
}

.shop-product-price-old {
  font-size: 13px;
  color: hsl(from var(--text-color) h s l / 0.45);
  text-decoration: line-through;
  margin-left: 8px;
}

.shop-badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: hsl(from var(--important-color) h s l / 0.18);
  color: var(--important-color);
}

/* ============================================================
   BUTTONS — variants
   ============================================================ */

.shop-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: "Exo 2", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 12.5px;
  color: #e05555;
  background: hsl(from #e05555 h s l / 0.12);
  text-decoration: none;
  transition: background 0.2s ease;
}

.shop-btn-danger:hover {
  background: hsl(from #e05555 h s l / 0.22);
  color: #e05555;
}

.shop-icon-btn-danger {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: hsl(from #e05555 h s l / 0.12);
  color: #e05555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.2s ease;
}

.shop-icon-btn-danger:hover {
  background: hsl(from #e05555 h s l / 0.22);
  color: #e05555;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */

.shop-field {
  background: hsl(from var(--primary-color) h s calc(l - 10));
  border: 1px solid hsl(from var(--interaction-color) h s l / 0.5);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-color);
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

.shop-field::placeholder {
  color: hsl(from var(--text-color) h s l / 0.4);
}

.shop-field.is-invalid {
  border-color: #e05555;
}

.shop-field-qty {
  width: 68px;
  text-align: center;
  padding: 8px;
}

.shop-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: hsl(from var(--text-color) h s l / 0.75);
  line-height: 1.5;
}

.shop-checkbox-row input {
  margin-top: 2px;
  accent-color: var(--interaction-color);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.shop-invalid-feedback {
  display: block;
  font-size: 12px;
  color: #e88f8f;
  margin-top: 4px;
}

/* ============================================================
   CART / TABLES
   ============================================================ */

.shop-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid hsl(from var(--text-color) h s l / 0.08);
  flex-wrap: wrap;
}

.shop-item-row:last-child {
  border-bottom: none;
}

.shop-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(150deg, hsl(from var(--interaction-color) h s l / 0.35), var(--secondary-color) 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--interaction-color);
  font-size: 20px;
}

.shop-item-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: contain;
  background: hsl(from var(--primary-color) h s calc(l - 4));
  padding: 4px;
}

.shop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.shop-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(from var(--text-color) h s l / 0.5);
  border-bottom: 1px solid hsl(from var(--text-color) h s l / 0.1);
}

.shop-table td {
  padding: 10px;
  border-bottom: 1px solid hsl(from var(--text-color) h s l / 0.07);
  vertical-align: middle;
}

.shop-table tbody tr:last-child td {
  border-bottom: none;
}

.shop-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: hsl(from var(--text-color) h s l / 0.75);
}

/* ============================================================
   PAYMENT METHOD CARDS
   ============================================================ */

.shop-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

/* état vide (aucun moyen de paiement / offre configuré) : pleine largeur, centré */
.shop-method-grid > .shop-method-empty {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
}

.shop-method-card {
  background: var(--secondary-color);
  border: 2px solid hsl(from var(--text-color) h s l / 0.08);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.shop-method-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
  color: inherit;
  border-color: hsl(from var(--interaction-color) h s l / 0.4);
}

.shop-method-card img {
  max-height: 45px;
  max-width: 100%;
  object-fit: contain;
}

/* ============================================================
   POLITIQUE DE REMBOURSEMENT (accueil boutique)
   ============================================================ */

.shop-refund {
  padding: 26px 28px;
  border-color: hsl(from var(--interaction-color) h s l / 0.35);
}

.shop-refund-title {
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--interaction-color);
}

.shop-refund p {
  font-size: 13.5px;
  line-height: 1.65;
  color: hsl(from var(--text-color) h s l / 0.78);
  margin: 0 0 10px;
}

.shop-refund-list {
  margin: 0 0 10px;
  padding-left: 20px;
}

.shop-refund-list li {
  font-size: 13.5px;
  line-height: 1.6;
  color: hsl(from var(--text-color) h s l / 0.78);
  margin-bottom: 4px;
}

.shop-refund .shop-btn-outline {
  margin-top: 8px;
}

/* ============================================================
   STATUS PILLS
   ============================================================ */

.shop-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
