/* Markson Pianos Product Page Styles */
/* Adapted from index.html design for WooCommerce single product pages */

/* Product-specific CSS variables with proper fallbacks */
.mk-prod {
  /* Typography system with default fonts */
  --font-display: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  --font-body: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --cta: #000000;
  --ctaText: #ffffff;
  --chip: #f3f4f6;
  --chipText: #374151;
  --accent: #000000;
  --gold: #000000;
  --goldText: #ffffff;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --focus: 2px solid #8b1538;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;
}

/* CRITICAL: Override global theme heading styles with high specificity */
.mk-prod h1,
.mk-prod h2,
.mk-prod h3,
.mk-prod h4,
.mk-prod h5,
.mk-prod h6 {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
  color: #1a1a1a !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 400;
}

.mk-prod h1 { font-size: 2.5rem; margin: 0 0 var(--spacing-sm) 0; }
.mk-prod h2 { font-size: 2rem; margin: 0 0 var(--spacing-sm) 0; }
.mk-prod h3 { font-size: 1.5rem; margin: 0 0 var(--spacing-xs) 0; }
.mk-prod h4 { font-size: 1.25rem; margin: 0 0 var(--spacing-xs) 0; }

/* Override global styles for text elements */
.mk-prod p,
.mk-prod li,
.mk-prod span,
.mk-prod div {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
  color: #1a1a1a;
  line-height: 1.6;
  margin: 0 0 var(--spacing-sm) 0;
}

.mk-prod .muted {
  color: #000 !important;
}

/* Links inside headings should inherit color */
.mk-prod h1 a,
.mk-prod h2 a,
.mk-prod h3 a,
.mk-prod h4 a,
.mk-prod h5 a,
.mk-prod h6 a {
  color: inherit !important;
  text-decoration: none;
  text-decoration-color: currentColor;
}

/* Section-specific gold headings */
.mk-prod .sec-tabs h4,
.mk-prod .sec-marksons-experience h3,
.mk-prod .sec-help h3,
.mk-prod .sec-finance h2,
.mk-prod .sec-compare h2,
.mk-prod .sec-brands h2,
.mk-prod .callout-box h4 {
  color: #000000 !important;
}

/* Band section - force white text for the journey section */
.mk-prod .sec-band,
.mk-prod .sec-band .band,
.mk-prod .sec-band .band h1,
.mk-prod .sec-band .band h2,
.mk-prod .sec-band .band h3,
.mk-prod .sec-band .band h4,
.mk-prod .sec-band .band h5,
.mk-prod .sec-band .band h6,
.mk-prod .sec-band .band p,
.mk-prod .sec-band .band div,
.mk-prod .sec-band .band span,
.mk-prod .sec-band .band strong,
.mk-prod .sec-band .band a {
  color: #ffffff !important;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
}

/* Page grid improvements */
.mk-prod .sections {
  display: grid;
  gap: var(--spacing-2xl);
  margin-top: 0;
}

.mk-prod .section { 
  margin-top: 0; 
}

.mk-prod .wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-sm);
}

