/* GHARELEC — product detail page styles — auto-extracted, shared & cached across pages */



    /* Arabic text RTL for content sections only */
    .content-section.ar .section-text {
      direction: rtl;
      text-align: right;
      font-family: 'Montserrat', 'Arial', sans-serif;
    }



    .content-section.ar .section-title {
      direction: rtl;
      text-align: right;
    }



    .content-section.ar .section-icon {
      direction: rtl;
    }



    .hamburger span {
      display: block;
      width: 100%;
      height: 2.8px;
      background: #4A1A1A;
      border-radius: 10px;
      transition: all .3s;
      transform-origin: center;
    }



    .hamburger.active span:nth-child(1) {
      transform: translateY(10.5px) rotate(45deg);
      background: #D62828;
    }


    .hamburger.active span:nth-child(3) {
      transform: translateY(-10.5px) rotate(-45deg);
      background: #D62828;
    }



    .mobile-overlay .btn-cta-mobile {
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 1.2rem;
      background: linear-gradient(145deg, #D62828, #B71C1C);
      color: #fff;
      padding: 16px 32px;
      border-radius: 60px;
      text-align: center;
      text-decoration: none;
      box-shadow: 0 8px 22px -6px rgba(214, 40, 40, 0.3);
      transition: all .3s;
      width: fit-content;
      min-width: 180px;
      border: 2px solid #ffffff;
    }



    /* ===== PAGE WRAPPER ===== */
    .page-wrapper {
      max-width: 1400px;
      margin: 0 auto;
      padding: 120px 4% 60px;
      position: relative;
      z-index: 1;
    }



    .section-header {
      text-align: center;
      margin-bottom: 30px;
      opacity: 0;
      transform: translateY(30px);
      animation: headerFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      animation-delay: 0.2s;
    }



    @keyframes headerFadeIn {
      0% { opacity: 0; transform: translateY(30px); }
      100% { opacity: 1; transform: translateY(0); }
    }



    .section-header .header-category {
      font-family: 'Montserrat', sans-serif;
      font-weight: 300;
      font-size: clamp(0.8rem, 1.2vw, 1.2rem);
      color: #4a3728;
      text-transform: uppercase;
      letter-spacing: 8px;
      display: block;
      margin-bottom: 6px;
    }



    .section-header .header-divider {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      margin-top: 16px;
    }



    /* ===== CONTENT SECTIONS ===== */
    .content-sections {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
      margin-bottom: 50px;
      margin-top: 10px;
    }



    .content-section {
      background: rgba(255, 255, 255, 0.5);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-radius: 24px;
      padding: 35px 30px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.08);
      opacity: 0;
      transform: translateY(40px);
      transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }



    .content-section.visible {
      opacity: 1;
      transform: translateY(0);
    }



    .content-section .section-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: rgba(214, 40, 40, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
      font-size: 1.4rem;
      color: #D62828;
    }



    .content-section .section-title {
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: clamp(1.2rem, 1.8vw, 1.8rem);
      color: #1e1a15;
      margin-bottom: 12px;
      letter-spacing: 1px;
    }



    .content-section .section-text {
      font-family: 'Montserrat', sans-serif;
      font-weight: 400;
      font-size: clamp(0.9rem, 1.1vw, 1.05rem);
      line-height: 1.9;
      color: #3d3529;
    }



    .content-section .section-text p {
      margin-bottom: 12px;
    }



    .content-section .section-text p:last-child {
      margin-bottom: 0;
    }



    /* ===== PRODUCTS GRID ===== */
    .products-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
      margin-top: 10px;
    }



    .product-card.visible {
      opacity: 1;
      transform: translateY(0) scale(1);
    }



    .product-card:hover {
      transform: translateY(-6px) scale(1.01);
      box-shadow: 0 20px 60px -15px rgba(231, 208, 175, 0.4);
      border-color: rgba(231, 208, 175, 0.6);
    }



    .product-card.visible:hover {
      transform: translateY(-6px) scale(1.01);
    }



    .product-slideshow .product-track {
      display: flex;
      width: 100%;
      height: 100%;
      transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      will-change: transform;
    }



    .product-card .product-dots {
      position: absolute;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
      z-index: 5;
    }



    .product-card .product-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.4);
      border: 1.5px solid rgba(255, 255, 255, 0.2);
      cursor: pointer;
      transition: all 0.3s ease;
      padding: 0;
      pointer-events: auto;
    }



    .product-card .product-dot:hover {
      background: rgba(196, 168, 132, 0.7);
    }



    .product-card .product-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.15) 100%);
      z-index: 2;
      pointer-events: none;
      transition: all 0.5s ease;
    }



    .product-card:hover .product-overlay {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.02) 50%, rgba(0, 0, 0, 0.08) 100%);
    }



    .product-card .product-info {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 20px 24px 24px;
      z-index: 3;
      background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.2) 100%);
    }



    .product-card:hover .product-info .product-accent {
      width: 70px;
    }



    .product-card .product-click-hint {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #e16b10;
      font-size: 1rem;
      z-index: 4;
      transition: all 0.5s ease;
      opacity: 0;
      transform: translateX(8px) scale(0.8);
      pointer-events: none;
    }



    .product-card:hover .product-click-hint {
      opacity: 1;
      transform: translateX(0) scale(1);
    }



    /* ===== PRODUCT MODAL ===== */
    .product-modal {
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: rgba(245, 237, 228, 0.95);
      backdrop-filter: blur(30px);
      -webkit-backdrop-filter: blur(30px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 40px 20px;
      opacity: 0;
      transition: opacity 0.5s ease;
    }



    .product-modal.active {
      display: flex;
      opacity: 1;
    }



    .product-modal .modal-overlay {
      position: absolute;
      inset: 0;
      cursor: pointer;
      z-index: 1;
    }



    .product-modal .modal-content {
      position: relative;
      z-index: 2;
      max-width: 1000px;
      width: 100%;
      height: 85vh;
      max-height: 750px;
      min-height: 500px;
      background: #ffffff;
      border: 1px solid rgba(231, 208, 175, 0.3);
      border-radius: 28px;
      overflow: hidden;
      transform: scale(0.9) translateY(30px);
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
      outline: none;
    }



    .product-modal.active .modal-content {
      transform: scale(1) translateY(0);
    }



    .product-modal .modal-close:hover {
      background: rgba(231, 208, 175, 0.5);
      border-color: rgba(231, 208, 175, 0.4);
      transform: rotate(90deg) scale(1.1);
    }



    .product-modal .modal-body {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      height: 100%;
      max-height: 100%;
    }



    .product-modal .modal-image-section .modal-slideshow {
      width: 100%;
      height: 100%;
      position: relative;
      overflow: hidden;
      touch-action: pan-y;
    }



    .product-modal .modal-image-section .modal-track {
      display: flex;
      width: 100%;
      height: 100%;
      transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }



    .product-modal .modal-image-section .modal-dots {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
      z-index: 5;
    }



    .product-modal .modal-info-section {
      padding: 35px 30px;
      display: flex;
      flex-direction: column;
      background: #ffffff;
      overflow-y: auto;
      height: 100%;
    }



    .product-modal .modal-info-section .modal-category {
      font-family: 'Montserrat', sans-serif;
      font-weight: 300;
      font-size: 0.7rem;
      color: #4a3728;
      text-transform: uppercase;
      letter-spacing: 6px;
      margin-bottom: 6px;
    }



    .product-modal .modal-info-section .modal-name {
      font-family: 'Montserrat', sans-serif;
      font-weight: 900;
      font-size: clamp(1.6rem, 3vw, 2.6rem);
      color: #000000;
      line-height: 1.2;
      margin-bottom: 10px;
    }



    .product-modal .modal-info-section .modal-divider {
      width: 50px;
      height: 3px;
      background: red;
      border-radius: 3px;
      margin-bottom: 16px;
    }



    .product-modal .specs-container {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 16px;
      flex: 1;
    }



    .product-modal .specs-container .spec-group {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      padding: 4px 0;
      border-bottom: 1px solid rgba(74, 55, 40, 0.08);
    }



    .product-modal .specs-container .spec-group:last-child {
      border-bottom: none;
    }



    .product-modal .specs-container .spec-label {
      font-family: 'Montserrat', sans-serif;
      font-weight: 600;
      font-size: 0.7rem;
      color: #263ac7;
      text-transform: uppercase;
      letter-spacing: 1px;
      min-width: 120px;
      flex-shrink: 0;
    }



    .product-modal .specs-container .spec-value {
      font-family: 'Montserrat', sans-serif;
      font-weight: 300;
      font-size: 0.85rem;
      color: #af0000;
      line-height: 1.6;
    }



    .product-modal .modal-features {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 4px;
    }



    .product-modal .modal-features .modal-feature {
      font-family: 'Montserrat', sans-serif;
      font-weight: 400;
      font-size: 0.7rem;
      color: #4a3728;
      background: rgba(231, 208, 175, 0.3);
      border: 1px solid rgba(231, 208, 175, 0.2);
      padding: 5px 14px;
      border-radius: 20px;
      letter-spacing: 1px;
      transition: all 0.3s ease;
    }



    .product-modal .modal-features .modal-feature:hover {
      background: rgba(231, 208, 175, 0.5);
      border-color: rgba(231, 208, 175, 0.4);
      transform: translateY(-2px);
    }



    @media screen and (max-width: 1024px) {
      .page-wrapper { padding: 110px 3% 40px; }
      .products-grid { gap: 24px; }
      .product-slideshow { height: 340px; }
      .content-sections { gap: 20px; }
      .content-section { padding: 28px 24px; }
      
      .product-modal .modal-content {
        height: 80vh;
        max-height: 650px;
        min-height: 450px;
      }
      .product-modal .modal-body { grid-template-columns: 1fr; }
      .product-modal .modal-image-section { min-height: 300px; max-height: 350px; }
      .product-modal .modal-info-section { padding: 24px 24px; height: auto; }
      .product-modal .specs-container .spec-label { min-width: 100px; font-size: 0.65rem; }
    }
