.product-page {
    padding: 40px 20px;
    background-color: #fff;
  }
  
  .product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    align-items: flex-start;
  }
  
  /* ======================== Image Gallery ======================== */
  .image-gallery {
    flex: 1;
    display: flex;
    gap: 20px;
  }
  
  .thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .thumbnail-list img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
  }
  
  .thumbnail-list img:hover {
    border-color: #ccc;
  }
  
  .main-image img {
    width: 400px;
    max-width: 100%;
    border-radius: 8px;
  }
  
  /* ======================== Product Details ======================== */
  .product-details {
    flex: 1;
    min-width: 300px;
  }
  
  .product-details h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .price {
    font-size: 22px;
    margin: 10px 0;
    color: #333;
  }
  
  .tax {
    font-size: 14px;
    color: #777;
    display: block;
  }
  
  .desc {
    margin: 20px 0;
    line-height: 1.6;
    color: #444;
  }
  
  /* ======================== Size and Quantity ======================== */
  
  .quantity-select {
    margin: 20px 0;
  }
  
  .size-select {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }
  
  .size-select span {
    flex: 1 1 100%;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .size {
    padding: 6px 14px;
    border: 1px solid #aaa;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
    font-size: 14px;
  }
  
  .size.selected {
    background-color: #000;
    color: #fff;
  }
  
  /* Optional: Add media queries for better mobile scaling */
  @media (max-width: 600px) {
    .size {
      flex: 1 1 calc(33.333% - 10px);
      font-size: 13px;
      padding: 8px;
    }
  
    .size-select {
      gap: 8px;
    }
  }
  
  
  .quantity-select button {
    padding: 4px 12px;
    font-size: 18px;
    margin: 0 8px;
    border: 1px solid #aaa;
    background: #f9f9f9;
    cursor: pointer;
  }
  
  .sold-out {
    width: 100%;
    padding: 12px;
    background: #ccc;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: not-allowed;
    font-size: 16px;
    margin-top: 20px;
  }
 
  .buy-now {
    background-color: #000;
    width: 100%;
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .buy-now:hover {
    background-color: #121212; /* smooth dark black */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* soft black glow */
    transform: translateY(-3px) scale(1.03);
    z-index: 2;
  }

  .shipping-note {
    margin-top: 20px;
    color: #444;
    font-size: 15px;
  }
  
  /* ======================== Tabs ======================== */
  .product-tabs {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 15px;
  }
  
  .tab-buttons {
    list-style: none;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 20px;
    padding: 0;
    border-bottom: 1px solid #ddd;
    scrollbar-width: none; /* Firefox */
  }
  
  .tab-buttons::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }
  
  .tab-button {
    padding: 10px 5px;
    cursor: pointer;
    font-weight: 500;
    color: gray;
    position: relative;
    flex: 0 0 auto;
    transition: color 0.3s ease;
  }
  
  .tab-button.active {
    color: black;
    font-weight: 600;
  }
  
  .tab-button.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #000;
    width: 100%;
  }
  
  .tab-content {
    display: none;
  }
  
  .tab-content.active {
    display: block;
  }
  
  /* ======================== Size Chart Table ======================== */
  .size-chart-section {
    padding: 2rem 1rem;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .size-chart-section h2 {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .size-table-wrapper {
    overflow-x: auto;
  }
  
  .size-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
  }
  
  .size-table th,
  .size-table td {
    padding: 12px;
    border: 1px solid #ddd;
  }
  
  .size-table th {
    background-color: #f7f7f7;
    font-weight: 600;
  }
  
  /* ======================== Responsive ======================== */
  @media (max-width: 992px) {
    .product-container {
      flex-direction: column;
      align-items: center;
    }
  
    .image-gallery {
      flex-direction: column;
      align-items: center;
    }
  
    .thumbnail-list {
      flex-direction: row;
      justify-content: center;
      order: 2;
    }
  
    .thumbnail-list img {
      width: 60px;
      height: 60px;
    }
  
    .main-image img {
      width: 100%;
      max-width: 360px;
      margin-top: 30px;
    }
  
    .product-details {
      width: 100%;
      padding: 0 10px;
    }
  }
  @media (max-width: 768px) {
    .product-container {
      padding-left: -5px;  
      padding-right: 15px; 
    }
  
    .image-gallery {
      margin-left: 0;
      padding-left: 0;
    }
  
    .thumbnail-list img {
      max-width: 100%;
      height: auto;
    }
  }
  
  @media (max-width: 600px) {
    .size-table th,
    .size-table td {
      font-size: 14px;
      padding: 8px;
    }
  }
  
  @media (max-width: 576px) {
    .product-details h1 {
      font-size: 22px;
    }
  
    .price {
      font-size: 18px;
    }
  
    .desc {
      font-size: 14px;
    }
  
    .size,
    .quantity-select button {
      padding: 5px 10px;
      font-size: 14px;
    }
  
    .sold-out {
      font-size: 14px;
      padding: 10px;
    }
  
    .shipping-note {
      font-size: 13px;
    }
  }
  
  