/* Breadcrumb styles - consolidated with zero margins enforced */
.mk-prod .woocommerce-breadcrumb,
.mk-prod .mk-breadcrumbs {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 1.6;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  color: var(--muted);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.mk-prod .woocommerce-breadcrumb a,
.mk-prod .mk-breadcrumbs a {
  color: var(--muted) !important;
  text-decoration: none;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
  font-weight: 400;
  transition: all 0.2s ease;
}

.mk-prod .woocommerce-breadcrumb a:hover,
.mk-prod .mk-breadcrumbs a:hover {
  color: var(--text) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mk-prod .woocommerce-breadcrumb a:focus,
.mk-prod .mk-breadcrumbs a:focus {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Current/last breadcrumb item (not a link) */
.mk-prod .woocommerce-breadcrumb > span:last-child,
.mk-prod .mk-breadcrumbs > span:last-child {
  color: var(--text) !important;
  font-weight: 600;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
}

/* Separator styling */
.mk-prod .woocommerce-breadcrumb .sep,
.mk-prod .mk-breadcrumbs .sep {
  color: var(--muted);
  font-weight: 400;
  margin: 0 6px;
  user-select: none;
}

/* Mobile breadcrumb adjustments - enforce zero margins on all viewports */
@media (max-width: 768px) {
  .mk-prod .woocommerce-breadcrumb,
  .mk-prod .mk-breadcrumbs {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 12px;
    line-height: 1.5;
  }
  
  .mk-prod .woocommerce-breadcrumb .sep,
  .mk-prod .mk-breadcrumbs .sep {
    margin: 0 4px;
  }
}

@media (max-width: 480px) {
  .mk-prod .woocommerce-breadcrumb,
  .mk-prod .mk-breadcrumbs {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 4px;
  }
}

/* Hero */
.mk-prod .hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-xs);
}

/* Prevent scroll snap behavior on mobile */
@media (max-width: 768px) {
  .mk-prod,
  .mk-prod .wrap,
  .mk-prod .sections,
  .mk-prod .section,
  .mk-prod .hero {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
  }
  
  body {
    overscroll-behavior-y: auto;
  }
}

.mk-prod .prod-media,
.mk-prod .prod-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--spacing-md);
}

.mk-prod .prod-media {
  touch-action: pan-y;
  overflow: hidden;
}

/* Gallery styles */
.mk-prod .gallery-container { 
  display: flex; 
  flex-direction: column; 
  gap: var(--spacing-sm); 
}

.mk-prod .gallery-main {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

/* Image zoom effect */
.mk-prod .gallery-main img {
	transition: none;
}

/* Mobile touch improvements for images */
.mk-prod .gallery-main,
.mk-prod .gallery-main img {
	touch-action: pan-y;
	-ms-touch-action: pan-y;
}

.mk-prod .gallery-main img {
	-webkit-user-drag: none;
	user-select: none;
	-webkit-touch-callout: none;
	pointer-events: none;
}

.mk-prod .gallery-main.zooming img {
  transform-origin: 0 0;
}

/* Magnify Button */
.mk-prod .magnify-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  touch-action: none;
  pointer-events: auto;
}

.mk-prod .magnify-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.mk-prod .magnify-btn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.mk-prod .magnify-btn svg {
  width: 24px;
  height: 24px;
}

.mk-prod .gallery-thumbs {
	display: flex;
	gap: var(--spacing-xs);
	overflow-x: auto;
	padding: 2px;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	touch-action: pan-x;
}

.mk-prod .thumb {
  flex: none; 
  width: 75px; 
  height: 50px; 
  border: 2px solid transparent; 
  border-radius: var(--radius);
  overflow: hidden; 
  cursor: pointer; 
  background: none; 
  padding: 0; 
  transition: all 0.2s ease;
}

.mk-prod .thumb:hover { 
  border-color: var(--muted); 
}

.mk-prod .thumb.active { 
  border-color: var(--accent); 
}

.mk-prod .thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.mk-prod .badge-row {
  display: flex; 
  gap: 10px; 
  flex-wrap: wrap; 
  margin: 14px 0 8px;
}

.mk-prod .chip { 
  background: var(--chip); 
  color: var(--chipText); 
  border-radius: 999px; 
  padding: 8px 12px; 
  font-size: 13px; 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  white-space: nowrap;
}

.mk-prod .price {
  font-size: 1.5rem;
  font-weight: 300;
  margin: var(--spacing-xs) 0;
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  line-height: 1.2;
  font-variant-numeric: lining-nums;
}

/* Stock and quantity inline row */
.mk-prod .stock-quantity-row {
  display: flex;
  gap: var(--spacing-sm);
  margin: var(--spacing-xs) 0;
  min-height: 32px;
}

.mk-prod .stock {
  font-size: 0.875rem;
  color: #059669;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  padding: 0;
  line-height: 32px;
  display: flex;
  align-items: center;
  height: 32px;
}

/* Out of stock - red text */
.mk-prod .stock.out-of-stock {
  color: #dc2626 !important;
}

