  
    * { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --primary: #091A50;
      --primary-hover: #0D2570;
      --primary-glow: #091A50;
      --accent: #4a7bff;
      --success: #34c759;
      --warning: #ff9500;
      --danger: #ff3b30;
      --white: #ffffff;
      --dark: #000000;
      --gray: #86868b;
      --light-gray: #f5f5f7;
      --border: #d2d2d7;
      --bg-primary: #ffffff;
      --bg-secondary: #f5f5f7;
      --bg-tertiary: #e8e8ed;
      --text-primary: #1d1d1f;
      --text-secondary: #86868b;
      --border-color: #d2d2d7;
      --card-shadow: 0 4px 30px rgba(0,0,0,0.08);
    }

    

    html { scroll-behavior: smooth; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
      background: var(--white);
      color: var(--text-primary);
      -webkit-font-smoothing: antialiased;
      line-height: 1.5;
    }

    /* Breadcrumb */
    .breadcrumb-bar {
      margin-top: 72px;
      padding: 12px 0;
      background: #f5f5f7;
      border-bottom: 1px solid var(--border);
    }

    .breadcrumb {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      font-size: 12px;
      color: var(--gray);
    }

    .breadcrumb a {
      color: var(--primary-glow);
      text-decoration: none;
    }

    .breadcrumb a:hover { text-decoration: underline; }

    .breadcrumb span { margin: 0 8px; }

    /* Hero Product Section - 50/50 Grid Layout */
    .product-hero {
      background: var(--white);
      padding: 0;
    }

    .product-hero-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      min-height: calc(100vh - 90px);
    }

    /* Gallery - Full Bleed Left Side */
    .gallery {
      position: relative;
      background: #fff;
      display: flex;
      flex-direction: column;
    }

    .gallery-main {
      max-height: 450px;
      min-height: 300px;
      border-radius: 0;
      border: none;
      margin-bottom: 0;
      position: relative;
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      background: #fafafa;
    }

    .gallery-main img {
      max-height: 420px;
      max-width: 90%;
      object-fit: contain;
      border-radius: 0;
      padding: 20px;
      background: none;
      transition: transform 0.5s ease;
    }

    /* Navigation Arrows */
    .gallery-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 50px;
      height: 50px;
      background: rgba(255,255,255,0.9);
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      z-index: 10;
    }

    .gallery-nav:hover {
      background: white;
      transform: translateY(-50%) scale(1.1);
      box-shadow: 0 6px 30px rgba(0,0,0,0.2);
    }

    .gallery-nav svg {
      width: 20px;
      height: 20px;
      stroke: #1d1d1f;
      stroke-width: 2.5;
      fill: none;
    }

    .gallery-nav-prev { left: 24px; }
    .gallery-nav-next { right: 24px; }

    .gallery-dots {
      position: absolute;
      bottom: 80px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      z-index: 10;
    }

    .gallery-dot {
      box-sizing: content-box;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255,255,255,0.5);
      cursor: pointer;
      transition: all 0.3s;
      border: none;
      padding: 0;
      margin: 0;
    }

    .gallery-dot:hover { background: rgba(255,255,255,0.8); }

    .gallery-dot.active {
      background: white;
      transform: scale(1.2);
    }

    .gallery-thumbs {
      flex-direction: row !important;
      width: 100% !important;
      max-height: none !important;
      justify-content: center;
      display: flex;
      gap: 12px;
      padding: 20px;
      justify-content: center;
      background: #f5f5f7;
    }

    .gallery-thumb {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      border: 2px solid transparent;
      background: var(--white);
      padding: 6px;
      cursor: pointer;
      transition: all 0.3s;
    }

    .gallery-thumb:hover,
    .gallery-thumb.active { border-color: var(--primary-glow); }

    .gallery-thumb img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    /* Product Info - Right Side */
    .product-info {
      padding: 60px 60px 60px 80px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow-y: auto;
    }

    .product-category {
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--primary-glow);
      margin-bottom: 8px;
    }

    .product-badges {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }

    .badge {
      padding: 6px 12px;
      border-radius: 980px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .badge-new { background: var(--success); color: white; }
    .badge-promo { background: var(--danger); color: white; }
    .badge-ip { background: var(--primary); color: white; }

    .product-title {
      font-size: 40px;
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin-bottom: 8px;
    }

    .product-reference {
      display: none;
      font-size: 14px;
      color: var(--gray);
      margin-bottom: 20px;
    }

    .product-price,
    #product-price,
    #selected-price,
    .product-price-note,
    .reference-price,
    .related-card-price {
      display: block !important;
    }

    /* Variants Section */
    .variants-section {
      background: var(--bg-secondary);
      border-radius: 20px;
      padding: 24px;
      margin-bottom: 24px;
    }

    .variants-title {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 20px;
    }

    .variant-group { margin-bottom: 20px; }
    .variant-group:last-of-type { margin-bottom: 0; }

    .variant-label {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-secondary);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .variant-label .selected-value {
      color: var(--text-primary);
      font-weight: 600;
    }

    .variant-options {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .variant-btn {
      padding: 10px 18px;
      border: 1.5px solid var(--border-color);
      border-radius: 980px;
      background: var(--white);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      color: var(--text-primary);
    }

    .variant-btn:hover { border-color: var(--primary); }

    .variant-btn.selected {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }

    .variant-btn:disabled { opacity: 0.4; cursor: not-allowed; }

    .variant-btn.color-swatch {
      width: 40px;
      height: 40px;
      padding: 0;
      border-radius: 50%;
      border-width: 3px;
      position: relative;
    }

    .variant-btn.color-swatch.selected {
      box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--primary);
    }

    .variant-result {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 20px;
      margin-top: 20px;
      border-top: 1px solid var(--border-color);
      font-size: 14px;
    }

    .variant-result strong {
      color: var(--accent);
      font-weight: 600;
    }

    /* Quick Specs */
    .quick-specs {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-bottom: 24px;
    }

    .quick-spec {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      background: #f5f5f7;
      border-radius: 12px;
    }

    .quick-spec-icon {
      width: 36px;
      height: 36px;
      background: var(--primary-glow);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .quick-spec-icon svg {
      width: 18px;
      height: 18px;
      stroke: white;
    }

    .quick-spec-text { font-size: 13px; }

    .quick-spec-label {
      color: var(--gray);
      font-size: 11px;
    }

    .quick-spec-value {
      font-weight: 600;
      color: var(--text-primary);
    }

    /* CTA Buttons */
    .product-actions {
      display: flex;
      gap: 12px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }

    .btn-primary {
      flex: 1;
      min-width: 140px;
      padding: 16px 24px;
      background: var(--primary-glow);
      color: white;
      border: none;
      border-radius: 12px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .btn-primary:hover {
      background: #0D2570;
      transform: translateY(-2px);
    }

    .btn-secondary {
      flex: 1;
      min-width: 140px;
      padding: 16px 24px;
      background: transparent;
      color: var(--primary-glow);
      border: 1px solid var(--primary-glow);
      border-radius: 12px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      text-decoration: none;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .btn-secondary:hover {
      background: var(--primary-glow);
      color: white;
    }

    /* Short Description - Under Gallery */
    .short-desc {
      margin-top: 20px;
      padding: 15px;
      background: #f8f9fa;
      border-radius: 8px;
      font-size: 15px;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    /* Tabs Section */
    .tabs-section {
      max-width: 1200px;
      margin: 0 auto;
      padding: 60px 20px;
    }

    .tabs-nav {
      display: flex;
      gap: 0;
      border-bottom: 1px solid var(--border);
      margin-bottom: 40px;
    }

    .tab-btn {
      padding: 16px 32px;
      background: none;
      border: none;
      font-size: 14px;
      font-weight: 500;
      color: var(--gray);
      cursor: pointer;
      position: relative;
      transition: color 0.3s;
    }

    .tab-btn:hover { color: var(--text-primary); }

    .tab-btn.active { color: var(--primary-glow); }

    .tab-btn.active::after {
      content: "";
      position: absolute;
      bottom: -1px;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--primary-glow);
    }

    .tab-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 20px;
      height: 20px;
      padding: 0 6px;
      background: var(--primary-glow);
      color: white;
      border-radius: 10px;
      font-size: 11px;
      font-weight: 600;
      margin-left: 8px;
    }

    .tab-panel { display: none; }

    .tab-panel.active {
      display: block;
      animation: fadeIn 0.4s ease;
    }

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

    /* Description Tab */
    .description-content {
      width: 100%;
      max-width: 100%;
      font-size: 16px;
      line-height: 1.8;
      color: var(--text-primary);
    }

    .description-content h2,
    .description-content h3 {
      margin-top: 40px;
      margin-bottom: 16px;
      font-weight: 600;
      width: 100%;
    }

    .description-content p { 
      margin-bottom: 20px; 
      width: 100%;
    }

    .description-content ul {
      margin-bottom: 20px;
      padding-left: 24px;
    }

    .description-content li { margin-bottom: 8px; }

    .description-content .desc-images {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin: 30px 0;
      justify-content: flex-start;
      width: 100%;
    }

    .description-content .desc-images img {
      flex: 0 1 calc(33.333% - 14px);
      max-width: calc(33.333% - 14px);
      min-width: 280px;
      height: auto;
      border-radius: 12px;
      object-fit: contain;
      background: #f8f8f8;
      padding: 10px;
    }

    @media (max-width: 900px) {
      .description-content .desc-images img {
        flex: 0 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
        min-width: 200px;
      }
    }

    @media (max-width: 600px) {
      .description-content .desc-images img {
        flex: 0 1 100%;
        max-width: 100%;
        min-width: auto;
      }
    }

    /* Specifications Tab - TABLE */
    .specs-table {
      width: 100%;
      border-collapse: collapse;
    }

    .specs-table tr { border-bottom: 1px solid var(--border); }

    .specs-table tr:last-child { border-bottom: none; }

    .specs-table th,
    .specs-table td {
      padding: 16px 20px;
      text-align: left;
      font-size: 14px;
    }

    .specs-table th {
      width: 40%;
      font-weight: 500;
      color: var(--gray);
      background: #f5f5f7;
    }

    .specs-table td {
      font-weight: 500;
      color: var(--text-primary);
    }

    /* References Tab - GRID STYLE BEGA */
    .references-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }

    .reference-card {
      background: #f5f5f7;
      border-radius: 16px;
      padding: 24px;
      transition: all 0.3s ease;
      cursor: pointer;
      border: 2px solid transparent;
    }

    .reference-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.1);
      border-color: var(--primary-glow);
    }

    .reference-card.selected {
      border-color: var(--primary-glow);
      background: rgba(9, 26, 80, 0.05);
    }

    .reference-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 16px;
    }

    .reference-code {
      font-family: "SF Mono", Monaco, monospace;
      font-size: 20px;
      font-weight: 700;
      color: var(--primary-glow);
    }

    .reference-stock {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--gray);
    }

    .stock-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }

    .stock-dot.in-stock { background: #34c759; }
    .stock-dot.low-stock { background: #ff9500; }
    .stock-dot.out-stock { background: #ff3b30; }

    .reference-image {
      width: 100%;
      height: 180px;
      background: var(--white);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
      overflow: hidden;
    }

    .reference-image img {
      max-width: 80%;
      max-height: 80%;
      object-fit: contain;
    }

    .reference-specs {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 16px;
    }

    .reference-spec { font-size: 13px; }

    .reference-spec-label {
      color: var(--gray);
      font-size: 11px;
      margin-bottom: 2px;
    }

    .reference-spec-value {
      font-weight: 600;
      color: var(--text-primary);
    }

    .reference-price {
      font-size: 24px;
      font-weight: 700;
      color: var(--text-primary);
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .reference-price span {
      font-size: 14px;
      font-weight: 400;
      color: var(--gray);
    }

    .btn-add-ref {
      width: 100%;
      margin-top: 16px;
      padding: 12px 20px;
      background: var(--primary-glow);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
    }

    .btn-add-ref:hover {
      background: #0D2570;
      transform: translateY(-2px);
    }

    /* Documents Tab */
    .documents-grid {
      display: block;
      
      
    }

    .document-card {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 20px;
      background: #f5f5f7;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s;
      text-decoration: none;
      color: inherit;
    }

    .document-card:hover {
      background: var(--bg-tertiary);
      transform: translateY(-2px);
    }

    .document-icon {
      width: 48px;
      height: 48px;
      background: #ff3b30;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .document-icon svg {
      width: 24px;
      height: 24px;
      stroke: white;
    }

    .document-info { flex: 1; }

    .document-name {
      font-weight: 600;
      font-size: 14px;
      margin-bottom: 4px;
    }

    .document-size {
      font-size: 12px;
      color: var(--gray);
    }

    /* Related Products */
    .related-section {
      background: #f5f5f7;
      padding: 80px 20px;
    }

    .related-inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .related-title {
      font-size: 28px;
      font-weight: 700;
      text-align: center;
      margin-bottom: 40px;
    }

    .related-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }

    .related-card {
      background: var(--white);
      border-radius: 16px;
      padding: 24px;
      text-align: center;
      transition: all 0.3s;
      text-decoration: none;
      color: inherit;
    }

    .related-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

    .related-card img {
      width: 100%;
      aspect-ratio: 1;
      object-fit: contain;
      margin-bottom: 16px;
    }

    .related-card-title {
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .related-card-price {
      font-size: 16px;
      font-weight: 700;
      color: var(--primary-glow);
    }

    /* Footer */
    .footer {
      background: var(--dark);
      color: var(--gray);
      padding: 40px 20px;
      text-align: center;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .footer-links {
      display: flex;
      gap: 24px;
    }

    .footer-links a {
      color: var(--gray);
      text-decoration: none;
      font-size: 12px;
    }

    .footer-links a:hover { color: var(--white); }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: var(--white);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 20px 24px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      gap: 16px;
      z-index: 9999;
      transform: translateY(100px);
      opacity: 0;
      transition: all 0.3s ease;
    }

    .toast.show {
      transform: translateY(0);
      opacity: 1;
    }

    .toast-icon {
      width: 44px;
      height: 44px;
      background: var(--success);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .toast-icon svg {
      width: 24px;
      height: 24px;
      stroke: #fff;
    }

    .toast-content h4 {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 2px;
    }

    .toast-content p {
      font-size: 13px;
      color: var(--text-secondary);
    }

    /* Loading State */
    .loading {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 200px;
      color: var(--gray);
    }

    .loading::after {
      content: "";
      width: 32px;
      height: 32px;
      border: 3px solid var(--border);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .product-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
      }

      .gallery { height: 50vh; }

      .product-info { padding: 40px 20px; }

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

      .references-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 768px) {
      .product-title { font-size: 28px; }

      .product-price { font-size: 24px; }

      .quick-specs { grid-template-columns: 1fr; }

      .product-actions { flex-direction: column; }

      .tabs-nav { overflow-x: auto; }

      .tab-btn {
        padding: 12px 20px;
        white-space: nowrap;
      }

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

      .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
      }
    }

    /* References Section */
    .references-section { background: #f5f5f7; color: #1d1d1f; padding: 80px 20px; }
    .references-inner { max-width: 1200px; margin: 0 auto; }
    /* ========================================
   REFERENCES TABLE - TABLE FUSIONNÉE V3
   ======================================== */
.references-title { font-size: 26px; font-weight: 700; margin-bottom: 8px; text-align: center; color: #091A50; }
.references-subtitle { font-size: 14px; color: #6e6e73; text-align: center; margin-bottom: 32px; }
.references-table-wrapper { overflow-x: auto; border-radius: 10px; background: #fff; border: 1px solid #e2e5ea; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.references-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; table-layout: fixed; }
.references-table thead { background: #091A50; }
.references-table th { padding: 12px 16px; text-align: left; font-weight: 600; color: #fff; white-space: nowrap; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.references-table th:nth-child(1) { width: 120px; }
.references-table th:nth-child(2) { width: auto; }
.references-table th:nth-child(3) { width: 90px; text-align: center; }
.references-table th:nth-child(4) { width: 80px; text-align: center; }
.references-table th:nth-child(5) { width: 110px; text-align: center; }
.references-table td { padding: 14px 16px; border-bottom: 1px solid #f0f1f3; color: #374151; vertical-align: middle; }
.references-table tbody tr { transition: background 0.15s; }
.references-table tbody tr:nth-child(even) { background: #fafbfc; }
.references-table tbody tr:hover { background: #eef3ff; }

/* Colonne Nom */
.references-table .ref-id { font-weight: 600; color: #091A50; font-size: 13px; font-family: sfmono, consolas, monospace; font-size: 12px; white-space: nowrap; }

/* Colonne Désignation */
.references-table .ref-designation { font-size: 12.5px; color: #4b5563; line-height: 1.5; word-break: break-word; overflow-wrap: break-word; }
.references-table .ref-designation .ref-code { display: block; font-family: "SF Mono", "Consolas", monospace; font-size: 11px; color: #9ca3af; margin-top: 4px; font-weight: 400; }

/* Colonne Puissance */
.ref-power { text-align: center; white-space: nowrap; font-weight: 600; color: #1d1d1f; font-size: 13px; }

/* Colonne Quantité */
.ref-qty { text-align: center; }
.ref-qty-input { width: 52px; height: 34px; padding: 4px 6px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; text-align: center; font-size: 13px; font-weight: 500; color: #1d1d1f; -moz-appearance: textfield; }
.ref-qty-input::-webkit-inner-spin-button, .ref-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ref-qty-input:focus { outline: none; border-color: #091A50; box-shadow: 0 0 0 2px rgba(9,26,80,0.1); }

/* Colonne Action */
.ref-action { text-align: center; }
.references-table .btn-add-cart { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; background: #091A50; color: #fff; border: none; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.references-table .btn-add-cart:hover { background: #0d2570; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(9,26,80,0.25); }
.references-table .btn-add-cart svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Lignes options */
.references-table .ref-row-option { background: #f8f9fa !important; }
.references-table .ref-row-option .ref-name { color: #6b7280; font-weight: 500; font-style: italic; font-size: 12px; }
.references-table .ref-row-option .ref-designation { color: #6b7280; }
.references-table .ref-row-option:hover { background: #eef3ff !important; }

/* Responsive */
@media (max-width: 768px) {
  .references-table { table-layout: auto; font-size: 12px; }
  .references-table th, .references-table td { padding: 10px 8px; }
  .references-table th:nth-child(1) { width: 80px; }
  .references-table th:nth-child(3) { width: 70px; }
  .references-table th:nth-child(4) { width: 60px; }
  .references-table th:nth-child(5) { width: 90px; }
  .references-table .btn-add-cart { padding: 6px 10px; font-size: 11px; }
  .references-table .btn-add-cart svg { display: none; }
  .ref-qty-input { width: 44px; height: 30px; }
}
  

/* ==========================================
   DOCUMENTS SELECTION & DOWNLOAD
   ========================================== */
.documents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.doc-select-all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #374151;
}

.doc-select-all input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #091A50;
}

.btn-download-all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #091A50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-download-all:hover {
  background: #0d2470;
  transform: translateY(-1px);
}

.btn-download-all svg {
  flex-shrink: 0;
}

._documents-list-OLD {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.document-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.document-card:hover {
  border-color: #091A50;
  box-shadow: 0 2px 8px rgba(9, 26, 80, 0.1);
}

.doc-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-checkbox input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #091A50;
}

.document-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.document-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e7ff;
  border-radius: 8px;
  color: #091A50;
}

.document-icon svg {
  width: 20px;
  height: 20px;
}

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

.document-name {
  font-weight: 500;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.document-size {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Remove old styles that conflict */
.documents-grid {
  padding: 0;
}

.documents-grid > a.document-card-OLD {
  /* removed */
}

/* Documents List Grid Layout */
._documents-list-OLD {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.documents-list .document-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.2s;
}

.documents-list .document-card:hover {
  border-color: #1a1a2e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Specifications Table - Improved */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.specs-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table tr:nth-child(even) {
  background: #fafafa;
}

.specs-table th {
  text-align: left;
  padding: 16px 20px;
  font-weight: 500;
  color: #666;
  width: 40%;
  font-size: 14px;
}

.specs-table td {
  padding: 16px 20px;
  color: #1a1a2e;
  font-weight: 500;
  font-size: 15px;
}

@media (max-width: 600px) {
  ._documents-list-OLD {
    grid-template-columns: 1fr;
  }
  
  .specs-table th,
  .specs-table td {
    padding: 12px 15px;
    display: block;
    width: 100%;
  }
  
  .specs-table th {
    background: #f5f5f5;
    border-bottom: none;
  }
}

/* Documents Grid - FINAL */
.documents-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin-top: 20px;
}

@media (max-width: 1000px) {
  .documents-list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .documents-list {
    grid-template-columns: 1fr !important;
  }
}

.documents-list .document-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s;
}

.documents-list .document-card:hover {
  border-color: #1a1a2e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Documents Container Fix */
#documents-grid {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.documents-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  flex-wrap: wrap;
}

.doc-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.btn-download-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #1a1a2e;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-download-all:hover {
  background: #2d2d4a;
}

/* Fix grid overflow */
.documents-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 16px !important;
  width: 100%;
  max-width: 100%;
}

.documents-list .document-card {
  min-width: 0;
  overflow: hidden;
}

.document-info {
  min-width: 0;
  overflow: hidden;
}

.document-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================
   ALIMENTATIONS ON/OFF
   ========================================== */
.alimentations-section {
  margin-top: 20px;
  padding: 0;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.alimentations-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.alimentations-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alimentation-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s;
}

.alimentation-btn:hover {
  border-color: var(--primary);
  background: rgba(9, 26, 80, 0.05);
}

.alimentation-btn .alim-ref {
  font-size: 11px;
  font-weight: 400;
  color: var(--gray);
  margin-top: 2px;
}

.alimentation-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s;
}

.alimentation-select:hover,
.alimentation-select:focus {
  border-color: var(--primary);
  outline: none;
}



/* ==========================================
   OPTIONS & ACCESSOIRES
   ========================================== */
.options-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border, #d2d2d7);
}

.options-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1d1d1f);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--light-gray, #f5f5f7);
  border-radius: 10px;
  gap: 12px;
}

.option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.option-ref {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray, #86868b);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.option-name {
  font-size: 13px;
  color: var(--text, #1d1d1f);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-add-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border, #d2d2d7);
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text, #1d1d1f);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-add-option:hover {
  background: var(--primary, #091A50);
  color: #fff;
  border-color: var(--primary, #091A50);
}

.btn-add-option svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .option-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .btn-add-option {
    align-self: flex-end;
  }
  .option-name {
    white-space: normal;
  }
}





/* ==========================================
   TABLEAU REFERENCES - LAYOUT PROPRE
   ========================================== */

/* Designation cell */
.ref-designation {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
}

.ref-name {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text, #1d1d1f);
}

/* Reference code column */
.ref-code {
  font-weight: 600;
  font-size: 13px;
  color: var(--primary, #091A50);
  white-space: nowrap;
  vertical-align: top;
  padding-top: 14px;
  cursor: default;
}

/* Alimentation row - propre separation */
.ref-alim {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 4px 0;
}

.ref-alim label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray, #86868b);
  white-space: nowrap;
}

.ref-alim-select {
  padding: 4px 28px 4px 10px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border, #d2d2d7);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  color: var(--text, #1d1d1f);
  min-width: 70px;
}

.ref-alim-select:focus {
  outline: none;
  border-color: var(--primary, #091A50);
  box-shadow: 0 0 0 2px rgba(9, 26, 80, 0.15);
}

/* Table rows - cleaner */
#references-table tbody tr {
  border-bottom: 1px solid var(--border, #e5e5e7);
  transition: background 0.15s;
}

#references-table tbody tr:hover {
  background: var(--bg-hover, #f5f5f7);
}

#references-table tbody tr:last-child {
  border-bottom: none;
}

/* Action column */
.ref-action {
  vertical-align: top;
  padding-top: 10px;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ref-designation {
    padding: 10px 12px;
  }

  .ref-name {
    font-size: 13px;
  }

  .ref-alim {
    display: flex;
    margin-top: 4px;
  }

  .ref-code {
    font-size: 12px;
    padding-top: 12px;
  }
}


.breadcrumb-sep { color: #9ca3af; font-size: 16px; margin: 0 6px; font-weight: 300; }
.breadcrumb span:not(.breadcrumb-sep) { color: #374151; font-weight: 500; }

/* ========================================
   RELATED CARDS - HOMOGENE AVEC CATALOGUE
   ======================================== */
.related-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(9, 26, 80, 0.12);
}
.related-card-image {
  background: #f8f9fb;
  padding: 20px;
  text-align: center;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-card-image img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}
.related-card-info {
  padding: 14px 16px;
}
.related-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #091A50;
  margin: 0 0 4px 0;
}
.related-card-category {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}

/* Related section title */
.related-title {
  font-size: 24px;
  font-weight: 700;
  color: #091A50;
  text-align: center;
  margin-bottom: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .related-card-image { padding: 12px; }
  .related-card-image img { max-height: 100px; }
}

/* Colonne Prix dans table références */
.references-table th:nth-child(4) { width: 90px; text-align: right; }
.ref-price { text-align: right; font-weight: 600; color: #091A50; font-size: 13px; white-space: nowrap; }
.references-table .ref-row-option .ref-price { color: #6b7280; font-weight: 500; }


/* ========================================
   TABLE RÉFÉRENCES - COLONNES PROPRES
   ======================================== */
.references-table { table-layout: fixed; width: 100%; }
.references-table th:nth-child(1) { width: 100px; }   /* Référence */
.references-table th:nth-child(2) { width: auto; }     /* Désignation - prend le reste */
.references-table th:nth-child(3) { width: 90px; text-align: center; }  /* Puissance */
.references-table th:nth-child(4) { width: 100px; text-align: right; }  /* Prix HT */
.references-table th:nth-child(5) { width: 80px; text-align: center; }  /* Quantité */
.references-table th:nth-child(6) { width: 110px; text-align: center; } /* Action */
.references-table td:nth-child(1) { font-family: sfmono, consolas, monospace; font-size: 12px; color: #091A50; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.references-table td:nth-child(2) { font-size: 12.5px; color: #4b5563; word-break: break-word; line-height: 1.4; }
.references-table td:nth-child(3) { text-align: center; font-weight: 600; font-size: 13px; }
.references-table td:nth-child(4) { text-align: right; font-weight: 600; color: #091A50; font-size: 13px; white-space: nowrap; }
.references-table td:nth-child(5) { text-align: center; }
.references-table td:nth-child(6) { text-align: center; }

@media (max-width: 768px) {
  .references-table { table-layout: auto; }
  .references-table th, .references-table td { padding: 10px 8px; font-size: 11px; }
  .references-table th:nth-child(1) { width: 70px; }
  .references-table th:nth-child(3) { width: 60px; }
  .references-table th:nth-child(4) { width: 70px; }
  .references-table th:nth-child(5) { width: 50px; }
  .references-table th:nth-child(6) { width: 80px; }
}

/* ========================================
   DOCUMENTS TAB - REDESIGN PROPRE
   ======================================== */
.documents-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.documents-list .document-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s;
}
.documents-list .document-card:hover {
  border-color: #091A50;
  box-shadow: 0 4px 12px rgba(9, 26, 80, 0.08);
  transform: translateY(-1px);
}
.documents-list .document-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #091A50 0%, #1E3A8A 100%);
  border-radius: 10px;
  color: #ffffff;
}
.documents-list .document-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}
.documents-list .document-name {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.documents-list .document-size {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  margin-top: 2px;
}
.documents-list .doc-checkbox {
  flex-shrink: 0;
}
.documents-list .doc-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #091A50;
  cursor: pointer;
}

/* Header documents */
.documents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: #f8f9fb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.doc-select-all {
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-download-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #091A50;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-download-all:hover {
  background: #0d2570;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(9, 26, 80, 0.2);
}

@media (max-width: 768px) {
  .documents-list { grid-template-columns: 1fr; }
}

/* Description content styling premium */
.description-content {
  font-size: 15px !important;
  line-height: 1.85 !important;
  color: #374151 !important;
}
.description-content p {
  margin-bottom: 18px !important;
  text-align: left !important;
}
.description-content strong {
  color: #091A50 !important;
  font-weight: 700 !important;
}
.description-content ul, .description-content ol {
  margin: 16px 0 16px 24px !important;
}
.description-content li {
  margin-bottom: 8px !important;
}

/* ========================================
   MOBILE PRODUIT - FIX SHORT DESC + TABLE
   ======================================== */
@media (max-width: 768px) {
  /* Short description mobile - fix layout */
  .short-desc {
    width: 100% !important;
    padding: 16px 20px !important;
    background: #f8f9fb !important;
    border-radius: 10px !important;
    margin: 16px 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
    text-align: left !important;
  }
  .short-desc p { margin: 0 !important; text-align: left !important; }

  /* Gallery thumbs - hide empty strip, show only if images */
  .gallery-thumbs:empty { display: none !important; }
  .gallery-thumbs { padding: 8px 0 !important; }

  /* Table references mobile - better scroll hint */
  .references-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
  }
  .references-table { min-width: 550px !important; font-size: 11px !important; }
  .references-table th { padding: 8px 6px !important; font-size: 10px !important; letter-spacing: 0.3px !important; }
  .references-table td { padding: 8px 6px !important; }
  .references-table td:nth-child(1) { font-size: 10px !important; }
  .references-table td:nth-child(2) { font-size: 11px !important; line-height: 1.3 !important; }
  .references-table .btn-add-cart { padding: 5px 10px !important; font-size: 10px !important; }
  .references-table .btn-add-cart svg { display: none !important; }
  .ref-qty-input { width: 32px !important; height: 24px !important; font-size: 11px !important; }

  /* Hint scroll on references section */
  .references-section::after {
    content: "\\2190 Faire glisser \\2192";
    display: block;
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 8px;
    font-style: italic;
  }

  /* Product-info layout */
  .product-info {
    padding: 0 !important;
    width: 100% !important;
  }
  .product-title { font-size: 28px !important; margin-bottom: 8px !important; }
  .product-category { font-size: 11px !important; margin-bottom: 6px !important; }
  .product-reference { font-size: 12px !important; color: #6b7280 !important; }

  /* Variants section mobile */
  .variants-section {
    padding: 16px !important;
    background: #f8f9fb !important;
    border-radius: 12px !important;
    margin-top: 16px !important;
  }
  .variant-group { margin-bottom: 14px !important; }
  .variant-label { font-size: 12px !important; margin-bottom: 6px !important; }
  .variant-options { gap: 6px !important; }
  .variant-btn { padding: 6px 14px !important; font-size: 12px !important; min-width: 44px !important; }
  .color-swatch { width: 32px !important; height: 32px !important; }

  /* Quick specs mobile */
  .quick-specs {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 16px 0 !important;
  }
  .quick-specs > * {
    padding: 10px !important;
    font-size: 11px !important;
  }

  /* Tabs content mobile */
  .tab-panel { padding: 16px 0 !important; }
  .description-content { font-size: 13px !important; line-height: 1.6 !important; }
  .description-content p { margin-bottom: 12px !important; }

  /* Specs table mobile */
  #specs-table { font-size: 12px !important; }
  #specs-table th { padding: 8px !important; width: 40%; }
  #specs-table td { padding: 8px !important; }

  /* Related products */
  .related-section { padding: 30px 0 !important; }
  .related-title { font-size: 20px !important; margin-bottom: 16px !important; }
}

/* Fix short desc overflow mobile */
@media (max-width: 768px) {
  .short-desc, .short-desc * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .short-desc {
    margin-left: 16px !important;
    margin-right: 16px !important;
    width: calc(100% - 32px) !important;
  }
}

/* ANTI-OVERFLOW NUCLEAR MOBILE */
@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; width: 100vw !important; max-width: 100vw !important; }
  body, main, .page-content, section, .container, article, .product-page, .product-hero,
  .product-info, .variants-section, .product-actions, .tabs-section, .tab-panel,
  .description-content, .short-desc, .references-section, .related-section,
  .gallery, .product-gallery {
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .short-desc p, .description-content p, .product-info p, .product-info h1, .product-info h2,
  #product-name, #product-reference, #product-category {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    max-width: 100% !important;
    hyphens: auto !important;
  }
  img { max-width: 100% !important; height: auto !important; }
  .container { padding-left: 16px !important; padding-right: 16px !important; max-width: 100vw !important; }
}

/* === Align option references row colors with product variants === */
.references-table .ref-row-option .option-ref { color: #091A50 !important; font-weight: 600 !important; }
.references-table .ref-row-option .ref-price { color: #091A50 !important; font-weight: 600 !important; }
