﻿/* PRODUCT PAGE SPECIFIC STYLES */

.page {
  padding: 14px 0 22px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 16px;
}

.breadcrumb a {
  color: #6b7280;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--primary, #927FBB);
}

.breadcrumb-sep {
  opacity: 0.5;
  font-size: 11px;
}

.product {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(146, 127, 187, 0.35);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.06);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.product-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(242, 216, 226, 0.95);
  background: #fff;
}

.product-main img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #111827;
}

.badge-primary {
  background: rgba(146, 127, 187, 0.14);
  border-color: rgba(146, 127, 187, 0.25);
  color: #7a223e;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.thumb {
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(242, 216, 226, 0.95);
  background: linear-gradient(135deg, #ffeef5, #ffd2e4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.thumb:nth-child(2) {
  background: linear-gradient(135deg, #eef6ff, #cfe3ff);
}

.thumb:nth-child(3) {
  background: linear-gradient(135deg, #f0fff9, #b9f3df);
}

.thumb:nth-child(4) {
  background: linear-gradient(135deg, #fff8e8, #ffe0a8);
}

.thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(146, 127, 187, 0.12);
}

.thumb.is-active {
  border-color: rgba(146, 127, 187, 0.55);
  box-shadow: 0 10px 18px rgba(146, 127, 187, 0.18);
}

.product-info {
  background: #fff;
  border: 1px solid rgba(242, 216, 226, 0.95);
  border-radius: 16px;
  padding: 14px;
}

.product-brand {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.product-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed rgba(242, 216, 226, 0.95);
  border-bottom: 1px dashed rgba(242, 216, 226, 0.95);
  margin: 10px 0;
}

.price-now {
  font-size: 20px;
  font-weight: 900;
  color: #111827;
}

.price-old {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
  margin-top: 2px;
}

.stock {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.in-stock {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.10);
  color: #065f46;
}

.out-of-stock {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.product-short {
  font-size: 13px;
  color: #374151;
  margin: 10px 0 12px;
}

.product-options {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.option-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-options {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.color-option {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(242, 216, 226, 0.95);
  background: #fff;
  border-radius: 6px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.color-option:hover {
  border-color: rgba(17, 24, 39, 0.25);
  transform: translateY(-1px);
}

.color-option.is-selected {
  border-color: rgba(146, 127, 187, 0.7);
  box-shadow: 0 0 0 2px rgba(146, 127, 187, 0.16);
}

.color-option-dot {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: var(--swatch, #e5e7eb);
}

.selected-color {
  margin-top: 8px;
  font-size: 12px;
  color: #4b5563;
}

.chip {
  border: 1px solid rgba(242, 216, 226, 0.95);
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(146, 127, 187, 0.08);
}

.chip.is-selected {
  border-color: rgba(146, 127, 187, 0.55);
  background: rgba(146, 127, 187, 0.08);
}

.buy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}



.btn-add-cart-lg {
  width: auto;
  height: 40px;
  padding: 0 24px;
  font-size: 13px;
  border-radius: 999px;
}

.btn-fav-lg {
  width: 40px;
  height: 40px;
}

.product-points {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.point {
  font-size: 12px;
  color: #374151;
  padding: 10px 10px;
  background: rgba(255, 247, 250, 0.7);
  border: 1px solid rgba(242, 216, 226, 0.95);
  border-radius: 14px;
}

.product-tabs {
  margin-top: 16px;
  background: #fff;
  border: 1px solid rgba(242, 216, 226, 0.95);
  border-radius: 16px;
  overflow: hidden;
}

.tabs-head {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(242, 216, 226, 0.95);
  background: rgba(255, 247, 250, 0.55);
  flex-wrap: wrap;
}

.tab {
  border: 1px solid rgba(242, 216, 226, 0.95);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  color: #6b7280;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tab:hover:not(.is-active) {
  border-color: rgba(146, 127, 187, 0.3);
  background: rgba(146, 127, 187, 0.04);
  color: #374151;
}

.tab.is-active {
  border-color: rgba(146, 127, 187, 0.6);
  background: rgba(146, 127, 187, 0.10);
  color: #7a223e;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(146, 127, 187, 0.15);
}

.tabs-body {
  padding: 12px 14px 16px;
  color: #374151;
  font-size: 13px;
}

.bullets {
  margin-top: 10px;
  padding-right: 18px;
  color: #374151;
}

.bullets li {
  margin-bottom: 6px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
