/* Root container */
  .hp-root {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #1f2937;
    width: 100%;
    box-sizing: border-box;
  }

  main.hp-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    box-sizing: border-box;
  }

  h1.hp-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
  }

  /* Toggle button for mobile */
  button.hp-filter-toggle {
    display: none;
    background: #4f46e5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 24px;
    width: 100%;
    max-width: 300px;
  }
  button.hp-filter-toggle:focus {
    outline: 3px solid #a5b4fc;
    outline-offset: 2px;
  }

  /* Layout grid for desktop */
  .hp-content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
  }

  aside.hp-filter-panel {
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    height: calc(100vh - 140px);
    overflow-y: auto;
    position: sticky;
    top: 110px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Hidden by default on mobile */
  aside.hp-filter-panel.hidden {
    transform: translateX(-110%);
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 280px;
    height: calc(100vh - 80px);
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  }

  .hp-filter-section {
    margin-bottom: 32px;
  }

  .hp-filter-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #4f46e5;
  }

  .hp-filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hp-filter-list label {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: #334155;
    background: #e0e7ff;
    padding: 8px 14px;
    border-radius: 12px;
    user-select: none;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
  }

  .hp-filter-list input[type="checkbox"],
  .hp-filter-list input[type="radio"] {
    display: none;
  }

  .hp-filter-list input[type="checkbox"]:checked + label,
  .hp-filter-list input[type="radio"]:checked + label {
    background: #4f46e5;
    color: white;
    border-color: #4338ca;
  }

  div.hp-filter-picture {
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.15);
  }
  div.hp-filter-picture img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 150px;
    border-radius: 16px;
  }

  section.hp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
    gap: 32px;
  }

  .hp-product-card {
    border-radius: 16px;
    box-shadow:
      0 8px 20px rgb(124 58 237 / 0.1);
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
  }

  .hp-product-card:hover {
    box-shadow:
      0 16px 36px rgb(124 58 237 / 0.25);
    transform: translateY(-6px);
  }

  .hp-product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  .hp-product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
    border-radius: 16px 16px 0 0;
  }
  .hp-product-image.secondary {
    opacity: 0;
    pointer-events: none;
  }
  .hp-product-card:hover .hp-product-image.primary {
    opacity: 0;
  }
  .hp-product-card:hover .hp-product-image.secondary {
    opacity: 1;
  }

  .hp-product-info {
    padding: auto;
    margin: 10px;
    display: block;
    line-height: 0.8;
  }

  .hp-product-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: #4b5563;
  }

  .hp-product-price {
    font-weight: 600;
    font-size: 1rem;
    color: #6b7280;
  }

  /* Overlay background when filter open on mobile */
  .hp-overlay {
    display: none;
  }
  .hp-overlay.active {
    display: block;
    position: relative;
    inset: 0;
    z-index: 2000;
    transition: opacity 0.3s ease;
  }

  /* filter button */
  .filter-button {
            --ripple-color: rgba(255, 255, 255, 0.5);
            position: relative;
            display: inline-block;
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            width: 90%;
            max-width: 300px;
            font-weight: 600;
            font-size: 0.95rem;
            text-transform: capitalize;
            color: #1e293b;
            background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
            box-shadow: 
                0 2px 4px rgba(0, 0, 0, 0.05),
                0 1px 2px rgba(0, 0, 0, 0.1),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            overflow: hidden;
            z-index: 1;
        }
        
        /* Button hover effects */
        .filter-button:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 4px 6px rgba(0, 0, 0, 0.1),
                0 2px 4px rgba(0, 0, 0, 0.06),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
            color: #b5b2f3;
        }
          

  /* Responsive */
  @media (max-width: 992px) {
    .hp-content-wrapper {
      display: block;
    }
    aside.hp-filter-panel {
      position: fixed;
      top: 80px;
      left: 0;
      width: 280px;
      height: calc(100vh - 80px);
      box-shadow: 4px 0 20px rgba(0,0,0,0.3);
      background: #f8fafc;
      padding: 24px;
      border-radius: 0 0 30px 0;
      transform: translateX(-110%);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.3s ease, opacity 0.3s ease;
      z-index: 1000;
    }
    aside.hp-filter-panel.active {
      transform: translateX(0);
      opacity: 1;
      pointer-events: auto;
    }
    button.hp-filter-toggle {
      display: block;
      margin: 0 auto 20px auto;
    }
  }

  /* product details page css */

  /* Unique container to avoid body conflicts */
    #product-details-root {
      font-family: 'Inter', sans-serif;
      background: #f9fafb;
      color: #1f2937;
      min-height: 100vh;
      padding: 32px;
      display: flex;
      justify-content: center;
      flex-direction: column;
      align-items: center;
    }
    #product-details-root .product-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      max-width: 100%;
      background: #fff;
      box-shadow: 0 10px 30px rgba(0,0,0,0.05);
      border-radius: 16px;
      overflow: hidden;
      gap: 40px;
      width: 100%;
    }
    @media (max-width: 768px) {
      #product-details-root .product-container {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 0;
      }
      #product-details-root {
        margin: 0 !important;
        padding: 0 !important;
        padding-left: 0 !important;
      }
    }
    #product-details-root .gallery {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
    }
    #product-details-root .main-image-container {
      width: 100%;
      height: 500px;
      overflow: hidden;
      border-radius: 10px;
      position: relative;
      box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
    }
    #product-details-root .main-image-container img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      transition: transform 0.3s ease;
    }
    #product-details-root .main-image-container:hover img {
      transform: scale(1.5);
      cursor: zoom-in;
    }
    #product-details-root .sub-images {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding-bottom: 5px;
    }
    #product-details-root .sub-image {
      width: 80px;
      height: 80px;
      border-radius: 12px;
      border: 2px solid transparent;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
      overflow: hidden;
      flex-shrink: 0;
      transition: border-color 0.3s ease;
    }
    #product-details-root .sub-image.selected {
      border-color: #7c3aed;
    }
    #product-details-root .sub-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    #product-details-root .description {
      padding: 24px 32px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    #product-details-root .description h1 {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 16px;
      color: #4b5563;
    }
    #product-details-root .description p {
      font-size: 1.1rem;
      color: #6b7280;
      white-space: pre-line;
      line-height: 1.6;
    }
    #product-details-root .hero-section {
      max-width: 100%;
      width: 100%;
      margin-top: 48px;
    }
    #product-details-root .hero-image {
      width: 100%;
      height: 750px;
      overflow: hidden;
      padding: 0;
      
      box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
      position: relative;
      cursor: pointer;
      transition: transform 0.3s ease;
    }
    #product-details-root .hero-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
     
    }
    #product-details-root .hero-image:hover,
    #product-details-root .hero-image:focus {
      outline: none;
      transform: translateY(-6px);
    }
    #product-details-root .hero-image:hover img,
    #product-details-root .hero-image:focus img {
      transform: scale(1.05);
    }
    @media (max-width: 768px) {
      #product-details-root .hero-section {
        display: flex;
        flex-direction: column;
        margin-top: 32px;
      }
      #product-details-root .hero-image {
        height: 250px;
        object-fit: cover;
      }
    }

    /* review css  for product details page*/
    .review-main {
            font-family: 'Inter', sans-serif;
            background: #f9fafb;
            color: #1f2937;
            padding: 32px;
            display: flex;
            justify-content: center;
            min-height: 100vh;
        }
        .review-slider {
            width: 100%;
            max-width: 100%;
            position: relative;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            overflow: hidden;
            height: 420px;
        }
        .slides-container {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.5s ease-in-out;
        }
        .review-card {
            flex: 0 0 100%;
            display: flex;
            align-items: center;
            gap: 24px;
            padding: 14px;
            box-sizing: border-box;
            user-select: none;
        }
        .product-image {
            flex: 0 0 220px;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 6px 20px rgba(124,58,237,0.2);
        }
        .product-image img {
            width: 100%;
            display: block;
            aspect-ratio: 4 / 3;
            object-fit: cover;
        }
        .review-content {
            flex: 1;
            min-width: 300px;
        }
        .review-chart {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
        }
        .stars {
            display: flex;
            color: #fbbf24;
            font-size: 28px;
        }
        .stars span {
            margin-right: 4px;
        }
        .rating-percent {
            font-weight: 700;
            font-size: 1.25rem;
            color: #4b5563;
            min-width: 48px;
            text-align: center;
        }
        .progress-bar {
            flex: 1;
            height: 12px;
            background: #e0e7ff;
            border-radius: 6px;
            overflow: hidden;
        }
        .progress-fill {
            height: 100%;
            background: linear-gradient(135deg, #7c3aed, #06b6d4);
            border-radius: 6px 0 0 6px;
        }
        .review-text {
            font-size: 1rem;
            color: #374151;
            line-height: 1.5;
        }
        /* Navigation buttons */
        .nav-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(55, 140, 164, 0.8);
            border: none;
            border-radius: 50%;
            color: white;
            width: 44px;
            height: 44px;
            cursor: pointer;
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s ease;
            user-select: none;
            z-index: 10;
        }
        .nav-button:hover,
        .nav-button:focus {
            background: #245d8c;
            outline: none;
        }
        .nav-prev {
            left: 12px;
        }
        .nav-next {
            right: 12px;
        }
        @media (max-width: 768px) {
            .review-card {
                flex-direction: column;
                height: 100%;
            }
            .product-image {
                width: 100%;
                height: 200px;
            }
            .review-content {
                width: 100%;
                margin-top: 16px;
            }
        }
