/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: #111827;
  line-height: 1.6;
  background: #fff;
}

.low-stock {
  background: #facc15;
  color: #111827;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Styles for showing the original price when a product is on sale */
.product-price .sale {
  color: #ef4444; /* red */
  font-weight: 700;
  margin-left: 0.5rem;
  font-size: 1.25rem;
  text-decoration: line-through;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.site-header .logo a {
  font-weight: 700;
  font-size: 1.5rem;
  color: #111827;
  text-decoration: none;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #111827;
}

.cart-icon svg {
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.cart-icon:hover svg {
  transform: scale(1.08);
  stroke: #111827;
}

/* Product Page Layout */
.product-page .container {
  max-width: 1200px;
  margin: 3rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 0 2rem;
}

.product-image {
  flex: 1 1 45%;
}

.product-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* Info */
.product-info {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

/* Rating Stars */
.product-rating svg {
  width: 150px;
  height: 20px;
}

/* Options */
.product-options fieldset {
  border: none;
  margin-bottom: 1rem;
}

/* Hide the radio buttons */
input[type="radio"] {
  display: none;
}

/* Base style for color swatches */
.swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ddd;
  margin-right: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Colors */
.swatch.beige  { background-color: #f5f5dc; }
.swatch.white  { background-color: #ffffff; border: 1px solid #ccc; }
.swatch.black  { background-color: #111827; }
.swatch.brown  { background-color: #8b4513; }

/* Selected state */
input[type="radio"]:checked + .swatch {
  border-color: #111827;
  transform: scale(1.2);
}

/* Sizes */
.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.size-box {
  min-width: 48px;
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sizes input[type="radio"]:checked + .size-box {
  background-color: #111827;
  color: #fff;
  border-color: #111827;
}

/* Quantity */
.quantity {
  display: inline-flex;
  border: 2px solid #333;
  border-radius: 6px;
  overflow: hidden;
  height: 40px;
  width: fit-content;
}

.qty-btn {
  width: 40px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
}

/* Remove number input arrows (increment/decrement) */
#qty-value::-webkit-inner-spin-button,
#qty-value::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#qty-value {
  -moz-appearance: textfield; /* Firefox */
}

.qty-btn:hover {
  background: #f0f0f0;
}

#qty-value {
  width: 50px;
  text-align: center;
  border: none;
  outline: none;
}

/* Add to Cart */
.btn-add-to-cart {
  width: 180px;
  padding: 14px 0;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-add-to-cart:hover {
  background: #333;
}

/* Accordion */
.accordion-item h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
}

.accordion-item p {
  display: none;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.accordion-item p.show {
  display: block;
}

/* Accordion spacing */
.product-accordion .accordion-item {
  margin-bottom: 1.5rem; /* adds space between each accordion item */
}

#btn-pro, #btn-re {
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-weight: 600;
  border: 1px solid #ccc;
  background: #cac98b;
  cursor: pointer;
}

/* Similar Styles */
.similar-styles {
  font-size: 0.9rem;
  color: #374151;
  text-decoration: underline;
  cursor: pointer;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  border-top: 1px solid #e5e7eb;
}

.site-footer a {
  text-decoration: none;
  color: #111827;
}
.site-footer a:hover {
  text-decoration: underline;
}
