* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: sans-serif;
    }

    body {
      background-color: #f5f5f5;
      padding: 20.1px;
    }

    .product-container {
      background: white;
      max-width: 1200px;
      margin: auto;
      padding: 20px;
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }

    .product-image {
      flex: 1 1 400px;
      position: relative;
    }

    .product-image img {
      width: 100%;
      border-radius: 8px;
    }

    .image-controls {
      position: absolute;
      bottom: 10px;
      right: 10px;
      display: flex;
      gap: 5px;
    }

    .image-controls button {
      background-color: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      padding: 5px 10px;
      border-radius: 5px;
      cursor: pointer;
    }

    .product-info {
      flex: 2 1 500px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .product-title {
      font-size: 20px;
      font-weight: bold;
    }

    .price-section {
      color: #ff9900;
      font-size: 28px;
      font-weight: bold;
    }

    .flash-sale {
      background-color: rgba(255, 68, 0, 0.856);
      color: white;
      padding: 5px 10px;
      font-weight: bold;
      width: fit-content;
      border-radius: 4px;
    }

    .product-options,
    .product-shipping,
    .product-actions {
      margin-top: 10px;
    }

    .product-options div,
    .product-shipping div {
      margin-top: 5px;
    }

    .product-actions {
      display: flex;
      gap: 10px;
      margin-top: 20px;
      flex-wrap: wrap;
    }

    .product-actions button {
      padding: 10px 20px;
      font-size: 16px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    .btn-cart {
      background-color: white;
      color: rgba(255, 68, 0, 0.856); 
      border: 2px solid #ff9900;
    }

    .btn-buy {
      background-color: #ff9900;
      color: white;
    }

    .btn-buy:hover,
    #comment-form button:hover {
      background-color: #e68a00;
    }

    @media screen and (max-width: 768px) {
      .product-container {
        flex-direction: column;
      }

      .product-actions {
        flex-direction: column;
      }
    }

    /* รีวิวสินค้า */
    .comment-section {
      background: #fff;
      max-width: 1200px;
      margin: 30px auto 0;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .comment-section h3 {
      margin-bottom: 15px;
    }

    #comment-form {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    #username-input, #comment-input {
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
    }

    #comment-input {
      height: 80px;
      resize: vertical;
    }

    .stars {
      display: flex;
      gap: 5px;
    }

    .stars span {
      font-size: 24px;
      cursor: pointer;
      color: #ccc;
    }

    .stars span.selected {
      color: #fbb034;
    }

    #comment-form button {
      width: fit-content;
      padding: 8px 16px;
      background-color: #ff9900;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    #comment-list {
      margin-top: 20px;
    }

    .comment {
      background-color: #f9bf69;
      border-left: 4px solid #ff9900;
      padding: 10px 15px;
      margin-bottom: 10px;
      border-radius: 5px;
    }

    .comment small {
      display: block;
      color: gray;
      margin-top: 5px;
    }

    /* ปุ่มเลือกสี */
    .color-option.selected {
      border: 2px solid #ff9900;
      background-color: #fff1dc;
    }