/* Inline quantity selector - smaller version */
.mk-prod .quantity-inline {
  display: flex;
  align-items: center;
  height: 32px;
}

.mk-prod .quantity-inline .cart {
  display: flex;
  align-items: center;
  margin: 0;
  height: 32px;
}

.mk-prod .quantity-inline .quantity {
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  height: 32px;
}

.mk-prod .quantity-inline .quantity input[type="number"] {
  width: 50px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 var(--spacing-xs) !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.2px !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  text-align: center;
  transition: all 0.2s ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.mk-prod .quantity-inline .quantity input[type="number"]:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.mk-prod .quantity-inline .quantity input[type="number"]:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(139, 21, 56, 0.1);
}

.mk-prod .cta-row {
  display: flex; 
  gap: var(--spacing-sm); 
  flex-wrap: wrap; 
  margin: 0;
}

.mk-prod .btn {
  background: var(--gold); 
  color: var(--goldText); 
  border-radius: var(--radius);
  border: 1px solid var(--gold); 
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 500; 
  font-size: 1rem; 
  cursor: pointer; 
  transition: all 0.2s ease;
  font-family: var(--font-display); 
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mk-prod .btn:hover { 
  background: var(--gold); 
  border-color: var(--gold); 
  transform: translateY(-2px); 
  opacity: 0.9; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); 
}

.mk-prod .btn.secondary { 
  background: transparent; 
  color: var(--text); 
  border-color: var(--border); 
  text-shadow: none;
}

.mk-prod .btn.secondary:hover { 
  background: var(--chip); 
  border-color: var(--muted); 
  transform: translateY(-1px); 
  box-shadow: var(--shadow); 
}

.mk-prod .btn:focus {
  outline: var(--focus); 
  outline-offset: 2px;
}

.mk-prod .mini-notes {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 1.6;
}

.mk-prod .mini-notes span {
  color: var(--muted) !important;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
  font-weight: 400;
  margin: 0;
}

.mk-prod .mini-notes .link {
  color: var(--text) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
  font-weight: 400;
  transition: color 0.2s ease;
}

.mk-prod .mini-notes .link:hover {
  color: var(--accent) !important;
}

/* Product description styling to match index.html - preserve HTML structure */
.mk-prod .desc {
  margin: var(--spacing-sm) 0 0 0;
}

.mk-prod .desc .short-description {
	color: #000 !important;
	font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.2px;
}

/* Allow natural paragraph formatting within short description */
.mk-prod .desc .short-description p {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin: 0 0 1em 0; /* Use em for natural spacing */
}

.mk-prod .desc .short-description p:last-child {
  margin-bottom: 0;
}

/* Preserve line breaks and other HTML elements */
.mk-prod .desc .short-description br {
  display: block;
  content: "";
  margin-top: 0.5em;
}

.mk-prod .desc .short-description strong {
  font-weight: 600;
  color: inherit;
}

.mk-prod .desc .short-description em {
  font-style: italic;
  color: inherit;
}

/* Force line breaks before bullet points in short description */
.mk-prod .desc .short-description {
	white-space: pre-line;
}

/* Mobile: normalize whitespace to ensure text wraps properly while preserving line breaks */
@media (max-width: 768px) {
	.mk-prod .desc .short-description,
	.mk-prod .two-col-description,
	.mk-prod .two-col-description p,
	.mk-prod .two-col-description div {
		white-space: pre-wrap !important;
		overflow-wrap: anywhere;
		word-break: normal;
		hyphens: auto;
	}
	
	/* Ensure strong headings remain block-level on mobile */
	.mk-prod .product-description strong:only-child,
	.mk-prod .desc .short-description strong:only-child,
	.mk-prod .two-col-description strong:only-child {
		display: block !important;
		margin: 1em 0 0.5em;
	}
}

/* Enhanced tabs with shadow and animations */
.mk-prod .tabs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mk-prod .tablist {
  display: flex; 
  gap: var(--spacing-md); 
  flex-wrap: nowrap;
  padding: var(--spacing-xs) var(--spacing-md);
  border-bottom: 1px solid var(--border);
}

