    :root {
      --heading-color: #92565D;
      --primary-color:#EB2491;
      --hover:#b80668;
      --third-color:#92565D;
      --secondary-color:#fce3f0;
      --text-color:#333;
      --white:#fff;
    }

    

    .product-detail-main{
      background-color: var(--secondary-color);
    }

   .product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background: var(--white);
  border-radius: 15px;
  /* padding: 40px; */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  /* max-width: 1200px;         */
  margin: 0 auto;
  overflow: hidden;          /* ✅ Hide extra overflow */
}

   .image-section {
  flex: 1;
  min-width: 320px;
  max-width: 100%;           /* ✅ Prevent image overflow */
}

    .main-image {
  width: 100%;
  height: auto;              /* ✅ Allow responsive resizing */
  max-height: 400px;
  border-radius: 20px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

   .thumbnail-container {
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 15px;
  padding-bottom: 10px;
  scrollbar-width: thin;
  max-width: 100%;           /* ✅ Keep thumbnails inside */
}

    .thumbnail-container::-webkit-scrollbar {
      height: 8px;
    }
    .thumbnail-container::-webkit-scrollbar-thumb {
      background: var(--primary-color);
      border-radius: 10px;
    }

   .thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 10px; 
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s ease;
  flex-shrink: 0;
}

    .thumbnail:hover, .thumbnail.active {
      border-color: var(--primary-color);
    }

    .details-section {
      flex: 1;
      min-width: 320px;
      display: flex;
      flex-direction: column;
      gap: .3rem;
      position: relative;
    }

    .product-desc {
      line-height: 1.6;
      margin-bottom: 30px;
    }

    .buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
    }

    .btn {
      background: var(--primary-color);
      color: var(--white);
      border: none;
      padding: 12px 25px;
      border-radius: 25px;
      cursor: pointer;
      font-weight: 500;
      transition: 0.3s;
    }

    .btn:hover {
      background: var(--hover);
    }

    .heart {
  position: absolute;
  top: 0px;
  right: 0px;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--third-color);
  color: var(--white);
  border-radius: 50%;
  border: none;

  cursor: pointer;
  transition: 0.3s ease;

  /* 🔒 CRITICAL FIXES */
  flex: none;
  max-width: 44px;
  min-width: 44px;
  box-sizing: border-box;
  z-index: 10;
}


