   body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: #ffffff;
            color: #222;
        }

   .page-wrapper{
  max-width: 100%;
  margin: 20px;
  padding: 0 16px 40px;  
}
         .product-layout {
            display: flex;
            gap: 32px;
            align-items: flex-start;
        }
          /* <!-- product image  --> */
        .product-gallery {
          
            flex: 0 0 45%;
            min-width: 320px;
            position: sticky;
           
            top: 40px;            
            align-self: flex-start;
        } 
        .main-image {
            width: 100%;
            height: 380px; 
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #e0e0e0;
        }

        .main-image img {
            width: 100%;
            height: 100%;
            object-fit:contain;  
            display: block;
    

        } 
         .main-image img:hover
         {
              transform: scale(1.04);
         }
    .Small-img-row {
            display: flex;
            gap: 16px;
            margin-top: 20px;
             padding:5px;
            flex-wrap: wrap;
        }

        .Small-img-row img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
            border: 1px solid #dddddd;
            cursor: pointer;
            padding:5px;
            /* opacity: 0.7;
            transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.1s ease; */
        } 
        .Small-img-row img:hover
        {
             transform: translateY(-2px);
        }
         .Small-img-row img.active {
            opacity: 1;
            border-color: #111111;
            transform: scale(1.02);
        }
        
.size-selector {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* hide default radio */
.size-p input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

/* size button */
.size-p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width:80px;
  /* min-width: 56px; */
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.12s ease, background 0.12s ease;
}

.size-p:hover {
  transform: translateY(-2px);
}


.size-p:has(input[type="radio"]:checked) {
  background: #ff7a00;
  color: #fff;
  border-color: #ff7a00;
}

  .product-main-info {
    
      margin-top: 12px;
  }

  .product-main-title {
      font-size: 20px;
      font-weight: 700;
      color: #222;
  }

  .product-main-desc {
      font-size: 14px;
      color: #666;
      
  }
        /* right column peoduct info + shop info */
       .right-column {
            flex: 1 1 55%;
            min-width: 360px;
           
        }
        /* product info */
        .top-row {
            display: flex;
            gap: 32px;
            align-items: flex-start;
        }

        .product-info {
            flex: 1 1 60%;
        }

        .product-title {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .product-subtitle {
            font-size: 14px;
            color: #777;
            margin-bottom: 10px;
        }
         .rating-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            font-size: 14px;
        }

        .rating-stars {
            color: #f5a623;
        }
         .price-row {
            display: flex;
            align-items: baseline;
            gap: 10px;
            margin-bottom: 10px;
        }

        .price-row .current-price {
            font-size: 22px;
            font-weight: 700;
        }

        .old-price {
            font-size: 14px;
            color: #888;
            text-decoration: line-through;
        }

         .discount-tag {
            font-size: 13px;
            color: #0a8a1f;
            font-weight: 600;
        }
         .tax-info {
            font-size: 12px;
            color: #777;
            margin-bottom: 14px;
        }

              
        .availability-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 8px 0;
            font-size: 15px;
            font-weight: 600;
           
        }


      .availability-row.in-stock{
        color:#08c46c;
      }
      .availability-row.in-stock i{
        color:#08c46c;
      }



        .quantity-row {
            margin: 6px 0 16px;
            font-size: 14px;
            color: #333;
        }

        .quantity-row i {
            width: 18px;
            text-align: center;
            margin-right: 6px;
        }

         .action-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .btn {
           width:100px;
            border: none;
            padding: 10px 18px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .buynow-btn {
            background: #ff7a00;
            color: #ffffff;
        }

        .maan-cartbtn .buynow-btn {
            background: transparent;
            color: #ff7a00;
            border: 1px solid #111111;
        }

        .icon-btn {
             width: 40px;
            height: 40px;
            border-radius: 999px;
            border: 1px solid #dddddd;
            background: transparent;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
           
        }

        .icon-btn.wishlist i {
            color: #e23b3b;

        }
/* shop details */
         .shop-info-card {
            flex: 0 0 40%;
            font-size: 14px;
             padding-left:12px;
        }

        .shop-info-card h3 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 10px;
           
            align-items: center;
            gap: 8px;
        }
       

        .shop-info-card p {

            margin-bottom: 6px;
           
            align-items: center;
            gap: 8px;
        }


        .shop-info-card i {
            width: 18px;
            text-align: center;
        }

        .visit-store-btn {
            margin-top: 18px;
            width: 100%;
            border-radius: 10px;
            border: none;
            padding: 12px 16px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            background: #f4d1d4;     
            color: #ff7a00;        
        }

        .visit-store-btn:hover {
            background: #ff7a00;     
            color: #ffffff;
        }
        /* <!--Terms & Condition--> */
        .shop-terms h4{
            margin-top: 10px;
            font-size: 13px;
            color: #444;
        }

        .shop-terms .term-line {
            margin-bottom: 6px;
        }

        .more-terms {
            display: none;      
            margin-bottom: 8px;
        }

        .terms-btn {
            border: none;
            background: none;
            color: #0073ff;      
            font-size: 13px;
            padding: 0;
            cursor: pointer;
        }

         /* SHOP RELATED PRODUCTS */

        .shop-related {
            margin-top: 26px;
           
        }

        .shop-related h2 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .shop-related-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
        }
        

        .shop-card {
            border: 1px solid #e5e5e5; 
            border-radius: 12px;
            padding: 10px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            
        }
         .shop-card:hover{
          transform: scale(1.02);
         }

      .shop-card img {
        width: 100%;
        height: 100px;         
        object-fit: contain;   
              
        background: #fff;      
        border-radius: 10px;
    }
     /* .shop-card img:hover{
            transform: scale(1.02);

         } */

        .shop-card-title {
            
            font-size: 14px;
            font-weight: 600;
        }

        .shop-card-price {
            font-size: 16px;
            font-weight: 700;
        }

        .shop-related-grid-wrapper {
    overflow-y: auto;         
    -webkit-overflow-scrolling: touch;
    padding-right: 8px;       
    box-sizing: border-box;
    height:500px;
}