.mk-prod .tab {
  appearance: none; 
  background: transparent; 
  border: none;
  padding: var(--spacing-sm) var(--spacing-xs); 
  margin: 0;
  color: var(--muted); 
  font-size: 1rem; 
  font-weight: 500;
  font-family: var(--font-display); 
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent; 
  cursor: pointer;
  transition: all 0.2s ease; 
  position: relative;
}

.mk-prod .tab:hover {
  color: var(--text);
}

.mk-prod .tab:focus {
  outline: var(--focus); 
  outline-offset: 2px;
}

.mk-prod .tab.active { 
  color: var(--accent); 
  border-bottom-color: var(--accent); 
}

.mk-prod .tabpanel {
  padding: var(--spacing-md);
  animation: fadeIn 0.3s ease-in-out;
}

.mk-prod .two-col {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: var(--spacing-md);
}

/* Product Details Styling */
.mk-prod .product-details-section {
  margin-bottom: var(--spacing-lg);
}

.mk-prod .product-description ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mk-prod .product-description li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: var(--spacing-xs);
  padding-left: 20px;
  position: relative;
}

.mk-prod .product-description li::before {
  content: '♪';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
}

/* Style strong elements in product description */
.mk-prod .product-description strong {
  font-weight: 600;
  color: var(--gold);
}

/* Two-column description layout - desktop only */
.mk-prod .two-col-description {
  white-space: pre-line;
}

/* Apply columns only on desktop */
@media (min-width: 769px) {
  .mk-prod .two-col-description {
    columns: 2;
    column-gap: var(--spacing-lg);
    column-fill: balance;
  }
}

/* Style content within two-column description */
.mk-prod .two-col-description p,
.mk-prod .two-col-description div,
.mk-prod .two-col-description span {
	color: var(--text) !important;
	font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.2px;
	margin-bottom: var(--spacing-sm);
}

/* Ensure paragraphs are block-level in product descriptions */
.mk-prod .product-description p,
.mk-prod .desc .short-description p {
	display: block;
	margin-bottom: 1em;
}

/* Make standalone strong elements display as block headings */
.mk-prod .product-description strong:only-child,
.mk-prod .desc .short-description strong:only-child,
.mk-prod .two-col-description strong:only-child {
	display: block;
	margin: 1.2em 0 0.6em;
	font-size: 1.05em;
	text-align: left;
}

/* First strong heading should have less top margin and be left-aligned */
.mk-prod .product-description > strong:first-child,
.mk-prod .desc .short-description > strong:first-child,
.mk-prod .two-col-description > strong:first-child {
	margin-top: 0;
	text-align: left !important;
	display: block;
}

.mk-prod .two-col-description strong {
  font-weight: 600;
  color: var(--gold);
}

/* Mobile - single column - completely disable column layout */
@media (max-width: 768px) {
  .mk-prod .two-col-description {
    columns: unset !important;
    column-count: unset !important;
    column-width: unset !important;
    column-gap: 0 !important;
    column-fill: unset !important;
    text-align: left !important;
    display: block !important;
  }
  
  .mk-prod .two-col-description *,
  .mk-prod .two-col-description p,
  .mk-prod .two-col-description strong,
  .mk-prod .two-col-description div {
    text-align: left !important;
    break-inside: avoid-column;
    column-span: none;
  }
}

