.gp-variant-quantity-table {
  margin: 20px 0;
  font-family: inherit;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;

  .color-options {
    margin-bottom: 30px;

    h3 {
      margin-bottom: 15px;
      font-size: 16px;
      font-weight: bold;
    }
  }

  .color-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .color-button {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    border-radius: 4px;
    margin: 4px;

    &:hover {
      border-color: #999;
      background: #f5f5f5;
    }

    &.selected {
      border-color: #000;
      background: #f5f5f5;
      font-weight: bold;
    }
  }

  .size-quantity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;

    @media (max-width: 768px) {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .size-box {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;

    &:hover {
      border-color: #999;
    }
  }

  .size-label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
  }

  .price {
    color: #2c9f45;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
  }

  .quantity-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .quantity-input {
    width: 70px;
    height: 35px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;

    &:not([disabled]) {
      background: white;
      cursor: text;
      border-color: #2c9f45;
    }

    &[disabled] {
      background: #f5f5f5;
      cursor: not-allowed;
      border-color: #e74c3c;
    }
  }

  .stock-count {
    font-size: 14px;
    margin-top: 5px;
    transition: color 0.3s ease;
    font-weight: 500;

    &.in-stock {
      color: #2c9f45;
    }

    &.out-of-stock {
      color: #e74c3c;
      font-style: italic;
    }
  }

  .gp-add-to-cart-button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: #2c9f45;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    &:disabled {
      background: #cccccc;
      cursor: not-allowed;
      box-shadow: none;
    }

    &:not(:disabled) {
      &:hover {
        background: #248c3a;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
      }

      &:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      }
    }
  }
}
