:root {
  --navy: #1a2456;
  --blue: #2a4ed8;
  --yellow: #ffcb05;
  --gray-bg: #f5f6fa;
  --border: #e2e4ec;
  --text: #1c1f2a;
  --green: #1f9d55;
  --orange: #d97706;
  --red: #c0392b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background-color: #eef1f8;
  background-image:
    radial-gradient(900px 500px at 6% -10%, rgba(42, 78, 216, 0.10), transparent 60%),
    radial-gradient(800px 420px at 100% 0%, rgba(255, 203, 5, 0.12), transparent 55%),
    radial-gradient(circle at 1px 1px, rgba(26, 36, 86, 0.06) 1px, transparent 0);
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 24px 24px;
  overflow-x: hidden;
}

h1, h2, h3,
.hero__eyebrow,
.hero__cta,
.main-nav a,
.card-item h3,
.price,
.cart-total,
.badge,
.add-to-cart,
.btn-add-to-cart,
button[type="submit"],
.button {
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  font-weight: 500;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.site-header {
  background: var(--navy);
  border-bottom: 4px solid var(--yellow);
}

.site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo img { height: 48px; display: block; }

.header-search {
  position: relative;
  flex: 1 1 420px;
  max-width: 560px;
  margin: 0 1rem;
}
.header-search__icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  color: var(--navy);
  background: var(--yellow);
  border-radius: 50%;
  padding: 3px;
  pointer-events: none;
}
.header-search .form-control {
  width: 100%;
  border: 2px solid var(--yellow);
  border-radius: 0;
  padding-left: 2.9rem;
  font-family: inherit;
}
.header-search .form-control:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 0.2rem rgba(255, 203, 5, 0.4);
}

.main-nav { display: flex; gap: 1.25rem; align-items: center; }
.main-nav a { color: #fff; font-weight: 600; }
.main-nav a:hover { text-decoration: none; color: var(--yellow); }

.cart-count {
  background: var(--yellow);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 0.25rem;
}

.site-footer {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(26, 36, 86, 0.92) 0%, rgba(16, 23, 58, 0.92) 100%);
  border-top: 4px solid var(--yellow);
  color: #d7dbf5;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.9rem;
}
.site-footer__inner { max-width: 1320px; margin: 0 auto; }
.site-footer__logo { height: 92px; margin-bottom: 1.25rem; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35)); }
.site-footer p { margin: 0.35rem 0; }
.site-footer a { color: var(--yellow); font-weight: 600; }
.site-footer a:hover { color: #fff; }

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(135deg, rgba(26, 36, 86, 0.82) 0%, rgba(16, 23, 58, 0.82) 100%);
  color: #fff;
  padding: 4.5rem 1.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../image/logo/logo.png") center center / 460px no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--yellow);
  margin: 0 0 0.5rem;
}