.heart:hover {
  background: var(--primary-color);
}


    .heart:hover {
      
      background: var(--primary-color);
      
    }

    .tabs {
      margin-top: 40px;
      background: var(--white);
      border-radius: 15px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      overflow: hidden;
    }

    .tab-buttons {
      display: flex;
      border-bottom: 2px solid var(--secondary-color);
      flex-wrap: wrap;
    }

    .tab-buttons button {
      flex: 1;
      padding: 15px;
      background: none;
      border: none;
      font-weight: 600;
      cursor: pointer;
      color: var(--heading-color);
      transition: background 0.3s;
    }

    .tab-buttons button.active {
      background: var(--primary-color);
      color: var(--white);
    }

    .tab-content {
      padding: 20px;
      display: none;
    }
    .tab-content ul{
      list-style-type: none;
    }

    .tab-content.active {
      display: block;
    }

    .toast {
      position: fixed;
      bottom: 30px;
      right: 30px;
      background: var(--primary-color);
      color: white;
      padding: 15px 25px;
      border-radius: 25px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.4s ease;
      z-index: 1000;
    }

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

    .reviews {
      font-size: 1rem;
      color: #777;
      margin-bottom: 10px;
    }

    .stars {
      color: gold;
      margin-right: 5px;
      font-size: 1.2rem;
    }

    .price-section {
      margin: 15px 0;
    }

    .current-price {
      font-size: 2rem;
      color: var(--heading-color);
      font-weight: 600;
    }

    .old-price {
      color: #999;
      text-decoration: line-through;
    }

    .policy-section {
      display: flex;
      gap: 1.5rem;
      flex-direction: column;
      margin-top: 30px;
    }

    .policy-item {
      display: flex;
      align-items: flex-start;
      gap: .5rem;
    }

    .policy-item i {
      font-size: 1.3rem;
      color: var(--primary-color);
    }

    .policy-item div {
      font-size: 0.95rem;
      color: #555;
    }

    .policy-item div small {
      display: block;
      color: #777;
    }

    /* Customization Section */
    .customization-section {
      margin-top: 40px;
      background: var(--white);
      border-radius: 15px;
      padding: 25px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .customization-section h3 {
      color: var(--heading-color);
      margin-bottom: 15px;
    }

    .customization-section textarea, 
    .customization-section input[type="file"] {
      width: 100%;
      padding: 12px;
      border-radius: 10px;
      border: 1.5px solid #ccc;
      margin-bottom: 15px;
      font-size: 0.95rem;
    }

    .customization-section button {
      background: var(--primary-color);
      color: var(--white);
      border: none;
      padding: 10px 25px;
      border-radius: 25px;
      cursor: pointer;
      font-weight: 500;
      transition: 0.3s;
    }

    .customization-section button:hover {
      background: var(--hover);
    }


    .similar-products{
      padding-top: 5px !important;
    }

    .products{
      border-radius: 15px;

    }


  /* WhatsApp Floating Button */
   .whatsapp-btn {
     position: fixed;
      bottom: 100px; 
      right: 35px; 
      background-color: #25D366; 
      text-decoration: none;
      border-radius: 50%; 
      width: 55px; 
      height: 55px; 
      display: flex; 
      align-items: center; 
      justify-content: center; 
      font-size: 28px; 
      box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
      cursor: pointer; 
      z-index: 1000; 
      transition: transform 0.3s ease; 
    }                                                  
    .whatsapp-btn i{
      color: white; 
    }
    .whatsapp-btn:hover {
       transform: scale(1.1); 
      }

.whatsapp-btn:hover {
  transform: scale(1.1);
  background-color: #1ebd5d;
}

    /* Quantity Wrapper Design */
.quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.quantity-wrapper label {
  color: var(--heading-color);
  font-weight: 600;
  font-size: 1rem;
}

.quantity-wrapper select {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--third-color);
  font-size: 0.95rem;
  background-color: var(--secondary-color);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.quantity-wrapper select:hover {
  border-color: var(--primary-color);
  background-color: #fff;
}
.product-title{
    color: var(--black-color);
    font-size: 2.5rem;
    font-weight: bold;
}



.customize-modal {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100vh; /* Full viewport height */
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: flex-start; /* Align from top so scroll works properly */
  z-index: 9999;
  overflow-y: scroll; /* Enable scroll */
  padding: 40px 20px; /* Safe breathing space around modal */
}


    .customize-content {
      background: #fff;
      border-radius: 12px;
      max-width: 900px;   
      width: 100%;
      position: relative;
      padding: 30px;
      box-shadow: 0 5px 20px rgba(0,0,0,0.2);
      animation: fadeIn 0.3s ease;
    }

    .close-btn {
      position: absolute;
      right: 15px;
      top: 10px;
      font-size: 26px;
      cursor: pointer;
      color: #555;
      display: inline-block;
    }

    .customize-container {
      display: flex;
      gap: 30px;
      flex-wrap: wrap;
    }

    .preview-section {
      flex: 1;
      min-width: 280px;
      text-align: center;
    }

    .preview-image {
      width: 100%;
      border-radius: 10px;
      margin: 15px 0;
      border: 1px solid #ddd;
    }

    .note {
      font-size: 0.85rem;
      color: #777;
    }

    .form-section {
      flex: 1;
      min-width: 280px;
    }

    .form-group {
      margin-bottom: 20px;
      display: flex;
      flex-direction: column;
    }

    .form-group label {
      font-weight: 600;
      margin-bottom: 5px;
    }

    .form-group input,
    .form-group textarea {
      padding: 10px;
      border: 1.5px solid #ccc;
      border-radius: 8px;
      font-size: 0.95rem;
    }

    .hint {
      font-size: 0.85rem;
      color: #777;
      margin-bottom: 5px;
    }

    .form-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .form-buttons .btn {
      flex: 1;
      padding: 12px;
      border-radius: 25px;
      background-color: var(--primary-color);
      color: #fff;
      font-weight: 500;
      cursor: pointer;
      transition: 0.3s;
      border: none;
    }

    .form-buttons .btn:hover {
      background-color: var(--hover);
    }

    .add-list {
      background: var(--third-color);
      color: #000;
    }

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

    @media (max-width: 768px) {
      .customize-content {
        padding: 20px;
      }
      .customize-container {
        flex-direction: column;
      }
      .form-buttons {
        flex-direction: column;
      }
    }
    


    /* Wrap container spacing */
.extra-upload-container {
  margin-bottom: 25px;
}

/* Styling for dynamic file inputs */
#extraUploads input {
  width: 100%;
  padding: 10px 12px;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: 0.3s ease;
}

