/* ═══════════════════════════════════════════════
   SHOP — Marketplace, Products, Cart, Checkout
   ═══════════════════════════════════════════════ */


/* ─── Shop Hero Banner ─── */
#marche {
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


.shop-hero {
  background:
    linear-gradient(135deg, rgba(6,6,6,0.95) 0%, rgba(6,6,6,0.72) 100%),
    url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1600&q=80') center/cover no-repeat;
  padding: 100px 80px 70px;
  border-bottom: 1px solid var(--border-gold);
}

.shop-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* Force white text & shadows inside dark shop-hero photo banner */
.shop-hero .section-label,
.shop-hero .section-label::before { color: var(--gold); background: var(--gold); }
.shop-hero .section-title { color: #FAFAF8 !important; text-shadow: 0 2px 20px rgba(0,0,0,0.70); }
.shop-hero .section-subtitle { color: rgba(250,250,248,0.78) !important; text-shadow: 0 1px 10px rgba(0,0,0,0.55); }
.shop-hero .gold { color: var(--gold) !important; }

.shop-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.70);
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.50);
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gold-dark);
  color: #FFFFFF;
  border-color: var(--gold-dark);
}


/* ─── Product Grid ─── */
.shop-grid-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 80px;
  flex: 1;
}

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

/* ─── Product Card ─── */
.product-card {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold-bright);
  box-shadow: 0 16px 48px rgba(28, 28, 26, 0.14), 0 0 0 1px rgba(201, 168, 76, 0.20);
}

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 12px;
}

.product-badge.nouveau  { background: var(--gold-dark); color: #FFFFFF; }
.product-badge.promo    { background: #c0392b; color: #fff; }
.product-badge.exclusif { background: #FFFFFF; color: var(--gold-dark); border: 1px solid var(--gold-dark); }

.product-img-wrap {
  height: 260px;
  overflow: hidden;
  position: relative;
  background: var(--dark-mid);
}

.product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.7s ease;
  filter: grayscale(10%);
}

.product-card:hover .product-img {
  transform: scale(1.07);
  filter: grayscale(0%);
}

.product-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
}

.product-card:hover .product-overlay { opacity: 1; }

.product-quick {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--gold-dark);
  border: none;
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.product-quick:hover { background: var(--gold); transform: scale(1.04); }

.product-body { padding: 24px 24px 28px; }

.product-cat {
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-cat::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--gold-dark);
  flex-shrink: 0;
}

.product-name {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.35;
}

.product-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--white-muted);
  line-height: 1.90;
  margin-bottom: 20px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-gold);
  padding-top: 18px;
  gap: 12px;
}

.product-price {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1.2;
}

.product-price small {
  font-size: 10px;
  font-weight: 400;
  color: var(--white-muted);
  font-family: 'Montserrat', sans-serif;
  display: block;
  letter-spacing: 1px;
}

.product-price .old-price {
  font-size: 12px;
  text-decoration: line-through;
  color: var(--white-muted);
  font-weight: 400;
}

.add-cart-btn {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--gold-dark);
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.add-cart-btn:hover {
  background: var(--gold);
  transform: scale(1.04);
}

/* ─── Trust Strip ─── */
.shop-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 60px;
}

.shop-trust-item {
  background: var(--charcoal);
  padding: 32px 24px;
  border: 1px solid var(--border-gold);
  border-bottom: 3px solid var(--gold-dark);
  text-align: center;
  transition: background 0.3s, box-shadow 0.3s;
}

.shop-trust-item:hover { background: var(--dark-mid); }

.shop-trust-icon {
  font-size: 30px;
  margin-bottom: 12px;
  line-height: 1;
}

.shop-trust-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold-dark);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.shop-trust-text {
  font-size: 13px;
  font-weight: 400;
  color: var(--white-muted);
  line-height: 1.7;
}


/* ─── Floating Cart Button ─── */
.cart-btn-float {
  position: fixed;
  bottom: 36px; right: 36px;
  z-index: 999;
  width: 60px; height: 60px;
  background: var(--gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.35);
  transition: transform 0.3s;
}