/* Mobile product details - single column */
@media (max-width: 768px) {
  .mk-prod .two-col {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Enhanced help callout */
.mk-prod .help-callout {
  background: var(--surface); 
  border: 1px solid var(--border);
  border-radius: var(--radius); 
  padding: var(--spacing-xl);
  font-size: 1rem; 
  display: flex; 
  align-items: center;
  gap: var(--spacing-xl); 
  flex-wrap: wrap; 
  box-shadow: var(--shadow);
}

.mk-prod .help-image {
  flex: 1 1 320px;
  aspect-ratio: 5/4;
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: pan-y;
}

.mk-prod .help-image img,
.mk-prod .help-image iframe {
  touch-action: pan-y;
  pointer-events: none;
}

.mk-prod .help-copy {
  flex: 1 1 260px;
}

/* Recently Viewed Products Grid - No overflow */
.mk-prod .comparison {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mk-prod .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mk-prod .product-card {
  max-width: 280px;
  justify-self: start;
}

.mk-prod .product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  box-sizing: border-box;
}

.mk-prod .product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.mk-prod .product-image {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
  touch-action: pan-y;
}

.mk-prod .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  pointer-events: none;
  touch-action: pan-y;
}

.mk-prod .product-title {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin: var(--spacing-sm) 0 var(--spacing-xs) 0 !important;
  line-height: 1.3;
}

.mk-prod .product-price {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
  font-size: 1.375rem !important;
  font-weight: 300 !important;
  color: var(--gold) !important;
  letter-spacing: 0.3px;
  line-height: 1.2;
  font-variant-numeric: lining-nums;
  margin: 0 !important;
}

/* Product link styling for clickable cards */
.mk-prod .product-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mk-prod .product-link:hover {
  text-decoration: none;
  color: inherit;
}

.mk-prod .product-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .mk-prod .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
  }
  
  .mk-prod .product-card {
    padding: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .mk-prod .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs);
  }
  
  .mk-prod .product-title {
    font-size: 1rem !important;
  }
  
  .mk-prod .product-price {
    font-size: 1.25rem !important;
  }
}

/* Enhanced finance panel */
.mk-prod .finance-panel {
  background: var(--surface); 
  border: 1px solid var(--border);
  border-radius: var(--radius); 
  padding: var(--spacing-xl);
  box-shadow: var(--shadow);
}

.mk-prod .finance-panel h2 {
  margin: 0 0 var(--spacing-sm) 0;
}

.mk-prod .finance-grid {
  display: grid; 
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-xl); 
  align-items: center;
}

.mk-prod .finance-grid > div:first-child {
  order: 1;
}

.mk-prod .finance-grid > div:last-child {
  order: 2;
}

.mk-prod .finance-cta {
  display: flex; 
  gap: var(--spacing-sm); 
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.mk-prod .finance-illustration {
  width: 100%;
  aspect-ratio: 5/4;
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: pan-y;
}

.mk-prod .finance-illustration img {
  pointer-events: none;
  touch-action: pan-y;
}

/* Callout section styling */
.mk-prod .callout-box {
  margin: var(--spacing-md) 0;
  padding: var(--spacing-sm);
  background: transparent;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

.mk-prod .callout-box h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
}

.mk-prod .callout-box ul {
  margin: 0;
  padding-left: var(--spacing-md);
  color: var(--text);
  line-height: 1.6;
  list-style: none;
}

.mk-prod .callout-box li {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

/* Brands We Stock section */
.mk-prod .brands-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow);
}

.mk-prod .brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.mk-prod .brand-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mk-prod .brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(0, 0, 0, 0.3), var(--gold));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mk-prod .brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  border-color: rgba(0, 0, 0, 0.3);
}

.mk-prod .brand-card:hover::before {
  opacity: 1;
}

.mk-prod .brand-logo {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm) 0;
}

.mk-prod .brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: var(--spacing-xs);
}

.mk-prod .brand-logo-img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(0.2) opacity(0.9);
  transition: all 0.3s ease;
}

.mk-prod .brand-card:hover .brand-logo-img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.05);
}

.mk-prod .brand-description {
  color: var(--text);
  line-height: 1.6;
}

.mk-prod .brand-description p {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: 0.2px;
}

/* Video overlay styles */
.mk-prod .video-container {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.mk-prod .video-container iframe {
  pointer-events: none;
  touch-action: pan-y;
}

/* Enable pointer events only when video overlay is hidden (video is playing) */
.mk-prod .video-overlay.hidden ~ iframe {
  pointer-events: auto;
}

.mk-prod .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--radius);
  backdrop-filter: blur(2px);
}

.mk-prod .video-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.mk-prod .play-button-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mk-prod .video-overlay:hover .play-button-container {
  transform: scale(1.1);
}