/* Focus effect same as original inputs */
#extraUploads input:focus {
  border-color: #ff4f91;
  outline: none;
  box-shadow: 0 0 5px rgba(255, 79, 145, 0.25);
}

/* Button styling */
.add-upload-btn {
  background: #ff4f91;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.3s ease;
  margin-top: 5px;
  margin-bottom: 20px; /* Requested gap below */
}

/* Hover effect */
.add-upload-btn:hover {
  background: #e24184;
  transform: scale(1.02);
}
.extra-upload-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.extra-upload-input {
  flex: 1;
  padding: 10px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
}

.remove-upload-btn {
  background-color:var(--primary-color);
  color:#fff;
  border: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
   width: auto !important;
  flex: 0 0 auto;
  white-space: nowrap;
}

 


.remove-upload-btn:hover {
  background: #d63b75;
}

#addMoreImagesBtn {
  margin-bottom: 20px;
}






.frame-sizes {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 1.5rem;
}

.frame-sizes label {
    padding: 8px 14px;
    border: 1px solid var(--third-color);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
}

.frame-sizes input[type="radio"] {
    display: none;
}

/* Highlight selected option */
.frame-sizes input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--third-color);
}



   /* Responsive Design */
/* ============================ */
/* ✅ Responsive Fix at ≤1025px */
/* ============================ */
@media (max-width: 1025px) {
  .product-container {
    flex-direction: column;
    padding: 25px;
    gap: 25px;
  }

  .image-section {
    width: 100%;
  }

  .main-image {
    width: 100%;
    height: auto;
    max-height: 350px;
  }

  .thumbnail-container {
    justify-content: center;
    overflow-x: auto;
    max-width: 100%;
  }

  .details-section {
    width: 100%;
    gap: 0.6rem;
  }
}

/* ✅ Optional refinement at ≤768px */
/* @media (max-width: 768px) {
  .main-image {
    max-height: 300px;
  }
} */

@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
    padding: 12px !important;
    gap: 20px;
  }

  .main-image {
    height: 300px;
  }

  .buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .policy-section {
    flex-direction: column;
    gap: 1rem;
  }

  .customization-section {
    padding: 20px;
  }

  .quantity-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .quantity-wrapper label {
    font-size: 0.95rem;
  }

  .quantity-wrapper select {
    width: 100%;
  }
}

