/* ============================================================
   CAMPERLEVANTE — Product Page Redesign
   Clean, spacious, modern e-commerce layout
   Brand: #e3051c (red) · #253237 (dark) · #f6f6f6 (light)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=Archivo:wght@400;500;600;700;800;900&display=swap');

/* --- Design Tokens --- */
:root {
  --cam-red: #e3051c;
  --cam-red-hover: #c80418;
  --cam-red-light: rgba(227, 5, 28, 0.06);
  --cam-red-glow: rgba(227, 5, 28, 0.12);
  --cam-dark: #1a2529;
  --cam-dark-soft: #3a4d54;
  --cam-gray-700: #4a5a61;
  --cam-gray-500: #6b7d85;
  --cam-gray-400: #94a3ab;
  --cam-gray-300: #bdc8cd;
  --cam-gray-200: #e8ecee;
  --cam-gray-100: #f3f5f6;
  --cam-light: #f8f9fa;
  --cam-white: #ffffff;
  --cam-green: #0d8a4a;
  --cam-orange: #e67e22;

  --cam-font-display: 'Archivo', system-ui, sans-serif;
  --cam-font-body: 'DM Sans', system-ui, sans-serif;

  --cam-radius-sm: 6px;
  --cam-radius: 10px;
  --cam-radius-lg: 14px;

  --cam-shadow-sm: 0 1px 3px rgba(37, 50, 55, 0.06);
  --cam-shadow-md: 0 4px 16px rgba(37, 50, 55, 0.08);

  --cam-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --cam-duration: 0.2s;
}

/* ============================================================
   WRAPPER — Fullwidth override
   ============================================================ */
#wrapper{
  padding-top: 1rem;
}

/* Product details div - oculto pero presente para JS de PrestaShop */
#product-details:empty,
#product-details:not(:has(*)) {
  display: none;
}

#wrapper > .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#wrapper > .container > a {
  width: 100% !important;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1.5rem 2.5rem !important;
  margin: 0 !important;
  font-size: 1.2rem;
  background: transparent !important;
}

/* ============================================================
   MAIN CONTAINER — Fullwidth
   ============================================================ */
section#main[itemtype="https://schema.org/Product"] {
  font-family: var(--cam-font-body) !important;
  color: var(--cam-dark);
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide the old slider-based gallery */
section#main .images-container,
section#main .product-cover.slider-for,
section#main .product-images.slider-nav {
  display: none !important;
}

/* ============================================================
   PRODUCT LAYOUT
   ============================================================ */
section#main .cam-product-layout {
  width: 100%;
}

section#main .cam-product-row {
    display: flex;
    align-items: stretch;
    gap: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* ============================================================
   GALLERY — 2-column Mosaic
   ============================================================ */
section#main .cam-product-gallery {
  position: relative;
  flex: 1;
  min-width: 0;
  align-self: stretch;
}

section#main .cam-product-gallery .page-content {
  margin: 0;
  padding: 0;
}

/* Product flags */
section#main ul.product-flag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 10;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

section#main ul.product-flag li {
  font-family: var(--cam-font-display) !important;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  border-radius: var(--cam-radius-sm) !important;
  line-height: 1.2;
}

section#main ul.product-flag li.discount,
section#main ul.product-flag li.on-sale {
  background: var(--cam-red) !important;
  color: var(--cam-white) !important;
}

section#main ul.product-flag li.new {
  background: var(--cam-dark) !important;
  color: var(--cam-white) !important;
}

/* Mosaic Grid - First image large, rest in 2-col grid */
section#main .cam-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

/* First image spans full width */
section#main .cam-mosaic-item:first-child {
  grid-column: 1 / -1;
}

section#main .cam-mosaic-item {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--cam-gray-100);
  display: block;
  text-decoration: none;
}

section#main .cam-mosaic-item:first-child {
  max-height: 500px;
}

section#main .cam-mosaic-item:not(:first-child) {
  height: 300px;
}

section#main .cam-mosaic-item:before {
  content: '';
  background-color: rgba(0, 0, 0, 0.02);
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 9;
  pointer-events: none;
}