.shop-related-grid-wrapper::-webkit-scrollbar {
    width: 8px;
}
.shop-related-grid-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 6px;
}
.shop-related-grid-wrapper::-webkit-scrollbar-thumb:hover
{
     background:  rgba(0,0,0,0.40);
}

/* similar product */
    
 .section-divider {
            margin: 28px 0 20px;
            border: none;
            border-top: 1px solid #e0e0e0;
        }

        .similar-products h2 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .similar-list {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .similar-item {
            display: flex;
            gap: 10px;
            align-items: center;
            font-size: 14px;
            flex: 1 1 220px;
        }

        .similar-item img {
            width: 70px;
            height: 70px;
            border-radius: 10px;
            object-fit: cover;
            border: 1px solid #dddddd;
        }

        .similar-name {
            font-weight: 600;
            margin-bottom: 4px;
        }

        .similar-price {
            font-size: 13px;
            margin-bottom: 6px;
        }

        .small-btn {
            border: 1px solid #111111;
            background: transparent;
            border-radius: 999px;
            padding: 4px 10px;
            font-size: 12px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

/* similar-products-grid styles */
.similar-products-grid {
  margin-top: 28px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}


.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}


.prod-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  transition: transform .12s ease, border-color .12s ease;
  height: 100%;
  box-sizing: border-box; 
}


.prod-card:hover {
  transform: translateY(-4px);
  border-color: #e0e0e0;
}


.prod-img {
  width: 100%;
  height: 140px;            
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  
}

.prod-img img {
  max-width: 85%;
  max-height: 100%;
  object-fit: contain;      
  display: block;
   border-radius: 5px;
}


.prod-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prod-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #111;
  min-height: 34px; 
}

