/* ==========================================================================
   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;
}

/* === LUXURY SKELETON LOADING STATE (Obsidian Shimmer) === */
.product-skeleton-stage {
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}

.skeleton-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: prodSkeletonShimmer 1.6s infinite ease-in-out;
  pointer-events: none;
  z-index: 2;
}

@keyframes prodSkeletonShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-canvas-stage {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 4 / 5;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.skeleton-line {
  background: rgba(255, 255, 255, 0.045);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.skeleton-badge {
  width: 90px;
  height: 22px;
  border-radius: 3px;
  margin-bottom: 18px;
}

.skeleton-prod-title {
  width: 70%;
  height: 34px;
  margin-bottom: 22px;
}

.skeleton-artist-row-mock {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.skeleton-circle-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  flex-shrink: 0;
}

.skeleton-artist-name {
  width: 160px;
  height: 16px;
}

.skeleton-specs-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-spec-row {
  width: 55%;
  height: 14px;
}

.skeleton-desc-para {
  width: 100%;
  height: 12px;
  margin-bottom: 8px;
}

.skeleton-price-box {
  width: 180px;
  height: 38px;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 4px;
  margin: 24px 0 28px;
}

.skeleton-btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.skeleton-btn-large {
  width: 190px;
  height: 48px;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 4px;
}

/* === 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;
}

/* Museum Art Frame Bezel & White Matting (Matches Sold Paintings Gallery Aesthetic) */
.artwork-canvas-stage .frame-outer-bezel {
  position: relative;
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  background: #0d0e12;
  border: 4px solid #1a1c24;
  border-radius: 4px;
  box-sizing: border-box;
  padding: 3px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.75), 
    0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.artwork-canvas-stage .frame-outer-bezel:hover {
  border-color: #2e3342;
  box-shadow: 
    0 30px 75px rgba(0, 0, 0, 0.85), 
    0 6px 20px rgba(0, 0, 0, 0.6);
}

.artwork-canvas-stage .frame-inner-matting {
  padding: 10px 12px;
  background: #fbfbfb;
  position: relative;
  box-sizing: border-box;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  line-height: 0;
}

.artwork-canvas-stage .artwork-image {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  border-radius: 2px;
  cursor: zoom-in;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-canvas-stage .frame-outer-bezel:hover .artwork-image {
  transform: scale(1.012);
}

/* Multi-Image Thumbnails Gallery Strip */
.product-gallery-thumbnails-wrap {
  width: 100%;
  margin-top: 18px;
}

.product-gallery-thumbnails {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px;
}

.product-gallery-thumb-btn {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.product-gallery-thumb-btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.product-gallery-thumb-btn.is-active {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.28), 0 4px 14px rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.product-gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .product-gallery-thumb-btn {
    width: 56px;
    height: 56px;
    padding: 2px;
  }
}

/* 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 (ARTMO Architecture in Obsidian Dark Theme) === */
.artmo-product-column {
  display: flex;
  flex-direction: column;
  max-width: 540px;
  width: 100%;
  gap: 16px;
}

/* 1. Top Row: Physical Badge + Action Buttons */
.artmo-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.artmo-type-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.artmo-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.artmo-share-wrapper {
  position: relative;
}

.artmo-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.artmo-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.artmo-icon-btn.is-liked {
  background: rgba(244, 63, 94, 0.12) !important;
  border-color: rgba(244, 63, 94, 0.45) !important;
  color: #f43f5e !important;
}

.artmo-icon-btn.is-liked i {
  font-weight: 900;
  animation: dosHeartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Masterpiece Detail Like Button */
.artmo-top-actions .product-detail-like-btn {
  width: auto !important;
  min-width: 40px;
  height: 40px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 4px;
}

.artmo-top-actions .product-detail-like-btn .heart-icon {
  font-size: 0.95rem;
  color: #cbd5e1;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
}

.artmo-top-actions .product-detail-like-btn:hover .heart-icon {
  color: #f43f5e;
}

.artmo-top-actions .product-detail-like-btn .like-btn-count {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1;
}

.artmo-top-actions .product-detail-like-btn.is-liked .heart-icon {
  color: #f43f5e;
}

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

/* Share Dropdown Popover */
.artmo-share-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #12151d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  z-index: 100;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
}

.artmo-share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.artmo-share-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.artmo-share-item i {
  width: 16px;
  text-align: center;
  font-size: 0.95rem;
}

/* 2. Masterpiece Title */
.artmo-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 4px 0 0;
}

/* 3. Artist Row (Avatar, Name, Location, + Follow) */
.artmo-artist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.artmo-artist-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #1a1c24;
}

.artmo-artist-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.96rem;
}

.artmo-artist-name {
  color: #ffffff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 0.2s ease;
}

.artmo-artist-name:hover {
  text-decoration-color: #ffffff;
}

.artmo-artist-origin {
  color: #94a3b8;
  font-size: 0.92rem;
}

.artmo-follow-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.artmo-follow-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.artmo-follow-btn.is-following {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.45);
  color: #10b981;
}

/* 4. Quick Specifications List (Direct, compact text lines) */
.artmo-specs-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-top: 4px;
}

.artmo-spec-line {
  color: #94a3b8;
}

.artmo-spec-line span {
  color: #cbd5e1;
}

/* 5. Artwork Description */
.artmo-description-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #cbd5e1;
  font-weight: 300;
  margin: 6px 0 0;
}

/* 6. Price Row with Currency Selector */
.artmo-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.artmo-currency-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: default;
}

.artmo-currency-box i {
  font-size: 0.72rem;
  color: #94a3b8;
}