section#main .cam-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s var(--cam-ease);
}

section#main .cam-mosaic-item:hover img {
  transform: scale(1.03);
}

/* ============================================================
   RIGHT COLUMN — Product Info (Sticky)
   ============================================================ */
section#main .cam-product-info {
  position: sticky;
  top: 0;
  width: 460px;
  flex-shrink: 0;
  align-self: flex-start;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cam-gray-300) transparent;
}

section#main .cam-product-info::-webkit-scrollbar {
  width: 4px;
}
section#main .cam-product-info::-webkit-scrollbar-thumb {
  background: var(--cam-gray-300);
  border-radius: 4px;
}

section#main .content_info {
  padding: 0 2rem 3rem !important;
  border: none !important;
  border-radius: 0 !important;
  animation: cam-fadeUp 0.4s var(--cam-ease) both;
}

/* ============================================================
   PRODUCT TITLE — Large, bold, prominent
   ============================================================ */
section#main h1.namne_details {
  font-family: var(--cam-font-display) !important;
  font-weight: 600 !important;
  font-size: 2.2rem !important;
  line-height: 1.25;
  color: var(--cam-dark) !important;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem !important;
}

/* Reference */
section#main .content_info > .reference {
  font-family: var(--cam-font-body) !important;
  font-size: 1.1rem !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  color: var(--cam-gray-400) !important;
  margin: 0 0 0.75rem !important;
  display: block !important;
}

/* ============================================================
   PRICES — Clean, no borders
   ============================================================ */
section#main .product-prices {
  margin: 3rem 0 1rem !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
}

section#main .product-price .current-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

section#main .product-price .current-price > span[itemprop="price"] {
  font-family: var(--cam-font-display) !important;
  font-weight: 600 !important;
  font-size: 3rem !important;
  color: var(--cam-dark) !important;
  line-height: 1;
  letter-spacing: -0.01em;
}

section#main .product-price.has-discount .current-price > span[itemprop="price"] {
  color: var(--cam-red) !important;
}

/* Discount badge */
section#main .product-price .discount {
  font-family: var(--cam-font-display) !important;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--cam-radius-sm) !important;
  line-height: 1.2;
}

section#main .product-price .discount-percentage {
  background: var(--cam-red) !important;
  color: var(--cam-white) !important;
}

section#main .product-price .discount-amount {
  background: var(--cam-red-light) !important;
  color: var(--cam-red) !important;
}

/* Regular (old) price */
section#main .product-discount .regular-price {
  font-size: 1.6rem;
  color: var(--cam-gray-400) !important;
  text-decoration: line-through;
}

/* Tax / delivery - Hidden */
section#main .tax-shipping-delivery-label {
  display: none;
}

/* ============================================================
   DESCRIPTION SHORT — Readable, no borders
   ============================================================ */
section#main .product-description-short {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--cam-gray-700);
  margin-bottom: 1.75rem;
  padding: 0 !important;
  border: none !important;
}

section#main .product-description-short ul {
  padding-left: 0;
  list-style: none;
  margin: 0.5rem 0;
}

section#main .product-description-short ul li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.4rem;
}

section#main .product-description-short ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--cam-red);
  border-radius: 50%;
}

/* Description link */
section#main .cam-description-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--cam-font-display) !important;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cam-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  transition: color var(--cam-duration) var(--cam-ease);
}

section#main .cam-description-link:hover {
  color: var(--cam-red);
}

section#main .cam-description-link .cam-arrow {
  font-size: 1.4rem;
  transition: transform var(--cam-duration) var(--cam-ease);
}

section#main .cam-description-link:hover .cam-arrow {
  transform: translateX(4px);
}

/* Attachments Dropdown */
section#main .cam-attachments-dropdown {
  margin-top: 0.75rem;
  position: relative;
}

section#main .cam-attachments-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--cam-font-display) !important;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cam-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: none;
  border: none;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color var(--cam-duration) var(--cam-ease);
}

section#main .cam-attachments-toggle:hover {
  color: var(--cam-red);
}

section#main .cam-attachments-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

section#main .cam-attachments-icon svg {
  width: 16px;
  height: 16px;
}

