/* ============================================
   PRODUCT SHOW PAGE – Dark Theme
   Aligned with main page (LandingPage style)
   ============================================ */

body.logic-product-page {
  min-height: 100vh;
  background: hsl(0, 0%, 0%);
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: hsl(0, 0%, 95%);
}

::selection {
  background-color: hsl(210, 100%, 50%);
  color: hsl(0, 0%, 0%);
}

/* ---- Container ---- */
.logic-product-page .hs-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Header (pill nav style) ---- */
.logic-product-page .hs-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logic-product-page .hs-header__row {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logic-product-page .hs-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: hsl(0, 0%, 95%);
}

.logic-product-page .hs-logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, hsl(210, 100%, 50%), hsl(210, 100%, 40%));
}

.logic-product-page .hs-logo__text {
  font-size: 19px;
  font-weight: 700;
}

.logic-product-page .hs-header__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.logic-product-page .hs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.logic-product-page .hs-btn--primary {
  background: hsl(0, 0%, 95%);
  border-color: rgba(0, 0, 0, 0.06);
  color: hsl(0, 0%, 8%);
}

.logic-product-page .hs-btn--primary:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 36px rgba(0, 128, 255, 0.25);
}

.logic-product-page .hs-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: hsl(0, 0%, 95%);
  backdrop-filter: blur(4px);
}

.logic-product-page .hs-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.05);
}

/* ---- Cards (glassmorphism) ---- */
.logic-product-page .lc-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ---- Main layout ---- */
body.logic-product-page.product-zoom-open {
  overflow: hidden;
}

.logic-product-page .hs-main {
  padding-top: 24px;
}

.logic-product-page .product-shell {
  padding-bottom: 56px;
}

/* ---- Warning ---- */
.logic-product-page .product-warning {
  margin-bottom: 14px;
  border: 1px solid rgba(0, 128, 255, 0.30);
  background: rgba(0, 128, 255, 0.08);
  color: hsl(210, 100%, 65%);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
}

/* ---- Breadcrumb ---- */
.logic-product-page .product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.50);
}

.logic-product-page .product-breadcrumb-link {
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
  transition: color 0.2s ease;
}

.logic-product-page .product-breadcrumb-link:hover {
  color: hsl(210, 100%, 50%);
}

.logic-product-page .product-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.30);
}

.logic-product-page .product-breadcrumb-current {
  color: hsl(0, 0%, 95%);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ---- Product Layout Grid ---- */
.logic-product-page .product-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: stretch;
}

/* ---- Media & Detail Cards ---- */
.logic-product-page .product-media-card,
.logic-product-page .product-detail-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-height: 700px;
}

.logic-product-page .product-media-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.logic-product-page .product-zoom-trigger {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 16px;
  cursor: zoom-in;
}

.logic-product-page .product-main-image {
  width: 100%;
  display: block;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.logic-product-page .product-hint {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.40);
  font-size: 14px;
}

/* ---- Detail Card ---- */
.logic-product-page .product-detail-card {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
}

.logic-product-page .product-title-main {
  margin: 0;
  font-size: clamp(30px, 2.4vw, 40px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: hsl(0, 0%, 95%);
  text-transform: uppercase;
}

.logic-product-page .product-subtitle {
  margin: 14px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.60);
}

.logic-product-page .product-description {
  margin-top: 30px;
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.70);
  font-size: 17px;
  line-height: 1.6;
}

.logic-product-page .product-description p {
  margin: 0;
}

.logic-product-page .product-kicker {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.80);
  font-size: 16px;
  font-weight: 600;
}

/* ---- Features list ---- */
.logic-product-page .product-right-features {
  margin-top: 26px;
}

.logic-product-page .product-right-features h2 {
  margin: 0;
  font-size: clamp(25px, 1.8vw, 32px);
  line-height: 1.1;
  color: hsl(0, 0%, 95%);
  font-weight: 500;
}

.logic-product-page .product-right-list {
  margin: 14px 0 0;
  padding-left: 24px;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.70);
  font-size: clamp(15px, 0.95vw, 18px);
  line-height: 1.5;
}

.logic-product-page .product-right-list li::marker {
  color: hsl(210, 100%, 50%);
}

