/* ════════════════════════════════════════════════════
   HOLLSON CONFIGURATOR — CSS
   Palette: #000 primary · #B8973B gold · #F5F5F5 light
   ════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --hls-black:       #000000;
  --hls-dark:        #1A1A1A;
  --hls-dark-2:      #333333;
  --hls-gray-600:    #666666;
  --hls-gray-400:    #999999;
  --hls-gray-200:    #CCCCCC;
  --hls-gray-100:    #E6E6E6;
  --hls-light:       #F5F5F5;
  --hls-white:       #FFFFFF;
  --hls-gold:        #B8973B;
  --hls-gold-light:  #D4AF5A;
  --hls-silver:      #A8A8A8;
  --hls-green:       #2D6A4F;
  --hls-font-display: 'Cormorant Garamond', 'Georgia', serif;
  --hls-font-body:    'Manrope', 'Inter', sans-serif;
  --hls-radius:      8px;
  --hls-radius-sm:   4px;
  --hls-transition:  0.25s ease;
  --hls-shadow:      0 2px 16px rgba(0,0,0,0.08);
  --hls-shadow-lg:   0 8px 40px rgba(0,0,0,0.14);
}

/* ── Wrapper ── */
.hls-configurator {
  font-family: var(--hls-font-body);
  color: var(--hls-dark);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ══════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════ */
.hls-progress-wrap {
  margin-bottom: 48px;
  padding-top: 20px;
}
.hls-progress-bar {
  height: 3px;
  background: var(--hls-gray-100);
  border-radius: 2px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.hls-progress-fill {
  height: 100%;
  background: var(--hls-gold);
  border-radius: 2px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.hls-progress-steps {
  display: flex;
  justify-content: space-between;
}
.hls-pstep {
  font-size: 11px;
  font-family: var(--hls-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hls-gray-400);
  transition: color var(--hls-transition);
}
.hls-pstep.active {
  color: var(--hls-gold);
  font-weight: 600;
}
.hls-pstep.done {
  color: var(--hls-dark);
}

/* ══════════════════════════════════════
   STEP WRAPPER
══════════════════════════════════════ */
.hls-step {
  display: none;
  animation: hls-fadeIn 0.35s ease forwards;
}
.hls-step.active {
  display: block;
}
@keyframes hls-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Step Header ── */
.hls-step-header {
  margin-bottom: 36px;
}
.hls-step-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hls-gold);
  border: 1px solid var(--hls-gold);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.hls-step-title {
  font-family: var(--hls-font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  color: var(--hls-dark);
  margin: 0 0 10px;
  line-height: 1.2;
}
.hls-step-subtitle {
  font-size: 15px;
  color: var(--hls-gray-600);
  margin: 0;
  line-height: 1.6;
  max-width: 600px;
}

/* ══════════════════════════════════════
   GRIDS
══════════════════════════════════════ */
.hls-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.hls-grid-gamme {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.hls-grid-collection {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.hls-grid-ring,
.hls-grid-format {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ══════════════════════════════════════
   CARDS — BASE
══════════════════════════════════════ */
.hls-card {
  position: relative;
  border: 1.5px solid var(--hls-gray-100);
  border-radius: var(--hls-radius);
  padding: 20px;
  cursor: pointer;
  background: var(--hls-white);
  transition: border-color var(--hls-transition), box-shadow var(--hls-transition), transform var(--hls-transition);
  user-select: none;
}
.hls-card:hover:not(.disabled) {
  border-color: var(--hls-gold);
  box-shadow: var(--hls-shadow);
  transform: translateY(-2px);
}
.hls-card.selected {
  border-color: var(--hls-gold);
  background: #FFFDF5;
  box-shadow: 0 0 0 3px rgba(184,151,59,0.15);
}
.hls-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hls-gold);
  color: var(--hls-white);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--hls-transition), transform var(--hls-transition);
}
.hls-card.selected .hls-card-check {
  opacity: 1;
  transform: scale(1);
}

/* ── Disabled state ── */
.hls-card.disabled {
  cursor: not-allowed;
  opacity: 0.4;
  position: relative;
}
.hls-card.disabled::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--hls-radius);
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(0,0,0,0.04) 4px,
    rgba(0,0,0,0.04) 8px
  );
}
.hls-unavailable-msg {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--hls-dark);
  color: var(--hls-white);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: var(--hls-radius-sm);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}
.hls-unavailable-msg::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--hls-dark);
}
.hls-card.disabled:hover .hls-unavailable-msg {
  display: block;
}