section#main .cam-attachments-chevron {
  font-size: 0.8rem;
  transition: transform var(--cam-duration) var(--cam-ease);
  margin-left: 0.25rem;
}

section#main .cam-attachments-dropdown.is-open .cam-attachments-chevron {
  transform: rotate(180deg);
}

section#main .cam-attachments-list {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--cam-gray-100);
  border-radius: var(--cam-radius);
  border-left: 3px solid var(--cam-red);
}

section#main .cam-attachments-dropdown.is-open .cam-attachments-list {
  display: flex;
}

section#main .cam-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--cam-white);
  border-radius: var(--cam-radius-sm);
  text-decoration: none;
  transition: all var(--cam-duration) var(--cam-ease);
  border: 1px solid var(--cam-gray-200);
}

section#main .cam-attachment-item:hover {
  border-color: var(--cam-red);
  box-shadow: 0 2px 8px rgba(227, 5, 28, 0.1);
}

section#main .cam-attachment-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

section#main .cam-attachment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

section#main .cam-attachment-icon--pdf {
  color: #e3051c;
}

section#main .cam-attachment-icon svg {
  width: 20px;
  height: 20px;
}

section#main .cam-attachment-name {
  font-family: var(--cam-font-body) !important;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cam-dark);
}

section#main .cam-attachment-item:hover .cam-attachment-name {
  color: var(--cam-red);
}

section#main .cam-attachment-size {
  font-family: var(--cam-font-body) !important;
  font-size: 1.1rem;
  color: var(--cam-gray-400);
  background: var(--cam-gray-100);
  padding: 0.2rem 0.5rem;
  border-radius: var(--cam-radius-sm);
}

/* ============================================================
   DESCRIPTION SIDEBAR
   ============================================================ */
.cam-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s 0.35s; /* delay visibility change until animation completes */
}

.cam-sidebar.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s 0s; /* immediate visibility on open */
}

.cam-sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 50, 55, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cam-sidebar.is-open .cam-sidebar-overlay {
  opacity: 1;
}

.cam-sidebar-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 520px;
  height: 100%;
  background: var(--cam-white);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(37, 50, 55, 0.15);
}

.cam-sidebar.is-open .cam-sidebar-content {
  transform: translateX(0);
}

.cam-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--cam-gray-200);
  flex-shrink: 0;
}

.cam-sidebar-title {
  font-family: var(--cam-font-display) !important;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cam-dark);
  margin: 0;
}

.cam-sidebar-close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--cam-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--cam-duration) var(--cam-ease);
}

.cam-sidebar-close:hover {
  color: var(--cam-red);
}

.cam-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--cam-gray-700);
}

.cam-sidebar-body h2,
.cam-sidebar-body h3,
.cam-sidebar-body h4 {
  font-family: var(--cam-font-display) !important;
  font-weight: 700;
  color: var(--cam-dark);
  margin: 1.5rem 0 0.75rem;
}

.cam-sidebar-body h2:first-child,
.cam-sidebar-body h3:first-child,
.cam-sidebar-body h4:first-child {
  margin-top: 0;
}

.cam-sidebar-body p {
  margin-bottom: 1rem;
}

.cam-sidebar-body ul,
.cam-sidebar-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.cam-sidebar-body li {
  margin-bottom: 0.5rem;
}

.cam-sidebar-body img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

.cam-sidebar-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.cam-sidebar-body table th,
.cam-sidebar-body table td {
  padding: 0.75rem;
  border: 1px solid var(--cam-gray-200);
  text-align: left;
}

.cam-sidebar-body table th {
  background: var(--cam-gray-100);
  font-weight: 600;
}

/* Body lock when sidebar is open */
body.cam-sidebar-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  .cam-sidebar-content {
    max-width: 100%;
  }

  .cam-sidebar-header {
    padding: 1rem 1.25rem;
  }

  .cam-sidebar-body {
    padding: 1.25rem;
  }
}

/* ============================================================
   VARIANTS — Clean
   ============================================================ */
section#main .product-variants {
  margin: 1rem 0 1.25rem;
}

