/**
 * Frontend styles for Product pages
 * Uses --gp-brand, --gp-brand-dark, --gp-brand-rgb from style.css :root
 */

/* ===== H1 STANDARD ===== */
.gp-product-page h1,
.gp-product-single .gp-product-title {
  font-family: var(--gp-font);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.875rem);
  line-height: 1.15;
  color: var(--gp-brand);
}

/* ===== PARAGRAF STANDARD ===== */
.gp-product-page p {
  font-family: var(--gp-font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--gp-text-muted);
}

/* ===== PRODUCT PAGE — DESIGN TOKENS ===== */
.gp-product-page {
  --gp-font: 'Roboto', sans-serif;
  --gp-text: #334155;
  --gp-text-soft: #64748b;
  --gp-text-muted: #7a7a7a;
  /* Spacing – desktop */
  --gp-gap-section: 5rem;
  --gp-padding-block: 4rem;
  --gp-gap-inner: 1.75rem;
  background: #fafbfc;
  min-height: 100vh;
}

.gp-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Centrare absolută pe viewport: forțăm wrapper-ele temei la 100% lățime,
 * ca .gp-container (margin: 0 auto) să se centreze în mijlocul ecranului. */
body.single-product #page,
body.single-product .site-content,
body.single-product .gp-product-page,
body.post-type-archive-product #page,
body.post-type-archive-product .site-content,
body.post-type-archive-product .gp-product-page,
body.post-type-archive-product .gp-products-archive,
body.tax-product_type #page,
body.tax-product_type .site-content,
body.tax-product_type .gp-product-page {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}

body.single-product .gp-container,
body.post-type-archive-product .gp-container,
body.tax-product_type .gp-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 1240px) {
  body.single-product .gp-container,
  body.post-type-archive-product .gp-container,
  body.tax-product_type .gp-container {
    width: 1200px !important;
    max-width: 1200px !important;
  }
}

/* NOTE:
 * Evităm `transform` pe wrapper-ele de pagină, deoarece poate “rupe” `position: fixed`
 * pentru lightbox (în unele contexte, fixed devine relativ la strămoșul transformat).
 */

/* Lightbox-ul galeriei e mutat în document.body din JS, deci transform pe .gp-container nu îl afectează. */

/* ===== DIVIDER PARALELOGRAM (reutilizabil) =====
 * SVG cu viewBox 19.44×21 = o celulă (formă + spațiu), fără deformare. Culoare în SVG. */
.gp-divider {
  display: block;
  width: 233px;
  max-width: 100%;
  height: 21px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19.44 21'%3E%3Cpolygon fill='%23019ee2' points='4.29,1.75 15.77,1.75 11.96,18.9 0,18.9'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 19.44px 21px;
  background-position: 0 0;
  border: 0;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

/* ===== PRODUCT HEADER - 2 COLUMN LAYOUT ===== */
.gp-product-header {
  background: #fff;
  padding: var(--gp-padding-block) 0;
  margin-bottom: var(--gp-gap-section);
  position: relative;
  border-bottom: 1px solid rgba(var(--gp-brand-rgb), 0.1);
  border-radius: 10px;
  overflow: hidden;
}
/* decorative soft shapes */
/* Doar bulina din stânga; cea din dreapta (sub container) e scoasă */
/* Buline prin clase .gp-bulina-stanga / .gp-bulina-dreapta (din style.css); aici doar poziționare în header */
.gp-product-header .gp-bulina-stanga,
.gp-product-header .gp-bulina-dreapta {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.gp-product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Left Column - Product Image */
.gp-product-image-column {
  position: relative;
}

.gp-product-featured-image {
  text-align: center;
  position: relative;
  display: block;
  width: 100%;
}

.gp-featured-img {
  max-width: 100%;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
  border: 1px solid #f0f0f0;
}

.gp-featured-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.gp-featured-img.gp-no-image {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 1.2rem;
  font-weight: 500;
  min-height: 300px;
  border: 2px dashed #dee2e6;
  border-radius: 15px;
}

/* Right Column - Product Info */
.gp-product-info-column {
  padding: 20px 0;
}

.gp-breadcrumbs{
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 12px 0;
  display: block;
  white-space: normal;
}
.gp-breadcrumbs a{
  color: #64748b;
  text-decoration: none;
}
.gp-breadcrumbs a:hover,
.gp-breadcrumbs a:focus{
  color: var(--gp-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gp-breadcrumbs .sep{
  margin: 0 8px;
  color: #94a3b8;
}

.gp-product-title-section {
  margin-bottom: 30px;
}

/* Titlu produs – moștenește H1 standard; margin setat în blocul editorial */
.gp-product-single .gp-product-title {
  margin: 0;
}

/* Divider removed per design update */

.gp-product-category {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.gp-category-label {
  display: inline-flex;
  align-items: center;
  background: rgba(var(--gp-brand-rgb), 0.1);
  border: 1px solid rgba(var(--gp-brand-rgb), 0.25);
  color: var(--gp-brand);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gp-category-label:hover {
  background: var(--gp-brand);
  border-color: var(--gp-brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--gp-brand-rgb), 0.3);
}

/* Product Excerpt */
.gp-product-excerpt {
  margin: 20px 0;
}

.gp-product-excerpt p {
  margin: 0;
}

/* Product Actions */
.gp-product-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.gp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  min-width: 160px;
  min-height: 44px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(var(--gp-brand-rgb), 0.2);
}

.gp-btn .gp-btn-icon {
  width: 18px;
  height: 18px;
  margin-left: 10px;
  flex: 0 0 18px;
}

/* Offer button – slightly larger font */
.gp-btn-offer{
  font-size: 1.0625rem; /* ~17px */
}

.gp-btn-primary {
  background: var(--gp-brand);
  color: white;
  border-color: var(--gp-brand);
}

.gp-btn-primary:hover {
  background: var(--gp-brand-dark);
  border-color: var(--gp-brand-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(var(--gp-brand-rgb), 0.35);
}

.gp-btn-secondary {
  background: white;
  color: var(--gp-brand-dark);
  border-color: #e2e8f0;
}

.gp-btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--gp-brand);
  color: var(--gp-brand-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--gp-brand-rgb), 0.15);
}



/* ===== PRODUCT SPECS - MODERN TABLE ===== */
.gp-product-specs {
  background: transparent;
  padding: var(--gp-padding-block) 0;
  margin-bottom: var(--gp-gap-section);
  border-radius: 10px;
}

.gp-section-title {
  font-family: var(--gp-font);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--gp-brand);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 0;
}

.gp-section-title::after {
  display: block;
  content: '';
  width: 56px;
  height: 3px;
  margin: 2rem auto 0;
  background: linear-gradient(90deg, var(--gp-brand), rgba(var(--gp-brand-rgb), 0.45));
  border-radius: 2px;
}

.gp-specs-table {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #e8eef4;
}

.gp-spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  min-height: 3.25rem;
}

