/* Boutique — grille, fiche article et panier. */

.shop-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.shop-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-100, #f6efe6);
}

.shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.shop-card:hover .shop-card__media img {
  transform: scale(1.04);
}

.shop-card__flag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--ink-700);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
}

.shop-card__body h2 {
  margin: 0;
  font-size: 1.1rem;
}

.shop-card__excerpt {
  flex: 1;
  margin: 0;
  color: var(--ink-500);
  font-size: 0.92rem;
}

.shop-card__price,
.shop-single__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.shop-card__price strong,
.shop-single__price strong {
  color: var(--teal-700);
  font-size: 1.15rem;
}

.shop-single__price strong {
  font-size: 1.6rem;
}

.shop-card__price s,
.shop-single__price s {
  color: var(--ink-500);
  font-size: 0.9rem;
}

/* Fiche article. */

.shop-single {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 860px) {
  .shop-single {
    grid-template-columns: minmax(0, 1fr);
  }
}

.shop-single__cover {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.shop-single__thumbs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  margin-top: 12px;
}

.shop-single__thumbs img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
}

.shop-single__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shop-single__back {
  color: var(--ink-500);
  font-size: 0.86rem;
}

.shop-single__stock,
.shop-single__sku {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.86rem;
}

.shop-single__linked {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--sand-100, #f6efe6);
}

.shop-single__linked h2 {
  margin: 6px 0 8px;
  font-size: 1.05rem;
}

.shop-soldout {
  margin: 0;
  color: var(--ink-500);
  font-weight: 700;
}

/* Ajout au panier. */

.shop-add {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.shop-add__qty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--ink-500);
}

.shop-add__qty input {
  width: 84px;
  padding: 10px 12px;
  border: 1px solid var(--sand-300);
  border-radius: 12px;
  background: var(--white);
}

/* Panier. */

.cart {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cart__empty,
.cart__notice,
.cart__error {
  margin: 0;
}

.cart__notice {
  padding: 12px 18px;
  border-radius: 14px;
  background: #fdf3e2;
  color: #8a5a1a;
}

.cart__error,
.cart__field-error {
  color: #a13b3b;
}

.cart__field-error {
  font-size: 0.8rem;
  font-style: normal;
}

.cart-line {
  display: grid;
  gap: 16px;
  grid-template-columns: 88px minmax(0, 1fr) auto auto auto;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--sand-300);
}

@media (max-width: 700px) {
  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .cart-line__total {
    grid-column: 2 / -1;
  }
}

.cart-line__image {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  object-fit: cover;
}

.cart-line__name {
  font-weight: 700;
}

.cart-line__unit,
.cart-line__total {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 0.88rem;
}

.cart-line__total {
  font-weight: 700;
  color: var(--ink-700);
}

.cart-line__qty input {
  width: 74px;
  padding: 8px 10px;
  border: 1px solid var(--sand-300);
  border-radius: 12px;
  background: var(--white);
}

.cart-line__remove {
  border: 0;
  background: none;
  color: var(--ink-500);
  cursor: pointer;
  font-size: 0.82rem;
  text-decoration: underline;
}

.cart__promo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.cart__promo input {
  padding: 11px 16px;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-pill);
  background: var(--white);
  text-transform: uppercase;
}

.cart__totals {
  margin-left: auto;
  width: min(340px, 100%);
}

.cart__totals p {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 6px 0;
  color: var(--ink-500);
}

.cart__totals .cart__discount {
  color: var(--teal-700);
}

.cart__totals .cart__total {
  padding-top: 12px;
  border-top: 1px solid var(--sand-300);
  color: var(--ink-700);
  font-size: 1.15rem;
  font-weight: 700;
}

.cart__checkout {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.cart__note {
  margin: 0 0 18px;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.cart__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 22px;
}

.cart__grid-full {
  grid-column: 1 / -1;
}

.cart__grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-500);
}

.cart__grid input,
.cart__grid textarea {
  padding: 12px 16px;
  border: 1px solid var(--sand-300);
  border-radius: 16px;
  background: var(--white);
  font: inherit;
  color: var(--ink-700);
}

.cart__done {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.cart__reference {
  color: var(--ink-500);
}

.nav__cart-count {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--teal-700);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

/* Champ piège anti-spam. */
.eve-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Libellé réservé aux lecteurs d'écran. */
.cart .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}
