body {
  display: flex;
  flex-flow: column nowrap;
  margin: 0 auto;
  padding: 0;
}

main {
  max-width: 1280px;
}

.product-page {
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-text-dark, #1a1a1a);
  margin: 0;
}

.product-price {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--color-accent, #e8b4a8);
}

.product-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary, #555555);
  margin: 0;
}

.product-materials {
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 1.5rem 0;
}

.product-materials h3 {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  color: var(--color-text-dark, #1a1a1a);
}

.product-materials p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--color-text-secondary, #555555);
}

.product-care {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
}

.product-care h3 {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  color: var(--color-text-dark, #1a1a1a);
}

.product-care p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--color-text-secondary, #555555);
}

.product-options {
  display: flex;
  flex-flow: row nowrap;
  gap: 2rem;
  justify-content: start;
  align-items: center;
}

.product-options > * {
  flex: 1;
}

.size-button {
  padding: 0.75rem 1rem;
  border: 2px solid #d0d0d0;
  background-color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.size-button:hover {
  border-color: var(--color-accent, #e8b4a8);
}

.size-button.selected {
  background-color: var(--color-accent, #e8b4a8);
  color: white;
  border-color: var(--color-accent, #e8b4a8);
}

.product-quantity {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-quantity label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-dark, #1a1a1a);
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  width: fit-content;
  gap: 0;
  background-color: #f9f9f9;
}

.quantity-control button {
  background-color: transparent;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--color-text-dark, #1a1a1a);
  transition: all 0.2s ease;
  font-weight: 600;
}

.quantity-control button:hover {
  color: var(--color-accent, #e8b4a8);
}

.quantity-control button:active {
  transform: scale(0.95);
}

.quantity-control input {
  width: 60px;
  text-align: center;
  border: none;
  border-left: 2px solid #e0e0e0;
  border-right: 2px solid #e0e0e0;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: transparent;
}

.quantity-control input:focus {
  outline: none;
}

.add-to-cart-btn {
  padding: 1rem 2rem;
  background-color: var(--color-accent, #e8b4a8);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.add-to-cart-btn:hover {
  background-color: #d89a8e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

.add-to-cart-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.feedback-message {
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.feedback-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.feedback-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

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

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
  .product-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .product-price {
    font-size: 1.5rem;
  }

  .product-page {
    padding: 1.5rem 1rem;
  }
}

/* Mobile Styles (375px) */
@media (max-width: 480px) {
  .product-page {
    padding: 1rem;
  }

  .product-container {
    gap: 1.5rem;
  }

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

  .product-price {
    font-size: 1.25rem;
  }

  .product-info {
    gap: 1rem;
  }

  .add-to-cart-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .quantity-control input {
    width: 40px;
  }

  .size-options {
    gap: 0.5rem;
  }

  .size-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* Accessibility */
.add-to-cart-btn:focus {
  outline: 2px solid var(--color-accent, #e8b4a8);
  outline-offset: 2px;
}

.size-button:focus {
  outline: 2px solid var(--color-accent, #e8b4a8);
  outline-offset: 2px;
}

.quantity-control button:focus {
  outline: 2px solid var(--color-accent, #e8b4a8);
  outline-offset: 2px;
}

.size-button,
.add-to-cart-btn,
.quantity-control button {
  cursor: pointer;
}

/* Loading State */
.product-price.loading::after {
  content: "...";
  animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
  0%,
  20% {
    content: ".";
  }
  40% {
    content: "..";
  }
  60%,
  100% {
    content: "...";
  }
}