section#main .product-variants:empty,
section#main .product-variants:not(:has(*)) {
  display: none !important;
  margin: 0 !important;
}

section#main .product-variants-item {
  margin-bottom: 1rem;
}

section#main .product-variants-item > .control-label {
  font-family: var(--cam-font-display) !important;
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cam-dark);
  display: block;
  margin-bottom: 0.5rem;
}

section#main .product-variants-item select.form-control {
  font-family: var(--cam-font-body) !important;
  font-size: 1.4rem;
  border: 1.5px solid var(--cam-gray-200) !important;
  border-radius: var(--cam-radius) !important;
  padding: 0.6rem 2.5rem 0.6rem 0.85rem;
  background: var(--cam-white) !important;
  color: var(--cam-dark);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%234a5a61'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  transition: border-color var(--cam-duration) var(--cam-ease);
}

section#main .product-variants-item select.form-control:focus {
  border-color: var(--cam-red) !important;
  box-shadow: 0 0 0 3px var(--cam-red-glow) !important;
  outline: none;
}

/* Color swatches */
section#main .product-variants-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

section#main .product-variants-item .input-container { float: none !important; }

section#main .product-variants-item .input-color {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

section#main .product-variants-item .input-color + .color {
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  display: block;
  border: 2px solid var(--cam-gray-200);
  cursor: pointer;
  transition: all var(--cam-duration) var(--cam-ease);
}

section#main .product-variants-item .input-color:checked + .color {
  border-color: var(--cam-red) !important;
  box-shadow: 0 0 0 2px var(--cam-red-glow);
  transform: scale(1.1);
}

/* Radio variant */
section#main .product-variants-item .input-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

section#main .product-variants-item .radio-label {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--cam-gray-200) !important;
  border-radius: var(--cam-radius) !important;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--cam-dark);
  cursor: pointer;
  transition: all var(--cam-duration) var(--cam-ease);
  background: var(--cam-white);
}

section#main .product-variants-item .input-radio:checked + .radio-label {
  border-color: var(--cam-red) !important;
  background: var(--cam-red-light) !important;
  color: var(--cam-red) !important;
  font-weight: 600;
}

/* ============================================================
   ADD TO CART
   ============================================================ */
section#main .product-add-to-cart {
  margin: 0.75rem 0 1rem;
}

section#main .product-add-to-cart > .control-label {
  display: none !important;
}

section#main .product-quantity {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
}

/* Quantity input */
section#main .product-quantity .qty { flex: 0 0 auto; }

/* Add to Cart button */
section#main .product-quantity .add { flex: 1; }

section#main .product-actions .product-quantity .add button.btn.add-to-cart,
section#main .product-quantity .add .btn.btn-primary.add-to-cart {
  width: 100% !important;
  height: 54px !important;
  font-family: var(--cam-font-display) !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none !important;
  border-radius: var(--cam-radius) !important;
  background: var(--cam-dark) !important;
  color: var(--cam-white) !important;
  cursor: pointer;
  transition: all var(--cam-duration) var(--cam-ease);
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 1.5rem;
  line-height: 1;
}

section#main .product-actions .product-quantity .add button.btn.add-to-cart:hover,
section#main .product-quantity .add .btn.btn-primary.add-to-cart:hover {
  background: var(--cam-red) !important;
}

section#main .product-actions .product-quantity .add button.btn.add-to-cart:active,
section#main .product-quantity .add .btn.btn-primary.add-to-cart:active {
  transform: scale(0.98);
}

section#main .product-actions .product-quantity .add button.btn.add-to-cart:disabled,
section#main .product-quantity .add .btn.btn-primary.add-to-cart:disabled {
  background: var(--cam-gray-300) !important;
  cursor: not-allowed;
}

section#main .product-quantity .add .btn.add-to-cart .shopping-cart {
  font-size: 1.6rem;
}

/* Hide bootstrap-touchspin arrows */
section#main .input-group-btn-vertical,
section#main .bootstrap-touchspin-up,
section#main .bootstrap-touchspin-down {
  display: none !important;
}
section#main .cam-qty-control .bootstrap-touchspin {
  display: contents !important;
}