.gp-spec-row:last-child {
  border-bottom: none;
}

.gp-spec-row:hover {
  background: #f8f9fa;
}
/* subtle zebra for readability */
.gp-spec-row:nth-child(odd) .gp-spec-value{
  background:#fbfdff;
}

.gp-spec-label {
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: #475569;
  font-size: 0.9375rem;
  border-right: 1px solid #f0f0f0;
  background: #f8fafc;
}

.gp-spec-value {
  padding: 1rem 1.5rem;
  color: var(--gp-brand-dark);
  font-weight: 500;
  font-size: 0.9375rem;
  background: white;
}

/* ===== CONTENT BLOCKS - STILISTICA HOMEPAGE ===== */
.gp-content-block {
  margin-bottom: var(--gp-gap-section);
  text-align: center;
  scroll-margin-top: 90px;
}

.gp-hero-block {
  background: #fff;
  padding: var(--gp-padding-block) 0;
  position: relative;
  overflow: visible;
  border-radius: 10px;
}

.gp-hero-content {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.gp-hero-block::before,
.gp-hero-block::after {
  display: none;
}

/* Pagina produs: bulină dreapta ascunsă la header și la blocul downloads */
body.single-product .gp-product-header + section.gp-content-block::after,
body.single-product .gp-downloads-block::after {
  display: none !important;
}

.gp-position-right .gp-hero-content {
  direction: rtl;
}

.gp-position-right .gp-hero-content > * {
  direction: ltr;
}

.gp-position-vtext .gp-hero-content,
.gp-position-vmedia .gp-hero-content {
  grid-template-columns: 1fr;
  gap: 30px;
}

.gp-hero-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  display: block;
  margin: 0;
}

.gp-hero-video .gp-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.gp-hero-video .gp-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.gp-hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  text-align: left;
}

/* Lead în hero: lățime coloană, thank-you lat (nu box îngust) */
.gp-hero-description .gp-lead,
.gp-hero-block .gp-lead {
  width: 100%;
  max-width: 100%;
  margin-top: 0.5rem;
}

.gp-hero-description .gp-lead-thanks,
.gp-hero-block .gp-lead-thanks {
  width: 100%;
  max-width: 100%;
  align-items: center;
}

@media (min-width: 769px) {
  .gp-hero-description .gp-lead-inline .gp-lead-thanks,
  .gp-hero-block .gp-lead-inline .gp-lead-thanks {
    grid-column: 1 / -1;
  }
}

.gp-hero-description h2{
  font-family: var(--gp-font);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--gp-brand);
  margin: 0 0 var(--gp-gap-inner) 0;
}
.gp-hero-description h3{
  font-family: var(--gp-font);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  color: var(--gp-brand);
  margin: 0 0 0.75rem 0;
}

