@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  /* Arctic Performance — cool navy + teal */
  --color-text: #0b1f33;
  --color-text-muted: #5a6f82;
  --color-bg: #f5f8fb;
  --color-bg-soft: #e8eef4;
  --color-bg-warm: #e6f4f1;
  --color-bg-sand: #d7e2ec;
  --color-accent: #12a594;
  --color-accent-hover: #0e8f81;
  --color-accent-soft: #d5f3ee;
  --color-border: rgba(11, 31, 51, 0.12);
  --color-success-bg: #ddf7ef;
  --color-surface: #ffffff;
  --header-h: 64px;
  --announcement-h: 36px;
  --max: 1200px;
  --radius: 10px;
  --shadow: 0 12px 36px rgba(11, 31, 51, 0.12);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.cart-open,
body.cookie-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  padding-left: 1.25rem;
}

/* —— Announcement —— */
.announcement {
  background: var(--color-text);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 16px;
  min-height: var(--announcement-h);
}

.announcement span {
  color: var(--color-accent);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 248, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo:hover {
  color: var(--color-accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--color-text);
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--color-bg-soft);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 12px 24px 20px;
  flex-direction: column;
  gap: 12px;
  background: var(--color-bg);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
}

/* —— Product hero —— */
.product-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.gallery {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.gallery-main {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 25%, rgba(18, 165, 148, 0.18), transparent 45%),
    linear-gradient(145deg, #d7e5ef 0%, #c5d8e4 45%, #e8f4f1 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gallery-main .placeholder {
  text-align: center;
  color: #6b8396;
  padding: 24px;
}

.gallery-main .placeholder strong {
  display: block;
  color: var(--color-text);
  font-size: 15px;
  margin-bottom: 6px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--color-bg-soft);
  border: 2px solid transparent;
  cursor: pointer;
}

.thumb.active,
.thumb:hover {
  border-color: var(--color-accent);
}

.product-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.product-title {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.product-lead {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

.benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--color-bg-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.benefit-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
}

.feature-list li {
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feature-list li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Offer / empty product box */
.offer-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--color-surface);
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(11, 31, 51, 0.04);
}

.offer-box.disabled {
  opacity: 0.72;
  pointer-events: none;
}

.offer-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.offer-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.save-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.price {
  font-size: 28px;
  font-weight: 700;
}

.price-old {
  font-size: 16px;
  color: #8aa0b2;
  text-decoration: line-through;
}

.price-empty {
  font-size: 15px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.option-group {
  margin-bottom: 16px;
}

.option-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.option-label button {
  border: 0;
  background: none;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-chip {
  min-width: 48px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--color-text);
}

.option-chip.active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

.option-chip.swatch {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
  border-width: 2px;
}

.option-chip.swatch.noir { background: #111; }
.option-chip.swatch.gris { background: #9a9a9a; }
.option-chip.swatch.blanc { background: #fff; border-color: #ccc; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.btn-primary:disabled {
  background: #a8c5c0;
  cursor: not-allowed;
}

.btn-accent {
  background: var(--color-text);
  color: #fff;
}

.btn-accent:hover:not(:disabled) {
  background: #16324a;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.trust-line svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.accordion {
  border-top: 1px solid var(--color-border);
  margin-top: 24px;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.accordion-trigger span {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: #7a93a6;
}

.accordion-panel {
  display: none;
  padding: 0 0 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.accordion-item.open .accordion-panel {
  display: block;
}

.accordion-item.open .accordion-trigger span {
  transform: rotate(45deg);
}

/* —— Content sections —— */
.section {
  padding: 64px 24px;
}

.section-inner {
  max-width: 880px;
  margin: 0 auto;
}

.section-wide {
  max-width: var(--max);
  margin: 0 auto;
}

.section.alt {
  background: var(--color-bg-soft);
}

.section.warm {
  background: var(--color-bg-warm);
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 10px;
}

.section h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.section p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--color-border);
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-weight: 700;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
}

.compare-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.compare-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
}

.compare-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.compare-item p {
  margin: 0 0 16px;
  font-size: 14px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}

.size-table th,
.size-table td {
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  text-align: left;
}

.size-table th {
  background: var(--color-bg-soft);
  font-weight: 600;
}

.faq-list {
  margin-top: 8px;
}

.faq-list .accordion-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 0 18px;
}

.faq-list .accordion-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.empty-products {
  text-align: center;
  padding: 48px 24px;
  background: var(--color-surface);
  border: 1px dashed #b7c9d4;
  border-radius: var(--radius);
}

.empty-products h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.empty-products p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

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

.product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.product-card .media {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 40% 30%, rgba(18, 165, 148, 0.16), transparent 50%),
    linear-gradient(145deg, #d7e5ef, #c5d8e4);
}

.product-card .body {
  padding: 14px 16px 18px;
}

.product-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.product-card .meta {
  font-size: 13px;
  color: #7a93a6;
}

/* —— Page layout (legal) —— */
.page-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-main h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 24px;
  line-height: 1.2;
}

.page-main h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.page-main p,
.page-main li {
  font-size: 15px;
  color: var(--color-text-muted);
}

.page-main .updated {
  color: var(--color-text-muted);
  font-size: 14px;
}

.contact-block {
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0;
}

.contact-block a {
  color: var(--color-accent);
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  background:
    radial-gradient(circle at 15% 0%, rgba(18, 165, 148, 0.22), transparent 40%),
    linear-gradient(180deg, #0b1f33 0%, #071522 100%);
  color: #fff;
  padding: 56px 24px 28px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: #fff;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  max-width: 280px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.socials a:hover {
  background: var(--color-accent);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom button {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-family: inherit;
  padding: 0;
}

.footer-bottom button:hover {
  color: #fff;
}

/* —— Cart drawer —— */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 50;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--color-surface);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
}

.cart-header h2 {
  margin: 0;
  font-size: 18px;
}

.cart-body {
  flex: 1;
  overflow: auto;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cart-body.has-items {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
}

.cart-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.cart-body p {
  margin: 0 0 20px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.cart-footer {
  border-top: 1px solid var(--color-border);
  padding: 16px 20px 24px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 12px;
}

/* —— Cookie —— */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px;
  z-index: 70;
  display: none;
}

.cookie-banner.open {
  display: block;
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.cookie-banner p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions .btn {
  width: auto;
  padding: 10px 16px;
  font-size: 13px;
}

.btn-ghost {
  background: var(--color-bg-soft);
  color: var(--color-text);
}

/* —— Modal size guide —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-panel {
  position: relative;
  background: var(--color-surface);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  z-index: 1;
}

.modal-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .product-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 20px;
  }

  .gallery {
    position: static;
  }

  .feature-grid,
  .compare-box,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .announcement {
    font-size: 11px;
  }
}