/* Availability */
section#main #product-availability {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-size: 1.3rem;
  font-weight: 500;
}

section#main #product-availability .product-available { color: var(--cam-green) !important; }
section#main #product-availability .product-last-items { color: var(--cam-orange) !important; }
section#main #product-availability .product-unavailable { color: var(--cam-red) !important; }

section#main .product-minimal-quantity {
  font-size: 1.2rem;
  color: var(--cam-gray-500);
  margin-top: 0.3rem;
}

/* ============================================================
   QUANTITY CONTROL — Enhanced by JS
   ============================================================ */
section#main .cam-qty-control {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--cam-gray-200);
  border-radius: var(--cam-radius) !important;
  overflow: hidden;
  background: var(--cam-white);
  height: 54px;
}

section#main .cam-qty-btn {
  width: 40px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cam-dark);
  cursor: pointer;
  transition: all var(--cam-duration) var(--cam-ease);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

section#main .cam-qty-btn:hover {
  background: var(--cam-dark);
  color: var(--cam-white);
}

section#main .cam-qty-control input#quantity_wanted {
  width: 42px !important;
  height: 100% !important;
  text-align: center;
  border: none !important;
  border-radius: 0 !important;
  background: var(--cam-white) !important;
  font-family: var(--cam-font-display) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--cam-dark) !important;
  -moz-appearance: textfield;
  padding: 0;
  box-shadow: none !important;
}

section#main .cam-qty-control input#quantity_wanted::-webkit-outer-spin-button,
section#main .cam-qty-control input#quantity_wanted::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

section#main .cam-qty-control input#quantity_wanted:focus {
  outline: none;
  box-shadow: none !important;
}

/* ============================================================
   DISCOUNTS TABLE
   ============================================================ */
section#main .product-discounts { margin: 0.75rem 0; }

section#main .product-discounts-title {
  font-family: var(--cam-font-display) !important;
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cam-dark);
  margin-bottom: 0.5rem;
}

section#main .table-product-discounts {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--cam-radius) !important;
  overflow: hidden;
  border: 1px solid var(--cam-gray-200);
  font-size: 1.4rem;
}

section#main .table-product-discounts thead { background: var(--cam-light); }

section#main .table-product-discounts th {
  font-family: var(--cam-font-display) !important;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cam-gray-700);
  padding: 0.55rem 0.85rem;
  text-align: left;
}

section#main .table-product-discounts td {
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--cam-gray-100);
}

/* ============================================================
   ADDITIONAL INFO / SOCIAL SHARING — Subtle separator
   ============================================================ */
section#main .product-additional-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--cam-gray-500);
}

section#main .social-sharing {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}

/* ============================================================
   REASSURANCE
   ============================================================ */
section#main .product-information [id*="reassurance"] {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cam-gray-100);
}

/* ============================================================
   TABS — Industrial Elegance Design
   ============================================================ */
section#main .tabs {
  margin: 3rem 2.5rem 0;
  padding: 0;
  max-width: 1000px;
  background: var(--cam-white);
  border-radius: var(--cam-radius-lg);
  box-shadow:
    0 1px 2px rgba(26, 37, 41, 0.04),
    0 4px 16px rgba(26, 37, 41, 0.06);
  overflow: hidden;
}

section#main .tabs:after {
  display: none;
}

/* Tab Navigation Container */
section#main .tabs .nav-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--cam-gray-100) !important;
  border: none !important;
  position: relative;
}

section#main .tabs .nav-tabs .nav-item {
  flex: 1;
  margin: 0;
}

/* Tab Links */
section#main .tabs .nav-tabs .nav-link {
  font-family: var(--cam-font-display) !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cam-gray-500) !important;
  padding: 1.4rem 2rem !important;
  border: none !important;
  background: transparent !important;
  transition: all 0.3s var(--cam-ease);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  text-align: center;
  width: 100%;
}

/* Hover effect */
section#main .tabs .nav-tabs .nav-link:hover {
  color: var(--cam-dark) !important;
  background: rgba(255, 255, 255, 0.5) !important;
}