.hero__title {
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero__text {
  color: #d7dbf5;
  margin: 0 0 1.75rem;
  max-width: 46ch;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--yellow);
  color: var(--navy);
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.hero__cta:hover {
  background: #fff;
  text-decoration: none;
  color: var(--navy);
  transform: translateY(-1px);
}
.hero__cta-icon { flex-shrink: 0; }

.hero__card {
  display: block;
  margin: 0 auto;
  max-width: 260px;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: rotate(4deg);
}

#catalogue {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

#filters.filters {
  background: #fff;
  border: 1px solid rgba(26, 36, 86, 0.08);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 0.75rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(26, 36, 86, 0.07);
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results-bar__sort {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.results-bar__sort .form-select { width: auto; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.card-item {
  background: #fff;
  border: 1px solid rgba(26, 36, 86, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(26, 36, 86, 0.07);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card-item:hover { box-shadow: 0 14px 30px rgba(26, 36, 86, 0.18); transform: translateY(-3px); }

.card-item__link { color: inherit; padding: 1.1rem; display: block; }
.card-item__link:hover { text-decoration: none; }

.card-item img,
.card-item__placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--gray-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
}

.card-item h3 { margin: 0.75rem 0 0.25rem; font-size: 1.15rem; }
.card-item .ext { margin: 0; color: #666; font-size: 0.85rem; }
.card-item .price { margin: 0.5rem 0 0.3rem; font-size: 1.2rem; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #fff;
  background: #999;
}
.badge--disponible { background: var(--green); }
.badge--reserve { background: var(--orange); }
.badge--vendu { background: var(--red); }

.add-to-cart,
button[type="submit"],
.button {
  margin: 0 0.75rem 0.75rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.add-to-cart:disabled { background: #ccc; cursor: not-allowed; }
.add-to-cart:hover:not(:disabled),
button[type="submit"]:hover,
.button:hover { background: var(--navy); text-decoration: none; color: #fff; }

.breadcrumb { font-size: 0.85rem; margin-bottom: 1rem; color: #666; }

.card-detail-layout {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.card-detail-panel {
  background: #fff;
  border: 1px solid rgba(26, 36, 86, 0.08);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 14px 40px rgba(26, 36, 86, 0.10);
}

.card-detail__image { position: relative; text-align: center; }
.card-detail__image img,
.card-detail__placeholder {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 12px;
  background: var(--gray-bg);
}
.card-detail__image img {
  box-shadow: 0 16px 40px rgba(26, 36, 86, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-detail__image img:hover {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 22px 50px rgba(26, 36, 86, 0.28);
}
.card-detail__placeholder {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.card-detail__thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.card-detail__thumbs .thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
}
.card-detail__thumbs .thumb:hover { opacity: 1; }
.card-detail__thumbs .thumb--active { border-color: var(--blue); opacity: 1; }

.related { margin-top: 2.5rem; }
.related h2 { margin-bottom: 1rem; }

.card-detail-panel--info h1 { margin-top: 0; margin-bottom: 0.5rem; }

.card-detail__price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.card-detail__price-row .price { font-size: 1.7rem; margin: 0; }

.card-detail__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.badge__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  margin-right: 0.35rem;
  animation: badge-pulse 1.6s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.card-detail__box {
  background: var(--gray-bg);
  border: 1px solid rgba(26, 36, 86, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.card-detail__box h2 { margin-top: 0; }
.card-detail__box .specs { margin-bottom: 0; }

.specs { border-collapse: collapse; width: 100%; margin: 0.75rem 0; }
.specs th, .specs td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.specs tr:last-child th, .specs tr:last-child td { border-bottom: none; }
.specs th { width: 40%; color: #555; }

.btn-add-to-cart {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(26, 36, 86, 0.3);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-add-to-cart:hover:not(:disabled) {
  background: var(--blue);
  transform: translateY(-2px);
}
.btn-add-to-cart:disabled {
  background: #ccc;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.cart-list { display: flex; flex-direction: column; gap: 0.75rem; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(26, 36, 86, 0.08);
  border-radius: 8px;
  padding: 0.6rem;
  box-shadow: 0 3px 12px rgba(26, 36, 86, 0.06);
}
.cart-item img { width: 60px; height: 80px; object-fit: contain; background: var(--gray-bg); border-radius: 4px; }
.cart-item__info { flex: 1; }
.remove-item {
  border: 1px solid var(--red);
  color: var(--red);
  background: #fff;
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.cart-total { font-size: 1.1rem; margin: 1rem 0; }

.honeypot { position: absolute; left: -9999px; }

.container .card {
  border-color: rgba(26, 36, 86, 0.08);
  box-shadow: 0 6px 20px rgba(26, 36, 86, 0.08);
}

@media (max-width: 700px) {
  .card-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .hero { padding: 3rem 1.25rem; }
  .hero::before { background-size: 260px; }
  .hero__title { font-size: 1.6rem; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__card { order: -1; max-width: 160px; }
}