.artmo-price-val {
  font-family: var(--font-sans);
  font-size: 1.85rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* 7. Shipping Logistics (Domestic & International with Icons) */
.artmo-shipping-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
  font-size: 0.88rem;
  color: #94a3b8;
}

.artmo-shipping-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.artmo-shipping-item i {
  font-size: 1rem;
  color: #cbd5e1;
  width: 20px;
  text-align: center;
}

.artmo-shipping-item strong {
  color: #ffffff;
  font-weight: 500;
}

/* 8. Primary Action Buttons (Acquire Artwork + Message Seller) */
.artmo-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.artmo-btn-primary {
  flex: 1;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #0a0c10;
  text-decoration: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.08);
}

.artmo-btn-primary:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #000000;
  transform: translateY(-1px);
}

.artmo-btn-secondary {
  flex: 1;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.artmo-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

/* === 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 {
  column-count: 4;
  column-gap: 20px;
  width: 100%;
  display: block;
}

@media (max-width: 1200px) {
  .related-grid {
    column-count: 3;
    column-gap: 18px;
  }
}

@media (max-width: 768px) {
  .related-grid {
    column-count: 2 !important;
    column-gap: 12px !important;
  }

  /* Exactly 4 paintings displayed on mobile responsive */
  .related-grid .sold-card:nth-child(n+5) {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .related-grid {
    column-count: 2 !important;
    column-gap: 8px !important;
  }
}

/* Museum Art Frame Bezel & Passe-partout Matting (Identical to Sold Paintings Section on index.html) */
.related-grid .sold-card {
  break-inside: avoid;
  margin-bottom: 22px;
  display: inline-block;
  width: 100%;
  position: relative;
  background: rgba(14, 15, 20, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}

.related-grid .sold-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.85);
}

.related-grid .sold-card a.sold-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
}

/* Red Stamp Badge (Original Museum Provenance) */
.related-grid .sold-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: rgba(185, 28, 28, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 3px 10px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transform: rotate(3deg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Outer Dark Bezel */
.related-grid .frame-outer-bezel {
  position: relative;
  width: 100%;
  background: #0d0e12;
  border: 4px solid #1a1c24;
  border-bottom: none;
  box-sizing: border-box;
  padding: 2px;
}

/* Inner Matting - Museum Passe-Partout Hugging Artwork Naturally (NO Artificial Height/Letterboxing) */
.related-grid .frame-inner-matting {
  padding: 12px;
  background: #fbfbfb;
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12);
  min-height: unset !important;
  height: auto !important;
}

/* Original ratio preservation - NO cropping, NO forced stretching */
.related-grid .frame-artwork-img {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  display: block;
  object-fit: contain !important;
  aspect-ratio: auto !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.related-grid .sold-card:hover .frame-artwork-img {
  transform: scale(1.02);
}

/* Card Metadata (Matching sold section exactly) */
.related-grid .sold-card .card-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #0e1016;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  text-align: left;
}

.related-grid .sold-card .card-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.related-grid .sold-card .card-title {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.related-grid .sold-card .card-artist {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: #cbd5e1;
  margin: 2px 0 0 0;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

.related-grid .sold-card .card-artist .card-year {
  color: #94a3b8;
  font-weight: 400;
}

.related-grid .sold-card .card-meta-bottom {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.related-grid .sold-card .card-price {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400 !important;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin: 0;
  white-space: nowrap;
}

.related-grid .sold-card .card-price.is-request {
  font-style: italic;
  font-size: 0.82rem;
  font-weight: 400 !important;
  color: #cbd5e1;
}

/* Card like button (ZERO PILLS, Clean luxury rectangular border) */
.art-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px !important;
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.22s ease;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
  text-decoration: none;
}

.art-like-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.art-like-btn .heart-icon {
  font-size: 0.82rem;
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
}

.art-like-btn:hover .heart-icon {
  color: #f43f5e;
}

.art-like-btn.is-liked {
  color: #ffffff;
  border-color: rgba(244, 63, 94, 0.45);
  background: rgba(244, 63, 94, 0.15);
}

.art-like-btn.is-liked .heart-icon {
  color: #f43f5e;
  font-weight: 900;
}

/* Bottom View All Artworks Action Button */
.related-view-all-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  margin-bottom: 24px;
  width: 100%;
}

.btn-view-all-artworks {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 32px;
  background: #ffffff;
  color: #0b0c10;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #ffffff;
  border-radius: 4px; /* Clean rectangular geometry, ZERO PILLS */
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.12);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-view-all-artworks i {
  font-size: 0.82rem;
  transition: transform 0.22s ease;
}

.btn-view-all-artworks:hover {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-view-all-artworks:hover i {
  transform: translateX(4px);
}

.btn-view-all-artworks:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .related-view-all-wrap {
    margin-top: 32px;
    margin-bottom: 16px;
  }

  .btn-view-all-artworks {
    width: 100%;
    max-width: 280px;
    padding: 12px 18px;
    font-size: 0.82rem;
  }
}

/* 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: 24px 16px;
  }

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

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

  .artwork-canvas-stage .frame-inner-matting {
    padding: 10px;
  }

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

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

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

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

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

  .artmo-cta-row {
    flex-direction: column;
  }

  .artmo-btn-primary,
  .artmo-btn-secondary {
    width: 100%;
  }

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

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

  .artwork-canvas-stage .frame-inner-matting {
    padding: 8px 10px;
  }

  .artwork-canvas-stage .frame-outer-bezel {
    border-width: 3px;
    padding: 2px;
  }

  .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;
  }
}