/* Active tab - solid dark block */
section#main .tabs .nav-tabs .nav-link.active {
  color: var(--cam-white) !important;
  background: var(--cam-dark) !important;
  box-shadow: inset 0 -3px 0 var(--cam-red);
}

/* Red accent bar animation on active */
section#main .tabs .nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cam-red);
  animation: cam-tabSlide 0.3s var(--cam-ease);
}

@keyframes cam-tabSlide {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Tab Content Area */
section#main .tab-content {
  padding: 2.5rem;
  background: var(--cam-white) !important;
  animation: cam-tabFade 0.4s var(--cam-ease);
}

section#main .tab-content > .tab-pane {
  animation: cam-tabFade 0.35s var(--cam-ease);
}

@keyframes cam-tabFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Description Content */
section#main .product-description {
  font-size: 1.45rem;
  line-height: 1.8;
  color: var(--cam-gray-700);
}

section#main .product-description p {
  margin-bottom: 1.2rem;
}

section#main .product-description p:last-child {
  margin-bottom: 0;
}

section#main .product-description ul,
section#main .product-description ol {
  padding-left: 0;
  margin: 1rem 0;
  list-style: none;
}

section#main .product-description li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

section#main .product-description li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--cam-red);
  border-radius: 50%;
}

section#main .product-description h2,
section#main .product-description h3,
section#main .product-description h4 {
  font-family: var(--cam-font-display) !important;
  font-weight: 700;
  color: var(--cam-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

section#main .product-description img {
  border-radius: var(--cam-radius);
  max-width: 100%;
  height: auto;
}

section#main .product-description table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

section#main .product-description table th,
section#main .product-description table td {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--cam-gray-200);
  font-size: 1.4rem;
}

section#main .product-description table th {
  background: var(--cam-light);
  font-weight: 600;
}

/* Data sheet / features - Enhanced Grid */
section#main .product-features .h6 {
  font-family: var(--cam-font-display) !important;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cam-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--cam-gray-100);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

section#main .product-features .h6::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: var(--cam-red);
  border-radius: 2px;
}

section#main .data-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--cam-radius);
  overflow: hidden;
  border: 1px solid var(--cam-gray-200);
}

section#main .data-sheet dt.name {
  font-family: var(--cam-font-display) !important;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--cam-gray-700);
  padding: 0.9rem 1rem;
  background: var(--cam-gray-100);
  border-bottom: 1px solid var(--cam-gray-200);
  margin: 0;
}

section#main .data-sheet dd.value {
  font-size: 1.35rem;
  color: var(--cam-dark);
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--cam-gray-200);
  margin: 0;
  background: var(--cam-white);
  font-weight: 500;
}

/* Remove bottom border on last row */
section#main .data-sheet dt.name:nth-last-of-type(1),
section#main .data-sheet dd.value:last-of-type {
  border-bottom: none;
}

/* ============================================================
   MISC — Clean up spacing
   ============================================================ */
section#main .product-information {
  margin-top: 0;
}

section#main .product-actions {
  margin-top: 0;
  padding-top: 0;
}

/* Remove all stray borders, hr, and separators from inner elements */
section#main .content_info hr,
section#main .product-information hr {
  display: none !important;
}

section#main .content_info > *:not(h1):not(.product-prices):not(.product-add-to-cart) {
  border-top: none !important;
  border-bottom: none !important;
}

/* Kill borders from theme base on key sections */
section#main .product-information .product-description-short,
section#main .product-prices,
section#main .social-sharing,
section#main .product-additional-info .social-sharing {
  border: none !important;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes cam-fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (min-width: 992px) and (max-width: 1199px) {
  section#main .cam-product-info {
    width: 400px;
  }

  section#main .content_info {
    padding: 2rem !important;
  }

  section#main h1.namne_details {
    font-size: 2.8rem !important;
  }
}