.gp-hero-description p {
  margin-bottom: 1.25rem;
}
.gp-hero-description p:last-child{
  margin-bottom: 0;
}

.gp-hero-description ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.gp-hero-description li {
  padding: 0.35rem 0;
  position: relative;
  padding-left: 25px;
  color: var(--gp-text);
}

.gp-hero-description li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gp-brand);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Fără sidebar blog — acolo padding-ul e în style.css (.gp-contact-block--sidebar) */
.gp-contact-block:not(.gp-contact-block--sidebar) {
  background: linear-gradient(180deg, #f5fbff 0%, #ffffff 100%);
  padding: var(--gp-padding-block) 20px;
}

/* Pagina produs: bloc albastru cu padding minim (nu depinde de body_class) */
.gp-product-page .gp-contact-block {
  padding: 0.5rem clamp(1.5rem, 3vw, 2.5rem) !important;
}

.gp-contact-inner {
  max-width: 780px;
  margin: 0 auto;
}

.gp-contact-form-wrap {
  margin-top: 24px;
}

.gp-contact-fallback {
  font-size: 1.05rem;
  color: #1f2937;
  margin: 0;
}

.gp-contact-phone {
  color: var(--gp-brand);
  font-weight: 600;
  text-decoration: none;
}

.gp-contact-phone:hover,
.gp-contact-phone:focus {
  color: var(--gp-brand-dark);
}

@media (max-width: 768px) {
  .gp-contact-block:not(.gp-content-block):not(.gp-contact-block--sidebar) {
    padding: 40px 16px;
  }

  .gp-contact-form-wrap {
    margin-top: 16px;
  }
}

/* ===== GALLERY - CAROUSEL & LIGHTBOX ===== */
.gp-gallery-block {
  background: linear-gradient(180deg, #f6f9fc 0%, #f0f5fa 100%);
  padding: var(--gp-padding-block) 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.gp-gallery-block .gp-section-title {
  text-align: center;
  margin-bottom: var(--gp-gap-inner);
}

.gp-gallery-carousel-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  overflow: visible;
}

.gp-product-gallery.gp-gallery-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}

.gp-product-gallery.gp-gallery-carousel::-webkit-scrollbar {
  display: none;
}

.gp-gallery-item {
  position: relative;
  flex: 0 0 calc(33.333% - 14px);
  width: calc(33.333% - 14px);
  min-width: 280px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  scroll-snap-align: start;
}

.gp-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gp-gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.gp-gallery-item:hover img {
  transform: scale(1.05);
}

/* Carousel navigation buttons – stil rafinat */
.gp-gallery-prev,
.gp-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: #fff;
  border: 2px solid rgba(var(--gp-brand-rgb), 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 10;
  color: var(--gp-brand);
  outline: none;
}

.gp-gallery-prev:focus,
.gp-gallery-next:focus,
.gp-gallery-prev:active,
.gp-gallery-next:active {
  background: #fff;
  color: var(--gp-brand);
  border-color: rgba(var(--gp-brand-rgb), 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-50%);
}

.gp-gallery-prev:focus-visible,
.gp-gallery-next:focus-visible {
  border-color: var(--gp-brand);
  box-shadow: 0 0 0 3px rgba(var(--gp-brand-rgb), 0.25);
}

.gp-gallery-prev {
  left: 12px;
}

.gp-gallery-next {
  right: 12px;
}

.gp-gallery-prev:hover,
.gp-gallery-next:hover {
  background: var(--gp-brand);
  color: #fff;
  border-color: var(--gp-brand);
  box-shadow:
    0 4px 14px rgba(var(--gp-brand-rgb), 0.35),
    0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-50%) scale(1.08);
}

.gp-gallery-prev svg,
.gp-gallery-next svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* ===== LIGHTBOX - ULTRA AGGRESSIVE VERSION ===== */
.gp-gallery-lightbox {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  background: rgba(0, 0, 0, 0.7) !important;
  z-index: 999999 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  overflow: hidden !important;
}

.gp-gallery-lightbox[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.gp-gallery-lightbox:not([hidden]) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.gp-lightbox-content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 40px) !important;
  max-height: calc(100vh - 40px) !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gp-lightbox-img {
  display: block !important;
  max-width: 100% !important;
  max-height: calc(100vh - 40px) !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  margin: 0 auto !important;
}

