/* ============================================================
   DEANNA BURNHOUSE — product.css
   ============================================================ */

/* --- PRODUCT DETAIL SECTION --- */
#product-detail {
  padding: 2rem;
  margin-top: 70px;
}

.product-back {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all var(--transition);
}

.product-back:hover {
  color: var(--cta);
  transform: translateX(-4px);
}

@media (max-width: 768px) {
  #product-detail {
    padding: 1.5rem;
    margin-top: 60px;
  }

  .product-back {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }
}

.product-loading,
.product-error {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.product-error a {
  color: var(--accent);
  text-decoration: none;
}

.product-error a:hover {
  color: var(--cta);
}

/* --- GRID LAYOUT --- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- IMAGES --- */
.product-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
}

.product-thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition);
}

.product-thumbnail:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.product-thumbnail.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155, 114, 207, 0.2);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- PRODUCT INFO --- */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

/* --- VARIANT SELECT --- */
.product-variants {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-variants label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.variant-select {
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.variant-select:hover,
.variant-select:focus {
  border-color: var(--accent);
  outline: none;
}

/* --- BUY BUTTON --- */
.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- DESCRIPTION --- */
.product-description {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.product-description p {
  margin: 1rem 0;
}

.product-description p:first-child {
  margin-top: 0;
}

.product-description p:last-child {
  margin-bottom: 0;
}

.product-description ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.product-description li {
  margin: 0.5rem 0;
  line-height: 1.8;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  #product-detail {
    padding: 2rem 1rem;
  }

  .product-grid {
    gap: 1.5rem;
  }

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

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