
/* ============================================
   Layout containers
   ============================================ */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
  padding-block: 1rem;
}

.main-content {
  padding-block: 1.25rem 3rem;
}

/* ============================================
   Gold price bar
   ============================================ */
.gold-price-bar {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 60%);
  color: var(--primary-foreground);
  border-bottom: 1px solid var(--border);
}

.gold-price-bar .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding-block: 0.75rem;
}

.gold-price-bar strong {
  color: var(--gold);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  margin-block: 1rem 1.5rem;
}

.breadcrumb a {
  color: var(--foreground);
  transition: color 200ms ease;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .current {
  color: var(--muted-foreground);
}

/* ============================================
   Product detail grid
   ============================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

@media (max-width: 992px) {
  .product-detail {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

/* ============================================
   Gallery
   ============================================ */
.product-gallery {
  position: relative;
}

.main-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--secondary);
  border: 1px solid var(--border);
}

.main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 350ms ease;
  will-change: transform;
}

.main-image-wrapper:hover .main-image {
  transform: scale(1.025);
}

/* Badge */
.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.badge-new {
  background: linear-gradient(0deg, var(--gold-dark), var(--gold));
  color: var(--primary-foreground);
}

/* Zoom button */
.zoom-btn {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 18px rgba(0,0,0,0.10);
}

.zoom-btn:hover {
  transform: translateY(-1px);
  background: var(--secondary);
}

/* ============================================
   Product info
   ============================================ */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-title {
  color: var(--foreground);
  letter-spacing: -0.2px;
}

/* Specs box */
.specs-box {
  display: grid;
  gap: 0.75rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.spec-item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
}

.spec-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: var(--muted);
  color: var(--navy);
  border-radius: 50%;
  font-size: 1.05rem;
}

.spec-label {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.spec-value {
  color: var(--foreground);
  font-weight: 600;
}

/* ============================================
   Actions
   ============================================ */
.product-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.btn-lg {
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--primary-foreground);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.16);
}

.btn-outline {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--secondary);
}

.favorite-btn {
  border-radius: 999px;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
}

/* ============================================
   Extra info
   ============================================ */
.extra-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .extra-info {
    grid-template-columns: 1fr;
  }
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  color: var(--foreground);
}

.info-icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--accent-foreground);
  font-size: 1rem;
}

/* ============================================
   Description section
   ============================================ */
.product-description {
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.section-title {
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.description-content p {
  color: var(--card-foreground);
}

/* ============================================
   Utilities & effects
   ============================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

[disabled],
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* Subtle shimmer for luxury feel */
.main-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 40%, transparent 80%);
  pointer-events: none;
}

/* Heart pulse on favorite */
.favorite-btn:active {
  transform: scale(0.95);
}

/* Accent hover for interactive text links inside cards */
.card-link {
  color: var(--foreground);
  transition: color 160ms ease;
}
.card-link:hover {
  color: var(--gold);
}

/* ============================================
   Dark mode tuning
   ============================================ */
.dark .product-detail,
.dark .product-description {
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.dark .badge-new {
  color: var(--primary-foreground);
}

.dark .spec-icon {
  background: var(--secondary);
  color: var(--primary);
}

/* ============================================
   Responsive tweaks
   ============================================ */
@media (max-width: 768px) {
  .product-actions {
    flex-wrap: wrap;
  }
  .btn-lg {
    width: 100%;
  }
  .badge {
    top: 0.75rem;
    left: 0.75rem;
  }
  .zoom-btn {
    bottom: 0.75rem;
    left: 0.75rem;
  }
}