@media (min-width: 1400px) {
  section#main .cam-product-info {
    width: 520px;
  }

  section#main h1.namne_details {
    font-size: 3.6rem !important;
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 991px) {
  section#main .cam-product-row {
    flex-direction: column;
  }

  section#main .cam-product-info {
    position: static;
    width: 100%;
    max-height: none;
    overflow-y: visible;
  }

  section#main .content_info {
    padding: 1.5rem 1.25rem 2rem !important;
    border-left: none !important;
  }

  section#main .cam-mosaic {
    gap: 2px;
  }

  section#main .cam-mosaic-item {
    aspect-ratio: auto;
  }

  section#main .product-price .current-price > span[itemprop="price"] {
    font-size: 2.6rem !important;
  }
}

@media (max-width: 767px) {
  .breadcrumb {
    padding: 0.5rem 1rem !important;
  }

  section#main h1.namne_details {
    font-size: 2.4rem !important;
  }

  section#main .product-price .current-price > span[itemprop="price"] {
    font-size: 2.2rem !important;
  }

  /* Sticky add-to-cart on mobile */
  section#main .product-add-to-cart {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: var(--cam-white) !important;
    margin: 1.25rem -1.25rem 0;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--cam-gray-200);
    box-shadow: 0 -2px 12px rgba(37, 50, 55, 0.08);
  }

  section#main .product-add-to-cart > .control-label {
    display: none;
  }

  section#main .product-quantity {
    gap: 0.5rem !important;
  }

  section#main .product-actions .product-quantity .add button.btn.add-to-cart,
  section#main .product-quantity .add .btn.btn-primary.add-to-cart {
    height: 48px !important;
    font-size: 1.15rem !important;
    padding: 0 0.75rem !important;
    letter-spacing: 0.05em !important;
  }

  section#main .cam-qty-control {
    height: 48px !important;
    min-width: 100px;
  }

  section#main .cam-qty-btn {
    width: 32px !important;
  }

  /* Tabs Mobile */
  section#main .tabs {
    margin: 2rem 1rem 0;
    border-radius: var(--cam-radius);
  }

  section#main .tabs .nav-tabs {
    flex-direction: column;
  }

  section#main .tabs .nav-tabs .nav-item {
    border-bottom: 1px solid var(--cam-gray-200);
  }

  section#main .tabs .nav-tabs .nav-item:last-child {
    border-bottom: none;
  }

  section#main .tabs .nav-tabs .nav-link {
    padding: 1.1rem 1.25rem !important;
    font-size: 1.1rem !important;
    justify-content: flex-start;
  }

  section#main .tabs .nav-tabs .nav-link.active {
    box-shadow: inset 4px 0 0 var(--cam-red);
  }

  section#main .tabs .nav-tabs .nav-link.active::after {
    display: none;
  }

  section#main .tab-content {
    padding: 1.5rem 1.25rem;
  }

  section#main .data-sheet {
    grid-template-columns: 1fr;
  }

  section#main .data-sheet dt.name,
  section#main .data-sheet dd.value {
    padding: 0.75rem 0.85rem;
  }
}

/* ============================================================
   RELATED PRODUCTS SLIDER — Category Products
   Solo contenedor, título y navegación (tarjetas sin modificar)
   ============================================================ */
.categoryproducts {
  margin: 8rem auto 2rem;
  padding: 4.5rem 1.5rem;
  max-width: 1320px;
  position: relative;
}

/* Fondo gris que ocupa todo el ancho */
.categoryproducts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background-color: var(--cam-gray-100);
  border-top: 1px solid var(--cam-gray-200);
  z-index: -1;
}

/* Section Header */
.categoryproducts .pos_title {
  margin-bottom: 2.5rem;
  padding: 0;
  text-align: center;
  border: none;
}

.categoryproducts .pos_title::after {
  display: none !important;
}

.categoryproducts .pos_title h2 {
  font-family: var(--cam-font-display) !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--cam-dark) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

.categoryproducts .pos_title h2::before,
.categoryproducts .pos_title h2::after {
  display: none !important;
}

.categoryproducts .pos_title .desc_title {
  display: none !important;
}

/* Slider Container */
.categoryproducts .pos_content {
  margin: 0;
  padding: 0;
}

.categoryproducts .product_categoryslide {
  padding: 0.5rem 0;
}

/* Igualar altura de todos los productos */
.categoryproducts .owl-stage {
  display: flex !important;
  align-items: stretch !important;
}