.prod-price {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prod-price .old {
  font-weight: 400;
  font-size: 13px;
  color: #888;
  text-decoration: line-through;
}

.prod-price .off {
  color: #0a8a1f;
  font-weight: 600;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .page-wrapper { padding: 0 14px 32px; max-width: 1000px; }
  .product-layout { gap: 24px; }

  .product-gallery { flex: 0 0 48%; min-width: 300px; top: 30px; }
  .right-column { min-width: 300px; }

  .main-image { height: 360px; }

  .Small-img-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    flex-wrap: nowrap;
  }

  .shop-related-grid { 
    gap: 14px; 
    grid-template-columns: repeat(3, minmax(0,1fr)); 
  }

  .similar-products-grid .grid { 
    grid-template-columns: repeat(3, minmax(0,1fr)); 
  }
}

@media (max-width: 768px) {
  .page-wrapper { padding: 0 12px 28px; max-width: 920px; margin: 18px auto; }

  .product-layout { flex-direction: column; gap: 18px; align-items: stretch; }

  .product-gallery {
    position: static;
    top: auto;
    flex: 0 0 auto;
    min-width: 0;
    align-self: stretch;
  }

  .main-image { height: 420px; }

  .Small-img-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    
    flex-wrap: nowrap;
  }

  .Small-img-row img { flex: 0 0 auto; }

  .right-column { width: 100%; min-width: 0; }

  .top-row { flex-direction: column; gap: 14px; }
  .product-info { order: 1; width:100%; }
  .shop-info-card { order: 2; width: 100%; flex: 0 0 auto; }

  .shop-related-grid {
    grid-template-columns: repeat(3, minmax(0,1fr)); 
    gap: 12px; 
  }

  .shop-related-grid-wrapper { 
    height: auto; 
    max-height: none; 
    overflow: visible; 
    padding-right: 0; 
  }
}

@media (max-width: 480px) {
  .page-wrapper { padding: 0 12px 20px; margin: 12px auto; }
  .product-layout { gap: 14px; }

  .product-gallery { position: static; top: auto; align-self: stretch; }
  .main-image { height: 220px; border-radius: 10px; }

  .Small-img-row { 
    display: flex; 
    gap: 12px; 
    overflow-x: auto; 
    padding-bottom: 6px; 
    flex-wrap: nowrap; 
  }
  

  .Small-img-row img { width: 68px; height: 68px; flex: 0 0 auto; }

  .right-column { width: 100%; padding: 0; }

  .top-row { flex-direction: column; gap: 12px; }

  .product-title { font-size: 18px; }
  .product-subtitle { font-size: 13px; }
  .price-row .current-price { font-size: 20px; }

  .visit-store-btn { width: 100%; }

  .shop-related-grid,
  .similar-products-grid .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .shop-card img { height: 100px; object-fit: contain; }

  .prod-img { height: 100px; }
  .prod-img img { max-width: 80%; max-height: 100%; }

  .shop-card { padding: 8px; }
  .prod-card { padding: 10px; }

  .shop-related-grid-wrapper {
      height: 340px;
      overflow-y: auto;
      padding-right: 6px;
  }
}

@media (max-width: 360px) {
  .main-image { height: 280px; }
  .Small-img-row img { width: 60px; height: 60px; }

  .shop-related-grid,
  .similar-products-grid .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .shop-card img,
  .prod-img { height: 90px; }

  .product-title { font-size: 16px; }
}


@media (max-width: 768px) {
  .btn, .visit-store-btn, .icon-btn { 
    touch-action: manipulation; 
    -webkit-tap-highlight-color: rgba(0,0,0,0.05); 
  }
  .icon-btn { width: 44px; height: 44px; }
}

@media (hover: none) {
  .main-image img:hover,
  .Small-img-row img:hover,
  .shop-card img:hover,
  .prod-card:hover { transform: none; }
}

@media screen and (max-width: 450px) and (min-width: 375px) {

    .shop-related-grid-wrapper {
        height: 450px !important;
        max-height: 450px !important;
        overflow-y: auto !important;
        padding-right: 6px !important;
    }

    .shop-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}
