/* ═══════════════════════════════════════════════════
   Hassiki Ceram — Échantillons page styles
   hassikiceram.com
═══════════════════════════════════════════════════ */

/* ─── HERO ─── */
.ech-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 60px;
  text-align: center;
}
.ech-hero-eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 16px;
}
.ech-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  margin: 0 0 16px;
  color: var(--paper);
}
.ech-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ─── PROGRESS BAR ─── */
.ech-progress {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 200;
}
.ech-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}
.ech-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}
.ech-step::before {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.ech-step:last-child::before { display: none; }
.ech-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: background .25s, border-color .25s, color .25s;
}
.ech-step-label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s;
}
.ech-step.active .ech-step-num {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.ech-step.active .ech-step-label {
  color: var(--ink);
  font-weight: 500;
}
.ech-step.done .ech-step-num {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ─── STEPS WRAPPER ─── */
.ech-body {
  min-height: 60vh;
  padding-bottom: 140px; /* space for sticky tray */
}
.ech-step-panel {
  display: none;
}
.ech-step-panel.active {
  display: block;
}

/* ──────────────────────────────────────────────────
   STEP 1 — Product selection grid
──────────────────────────────────────────────────── */
.ech-s1-header {
  padding: 40px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ech-s1-title {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  margin: 0;
}
.ech-s1-hint {
  font-size: 13px;
  color: var(--muted);
}
.ech-s1-hint strong {
  color: var(--ink);
  font-weight: 600;
}

/* Collection filter tabs */
.ech-col-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.ech-col-tab {
  padding: 7px 16px;
  border-radius: 40px;
  border: 1.5px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.ech-col-tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.ech-col-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Product grid */
.ech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding-bottom: 32px;
}
.ech-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ech-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
}
.ech-card.selected {
  border-color: var(--green);
}
.ech-card.maxed:not(.selected) {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.ech-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f2f0eb;
}
.ech-card-body {
  padding: 10px 12px 12px;
}
.ech-card-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ech-card-fmt {
  font-size: 11px;
  color: var(--muted);
}
.ech-card-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  z-index: 2;
}
.ech-card.selected .ech-card-check {
  display: flex;
}
.ech-card-num {
  font-size: 10px;
  font-weight: 700;
}

/* ─── STICKY TRAY ─── */
.ech-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 500;
  padding: 14px 0;
  transform: translateY(100%);
  transition: transform .3s var(--ease);
}
.ech-tray.visible {
  transform: translateY(0);
}
.ech-tray-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ech-tray-slots {
  display: flex;
  gap: 8px;
  flex: 1;
}
.ech-tray-slot {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  border: 1.5px dashed rgba(255,255,255,.3);
  background: rgba(255,255,255,.06);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.ech-tray-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ech-tray-slot .slot-rm {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ech-tray-slot:hover .slot-rm {
  display: flex;
}
.ech-tray-count {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
}
.ech-tray-count strong {
  color: var(--paper);
  font-weight: 600;
}
.ech-tray-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--ochre);
  color: var(--ink);
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
  text-decoration: none;
}
.ech-tray-cta:hover { opacity: .88; }
.ech-tray-cta:disabled {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.4);
  cursor: not-allowed;
}

/* ──────────────────────────────────────────────────
   STEP 2 — Address form + shipping zone
──────────────────────────────────────────────────── */
.ech-s2-wrap {
  padding: 40px 0 48px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .ech-s2-wrap {
    grid-template-columns: 1fr;
  }
}
.ech-s2-title {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  margin: 0 0 28px;
  color: var(--ink);
}

/* Form fields */
.ech-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 560px) {
  .ech-form-row { grid-template-columns: 1fr; }
}
.ech-form-row.full { grid-template-columns: 1fr; }
.ech-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.ech-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ech-label .req {
  color: var(--ochre);
  margin-left: 2px;
}
.ech-input,
.ech-select,
.ech-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .2s;
  box-sizing: border-box;
}
.ech-input:focus,
.ech-select:focus,
.ech-textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.ech-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Sidebar: recap + shipping */
.ech-s2-aside {
  position: sticky;
  top: 80px;
}
.ech-recap {
  background: #f8f6f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.ech-recap-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.ech-recap-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ech-recap-item {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ech-recap-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--line);
}
.ech-recap-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ech-recap-info {
  flex: 1;
  min-width: 0;
}
.ech-recap-name {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ech-recap-fmt {
  font-size: 11px;
  color: var(--muted);
}

/* Shipping zone card */
.ech-shipping {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
}
.ech-shipping-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.ech-zone-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #f8f6f0;
}
.ech-zone-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.ech-zone-label {
  font-size: 13px;
  color: var(--muted);
}
.ech-zone-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-left: auto;
}
.ech-zone-price.free { color: var(--green); }
.ech-zone-price.request { font-size: 14px; font-weight: 500; }

/* Submit button */
.ech-submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 15px 24px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity .2s;
  font-family: inherit;
}
.ech-submit-btn:hover { opacity: .85; }
.ech-back-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px 24px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--line);
  border-radius: 40px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  font-family: inherit;
}
.ech-back-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ──────────────────────────────────────────────────
   STEP 3 — Confirmation
──────────────────────────────────────────────────── */
.ech-s3-wrap {
  padding: 80px 0;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.ech-s3-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}
.ech-s3-icon svg {
  color: var(--green);
}
.ech-s3-title {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 16px;
}
.ech-s3-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.ech-s3-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.ech-s3-btn {
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s;
}
.ech-s3-btn:hover { opacity: .82; }
.ech-s3-btn.primary {
  background: var(--ink);
  color: var(--paper);
}
.ech-s3-btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

/* ─── EMPTY STATE ─── */
.ech-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.ech-empty svg {
  margin-bottom: 16px;
  opacity: .35;
}
.ech-empty p {
  font-size: 15px;
  margin: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .ech-hero { padding: 72px 0 40px; }
  .ech-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
  .ech-tray-slots {
    display: none;
  }
  .ech-tray-count {
    flex: 1;
  }
}