/* ── Card body ── */
.hls-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--hls-gold);
}
.hls-card-title {
  font-family: var(--hls-font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--hls-dark);
}
.hls-card-desc {
  font-size: 13px;
  color: var(--hls-gray-600);
  margin: 0 0 8px;
  line-height: 1.5;
}
.hls-card-detail {
  font-size: 11px;
  color: var(--hls-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   COLLECTION CARDS
══════════════════════════════════════ */
.hls-collection-group {
  margin-bottom: 28px;
}
.hls-group-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hls-gray-400);
  margin: 0 0 12px;
  font-weight: 600;
}
.hls-collection-card {
  padding: 14px;
  text-align: center;
  flex-direction: column;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hls-swatch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 6px;
  border: 2px solid var(--hls-gray-100);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.12);
  transition: transform var(--hls-transition), box-shadow var(--hls-transition);
}
.hls-card:hover:not(.disabled) .hls-swatch {
  transform: scale(1.1);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.1);
}
.hls-card.selected .hls-swatch {
  border-color: var(--hls-gold);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2), 0 0 0 3px rgba(184,151,59,0.3);
}
.hls-collection-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--hls-dark);
  text-align: center;
}

/* ── Collection description box ── */
.hls-collection-desc {
  background: var(--hls-light);
  border-left: 3px solid var(--hls-gold);
  padding: 16px 20px;
  border-radius: 0 var(--hls-radius-sm) var(--hls-radius-sm) 0;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--hls-gray-600);
  min-height: 52px;
  transition: opacity var(--hls-transition);
}
.hls-collection-desc:empty { display: none; }

/* ══════════════════════════════════════
   RING PREVIEW SHAPES
══════════════════════════════════════ */
.hls-ring-preview {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  position: relative;
}
.hls-ring-flat::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid var(--hls-dark-2);
  border-radius: 50%;
}
.hls-ring-pattern::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 3px dotted var(--hls-dark-2);
  border-radius: 50%;
}
.hls-ring-line::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid var(--hls-dark-2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,0.08);
}
.hls-ring-double::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid var(--hls-dark-2);
  border-radius: 50%;
}
.hls-ring-double::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px solid var(--hls-dark-2);
  border-radius: 50%;
}
/* Raw = no ring, just a dot */
.hls-ring-raw::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  background: var(--hls-dark-2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hls-card.selected .hls-ring-preview::before,
.hls-card.selected .hls-ring-preview::after {
  border-color: var(--hls-gold);
  background: var(--hls-gold);
}

/* ══════════════════════════════════════
   FORMAT PREVIEW SHAPES
══════════════════════════════════════ */
.hls-format-preview {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  background: var(--hls-light);
  border: 2px solid var(--hls-gray-200);
}
.hls-format-soft-square  { border-radius: 12px; }
.hls-format-sharp-square { border-radius: 0; }
.hls-format-bevel-square {
  border-radius: 0;
  box-shadow: inset 3px 3px 0 var(--hls-gray-200), inset -3px -3px 0 var(--hls-gray-200);
}
.hls-card.selected .hls-format-preview {
  border-color: var(--hls-gold);
  background: rgba(184,151,59,0.08);
}

/* ══════════════════════════════════════
   RECAP BOX
══════════════════════════════════════ */
.hls-recap {
  background: var(--hls-dark);
  color: var(--hls-white);
  border-radius: var(--hls-radius);
  padding: 24px 28px;
  margin: 32px 0 8px;
}
.hls-recap h4 {
  font-family: var(--hls-font-display);
  font-size: 18px;
  color: var(--hls-gold);
  margin: 0 0 16px;
  font-weight: 500;
}
.hls-recap-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hls-recap-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}
.hls-recap-item strong {
  color: var(--hls-gold);
  font-weight: 600;
  margin-right: 4px;
}

/* ══════════════════════════════════════
   NAVIGATION BUTTONS
══════════════════════════════════════ */
.hls-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hls-gray-100);
}
.hls-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--hls-radius-sm);
  font-family: var(--hls-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--hls-transition), color var(--hls-transition), transform var(--hls-transition), opacity var(--hls-transition);
  white-space: nowrap;
}
.hls-btn:hover { transform: translateY(-1px); }
.hls-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* Gold primary */
.hls-btn-next,
.hls-btn-cta {
  background: var(--hls-gold);
  color: var(--hls-dark);
}
.hls-btn-next:not(:disabled):hover,
.hls-btn-cta:not(:disabled):hover { background: var(--hls-gold-light); }

