/* ============================================================
   IDEACUBE — Product Order Page (BERRISOM)
   ============================================================ */

.page-products {
  --berry: #e21e60;
  --berry-soft: #fff0f5;
  --syrup-pink: #ff6b9d;
  --water-blue: #5eb8e8;
}

.page-products .site-header {
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-hero {
  padding: calc(72px + clamp(40px, 6vw, 72px)) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(255, 107, 157, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(94, 184, 232, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0a0f1a 0%, #12182a 100%);
  color: #fff;
}

.product-hero .reveal {
  opacity: 1;
  transform: none;
}

.product-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 20px;
}

.product-price strong {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #ff8fb3;
}

.product-price span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.product-source {
  margin: 12px 0 0;
  font-size: 0.85rem;
}

.product-source a {
  color: var(--cyan-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.product-brand {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--syrup-pink);
}

.product-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.product-tagline {
  margin: 0 0 18px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
}

.product-lead {
  margin: 0 0 24px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-badge--blue {
  color: #dff4ff;
  background: rgba(94, 184, 232, 0.18);
  border: 1px solid rgba(94, 184, 232, 0.35);
}

.product-badge--green {
  color: #d8f8e8;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.product-btn-ghost {
  color: #fff;
}

.product-meta {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.product-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--syrup-pink), var(--berry));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.6;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--slate-100);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item--wide {
  grid-column: 1 / -1;
}

.gallery-item--wide img {
  aspect-ratio: 21 / 9;
}

/* Shades */
.shade-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.shade-card {
  display: grid;
  gap: 8px;
  padding: 22px 18px;
  text-align: left;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.shade-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.shade-card.is-selected {
  border-color: var(--berry);
  box-shadow: 0 0 0 3px rgba(226, 30, 96, 0.15);
}

.shade-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.12);
}

.shade-swatch--strawberry { background: linear-gradient(145deg, #ff6b7a, #e1223a); }
.shade-swatch--cherry  { background: linear-gradient(145deg, #e8455a, #b01028); }
.shade-swatch--fig     { background: linear-gradient(145deg, #ff8f7a, #e85a45); }
.shade-swatch--guava   { background: linear-gradient(145deg, #ff6ba8, #d63384); }
.shade-swatch--mulberry { background: linear-gradient(145deg, #a04560, #6b2038); }

.shade-swatch--maple { background: linear-gradient(145deg, #c9896a, #a45c3a); }
.shade-swatch--rose  { background: linear-gradient(145deg, #f2a0b5, #e36d8a); }
.shade-swatch--berry { background: linear-gradient(145deg, #e85a7a, #c22545); }
.shade-swatch--plum  { background: linear-gradient(145deg, #c45a8a, #8a2f5e); }
.shade-swatch--grape { background: linear-gradient(145deg, #9b5fad, #6a3480); }

.shade-code {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--berry);
  letter-spacing: 0.08em;
}

.shade-card strong {
  font-size: 1rem;
  color: var(--navy-800);
}

.shade-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* Split sections */
.product-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.product-split--reverse > :first-child {
  order: 2;
}

.howto-list {
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: howto;
  display: grid;
  gap: 14px;
}

.howto-list li {
  position: relative;
  padding: 16px 16px 16px 56px;
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  color: var(--slate-500);
  line-height: 1.55;
}

.howto-list li::before {
  counter-increment: howto;
  content: counter(howto);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--syrup-pink), var(--berry));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.product-notice {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--berry-soft);
  border: 1px solid rgba(226, 30, 96, 0.15);
}

.product-notice strong {
  display: block;
  margin-bottom: 10px;
  color: var(--berry);
}

.product-notice ul {
  margin: 0;
  padding-left: 18px;
  color: var(--slate-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

.product-doc-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  background: #fff;
}

.product-doc-card img {
  width: 100%;
  height: auto;
  display: block;
}

.clinical-meta {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.clinical-meta li {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--slate-200);
  font-size: 0.92rem;
  color: var(--slate-500);
}

.clinical-meta span {
  font-weight: 700;
  color: var(--navy-800);
}

/* Details */
.details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.details-table {
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.details-table > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--slate-200);
}

.details-table > div:last-child {
  border-bottom: none;
}

.details-table dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.details-table dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy-800);
  line-height: 1.45;
}

/* Order */
.order-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.order-points {
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.order-points li {
  position: relative;
  padding-left: 22px;
  color: var(--slate-500);
}

.order-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--berry);
  font-weight: 800;
}

.order-selected {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(226, 30, 96, 0.2);
  box-shadow: var(--shadow-sm);
}

.order-selected span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.order-selected strong {
  font-size: 1.1rem;
  color: var(--berry);
}

.order-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.order-form .field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 8px;
}

.order-shade-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.order-shade-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  color: var(--navy-800);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease),
              background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.order-shade-option:hover {
  background: #fff;
  border-color: rgba(226, 30, 96, 0.35);
}

.order-shade-option.is-selected {
  background: #fff;
  border-color: var(--berry);
  box-shadow: 0 0 0 3px rgba(226, 30, 96, 0.12);
}

.order-shade-swatch {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.order-shade-option[data-tone="maple"] .order-shade-swatch {
  background: linear-gradient(145deg, #c9896a, #a45c3a);
}

.order-shade-option[data-tone="rose"] .order-shade-swatch {
  background: linear-gradient(145deg, #f2a0b5, #e36d8a);
}

.order-shade-option[data-tone="berry"] .order-shade-swatch {
  background: linear-gradient(145deg, #e85a7a, #c22545);
}

.order-shade-option[data-tone="plum"] .order-shade-swatch {
  background: linear-gradient(145deg, #c45a8a, #8a2f5e);
}

.order-shade-option[data-tone="grape"] .order-shade-swatch {
  background: linear-gradient(145deg, #9b5fad, #6a3480);
}

.order-shade-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.page-products .btn-primary {
  background: linear-gradient(135deg, var(--syrup-pink) 0%, var(--berry) 100%);
  box-shadow: 0 4px 20px rgba(226, 30, 96, 0.28);
}

.page-products .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(226, 30, 96, 0.38);
}

@media (max-width: 1024px) {
  .product-hero-grid,
  .product-split,
  .details-layout,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .product-split--reverse > :first-child {
    order: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shade-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--wide img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .feature-grid,
  .shade-grid,
  .order-form .form-row {
    grid-template-columns: 1fr;
  }

  .details-table > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-hero {
    padding-top: calc(64px + 36px);
  }
}