.mk-prod .logo-play-button {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.mk-prod .play-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  margin-top: 8px;
  transition: all 0.3s ease;
}

.mk-prod .video-overlay:hover .play-text {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.mk-prod .video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.mk-prod .link { 
  color: var(--text); 
  text-decoration: underline; 
  text-underline-offset: 2px; 
}

/* WooCommerce form integration - override theme styles with consistent height */
.mk-prod .single_add_to_cart_button,
.mk-prod input.button,
.mk-prod input.button.alt,
.mk-prod button.button,
.mk-prod button.button.alt,
.mk-prod a.button,
.mk-prod a.button.alt {
  background: #000000 !important;
  color: #ffffff !important;
  border-radius: var(--radius) !important;
  border: 1px solid #000000 !important;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  height: 52px !important;
  min-height: 52px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
  letter-spacing: 0.3px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Secondary button styling */
.mk-prod .btn.secondary {
  background: #ffffff !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  text-shadow: none !important;
  height: 52px !important;
  min-height: 52px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

.mk-prod .btn.secondary:hover {
  background: var(--chip) !important;
  border-color: var(--muted) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Additional WooCommerce element overrides */
.mk-prod .woocommerce-product-details__short-description,
.mk-prod .woocommerce-product-details__short-description p,
.mk-prod .product_meta,
.mk-prod .product_meta span,
.mk-prod .woocommerce-product-attributes,
.mk-prod .woocommerce-product-attributes th,
.mk-prod .woocommerce-product-attributes td {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
  color: #1a1a1a !important;
}

/* Override any remaining global text styles */
.mk-prod *:not(.sec-band *) {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/* Ensure proper text colors throughout */
.mk-prod .product-description,
.mk-prod .product-description p,
.mk-prod .help-copy p,
.mk-prod .finance-panel p {
  color: #1a1a1a !important;
}

.mk-prod .single_add_to_cart_button:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  transform: none !important;
  opacity: 0.9 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Remove any arrow pseudo-elements from buttons */
.mk-prod .single_add_to_cart_button::before,
.mk-prod .single_add_to_cart_button::after,
.mk-prod input.button::before,
.mk-prod input.button::after,
.mk-prod button.button::before,
.mk-prod button.button::after {
  display: none !important;
  content: none !important;
}

/* CTA row styling - simplified since quantity moved to stock row */
.mk-prod .cta-row .cart {
  display: flex;
  align-items: center;
  margin: 0;
}

/* Full-width layout - no sidebar */
.mk-prod .prod-info {
  position: static;
  align-self: stretch;
}

/* Ensure full-width layout on all screen sizes */
.markson-product-full-width .mk-prod {
  width: 100%;
  max-width: none;
}

.markson-product-full-width #et-main-area {
  width: 100% !important;
}

/* Mobile gallery improvements */
@media (max-width: 768px) {
  .mk-prod .gallery-thumbs {
    justify-content: center;
    padding: var(--spacing-xs);
  }
  
  .mk-prod .thumb {
    width: 67px;
    height: 45px;
  }
  
  .mk-prod .logo-play-button {
    height: 60px;
  }
  
  .mk-prod .play-text {
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* Responsive */
@media (max-width: 1000px) {
  .mk-prod .hero {
    grid-template-columns: 1fr;
  }
  
  .mk-prod .help-callout {
    grid-template-columns: 1fr;
  }
  
  .mk-prod .prod-media { 
    order: 1; 
  }
  
  .mk-prod .prod-info { 
    order: 2; 
  }
}

@media (max-width: 900px) {
  .mk-prod .finance-grid {
    grid-template-columns: 1fr;
  }
  
  .mk-prod .finance-grid > div:first-child {
    order: 2;
  }
  
  .mk-prod .finance-grid > div:last-child {
    order: 1;
  }
}

@media (max-width: 768px) {
  .mk-prod .wrap {
    padding: var(--spacing-xs);
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .mk-prod .finance-grid {
    grid-template-columns: 1fr;
  }
  
  .mk-prod .prod-media, 
  .mk-prod .prod-info { 
    padding: var(--spacing-sm);
  }
  
  .mk-prod .tabs { 
    margin: 0;
  }
  
  .mk-prod .tabpanel { 
    padding: var(--spacing-sm);
  }
  
  .mk-prod .sections { 
    gap: var(--spacing-lg);
  }

  .mk-prod .brands-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .mk-prod .brand-card {
    padding: var(--spacing-md);
  }
  
  .mk-prod .brand-name {
    font-size: 1.25rem;
  }
  
  .mk-prod .product-description li {
    font-size: 0.875rem;
    padding-left: 18px;
  }
  
  .mk-prod .product-details-section {
    margin-bottom: var(--spacing-md);
  }
  
  .mk-prod .product-description li::before {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .mk-prod .wrap {
    padding: 4px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .mk-prod .brands-section {
    padding: var(--spacing-xs);
    margin: 0;
  }
  
  .mk-prod .prod-media, 
  .mk-prod .prod-info { 
    padding: var(--spacing-xs); 
    margin: 0;
  }
  
  .mk-prod .tabpanel { 
    padding: var(--spacing-xs);
  }
  
  .mk-prod .help-callout { 
    padding: var(--spacing-xs); 
    margin: 0;
  }
  
  .mk-prod .finance-panel { 
    padding: var(--spacing-xs); 
    margin: 0;
  }
  
  .mk-prod .comparison { 
    padding: var(--spacing-xs);
    margin: 0;
  }
  
  .mk-prod .sections { 
    gap: var(--spacing-sm);
  }
  
  .mk-prod .section { 
    margin: 0;
  }
  
  .mk-prod .tabs { 
    margin: 0;
  }
  
  .mk-prod .hero { 
    gap: var(--spacing-sm);
  }
  
  .mk-prod .logo-play-button {
    height: 50px;
  }
  
  .mk-prod .play-text {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* Scroll reveal animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.mk-prod .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.mk-prod .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.mk-prod .reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s ease-out;
}

.mk-prod .reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Enhanced nationwide band */
.mk-prod .band {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius);
}

.mk-prod .band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,.3)),
              url('https://images.pexels.com/photos/1246437/pexels-photo-1246437.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
}

/* Apply reveal classes to sections */
.mk-prod .sec-tabs,
.mk-prod .sec-compare,
.mk-prod .sec-finance,
.mk-prod .sec-help,
.mk-prod .sec-marksons-experience,
.mk-prod .sec-brands {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.mk-prod .sec-tabs.visible,
.mk-prod .sec-compare.visible,
.mk-prod .sec-finance.visible,
.mk-prod .sec-help.visible,
.mk-prod .sec-marksons-experience.visible,
.mk-prod .sec-brands.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Band section should be immediately visible */
.mk-prod .sec-band {
  opacity: 1;
  transform: translateY(0);
}

/* Force full-width layout on product pages - hide sidebar */
.single-product #sidebar {
  display: none !important;
}

.single-product #left-area {
  width: 100% !important;
  margin-right: 0 !important;
  float: none !important;
}

.single-product .container {
  width: 100% !important;
  max-width: 100% !important;
}

/* Lightbox Modal Styles */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 20px 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-nav:disabled:hover {
  transform: translateY(-50%) scale(1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 1400px;
  max-height: calc(100vh - 200px);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.lightbox-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  overflow-x: auto;
  padding: 12px 0;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.lightbox-thumbs::-webkit-scrollbar {
  height: 6px;
}

.lightbox-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.lightbox-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.lightbox-thumb {
  flex: none;
  width: 80px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.lightbox-thumb:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: #ffffff;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .lightbox-modal {
    padding: 80px 10px 10px;
  }
  
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-content {
    max-height: calc(100vh - 180px);
  }
  
  .lightbox-thumbs {
    gap: 8px;
    margin-top: 16px;
  }
  
  .lightbox-thumb {
    width: 60px;
    height: 45px;
  }
  
  .mk-prod .magnify-btn {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
  }
  
  .mk-prod .magnify-btn svg {
    width: 20px;
    height: 20px;
  }
}