.cart-btn-float:hover { transform: scale(1.1); }

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  background: var(--gold-dark);
  color: #FFFFFF;
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ─── Cart Sidebar ─── */
.cart-sidebar {
  position: fixed;
  top: 0; right: -440px; bottom: 0;
  width: 440px;
  z-index: 2000;
  background: var(--charcoal);
  border-left: 1px solid var(--border-gold);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-sidebar.open { right: 0; }

.cart-sidebar-head {
  padding: 28px 30px;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-sidebar-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 2px;
}

.cart-close {
  background: none;
  border: none;
  color: var(--white-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.cart-close:hover { color: var(--gold); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 30px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--white-muted);
  font-size: 13px;
  font-weight: 300;
}

.cart-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }

.cart-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-gold);
}

.cart-item-img {
  width: 72px; height: 72px;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(20%);
}

.cart-item-info { flex: 1; }

.cart-item-name {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--white);
  margin-bottom: 4px;
}

.cart-item-cat {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--border-gold);
  background: none;
  color: var(--gold);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover { background: var(--gold-dark); color: #FFFFFF; }

.qty-val {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--white);
  min-width: 20px;
  text-align: center;
}

.cart-item-price {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--gold-dark);
  white-space: nowrap;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--white-muted);
  font-size: 18px;
  cursor: pointer;
  align-self: flex-start;
  padding: 2px;
  transition: color 0.2s;
}

.cart-remove:hover { color: #c0392b; }

.cart-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--border-gold);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.cart-total-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-muted);
}

.cart-total-val {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  color: var(--gold-dark);
  font-weight: 700;
}

.checkout-divider {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-muted);
  text-align: center;
  margin-bottom: 14px;
  position: relative;
}

.checkout-divider::before,
.checkout-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%; height: 1px;
  background: var(--border-gold);
}

.checkout-divider::before { left: 0; }
.checkout-divider::after  { right: 0; }


/* ─── Payment Buttons ─── */
.paypal-btn {
  width: 100%; padding: 16px;
  background: #003087; color: #fff;
  border: none; cursor: pointer;
  font-size: 14px; font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  transition: background 0.3s;
}

.paypal-btn:hover { background: #002070; }
.paypal-logo      { font-size: 18px; }

.gpay-btn {
  width: 100%; padding: 16px;
  background: #1A1A1A;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-size: 14px; font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  transition: background 0.3s;
}

.gpay-btn:hover {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.3);
}


/* ─── Checkout Modal ─── */
.checkout-modal-overlay {
  position: fixed; inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-modal-overlay.open { display: flex; }

.checkout-modal {
  background: var(--charcoal);
  border: 1px solid var(--border-gold);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-head {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--gold);
}

.modal-body { padding: 32px; }

.modal-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 28px;
}

.method-tab {
  padding: 16px;
  border: 1px solid var(--border-gold);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}

.method-tab.active {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
  background: rgba(155, 120, 32, 0.08);
}

.method-panel        { display: none; }
.method-panel.active { display: block; }

.modal-field { margin-bottom: 16px; }

.modal-field label {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.modal-field input,
.modal-field select {
  width: 100%;
  background: var(--dark-mid);
  border: 1px solid var(--border-gold);
  border-radius: 0;
  padding: 14px 16px;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  outline: none;
  -webkit-transition: border-color 0.3s;
          transition: border-color 0.3s;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.modal-field input:focus,
.modal-field select:focus { border-color: var(--gold-dark); }

.modal-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-order-summary {
  background: var(--dark);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border-gold);
}

.modal-order-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold-dark);
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.modal-order-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 300;
  color: var(--white-muted);
  padding: 6px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.modal-order-total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 6px;
}

.modal-order-total span:first-child {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-muted);
}

.modal-order-total span:last-child {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: var(--gold-dark);
}

.modal-pay-btn {
  width: 100%; padding: 18px;
  background: var(--gold-dark);
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.modal-pay-btn:hover {
  background: var(--gold);
  box-shadow: 0 6px 24px rgba(155, 120, 32, 0.30);
}

.modal-secure {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 400;
  color: var(--white-muted);
  letter-spacing: 1px;
}

.modal-secure span { color: var(--gold-dark); }


/* ─── Success Screen ─── */
.success-screen {
  text-align: center;
  padding: 60px 40px;
  display: none;
}

.success-screen.show { display: block; }

.success-icon  { font-size: 60px; margin-bottom: 20px; }

.success-title {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.success-text {
  font-size: 13px;
  font-weight: 300;
  color: var(--white-muted);
  line-height: 2;
  margin-bottom: 30px;
}