.gp-lightbox-close {
  position: fixed !important;
  top: 30px !important;
  right: 30px !important;
  width: 52px !important;
  height: 52px !important;
  background: #fff !important;
  border: 2px solid rgba(var(--gp-brand-rgb), 0.25) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
  color: var(--gp-brand) !important;
  z-index: 1000001 !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.gp-lightbox-close:hover {
  background: var(--gp-brand) !important;
  border-color: var(--gp-brand) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(var(--gp-brand-rgb), 0.35), 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  transform: rotate(90deg) scale(1.08) !important;
}

.gp-lightbox-close svg {
  width: 28px !important;
  height: 28px !important;
  stroke: currentColor !important;
}

.gp-lightbox-prev,
.gp-lightbox-next {
  position: fixed !important;
  top: 50% !important;
  width: 52px !important;
  height: 52px !important;
  background: #fff !important;
  transform: translateY(-50%) !important;
  border: 2px solid rgba(var(--gp-brand-rgb), 0.25) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
  color: var(--gp-brand) !important;
  z-index: 1000001 !important;
  outline: none !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.gp-lightbox-nav {
  display: contents;
}

.gp-lightbox-prev {
  left: 24px !important;
}

.gp-lightbox-next {
  right: 24px !important;
}

.gp-lightbox-prev:hover,
.gp-lightbox-next:hover {
  background: var(--gp-brand) !important;
  border-color: var(--gp-brand) !important;
  color: #fff !important;
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 4px 14px rgba(var(--gp-brand-rgb), 0.35), 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.gp-lightbox-prev svg,
.gp-lightbox-next svg {
  width: 32px !important;
  height: 32px !important;
  stroke: currentColor !important;
}

.gp-lightbox-counter {
  position: fixed !important;
  bottom: 40px !important;
  left: 50% !important;
  margin-left: -80px !important;
  width: 160px !important;
  text-align: center !important;
  background: rgba(0, 0, 0, 0.85) !important;
  color: white !important;
  padding: 14px 28px !important;
  border-radius: 28px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  z-index: 1000001 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  transform: none !important;
}

/* Lightbox pe mobil: fundal full, imagine full width, prev/next sub imagine */
@media (max-width: 768px) {
  .gp-gallery-lightbox,
  .gp-gallery-lightbox:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .gp-lightbox-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .gp-lightbox-content {
    position: relative !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    padding: 16px 12px !important;
    box-sizing: border-box !important;
  }

  .gp-lightbox-content .gp-lightbox-img {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    align-self: center !important;
  }

  .gp-lightbox-nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 16px !important;
    flex-shrink: 0 !important;
  }

  .gp-lightbox-prev,
  .gp-lightbox-next {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    transform: none !important;
    width: 48px !important;
    height: 48px !important;
  }

  .gp-lightbox-prev:hover,
  .gp-lightbox-next:hover {
    transform: scale(1.08) !important;
  }

  .gp-lightbox-counter {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 auto 24px !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
  }
}

/* ===== DOWNLOADS ===== */
.gp-downloads-block {
  background: linear-gradient(180deg, #f5f9fc 0%, #f0f5fa 100%);
  padding: var(--gp-padding-block) 0;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.gp-downloads-block::before,
.gp-downloads-block::after {
  display: none;
}

.gp-downloads-list {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.gp-downloads-block .gp-section-title{
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 3rem;
}
.gp-downloads-block .gp-section-title::after{
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
}
/* Centering behaviour when fewer than 4 items (JS adds these classes) */
.gp-downloads-list.gp-downloads-few{
  justify-content: center;
}
.gp-downloads-list.gp-downloads-1{
  grid-template-columns: minmax(260px, 420px);
  max-width: 420px;
}
.gp-downloads-list.gp-downloads-2{
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  max-width: 840px;
}
.gp-downloads-list.gp-downloads-3{
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  max-width: 1100px;
}

.gp-download-item {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  min-height: 160px;
  min-width: 0;
}

.gp-download-item:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--gp-brand-rgb), 0.3);
  box-shadow: 0 8px 20px rgba(var(--gp-brand-rgb), 0.08);
}

.gp-download-info {
  flex: 1 1 auto;
  margin-bottom: 16px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.gp-download-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.gp-download-desc {
  color: #64748b;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  word-break: break-word;
}

.gp-download-btn {
  background: var(--gp-brand);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(var(--gp-brand-rgb), 0.25);
}

.gp-download-btn:hover {
  background: var(--gp-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(var(--gp-brand-rgb), 0.3);
  color: white;
  text-decoration: none;
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce){
  .gp-featured-img,
  .gp-gallery-item,
  .gp-download-item,
  .gp-btn,
  .gp-product-card,
  .gp-card-img{
    transition: none !important;
  }
}

.gp-download-icon {
  font-size: 1.2rem;
}

/* ===== PRODUCT ARCHIVE ===== */
.gp-products-archive {
  padding: 40px 0;
  background: #f8fafc;
  min-height: 100vh;
}

.gp-accessories {
  margin-top: 2.25rem;
}

.gp-accessories-inner {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  padding: 22px 22px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px 22px;
  align-items: center;
}

.gp-accessories-title {
  margin: 0 0 0.5rem 0;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  color: #0f172a;
  font-weight: 700;
}

.gp-accessories-desc {
  margin: 0;
  color: var(--gp-text-muted);
  line-height: 1.55;
  max-width: 60ch;
}

.gp-accessories-pills {
  margin: 0.875rem 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gp-accessories-pill {
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.35;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--gp-brand-rgb), 0.08);
  color: #0f172a;
  border: 1px solid rgba(var(--gp-brand-rgb), 0.18);
}

.gp-accessories-cta {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.gp-accessories-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gp-brand);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 18px rgba(var(--gp-brand-rgb), 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gp-accessories-btn:hover {
  background: var(--gp-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(var(--gp-brand-rgb), 0.28);
  color: #fff;
}

.gp-accessories-btn:focus-visible {
  outline: 2px solid rgba(var(--gp-brand-rgb), 0.55);
  outline-offset: 3px;
}

.gp-accessories-btn-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
}

.gp-accessories-note {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  text-align: right;
}

@media (max-width: 900px) {
  .gp-accessories-inner {
    grid-template-columns: 1fr;
  }
  .gp-accessories-cta {
    justify-items: start;
  }
  .gp-accessories-note {
    text-align: left;
  }
}

.gp-archive-header {
  text-align: center;
  margin-bottom: 40px;
}

.gp-archive-title {
  font-family: var(--gp-font);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.875rem);
  line-height: 1.15;
  color: var(--gp-brand);
  margin: 0 0 1rem 0;
}

/* Standard paragraph — folosește .gp-paragraph oriunde ai nevoie de acest stil */
.gp-paragraph,
.gp-archive-description {
  font-family: var(--gp-font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--gp-text-muted);
}
.gp-archive-description {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Product Filters */
.gp-product-filters {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gp-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gp-filter-group label {
  font-weight: 600;
  color: #374151;
}

.gp-type-filter {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 0.875rem;
}

/* Products Grid */
.gp-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.gp-product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gp-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.gp-product-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gp-product-image {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
  overflow: hidden;
}

.gp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.gp-product-card:hover .gp-card-img {
  transform: scale(1.05);
}

.gp-no-image {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.875rem;
}

/* Etichetă tip produs pe imagine – colț dreapta jos */
.gp-product-card .gp-product-image .gp-product-category {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: auto;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  justify-content: flex-end;
}
.gp-product-card .gp-category-label {
  display: inline-flex;
  align-items: center;
  background: rgba(var(--gp-brand-rgb), 0.1);
  border: 1px solid rgba(var(--gp-brand-rgb), 0.25);
  color: var(--gp-brand);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.gp-product-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* H2 standard — folosește .gp-h2 oriunde ai nevoie de acest stil */
.gp-h2,
.gp-product-card .gp-product-title {
  font-family: var(--gp-font);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.25;
  color: var(--gp-brand);
  margin: 0 0 12px 0;
}

.gp-product-card .gp-product-title a {
  color: inherit;
  text-decoration: none;
}

.gp-product-card .gp-product-title a:hover {
  opacity: 0.85;
}

/* Specificații în card – compacte, fără cutii grele (nu moștenesc .gp-spec-label global) */
.gp-product-card .gp-specs-preview {
  margin: 12px 0;
  flex: 1;
}

.gp-product-card .gp-spec-preview {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 0;
  padding: 6px 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  border-bottom: 1px solid #f0f4f8;
}
.gp-product-card .gp-spec-preview:last-child {
  border-bottom: none;
}

.gp-product-card .gp-spec-preview .gp-spec-label {
  min-width: 0;
  color: #64748b;
  font-weight: 500;
  padding: 0;
  background: none;
  border: none;
}
.gp-product-card .gp-spec-preview .gp-spec-label::after {
  content: '';
}

.gp-product-card .gp-spec-preview .gp-spec-value {
  flex-shrink: 0;
  text-align: right;
  color: var(--gp-brand);
  font-weight: 600;
  padding: 0;
  background: none;
  border: none;
}


/* No Products */
.gp-no-products {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
  font-size: 1.125rem;
}

/* Pagination */
.wp-pagenavi {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.wp-pagenavi a,
.wp-pagenavi span {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-decoration: none;
  color: #374151;
  transition: all 0.2s;
}

.wp-pagenavi a:hover,
.wp-pagenavi .current {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1240px) {
  .gp-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: static;
    left: auto;
    transform: none;
  }
}

/* Tablet Design */
@media (max-width: 768px) {
  body.single-product .gp-product-page {
    --gp-mobile-edge: 0.875rem;
  }

  .gp-product-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .gp-section-title {
    font-size: 2rem;
  }
  
  .gp-specs-table {
    margin: 0;
  }
  
  .gp-spec-row {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }
  
  .gp-spec-label {
    border-right: 1px solid #f0f0f0;
    border-bottom: none;
    background: #f8f9fa;
    font-weight: 700;
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
    min-width: 0;
    overflow-wrap: break-word;
  }
  
  .gp-spec-value {
    background: white;
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
    min-width: 0;
    overflow-wrap: break-word;
  }
  
  .gp-featured-img {
    max-width: 350px;
  }
  
  .gp-hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
    max-width: 100%;
    padding-left: var(--gp-mobile-edge, 0.875rem);
    padding-right: var(--gp-mobile-edge, 0.875rem);
  }
  
  .gp-hero-description {
    text-align: left;
  }
  
  .gp-specs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Gallery carousel responsive - removed conflicting grid */
  
  .gp-download-item {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .gp-download-info {
    margin-right: 0;
  }
  
  .gp-product-actions {
    justify-content: center;
  }
  
  .gp-btn {
    min-width: 140px;
    padding: 10px 20px;
  }
}

/* Mobile Design */
@media (max-width: 480px) {
  .gp-product-header {
    padding: 60px 0;
  }
  
  .gp-category-tag {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .gp-featured-img {
    max-width: 280px;
  }
  
  .gp-product-specs,
  .gp-hero-block,
  .gp-gallery-block,
  .gp-downloads-block {
    padding: 60px 0;
  }
  
  .gp-spec-item {
    padding: 25px 20px;
  }
  
  .gp-download-item {
    padding: 25px 20px;
  }
  
  .gp-download-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  body.single-product .gp-container,
  body.post-type-archive-product .gp-container,
  body.tax-product_type .gp-container {
    padding-left: var(--gp-mobile-edge, 0.875rem);
    padding-right: var(--gp-mobile-edge, 0.875rem);
  }

  .gp-container {
    padding: 0 var(--gp-mobile-edge, 0.875rem);
  }
  
  .gp-hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .gp-specs-grid {
    grid-template-columns: 1fr;
  }
  
  .gp-gallery-carousel-wrap {
    padding: 0 50px;
  }
  
  .gp-gallery-item {
    flex: 0 0 calc(50% - 10px);
    min-width: 240px;
  }
  
  .gp-gallery-prev,
  .gp-gallery-next {
    width: 44px;
    height: 44px;
  }
  
  .gp-gallery-prev svg,
  .gp-gallery-next svg {
    width: 20px;
    height: 20px;
  }
  
  .gp-gallery-prev {
    left: 8px;
  }
  
  .gp-gallery-next {
    right: 8px;
  }
  
  .gp-lightbox-prev,
  .gp-lightbox-next {
    width: 48px;
    height: 48px;
  }
  
  .gp-lightbox-prev {
    left: 15px;
  }
  
  .gp-lightbox-next {
    right: 15px;
  }
  
  .gp-lightbox-counter {
    bottom: 20px;
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .gp-download-item {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .gp-section-title {
    font-size: 2rem;
  }
  
  .gp-products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gp-archive-title {
    font-size: 32px;
    line-height: 1.2;
  }
  
  .gp-filter-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== RESPONSIVE GRID FOR DOWNLOADS ===== */
@media (max-width: 1200px){
  .gp-downloads-list{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px){
  .gp-downloads-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px){
  .gp-downloads-list{
    grid-template-columns: 1fr;
  }
}

/* ===== PRODUCT PAGE – EDITORIAL REFINEMENTS ===== */
body.single-product .gp-product-page {
  padding-bottom: var(--gp-gap-section);
}

body.single-product .gp-product-container {
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

body.single-product .gp-product-info-column {
  padding: 0.5rem 0 0;
}

body.single-product .gp-breadcrumbs {
  color: var(--gp-text-soft);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

body.single-product .gp-breadcrumbs a {
  color: var(--gp-text-soft);
}

body.single-product .gp-featured-img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body.single-product .gp-featured-img:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* ===== PRIMUL BLOC – Header produs (titlu + divider + conținut) ===== */
body.single-product .gp-product-single .gp-product-title {
  margin-bottom: 1.5rem; /* spațiu titlu – divider */
}

/* Divider sub titlu produs – folosește componenta .gp-divider */
body.single-product .gp-product-title-divider {
  margin-bottom: 1.75rem; /* spațiu divider – content */
}

body.single-product .gp-product-title-section .gp-product-category {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

body.single-product .gp-product-excerpt {
  margin-bottom: 1.75rem;
}

body.single-product .gp-product-excerpt p {
  max-width: 52ch;
  margin-bottom: 0;
}

body.single-product .gp-product-actions {
  gap: 1rem;
  margin-top: 0;
}

/* ===== PRIMUL BLOC – Responsive (tablet + mobil) ===== */
@media (max-width: 768px) {
  body.single-product .gp-product-header {
    padding: 2rem 0;
    margin-bottom: var(--gp-gap-section);
  }

  body.single-product .gp-product-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-left: var(--gp-mobile-edge, 0.875rem);
    padding-right: var(--gp-mobile-edge, 0.875rem);
    text-align: left;
  }

  body.single-product .gp-product-image-column {
    order: 1;
  }

  body.single-product .gp-product-info-column {
    order: 2;
    padding: 0;
  }

  body.single-product .gp-product-header .gp-featured-img {
    max-width: 100%;
    height: auto;
  }

  body.single-product .gp-product-single .gp-product-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.2;
    word-wrap: break-word;
  }

  body.single-product .gp-product-excerpt p {
    max-width: none;
  }

  body.single-product .gp-product-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
  }

}

@media (max-width: 480px) {
  body.single-product .gp-product-header {
    padding: 1.5rem 0;
  }

  body.single-product .gp-product-container {
    gap: 1.5rem;
    padding-left: var(--gp-mobile-edge, 0.875rem);
    padding-right: var(--gp-mobile-edge, 0.875rem);
  }

  body.single-product .gp-product-single .gp-product-title {
    font-size: clamp(1.5rem, 9vw, 2rem);
  }
}

/* Alternanță ușoară la fundal – content blocks pare */
body.single-product .gp-content-block:nth-of-type(even) {
  padding-left: 2rem;
  padding-right: 2rem;
  margin-left: -2rem;
  margin-right: -2rem;
  padding-top: var(--gp-padding-block);
  padding-bottom: var(--gp-padding-block);
}

/* Hero / Media + Descriere: buline poziționate, conținut deasupra */
.gp-hero-block .gp-bulina-stanga,
.gp-hero-block .gp-bulina-dreapta {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.gp-hero-block .gp-hero-content {
  position: relative;
  z-index: 1;
}

body.single-product .gp-gallery-carousel-wrap {
  padding: 0 3rem;
  margin-top: var(--gp-gap-inner);
}

body.single-product .gp-gallery-item {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

body.single-product .gp-gallery-item:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

body.single-product .gp-gallery-item img {
  height: 280px;
}

body.single-product .gp-downloads-list {
  gap: 1.5rem;
}

body.single-product .gp-download-action {
  align-self: center;
}


/* Bloc „Solicită ofertă personalizată” – fundal albastru, două coloane (text+form | imagine) */
body.single-product .gp-contact-block,
.gp-product-page .gp-contact-block {
  background: var(--gp-brand);
  border-radius: 10px;
  padding: 0.5rem clamp(1.5rem, 3vw, 2.5rem) !important;
  margin-bottom: var(--gp-gap-section);
  margin-top: var(--gp-gap-section);
  text-align: left;
  overflow: hidden;
}

body.single-product .gp-contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

body.single-product .gp-contact-cta {
  min-width: 0;
}

body.single-product .gp-contact-headline {
  font-family: var(--gp-font);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.5em;
}

body.single-product .gp-contact-subtext {
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 1.5rem;
  opacity: 0.98;
}

body.single-product .gp-contact-form-wrap {
  margin-top: 0;
}

body.single-product .gp-contact-block .gp-lead {
  max-width: 100%;
}

body.single-product .gp-contact-block .gp-lead-inline {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: stretch;
}

body.single-product .gp-contact-block .gp-lead-input {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-size: 1rem;
  box-sizing: border-box;
}

body.single-product .gp-contact-block .gp-lead-input::placeholder {
  color: #64748b;
}

body.single-product .gp-contact-block .gp-lead-input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

body.single-product .gp-contact-block .gp-lead-btn {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  box-sizing: border-box;
  justify-content: center;
  background: #e4002b;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  white-space: nowrap;
}

body.single-product .gp-contact-block .gp-lead-btn:hover {
  background: #c20024;
  color: #fff;
}

body.single-product .gp-contact-block .gp-lead-msg {
  color: rgba(255, 255, 255, 0.95);
  margin-top: 8px;
}

body.single-product .gp-contact-block .gp-lead-thanks,
.gp-product-page .gp-contact-block .gp-lead-thanks {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  text-align: left;
  animation: gpThanksIn 0.4s ease-out both;
}

body.single-product .gp-contact-block .gp-lead-thanks-icon,
.gp-product-page .gp-contact-block .gp-lead-thanks-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #059669;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

body.single-product .gp-contact-block .gp-lead-thanks-text,
.gp-product-page .gp-contact-block .gp-lead-thanks-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}

body.single-product .gp-contact-block .gp-lead-btn,
.gp-product-page .gp-contact-block .gp-lead-btn {
  position: relative;
  transition: background 0.2s ease, opacity 0.2s ease;
}

body.single-product .gp-contact-block .gp-lead-btn--loading .gp-lead-btn-text,
body.single-product .gp-contact-block .gp-lead-btn--loading .gp-lead-btn-icon,
.gp-product-page .gp-contact-block .gp-lead-btn--loading .gp-lead-btn-text,
.gp-product-page .gp-contact-block .gp-lead-btn--loading .gp-lead-btn-icon {
  opacity: 0.25;
}

body.single-product .gp-contact-block .gp-lead-btn--loading::after,
.gp-product-page .gp-contact-block .gp-lead-btn--loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gpLeadSpin 0.55s linear infinite;
}

@keyframes gpThanksIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gpLeadSpin {
  to {
    transform: rotate(360deg);
  }
}

body.single-product .gp-contact-image {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

body.single-product .gp-contact-image img {
  max-width: 100%;
  height: auto;
  max-height: 460px;
  width: auto;
  object-fit: contain;
  object-position: right center;
}

@media (max-width: 900px) {
  body.single-product .gp-contact-inner,
  .gp-product-page .gp-contact-inner {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  body.single-product .gp-contact-image,
  .gp-product-page .gp-contact-image {
    order: -1;
    justify-content: center;
    margin-bottom: 0;
  }

  body.single-product .gp-contact-image img,
  .gp-product-page .gp-contact-image img {
    max-height: 500px;
    object-position: center;
    display: block;
  }

  body.single-product .gp-contact-cta .gp-contact-headline,
  .gp-product-page .gp-contact-cta .gp-contact-headline {
    margin-top: 0;
    margin-bottom: 0.5rem;
  }

  body.single-product .gp-contact-cta .gp-contact-subtext,
  .gp-product-page .gp-contact-cta .gp-contact-subtext {
    margin-top: 0;
    margin-bottom: 1rem;
  }

  body.single-product .gp-contact-form-wrap,
  .gp-product-page .gp-contact-form-wrap {
    margin-top: 0.5rem;
  }
}

@media (max-width: 600px) {
  body.single-product .gp-contact-block,
  .gp-product-page .gp-contact-block {
    padding: 1rem 1.25rem !important;
    border-radius: 12px;
  }

  body.single-product .gp-contact-inner,
  .gp-product-page .gp-contact-inner {
    gap: 0;
  }

  body.single-product .gp-contact-image img,
  .gp-product-page .gp-contact-image img {
    max-height: 420px;
  }

  body.single-product .gp-contact-block .gp-contact-form-wrap,
  .gp-product-page .gp-contact-block .gp-contact-form-wrap {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
  }

  body.single-product .gp-contact-block .gp-contact-form-wrap .gp-lead,
  .gp-product-page .gp-contact-block .gp-contact-form-wrap .gp-lead {
    max-width: 100%;
  }

  body.single-product .gp-contact-block .gp-lead-inline,
  .gp-product-page .gp-contact-block .gp-lead-inline {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  body.single-product .gp-contact-block .gp-lead-input,
  body.single-product .gp-contact-block .gp-lead-btn,
  .gp-product-page .gp-contact-block .gp-lead-input,
  .gp-product-page .gp-contact-block .gp-lead-btn {
    width: 100%;
    flex: 1 1 auto;
  }

  body.single-product .gp-contact-block .gp-lead-btn,
  .gp-product-page .gp-contact-block .gp-lead-btn {
    justify-content: center;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 1024px) {
  body.single-product .gp-content-block:nth-of-type(even) {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.single-product .gp-gallery-carousel-wrap {
    padding: 0 2.5rem;
  }
}

@media (max-width: 768px) {
  html:has(body.single-product),
  html:has(body.post-type-archive-product),
  html:has(body.tax-product_type) {
    overflow-x: hidden;
  }

  body.single-product,
  body.post-type-archive-product,
  body.tax-product_type {
    overflow-x: hidden;
  }

  body.single-product #page,
  body.single-product .site-content,
  body.post-type-archive-product #page,
  body.post-type-archive-product .site-content,
  body.tax-product_type #page,
  body.tax-product_type .site-content {
    overflow-x: hidden;
  }

  /* Pe mobil: fără margini negative la blocuri even – elimină scroll orizontal */
  body.single-product .gp-content-block:nth-of-type(even) {
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--gp-mobile-edge, 0.875rem);
    padding-right: var(--gp-mobile-edge, 0.875rem);
  }

  body.single-product .gp-product-page,
  body.post-type-archive-product .gp-product-page,
  body.tax-product_type .gp-product-page {
    --gp-gap-section: 3.5rem;
    --gp-padding-block: 3rem;
    --gp-gap-inner: 1.5rem;
  }

  body.single-product .gp-product-header {
    padding: 3rem 0;
  }

  body.single-product .gp-section-title {
    font-size: clamp(1.375rem, 5vw, 1.75rem);
  }

  body.single-product .gp-product-excerpt p {
    max-width: none;
  }

  body.single-product .gp-content-block,
  body.single-product .gp-product-specs {
    padding-left: 0;
    padding-right: 0;
  }

  body.single-product .gp-spec-label,
  body.single-product .gp-spec-value {
    padding: 0.875rem 1.25rem;
  }

  body.single-product .gp-gallery-carousel-wrap {
    padding: 0 2rem;
  }

  body.single-product .gp-gallery-item img {
    height: 220px;
  }
}