/* Secondary outline */
.hls-btn-secondary {
  background: transparent;
  border: 1.5px solid var(--hls-dark);
  color: var(--hls-dark);
}
.hls-btn-secondary:hover { background: var(--hls-dark); color: var(--hls-white); }

/* Small buttons on product cards */
.hls-btn-small {
  padding: 8px 14px;
  font-size: 11px;
}
.hls-btn-wa,
.hls-btn-whatsapp {
  background: #25D366;
  color: var(--hls-white);
}
.hls-btn-wa:hover,
.hls-btn-whatsapp:hover { background: #1EBE58; }

/* ══════════════════════════════════════
   RESULTS PAGE
══════════════════════════════════════ */
.hls-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hls-gray-100);
}
.hls-results-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hls-sel-tag {
  background: var(--hls-light);
  border: 1px solid var(--hls-gray-100);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--hls-dark);
}
.hls-sel-tag strong {
  color: var(--hls-gold);
  margin-right: 3px;
}

.hls-results-group {
  margin-bottom: 52px;
}
.hls-results-group-title {
  font-family: var(--hls-font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--hls-dark);
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.hls-results-group-title span {
  font-family: var(--hls-font-body);
  font-size: 13px;
  color: var(--hls-gray-400);
  font-weight: 400;
}
.hls-results-group-note {
  font-size: 13px;
  color: var(--hls-gray-400);
  margin: 0 0 24px;
  font-style: italic;
}

/* Results grid */
.hls-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.hls-product-card {
  border: 1px solid var(--hls-gray-100);
  border-radius: var(--hls-radius);
  overflow: hidden;
  background: var(--hls-white);
  transition: box-shadow var(--hls-transition), transform var(--hls-transition);
}
.hls-product-card:hover {
  box-shadow: var(--hls-shadow-lg);
  transform: translateY(-4px);
}
.hls-product-img-wrap {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--hls-light);
}
.hls-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hls-product-card:hover .hls-product-img-wrap img { transform: scale(1.05); }

.hls-product-info {
  padding: 16px;
}
.hls-product-title {
  font-family: var(--hls-font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}
.hls-product-title a { color: var(--hls-dark); text-decoration: none; }
.hls-product-title a:hover { color: var(--hls-gold); }
.hls-product-sku {
  font-size: 11px;
  color: var(--hls-gray-400);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.hls-product-excerpt {
  font-size: 13px;
  color: var(--hls-gray-600);
  margin: 0 0 10px;
  line-height: 1.5;
}
.hls-product-price {
  font-size: 12px;
  color: var(--hls-gray-400);
  font-style: italic;
  display: block;
  margin-bottom: 12px;
}
.hls-product-actions {
  display: flex;
  gap: 8px;
}

/* No results */
.hls-no-results {
  color: var(--hls-gray-600);
  font-style: italic;
  padding: 20px;
  background: var(--hls-light);
  border-radius: var(--hls-radius);
  text-align: center;
}

/* Loading spinner */
.hls-results-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 20px;
  color: var(--hls-gray-400);
}
.hls-results-loading.visible { display: flex; }
.hls-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--hls-gray-100);
  border-top-color: var(--hls-gold);
  border-radius: 50%;
  animation: hls-spin 0.8s linear infinite;
}
@keyframes hls-spin { to { transform: rotate(360deg); } }

/* Global CTA */
.hls-results-cta {
  background: var(--hls-dark);
  color: var(--hls-white);
  border-radius: var(--hls-radius);
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}
.hls-results-cta h4 {
  font-family: var(--hls-font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--hls-gold);
  margin: 0 0 10px;
}
.hls-results-cta p {
  color: var(--hls-gray-200);
  margin: 0 0 28px;
  font-size: 15px;
}
.hls-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .hls-grid-gamme         { grid-template-columns: 1fr; }
  .hls-grid-collection    { grid-template-columns: repeat(3, 1fr); }
  .hls-grid-ring,
  .hls-grid-format        { grid-template-columns: repeat(2, 1fr); }
  .hls-results-grid       { grid-template-columns: repeat(2, 1fr); }
  .hls-results-header     { flex-direction: column; align-items: flex-start; }
  .hls-step-nav           { flex-direction: column; gap: 12px; }
  .hls-step-nav .hls-btn  { width: 100%; justify-content: center; }
  .hls-results-cta        { padding: 28px 20px; }
  .hls-cta-buttons        { flex-direction: column; }
  .hls-cta-buttons .hls-btn { justify-content: center; }
}
@media (max-width: 480px) {
  .hls-grid-collection { grid-template-columns: repeat(2, 1fr); }
  .hls-results-grid    { grid-template-columns: 1fr; }
}