/* ✅ Full mobile optimization at ≤480px */
@media (max-width: 480px) {
  .product-container {
    padding: 8px !important;
    gap: 15px;
    border-radius: 12px;
    width: 100%;
  }

  .image-section {
    min-width: 100%;
  }

  .main-image {
    max-height: 260px;
    border-radius: 12px;
  }

  .thumbnail-container {
    gap: 6px;
    padding-bottom: 5px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }

  .details-section {
    width: 100%;
    padding: 0 10px;
    text-align: center;
  }

  .details-section h1 {
    font-size: 1.2rem;
  }

  .details-section p {
    font-size: 0.9rem;
  }

  .price {
    font-size: 1.1rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .btn {
    width: 100%;
    padding: 10px 0;
    font-size: 0.9rem;
    justify-content: center;
  }
}


/* @media (max-width: 450px) {
  .heart {
     position: absolute;
    right: 0px;
    top: 22rem !important;
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
  }
} */


/* ✅ FIX MODAL RESPONSIVENESS BELOW 460px */
@media (max-width: 460px) {

  .customize-modal {
    padding: 15px 10px;
    overflow-x: hidden;
  }

  .customize-content {
    padding: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .customize-container {
    flex-direction: column;
    gap: 20px;
  }

  /* 🔥 CRITICAL FIX */
  .preview-section,
  .form-section {
    min-width: 0;
    width: 100%;
  }

  .preview-image {
    max-height: 220px;
    object-fit: contain;
  }

  .close-btn {
    top: 8px;
    right: 8px;
    font-size: 22px;
  }

  .form-buttons {
    flex-direction: column;
  }

  .form-buttons .btn {
    width: 100%;
  }
}


   



@media (max-width: 350px) {
  .heart {
    width: 36px;
    height: 36px;
    top: 10px;
    right: 10px;
    font-size: 0.95rem;
  }
}



/* ======================================
   ULTRA MOBILE FIX (≤450px)
====================================== */
@media (max-width: 450px) {

  /* Prevent horizontal overflow globally */
  html, body {
    overflow-x: hidden;
  }

  /* Product container */
  .product-container {
    padding: 8px;
    gap: 12px;
    border-radius: 12px;
    width: 100%;
  }

  /* REMOVE MIN-WIDTH CAUSE */
  .image-section,
  .details-section {
    min-width: 0 !important;
    width: 100%;
  }

  /* Main image */
  .main-image {
    max-height: 220px;
    border-radius: 12px;
  }

  /* Thumbnails */
  .thumbnail-container {
    gap: 6px;
    padding-bottom: 5px;
  }

  .thumbnail {
    width: 55px;
    height: 55px;
  }

  /* Heart button FIX */
  .heart {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    top: 6.5rem;
    right: 1rem;
  }

  /* Product title */
  .product-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  /* Price */
  .current-price {
    font-size: 1.4rem;
  }

  /* Description text */
  .product-desc {
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 15px;
  }

  /* Buttons */
  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 20px;
  }

  /* Quantity section */
  .quantity-wrapper {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .quantity-wrapper select {
    width: 100%;
  }

  /* Policies */
  .policy-section {
    gap: 0.8rem;
  }

  .policy-item div {
    font-size: 0.85rem;
  }

  /* Tabs */
  .tabs {
    margin-top: 25px;
  }

  .tab-buttons button {
    padding: 10px;
    font-size: 0.85rem;
  }

  .tab-content {
    padding: 12px;
    font-size: 0.85rem;
  }

  /* Customization section */
  .customization-section {
    padding: 15px;
  }

  .customization-section textarea,
  .customization-section input {
    font-size: 0.85rem;
    padding: 10px;
  }

  /* WhatsApp button */
  .whatsapp-btn {
    width: 45px;
    height: 45px;
    font-size: 22px;
    right: 15px;
    bottom: 80px;
  }
}

/* ======================================
   EXTREME SMALL DEVICES (≤320px)
====================================== */
@media (max-width: 320px) {

  .product-title {
    font-size: .7rem;
  }

  .current-price {
    font-size: 1.2rem;
  }

  .thumbnail {
    width: 48px;
    height: 48px;
  }

  .btn {
    font-size: 0.85rem;
    padding: 9px;
  }

  .policy-item div {
    font-size: 0.8rem;
  }
}
