@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700;900&family=Jost:wght@300;400;600;700&display=swap');

:root {
  --gold: #B8860B;
  --text: #111;
  --bg: #fff;
  --light: #F0EDE5;
  --border: #111;
  --muted: #999;
}

#iw-combo-finder {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  font-family: 'Jost', sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* HEADER */
.iw-header {
  text-align: center;
  border-bottom: 2px solid var(--text);
  padding-bottom: 24px;
  margin-bottom: 48px;
}

.iw-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1;
  margin: 0;
}

.iw-logo em { color: var(--gold); font-style: normal; }

.iw-tagline {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  font-weight: 600;
}

/* STEP INDICATOR */
.iw-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}

.iw-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ccc;
  transition: all 0.3s;
}

.iw-step-dot.active {
  border-color: var(--gold);
  background: var(--gold);
  color: white;
}

.iw-step-dot.done {
  border-color: var(--gold);
  color: var(--gold);
}

.iw-step-line {
  width: 50px;
  height: 2px;
  background: #ddd;
}

.iw-step-line.done { background: var(--gold); }

/* SECTION */
.iw-section {
  display: none;
  animation: fadeUp 0.35s ease;
}

.iw-section.active { display: block; }

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

.iw-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.iw-section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 300;
  margin-bottom: 36px;
}

/* SKIN TONE GRID */
.iw-tones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.iw-tone {
  text-align: center;
  cursor: pointer;
}

.iw-tone-circle {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 2px solid var(--border);
  transition: all 0.25s;
}

.iw-tone:hover .iw-tone-circle,
.iw-tone.selected .iw-tone-circle {
  border-color: var(--gold);
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.2);
}

.iw-tone-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  transition: color 0.25s;
}

.iw-tone.selected .iw-tone-label { color: var(--gold); }

/* STYLE GRID */
.iw-styles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.iw-style-card {
  border: 3px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
}

.iw-style-card:hover,
.iw-style-card.selected {
  background: var(--gold);
  border-color: var(--gold);
}

.iw-style-card:hover .iw-style-name,
.iw-style-card.selected .iw-style-name {
  color: white;
}

.iw-style-icon { font-size: 2.2rem; margin-bottom: 10px; }

.iw-style-name {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.25s;
}

.iw-style-desc { font-size: 0.7rem; color: var(--muted); margin-top: 4px; }

/* OCCASION GRID */
.iw-occasions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.iw-occ-card {
  background: var(--light);
  border: 3px solid var(--border);
  padding: 26px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
}

.iw-occ-card:hover,
.iw-occ-card.selected {
  background: var(--gold);
  border-color: var(--gold);
}

.iw-occ-card:hover .iw-occ-name,
.iw-occ-card.selected .iw-occ-name {
  color: white;
}

.iw-occ-icon { font-size: 2.2rem; margin-bottom: 10px; }

.iw-occ-name {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.25s;
}

/* BUTTONS */
.iw-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.iw-btn {
  padding: 14px 36px;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  min-width: 220px;
  border-radius: 0;
}

.iw-btn-gold {
  background: var(--gold);
  color: white;
  border: 3px solid var(--gold);
}

.iw-btn-gold:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}

.iw-btn-outline {
  background: transparent;
  color: var(--text);
  border: 3px solid var(--border);
}

.iw-btn-outline:hover {
  background: var(--text);
  color: white;
}

/* LOADING */
.iw-loading {
  text-align: center;
  padding: 60px 20px;
}

.iw-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.iw-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: iwBounce 1.2s ease-in-out infinite;
}

.iw-dots span:nth-child(2) { animation-delay: 0.15s; }
.iw-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes iwBounce {
  0%,60%,100% { transform: translateY(0); opacity: 0.3; }
  30% { transform: translateY(-14px); opacity: 1; }
}

.iw-load-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.iw-load-sub { font-size: 0.82rem; color: var(--muted); }

/* RESULT */
.iw-result-card {
  border: 3px solid var(--border);
  background: var(--light);
  margin-bottom: 30px;
}

.iw-result-head {
  padding: 24px 28px;
  border-bottom: 3px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.iw-result-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 1px;
}

.iw-result-occ {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 4px;
}

.iw-result-price-box { text-align: right; }

.iw-result-combo-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.iw-result-save {
  font-size: 0.72rem;
  color: #2eae42;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.iw-result-body { padding: 28px; }

/* PRODUCT CARDS */
.iw-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.iw-product {
  background: white;
  border: 2px solid var(--border);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.iw-product-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid #eee;
  flex-shrink: 0;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.iw-product-info { flex: 1; min-width: 0; }

.iw-product-name {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 3px;
  line-height: 1.3;
}

.iw-product-color {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.iw-product-price {
  font-weight: 900;
  font-size: 0.92rem;
  color: var(--gold);
}

/* WHY BOX */
.iw-why {
  background: white;
  border-left: 4px solid var(--gold);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.iw-why-label {
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 8px;
}

.iw-why-text {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.7;
  font-weight: 300;
}

/* ORDER */
.iw-order {
  text-align: center;
  padding-top: 20px;
  border-top: 2px solid var(--border);
}

.iw-order-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.iw-badge {
  font-size: 0.7rem;
  color: #555;
  font-weight: 600;
}

.iw-order-btn {
  display: inline-block;
  padding: 18px 50px;
  background: var(--gold);
  color: white;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 3px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s;
}

.iw-order-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.12);
  color: white;
}

/* NO PRODUCT WARNING */
.iw-no-product {
  background: #fff3cd;
  border: 2px solid #ffc107;
  padding: 14px 18px;
  border-radius: 2px;
  font-size: 0.82rem;
  color: #856404;
  margin-bottom: 16px;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 580px) {
  .iw-tones { grid-template-columns: repeat(2, 1fr); }
  .iw-styles { grid-template-columns: 1fr; }
  .iw-occasions { grid-template-columns: 1fr; }
  .iw-products { grid-template-columns: 1fr; }
  .iw-result-head { flex-direction: column; }
  .iw-step-line { width: 30px; }
  #iw-combo-finder { padding: 24px 14px; }
}

/* ── SIZE SELECTOR ── */
.iw-size-row {
  margin-top: 10px;
}

.iw-size-label {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  font-weight: 700;
  margin-bottom: 8px;
}

.iw-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iw-size-btn {
  width: 38px;
  height: 38px;
  border: 2px solid var(--border);
  background: white !important;
  color: #222222 !important;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iw-size-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.iw-size-btn.selected {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: white !important;
}

/* ORDER BTN DISABLED */
.iw-order-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.iw-size-notice {
  font-size: 0.78rem;
  color: #e53935;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
  display: none;
}
