/* ==========================================================================
   DREAM OF STROKES — PRODUCT / ARTWORK DETAIL DESIGN SYSTEM
   Theme: Obsidian Dark Luxury Gallery | True Aspect Ratio | Zero Gold | Zero Pills
   ========================================================================== */

:root {
  --bg-primary: #090a0d;
  --bg-surface: #111319;
  --bg-surface-elevated: #161922;
  --bg-matting: radial-gradient(circle at center, #141720 0%, #0a0c10 100%);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(255, 255, 255, 0.28);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-whatsapp: #10b981;
  --accent-whatsapp-hover: #059669;
  
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Page baseline reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.product-page-body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(28, 33, 46, 0.22) 0%, rgba(9, 10, 13, 0.95) 65%),
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.product-main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* === BREADCRUMB NAVIGATION (Clean Minimalist, No Pills) === */
.product-breadcrumb-wrap {
  margin-bottom: 24px;
  padding: 0 4px;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.product-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
  color: var(--text-primary);
}

.bc-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

.bc-cat {
  color: var(--text-secondary);
  text-transform: capitalize;
}

.bc-cur {
  color: var(--text-primary);
  font-weight: 500;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === LOADING STATE (Obsidian Minimalist) === */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 20px;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: dosSpin 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.loading-container p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

@keyframes dosSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === NOT FOUND STATE === */
.not-found-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 20px;
}

.not-found-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.not-found-container h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.not-found-container p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

/* === PRODUCT SECTION LAYOUT === */
.artwork-section {
  padding: 10px 0 60px;
  animation: fadeInArtwork 0.4s ease-out;
}

.artwork-container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

/* === LEFT COLUMN: TRUE ASPECT RATIO MUSEUM MATTING STAGE === */
.artwork-visual-column {
  width: 100%;
}

.artwork-image-wrapper {
  position: relative;
  background: var(--bg-matting);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  position: sticky;
  top: 96px;
  transition: border-color 0.3s ease;
}

.artwork-image-wrapper:hover {
  border-color: var(--border-medium);
}

/* Canvas Display Stage: guarantees 100% authentic aspect ratio preservation */
.artwork-canvas-stage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.artwork-image {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.7), 
    0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  cursor: zoom-in;
}

.artwork-image:hover {
  transform: scale(1.015);
  box-shadow: 
    0 24px 56px rgba(0, 0, 0, 0.8), 
    0 0 20px rgba(255, 255, 255, 0.05);
}

/* Floating Like Button on Image Frame (Glass Circle, Clean Icon) */
.art-card-floating-like-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.art-card-floating-like-btn:hover {
  background: rgba(22, 26, 35, 0.95);
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.art-card-floating-like-btn.is-liked {
  color: #ff3366;
  border-color: rgba(255, 51, 102, 0.35);
  background: rgba(255, 51, 102, 0.12);
}

.art-card-floating-like-btn.is-liked .heart-icon {
  animation: dosHeartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Image Zoom Indicator (Clean Minimalist, No Pill) */
.image-zoom-hint {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.image-zoom-hint:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* === RIGHT COLUMN: ARTWORK DETAILS PANEL === */
.artwork-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Clean Typographic Curation Bar (NO PILLS) */
.product-curation-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.curation-kicker {
  color: var(--text-secondary);
  font-weight: 500;
}

.curation-dot {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

.curation-category {
  color: #ffffff;
  font-weight: 600;
}

.curation-status {
  color: var(--text-secondary);
  font-weight: 500;
}

.curation-status.is-acquired {
  color: #e06c75;
  font-weight: 600;
}

/* Artwork Title (Playfair Display, White) */
.product-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.22;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

/* Artist Byline & Attribution (NO PILLS) */
.product-artist-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.95rem;
  padding-bottom: 4px;
}

.byline-prefix {
  color: var(--text-muted);
  font-weight: 400;
}

.artist-name {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.artwork-year {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 4px;
}

/* Price & Acquisition Card (Obsidian Minimalist, Rectangular, NO PILLS) */
.price-section {
  padding: 22px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.price-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.authenticity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.authenticity-badge i {
  color: var(--text-primary);
  font-size: 0.75rem;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

.price-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* === ACTIONS ROW (WhatsApp CTA + Like Button) === */
.product-actions-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.whatsapp-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--accent-whatsapp);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.28);
  transition: all 0.25s ease;
}

.whatsapp-cta:hover {
  background: var(--accent-whatsapp-hover);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.42);
  transform: translateY(-1px);
}

.whatsapp-cta i {
  font-size: 1.25rem;
}

/* Detail Page Like Button (Obsidian Glass, Rectangular, NO PILL) */
.product-detail-like-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  min-width: 140px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.product-detail-like-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.product-detail-like-btn .heart-icon {
  font-size: 1.15rem;
  transition: transform 0.25s ease, color 0.2s ease;
}

.product-detail-like-btn.is-liked {
  border-color: rgba(255, 51, 102, 0.4);
  background: rgba(255, 51, 102, 0.08);
}

.product-detail-like-btn.is-liked .heart-icon {
  color: #ff3366;
  animation: dosHeartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-detail-like-btn.is-liked .like-btn-label {
  color: #ff3366;
}

.like-btn-count {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.product-detail-like-btn.is-liked .like-btn-count {
  color: #ffffff;
}

/* === ARTWORK OVERVIEW CARD === */
.product-description-card {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.card-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.2px;
}

.card-heading i {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.description-text {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.8;
  margin: 0;
}

/* === SPECIFICATIONS GRID (Rectangular Museum Hallmark Cards, NO PILLS) === */
.product-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.spec-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.spec-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-medium);
}

.spec-icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.spec-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.spec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.spec-value {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === SOCIAL / COLLECTOR SHARING (Rectangular Luxury Buttons, NO PILLS) === */
.share-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.share-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.share-label i {
  color: var(--text-muted);
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.share-btn:hover {
  color: #ffffff;
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* === RELATED MASTERPIECES SECTION === */
.related-section {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.related-heading-row {
  text-align: center;
  margin-bottom: 40px;
}

.related-kicker {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.related-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.related-divider {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 14px auto 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Related Product Card: True aspect ratio matting frame */
.related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.related-card-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  background: var(--bg-matting);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.related-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease;
}

.related-card:hover .related-card-img-wrap img {
  transform: scale(1.03);
}

.related-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.related-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.related-card-artist {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.related-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.related-card-price {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

/* Card like button */
.art-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.art-like-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--border-medium);
}

.art-like-btn.is-liked {
  color: #ff3366;
  border-color: rgba(255, 51, 102, 0.35);
  background: rgba(255, 51, 102, 0.08);
}

/* Animations */
@keyframes fadeInArtwork {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dosHeartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 1024px) {
  .artwork-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .artwork-image-wrapper {
    position: relative;
    top: 0;
    padding: 28px 20px;
  }

  .artwork-canvas-stage {
    min-height: 320px;
  }

  .artwork-image {
    max-height: 60vh;
  }
}

@media (max-width: 768px) {
  .product-main-wrapper {
    padding: 16px 16px 60px;
  }

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

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

  .product-actions-row {
    flex-direction: column;
  }

  .product-detail-like-btn {
    padding: 14px 24px;
    width: 100%;
  }

  .product-spec-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .artwork-image-wrapper {
    padding: 20px 14px;
  }

  .artwork-canvas-stage {
    min-height: 260px;
  }

  .artwork-image {
    max-height: 52vh;
  }

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

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

  .whatsapp-cta {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .share-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