/* ---- Action buttons ---- */
.logic-product-page .product-actions {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.logic-product-page .product-actions .hs-btn {
  min-height: 48px;
  font-size: 16px;
  padding: 11px 18px;
}

.logic-product-page .product-actions--media {
  margin-top: auto;
  padding-top: 28px;
}

/* ============================================
   RELATED PRODUCTS ("Autres solutions")
   ============================================ */
.logic-product-page .product-related {
  margin-top: 44px;
}

.logic-product-page .product-related-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.logic-product-page .product-related-head h2 {
  margin: 0;
  color: hsl(0, 0%, 95%);
  font-size: 30px;
  font-weight: 500;
}

.logic-product-page .product-related-head a {
  color: hsl(210, 100%, 50%);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.logic-product-page .product-related-head a:hover {
  color: hsl(210, 100%, 65%);
}

.logic-product-page .product-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logic-product-page .product-related-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ---- Related product cards (dark glassmorphism) ---- */
.logic-product-page .product-related-grid .product-card {
  background: rgba(10, 10, 10, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
}

.logic-product-page .product-related-grid .product-card-link:focus-visible {
  outline: 3px solid rgba(0, 128, 255, 0.35);
  outline-offset: 3px;
}

.logic-product-page .product-related-grid .product-card:hover {
  transform: translateY(-6px);
  border-color: hsl(210, 100%, 50%);
  box-shadow: 0 20px 60px rgba(0, 128, 255, 0.18);
}

.logic-product-page .product-related-grid .product-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.85;
}

.logic-product-page .product-related-grid .product-card:hover .product-card-image {
  transform: scale(1.05);
  opacity: 1;
}

.logic-product-page .product-related-grid .product-card-content {
  display: block;
  padding: 24px;
}

.logic-product-page .product-related-grid .product-card-title {
  display: block;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: hsl(0, 0%, 95%);
}

.logic-product-page .product-related-grid .product-card-description {
  display: block;
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Zoom Modal ---- */
.logic-product-page .product-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px;
}

.logic-product-page .product-zoom-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: hsl(0, 0%, 95%);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.logic-product-page .product-zoom-close:hover {
  background: hsl(210, 100%, 50%);
  border-color: hsl(210, 100%, 50%);
  color: #fff;
}

.logic-product-page .product-zoom-body {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logic-product-page .product-zoom-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .logic-product-page .product-layout {
    grid-template-columns: 1fr;
  }

  .logic-product-page .product-media-card,
  .logic-product-page .product-detail-card {
    min-height: 0;
  }

  .logic-product-page .product-main-image {
    max-height: 620px;
  }

  .logic-product-page .product-right-features h2 {
    font-size: 30px;
  }

  .logic-product-page .product-right-list {
    font-size: 17px;
  }

  .logic-product-page .product-actions--media {
    margin-top: 18px;
    padding-top: 12px;
  }
}

@media (max-width: 640px) {
  .logic-product-page .hs-container {
    padding: 0 16px;
  }

  .logic-product-page .hs-main {
    padding-top: 18px;
  }

  .logic-product-page .product-detail-card {
    padding: 22px 18px;
  }

  .logic-product-page .product-title-main {
    font-size: 28px;
  }

  .logic-product-page .product-description {
    font-size: 16px;
  }

  .logic-product-page .product-right-features h2 {
    font-size: 26px;
  }

  .logic-product-page .product-right-list {
    font-size: 16px;
    gap: 8px;
  }

  .logic-product-page .product-related-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .logic-product-page .product-related-grid {
    grid-template-columns: 1fr;
  }

  .logic-product-page .product-related-grid .product-card-title {
    font-size: 20px;
  }
}

/* ============================================
   LIGHT THEME OVERRIDES — Product Show Page
   ============================================ */
[data-theme="light"] body.logic-product-page {
  background: hsl(210, 25%, 97%);
  color: hsl(210, 30%, 10%);
}

[data-theme="light"] .logic-product-page .hs-header {
  background: rgba(240, 246, 255, 0.90);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .logic-product-page .hs-logo {
  color: hsl(210, 30%, 10%);
}

[data-theme="light"] .logic-product-page .hs-logo__mark {
  background: radial-gradient(circle at 30% 30%, hsl(210, 100%, 50%), hsl(210, 100%, 40%));
}

[data-theme="light"] .logic-product-page .hs-btn--primary {
  background: hsl(210, 30%, 12%);
  color: #fff;
}

[data-theme="light"] .logic-product-page .hs-btn--ghost {
  border-color: rgba(0, 0, 0, 0.15);
  color: hsl(210, 25%, 20%);
  background: transparent;
}

[data-theme="light"] .logic-product-page .hs-btn--ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .logic-product-page .product-breadcrumb {
  color: hsl(210, 15%, 50%);
}

[data-theme="light"] .logic-product-page .product-breadcrumb-link {
  color: hsl(210, 15%, 50%);
}

[data-theme="light"] .logic-product-page .product-breadcrumb-link:hover {
  color: hsl(210, 100%, 45%);
}

[data-theme="light"] .logic-product-page .product-breadcrumb-current {
  color: hsl(210, 30%, 10%);
}

[data-theme="light"] .logic-product-page .product-media-card,
[data-theme="light"] .logic-product-page .product-detail-card {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .logic-product-page .product-main-image {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .logic-product-page .product-hint {
  color: hsl(210, 15%, 55%);
}

[data-theme="light"] .logic-product-page .product-title-main {
  color: hsl(210, 30%, 10%);
}

[data-theme="light"] .logic-product-page .product-subtitle {
  color: hsl(210, 15%, 40%);
}

[data-theme="light"] .logic-product-page .product-description {
  color: hsl(210, 15%, 35%);
}

[data-theme="light"] .logic-product-page .product-kicker {
  color: hsl(210, 25%, 25%);
}

[data-theme="light"] .logic-product-page .product-right-features h2 {
  color: hsl(210, 30%, 10%);
}

[data-theme="light"] .logic-product-page .product-right-list {
  color: hsl(210, 15%, 35%);
}

[data-theme="light"] .logic-product-page .product-related-head h2 {
  color: hsl(210, 30%, 10%);
}

[data-theme="light"] .logic-product-page .product-related-head a {
  color: hsl(210, 100%, 45%);
}

[data-theme="light"] .logic-product-page .product-related-grid .product-card {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .logic-product-page .product-related-grid .product-card:hover {
  border-color: hsl(210, 100%, 50%);
  box-shadow: 0 20px 40px rgba(0, 128, 255, 0.15);
}

[data-theme="light"] .logic-product-page .product-related-grid .product-card-title {
  color: hsl(210, 30%, 10%);
}

[data-theme="light"] .logic-product-page .product-related-grid .product-card-description {
  color: hsl(210, 15%, 40%);
}

[data-theme="light"] .logic-product-page .product-zoom-modal {
  background: rgba(200, 215, 235, 0.92);
}

[data-theme="light"] .logic-product-page .product-zoom-close {
  background: hsl(210, 25%, 15%);
  border-color: hsl(210, 25%, 15%);
  color: #fff;
}

[data-theme="light"] .logic-product-page .product-zoom-close:hover {
  background: hsl(210, 100%, 45%);
  border-color: hsl(210, 100%, 45%);
}

[data-theme="light"] .logic-product-page .product-warning {
  border-color: rgba(0, 128, 255, 0.30);
  background: rgba(0, 128, 255, 0.06);
  color: hsl(210, 80%, 35%);
}

/* ============================================
   RTL OVERRIDES — Product Show Page
   ============================================ */
[dir="rtl"] .logic-product-page .hs-header__row {
  flex-direction: row-reverse;
}

[dir="rtl"] .logic-product-page .hs-header__actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .logic-product-page .product-breadcrumb {
  direction: rtl;
}

[dir="rtl"] .logic-product-page .product-shell {
  direction: rtl;
}

[dir="rtl"] .logic-product-page .product-detail-card {
  text-align: right;
}

[dir="rtl"] .logic-product-page .product-right-list {
  padding-right: 20px;
  padding-left: 0;
}

[dir="rtl"] .logic-product-page .product-related-head {
  flex-direction: row-reverse;
}