.categoryproducts .owl-item {
  display: flex !important;
  height: auto !important;
}

.categoryproducts .owl-item > * {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.categoryproducts .product-miniature {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.8rem;
}

.categoryproducts .product-miniature .cart {
    bottom: 2rem !important;
}

.categoryproducts .product-miniature .product_desc {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Owl Carousel Navigation Arrows */
.categoryproducts .owl-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.categoryproducts .owl-nav > div {
  top: -5rem;
}

.categoryproducts .owl-nav button.owl-prev,
.categoryproducts .owl-nav button.owl-next {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--cam-white) !important;
  border: 1.5px solid var(--cam-gray-200) !important;
  color: var(--cam-dark) !important;
  font-size: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--cam-ease);
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
}

.categoryproducts .owl-nav button.owl-prev:hover,
.categoryproducts .owl-nav button.owl-next:hover {
  background: var(--cam-dark) !important;
  border-color: var(--cam-dark) !important;
  color: var(--cam-white) !important;
}

.categoryproducts .owl-nav button.owl-prev::before,
.categoryproducts .owl-nav button.owl-next::before {
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.categoryproducts .owl-nav button.owl-prev::before {
  content: '←';
}

.categoryproducts .owl-nav button.owl-next::before {
  content: '→';
}

.categoryproducts .owl-nav button.owl-prev span,
.categoryproducts .owl-nav button.owl-next span {
  display: none !important;
}

/* Disabled state */
.categoryproducts .owl-nav button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.categoryproducts .owl-nav button.disabled:hover {
  background: var(--cam-white) !important;
  border-color: var(--cam-gray-200) !important;
  color: var(--cam-dark) !important;
}

/* Owl Carousel Dots */
.categoryproducts .owl-dots {
  display: none;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .categoryproducts {
    padding: 2.5rem 1rem;
    margin: 3rem auto 1.5rem;
  }
}

@media (max-width: 767px) {
  .categoryproducts {
    padding: 3rem 2rem;
    margin: 2rem auto 1rem;
  }

  .categoryproducts .pos_title {
    text-align: left;
    padding-right: 10rem;
}

  .categoryproducts .pos_title h2 {
    font-size: 1.4rem !important;
  }
  .categoryproducts .owl-nav > div {
    top: -6.5rem;
}
}

/* ============================================================
   MOBILE GALLERY SWIPER
   ============================================================ */

/* Desktop: hide swiper scrollbar */
section#main .cam-gallery-swiper .swiper-scrollbar {
  display: none;
}

/* Desktop: swiper-wrapper acts as grid container */
section#main .cam-gallery-swiper .swiper-wrapper {
  display: contents;
}

/* Mobile: Swiper initialized - override grid styles */
@media (max-width: 767px) {
  section#main .cam-mosaic.cam-gallery-swiper.swiper-initialized {
    display: block !important;
    position: relative;
    overflow: hidden;
    padding-bottom: 1.5rem;
  }

  section#main .cam-gallery-swiper.swiper-initialized .swiper-wrapper {
    display: flex !important;
  }

  section#main .cam-gallery-swiper.swiper-initialized .swiper-slide {
    flex-shrink: 0;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }

  section#main .cam-gallery-swiper.swiper-initialized .swiper-slide:first-child {
    grid-column: unset;
    max-height: none !important;
  }

  section#main .cam-gallery-swiper.swiper-initialized .swiper-slide img {
    width: 100%;
    height: auto !important;
    max-height: 70vh;
    object-fit: contain;
  }

  section#main .cam-gallery-swiper.swiper-initialized .swiper-scrollbar {
    display: block;
    position: absolute;
    left: 5%;
    bottom: 0;
    width: 90%;
    height: 4px;
    background: var(--cam-gray-200);
    border-radius: 4px;
  }

  section#main .cam-gallery-swiper .swiper-scrollbar-drag {
    height: 100%;
    background: var(--cam-dark);
    border-radius: 4px;
    cursor: grab;
  }

  section#main .cam-gallery-swiper .swiper-scrollbar-drag:active {
    cursor: grabbing;
  }
}
