/*
 * Ecommerce layer over the legacy site.css, Amazon structure (see the
 * 2026-10-18 audit): dark main bar #131921 + menu bar #232F3E with white
 * text, white 8px search with the brand-orange button, #EAEDED page with
 * white 8px cards, Amazon-style footer with a "Back to top" bar.
 * Brand: the legacy Metaideas orange #FF9E4B (site.css --amarillo-color).
 *
 * The procure portal (procure.metaideas.com = this same frontend with
 * PROCURE_WEB) carries an identical copy in src/styles/shop.css: keep in sync.
 */
:root {
  /* One height for every banner: the menu strip, Produced / proposal band
     and the thematic catalog banner. */
  --shop-banner-h: 280px;
  --shop-header: #131921;
  --shop-nav: #232f3e;
  --shop-strip: #e3e6e6;
  --shop-nav-hover: #37475a;
  --shop-footer: #232f3e;
  --shop-footer-top: #37475a;
  --shop-footer-bottom: #131a22;
  --shop-accent: #ff9e4b;
  --shop-accent-hover: #f58a2c;
  --shop-accent-ink: #0f1111;
  --shop-link: #007185;
  --shop-link-hover: #c7511f;
  --shop-bg: #eaeded;
  --shop-surface: #ffffff;
  --shop-line: #d5d9d9;
  --shop-ink: #0f1111;
  --shop-muted: #565959;
  --shop-success: #007600;
  --shop-radius-sm: 4px;
  --shop-radius: 8px;
  --shop-shadow-hover: 0 4px 16px rgba(15, 17, 17, 0.15);
  --shop-shadow-pop: 0 8px 28px rgba(15, 17, 17, 0.25);
  --shop-max: 1500px;
  --shop-gutter: clamp(12px, 2vw, 24px);
}

body.l-main {
  background: var(--shop-bg);
  color: var(--shop-ink);
}
body.l-main main > .container-fluid {
  width: 100%;
  max-width: var(--shop-max);
  padding: 0 var(--shop-gutter) 32px;
  margin: 0 auto;
}
body.l-main section.full {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
.shop-wrap {
  max-width: var(--shop-max);
  margin: 0 auto;
  padding: 0 var(--shop-gutter);
}
body.l-main a {
  color: var(--shop-link);
}
body.l-main a:hover {
  color: var(--shop-link-hover);
}

/* ── Buttons & chips ───────────────────────────────────────────────── */
.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--shop-accent);
  color: var(--shop-accent-ink) !important;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
  white-space: nowrap;
}
.shop-btn:hover {
  background: var(--shop-accent-hover);
}
.shop-btn-sm {
  height: 30px;
  padding: 0 14px;
  font-size: 12.5px;
}
.shop-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 2px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.shop-icon-btn:hover {
  border-color: #fff;
}
.shop-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  background: #f0f2f2;
  color: var(--shop-muted);
}
.shop-chip.stock {
  background: #e3f4e8;
  color: #00632e;
}
.shop-chip.premium {
  background: #232f3e;
  color: #fff;
}
.shop-chip.import {
  background: #fff3e6;
  color: #a35200;
}

/* ── Header (Amazon) ───────────────────────────────────────────────── */
.shop-header {
  position: relative;
  z-index: 1030;
  color: #fff;
}
.shop-mainbar {
  background: var(--shop-header);
}
.shop-mainbar > .shop-wrap:first-child {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}
/* Hover outline shared by every header/menu target (Amazon) */
.shop-brand,
.shop-account .who,
a.shop-account,
.shop-icon-btn,
.shop-nav-link {
  border: 1px solid transparent;
  border-radius: 4px;
  transition: border-color 0.12s ease;
}
.shop-brand:hover,
.shop-account .who:hover,
a.shop-account:hover,
.shop-icon-btn:hover,
.shop-nav-link:hover,
.shop-nav-item:hover > .shop-nav-link {
  border-color: rgba(255, 255, 255, 0.85);
}
.shop-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex-shrink: 0;
  padding: 6px 8px;
  text-decoration: none !important;
}
.shop-brand img {
  height: 40px;
  width: auto;
  display: block;
}
.shop-tagline {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--shop-accent);
  line-height: 1;
}
.shop-mainbar-search {
  flex: 1;
  min-width: 220px;
  max-width: 760px;
}
.shop-search {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.shop-search:focus-within {
  box-shadow: 0 0 0 3px var(--shop-accent);
}
.shop-search-icon {
  display: none;
}
.shop-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 14px;
  font-size: 15px;
  color: var(--shop-ink);
  background: #fff;
  outline: none;
}
.shop-search input::placeholder {
  color: #6b7280;
}
.shop-search button {
  width: 52px;
  border: 0;
  background: var(--shop-accent);
  color: var(--shop-accent-ink);
  font-size: 17px;
  flex-shrink: 0;
  transition: background 0.12s ease;
}
.shop-search button:hover {
  background: var(--shop-accent-hover);
}
/* The client's logo (white tile) and name */
.shop-client {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
  min-width: 0;
}
.shop-client .tile {
  background: #fff;
  border-radius: 8px;
  height: 52px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.shop-client img {
  max-height: 40px;
  max-width: 170px;
  width: auto;
  object-fit: contain;
  display: block;
}
.shop-client .name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  max-width: 150px;
}
/* Welcome / e-mail / country / logout (Amazon "Hello, … / Account") */
.shop-account {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff !important;
  text-decoration: none !important;
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.shop-account .who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  padding: 5px 8px;
  min-width: 0;
}
.shop-account .who small {
  font-size: 12px;
  color: #c8ced6;
  white-space: nowrap;
}
.shop-account .who small.country {
  font-size: 11.5px;
  color: #8b95a3;
}
.shop-account .who a,
.shop-account .who strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
a.shop-account {
  font-weight: 700;
  padding: 8px 10px;
  border-left: 0;
}
.shop-icon-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.shop-mobile-search {
  padding-bottom: 10px !important;
}

/* Menu bar (legacy items) */
.shop-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--shop-nav);
  color: #fff;
}
.shop-nav.stuck {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.shop-nav .shop-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
}
.shop-nav-logo {
  display: none;
  flex-shrink: 0;
}
.shop-nav-logo img {
  height: 26px;
  width: auto;
  display: block;
}
.shop-nav.stuck .shop-nav-logo {
  display: block;
}
.shop-nav-items {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 -10px;
  padding: 0;
  list-style: none;
  flex: 1;
  min-width: 0;
  height: 100%;
}
.shop-nav.stuck .shop-nav-items {
  margin-left: 0;
}
.shop-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.shop-nav-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 34px;
}
.shop-nav-link > span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}
.shop-nav-link > span::first-letter {
  text-transform: uppercase;
}
.shop-nav-link small {
  font-size: 12px;
  font-weight: 600;
  color: #9aa6b5;
}
.shop-nav-link.home {
  align-items: center;
  font-size: 16px;
  padding: 0 11px;
}
.shop-nav-link.home > span {
  display: flex;
}
/* Active page: an accent underline, the way current shops mark the section */
.shop-nav-link.active {
  position: relative;
}
.shop-nav-link.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -6px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--shop-accent);
}
.shop-nav-link.active small {
  color: var(--shop-accent);
}

/* Group banners strip (legacy header `.light_banners`) under the menu */
.shop-bannerstrip {
  background: var(--shop-strip);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.shop-bannerstrip .shop-wrap {
  position: relative;
  padding-top: 14px;
  padding-bottom: 14px;
}
.shop-bannerstrip-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shop-bannerstrip-track::-webkit-scrollbar {
  display: none;
}
.shop-bannerstrip-item {
  flex: 0 0 auto;
  height: var(--shop-banner-h);
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  scroll-snap-align: start;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* Centred while they fit, scrolling from the start once they don't */
.shop-bannerstrip-item:first-child {
  margin-left: auto;
}
.shop-bannerstrip-item:last-child {
  margin-right: auto;
}
.shop-bannerstrip-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shop-shadow-hover);
}
.shop-bannerstrip-item img {
  height: 100%;
  width: auto;
  display: block;
}
.shop-bannerstrip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 56px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--shop-ink);
  box-shadow: 0 1px 6px rgba(15, 17, 17, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.shop-bannerstrip-arrow.prev {
  left: calc(var(--shop-gutter) - 10px);
}
.shop-bannerstrip-arrow.next {
  right: calc(var(--shop-gutter) - 10px);
}
.shop-bannerstrip:hover .shop-bannerstrip-arrow,
.shop-bannerstrip-arrow:focus-visible {
  opacity: 1;
}

/* The legacy hover descriptions */
.shop-nav-desc {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  max-width: 340px;
  background: #fff;
  color: var(--shop-ink);
  border-radius: var(--shop-radius);
  box-shadow: var(--shop-shadow-pop);
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.45;
  z-index: 20;
}
.shop-nav-desc::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}
.shop-nav-desc::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: #fff;
}
.shop-nav-desc.large {
  width: min(880px, 90vw);
  max-width: none;
  padding: 16px;
}
.shop-nav-item.has-desc:hover .shop-nav-desc,
.shop-nav-item.has-desc:focus-within .shop-nav-desc {
  display: block;
}
.shop-nav-search {
  display: none;
  width: 320px;
}
.shop-nav.stuck .shop-nav-search {
  display: block;
}
.shop-nav-search .shop-search {
  height: 34px;
}
.shop-nav-search .shop-search button {
  width: 40px;
  font-size: 15px;
}
.shop-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2px;
  max-height: 60vh;
  overflow: auto;
}
.shop-mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: var(--shop-radius-sm);
  color: var(--shop-ink) !important;
  text-decoration: none !important;
  font-size: 14px;
}
.shop-mega-item:hover {
  background: #f0f2f2;
}
.shop-mega-item .thumb {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #f0f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--shop-muted);
}
.shop-mega-item .thumb img {
  max-width: 22px;
  max-height: 22px;
}

/* ── Banner carousels (proposal page, produced page) ───────────────── */
.shop-hero {
  position: relative;
  margin: 16px 0 0;
  border-radius: var(--shop-radius);
  overflow: hidden;
  background: #0b0f14;
  aspect-ratio: 16 / 5;
  max-height: 520px;
  min-height: 140px;
  width: 100%;
}
.shop-hero-track,
.shop-hero-slide {
  position: absolute;
  inset: 0;
}
.shop-hero-slide {
  border: 0;
  padding: 0;
  background: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: zoom-in;
}
.shop-hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.shop-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: var(--shop-ink);
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(15, 17, 17, 0.25);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.shop-hero:hover .shop-hero-arrow,
.shop-hero-arrow:focus-visible {
  opacity: 1;
}
.shop-hero-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}
.shop-hero-arrow.prev {
  left: 16px;
}
.shop-hero-arrow.next {
  right: 16px;
}
.shop-hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(15, 17, 17, 0.35);
  backdrop-filter: blur(4px);
}
.shop-hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}
.shop-hero-dots button.active {
  width: 22px;
  background: #fff;
}
.shop-hero-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
/* "Produced for you": a low full-width band, about the intro card's height.
   The banner is shown whole (contain) over a blurred copy of itself. */
.shop-hero.shop-hero-wide {
  margin: 20px 0 0;
  width: 100%;
  height: var(--shop-banner-h);
  aspect-ratio: auto;
  max-height: none;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.1);
}
.shop-hero-wide .shop-hero-slide .fill {
  position: absolute;
  inset: -120px;
  background-size: cover;
  background-position: center;
  filter: blur(70px) saturate(1.2) brightness(0.6);
}
.shop-hero-wide .shop-hero-slide img {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.shop-hero-wide .shop-hero-slide img {
  position: relative;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

/* ── Lightbox ──────────────────────────────────────────────────────── */
.shop-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 10, 14, 0.96);
  display: flex;
  flex-direction: column;
  color: #fff;
  animation: shop-fade 0.15s ease-out;
}
@keyframes shop-fade {
  from {
    opacity: 0;
  }
}
.shop-lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}
.shop-lightbox-count {
  font-size: 14px;
  color: #ccc;
}
.shop-lightbox-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
}
.shop-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}
.shop-lightbox-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 72px;
}
.shop-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--shop-radius-sm);
  animation: shop-fade 0.2s ease-out;
}
.shop-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
}
.shop-lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.26);
}
.shop-lightbox-arrow.prev {
  left: 14px;
}
.shop-lightbox-arrow.next {
  right: 14px;
}
.shop-lightbox-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}
.shop-lightbox-thumbs button {
  border: 2px solid transparent;
  border-radius: var(--shop-radius-sm);
  padding: 0;
  background: none;
  opacity: 0.55;
  flex-shrink: 0;
}
.shop-lightbox-thumbs button.active {
  border-color: var(--shop-accent);
  opacity: 1;
}
.shop-lightbox-thumbs img {
  height: 54px;
  width: 96px;
  object-fit: cover;
  display: block;
}

/* Group banners popup (legacy popup_group_banner) */
.shop-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: rgba(15, 17, 17, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: shop-fade 0.15s ease-out;
}
.shop-modal {
  position: relative;
  width: min(1140px, 100%);
  background: #fff;
  border-radius: var(--shop-radius);
  padding: 44px 16px 16px;
  box-shadow: var(--shop-shadow-pop);
}
.shop-modal-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 18px;
  color: var(--shop-ink);
}
.shop-modal-close:hover {
  background: #f0f2f2;
}
.shop-modal .shop-banners {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 5;
  border-radius: var(--shop-radius-sm);
}

/* ── Sections ──────────────────────────────────────────────────────── */
.shop-section {
  margin-top: 20px;
}
.shop-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.shop-section-head h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--shop-ink);
  text-transform: lowercase;
}
.shop-section-head h2::first-letter {
  text-transform: uppercase;
}
.shop-panel {
  background: var(--shop-surface);
  border-radius: var(--shop-radius);
  padding: 20px;
}

/* ── Catalog cover cards (Amazon category cards, coloured) ─────────── */
.shop-cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
@media (min-width: 768px) {
  .shop-cover-grid.n-3:not(.compact) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shop-cover-grid.n-2:not(.compact) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shop-cover-grid.n-1:not(.compact) {
    grid-template-columns: minmax(0, 560px);
  }
}
.shop-cover {
  --card-bg: #232f3e;
  --card-fg: #fff;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  color: var(--card-fg) !important;
  border-radius: var(--shop-radius);
  padding: 20px 20px 16px;
  text-decoration: none !important;
  min-height: 380px;
  transition: box-shadow 0.18s;
}
.shop-cover:hover {
  box-shadow: var(--shop-shadow-hover);
  color: var(--card-fg) !important;
}
.shop-cover.current {
  outline: 3px solid var(--shop-accent);
  outline-offset: 2px;
}
.shop-cover-head {
  margin-bottom: 14px;
}
.shop-cover h3 {
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.12;
  font-weight: 800;
  margin: 0;
  color: inherit;
}
.shop-cover-count {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.85;
}
.shop-cover-tiles {
  flex: 1;
  display: grid;
  gap: 8px;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 230px;
}
.shop-cover-tile {
  background: #fff;
  border-radius: var(--shop-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  min-height: 0;
}
.shop-cover-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s;
}
.shop-cover:hover .shop-cover-tile img {
  transform: scale(1.04);
}
.shop-cover-tile:first-child {
  grid-row: span 2;
}
.shop-cover-tile.empty {
  grid-column: 1 / -1;
  color: #9aa3ad;
  font-size: 40px;
}
.shop-cover-tiles.tiles-1 .shop-cover-tile {
  grid-column: 1 / -1;
}
.shop-cover-tiles.tiles-2 {
  grid-template-columns: 1fr 1fr;
}
.shop-cover-tiles.tiles-3 {
  grid-template-columns: 1.2fr 1fr;
}
.shop-cover-tiles.tiles-4 .shop-cover-tile:last-child {
  grid-column: span 2;
}
.shop-cover-cta {
  margin-top: 12px;
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.shop-cover:hover .shop-cover-cta {
  text-decoration: underline;
}
.shop-cover-grid.compact {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  overflow-x: auto;
  gap: 16px;
  padding: 4px 4px 8px;
  margin: 0 -4px;
  scroll-snap-type: x mandatory;
}
.shop-cover-grid.compact .shop-cover {
  min-height: 240px;
  padding: 14px 14px 12px;
  scroll-snap-align: start;
}
.shop-cover-grid.compact .shop-cover h3 {
  font-size: 18px;
}
.shop-cover-grid.compact .shop-cover-tiles {
  min-height: 136px;
}
.shop-cover-grid.compact .shop-cover-cta {
  margin-top: 8px;
  font-size: 12.5px;
}

/* ── Main product (home) ───────────────────────────────────────────── */
.shop-spotlight {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2.4fr);
  background: var(--shop-surface);
  border-radius: var(--shop-radius);
  overflow: hidden;
}
.shop-spotlight-text {
  padding: clamp(20px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.shop-spotlight-text::before {
  content: "";
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: var(--shop-accent);
}
.shop-spotlight-text h2 {
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  margin: 0;
  color: var(--shop-ink);
}
.shop-spotlight-text p {
  color: var(--shop-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-spotlight-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid #f0f2f2;
}
.shop-spotlight-images .tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  aspect-ratio: 1;
}
.shop-spotlight-images .tile + .tile {
  border-left: 1px solid #f0f2f2;
}
.shop-spotlight-images img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s;
}
.shop-spotlight-images .tile:hover img {
  transform: scale(1.04);
}

/* ── Product cards & grids ─────────────────────────────────────────── */
.shop-grid,
body.l-main .custom_list_view .list-view,
body.l-main .similar_products .list-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  width: 100%;
}
@media (min-width: 992px) {
  .shop-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 1200px) {
  .shop-grid.five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
/* Product lists (Produced, My catalog, categories…): 4 per row on desktop,
   so each card gets room for its photo instead of 6 thin columns. */
@media (min-width: 768px) {
  body.l-main .custom_list_view .list-view,
  body.l-main .similar_products .list-view {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 992px) {
  body.l-main .custom_list_view .list-view,
  body.l-main .similar_products .list-view {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
body.l-main .similar_products .list-view .summary {
  display: none;
}
.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--shop-surface);
  border-radius: var(--shop-radius);
  overflow: hidden;
  min-width: 0;
  transition: box-shadow 0.18s;
}
.shop-card:hover {
  box-shadow: var(--shop-shadow-hover);
}
.shop-card-media {
  display: block;
  aspect-ratio: 1;
  background: #fff;
  padding: 18px;
}
.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s;
}
.shop-card:hover .shop-card-media img {
  transform: scale(1.04);
}
.shop-card .product_attributes {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  display: flex;
  gap: 4px;
  z-index: 1;
}
.shop-card .product_attributes img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
}
.shop-card .product_attributes .name {
  font-size: 10px;
  background: #fff;
  border-radius: 3px;
  padding: 2px 5px;
}
.shop-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 14px 14px;
  flex: 1;
}
.shop-card-body .shop-chip {
  align-self: flex-start;
  margin-bottom: 3px;
}
.shop-card-title {
  color: var(--shop-ink) !important;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.35;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.shop-card-title:hover {
  color: var(--shop-link-hover) !important;
}
.shop-card-ref {
  font-size: 12px;
  color: var(--shop-muted);
}
.shop-card-delivery {
  font-size: 12.5px;
  color: var(--shop-success);
}
.shop-card-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.shop-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.shop-price span {
  white-space: nowrap;
}
.shop-price small {
  font-size: 12px;
  color: var(--shop-muted);
}
.shop-price strong {
  font-size: 21px;
  font-weight: 500;
  color: var(--shop-ink);
}
.shop-price.muted {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12.5px;
  color: var(--shop-muted);
}

/* Listing chrome (yii ListView) */
body.l-main .custom_list_view .list_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--shop-surface);
  border-radius: var(--shop-radius);
  padding: 8px 14px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--shop-muted);
}
body.l-main .custom_list_view .list_header .summary {
  flex: 1;
  text-align: left;
  display: block;
}
body.l-main .custom_list_view .list_header .custom_order {
  flex: 0 0 auto;
  text-align: right;
}
body.l-main .custom_order a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin-left: 6px;
  padding: 0 12px;
  border-radius: var(--shop-radius);
  border: 1px solid var(--shop-line);
  background: #f0f2f2;
  color: var(--shop-ink);
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
}
body.l-main .custom_order a:hover {
  background: #e3e6e6;
  color: var(--shop-ink);
}
body.l-main .custom_order a.asc,
body.l-main .custom_order a.desc {
  background: var(--shop-nav);
  color: #fff;
  border-color: var(--shop-nav);
}
body.l-main .pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 24px auto 8px;
  flex-wrap: wrap;
}
body.l-main .pagination li a,
body.l-main .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  margin: 0;
  border-radius: var(--shop-radius);
  border: 1px solid var(--shop-line);
  background: var(--shop-surface);
  color: var(--shop-ink);
  text-decoration: none;
}
body.l-main .pagination li a:hover {
  background: #f7fafa;
}
body.l-main .pagination li.active a {
  border: 2px solid var(--shop-ink);
  font-weight: 700;
  color: var(--shop-ink);
  background: #fff;
}
body.l-main .pagination li.disabled span {
  opacity: 0.4;
}
body.l-main .products-list {
  gap: 16px;
  align-items: flex-start;
  margin-top: 12px;
}
body.l-main .products-list .search_col {
  position: sticky;
  top: 60px;
  width: 270px;
}
/* Filter sidebar (legacy search2) */
body.l-main .products-list .product_search {
  background: var(--shop-surface);
  border-radius: 10px;
  padding: 16px 6px 12px;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.08);
}
body.l-main .products-list .product_search .search-wrap {
  padding: 0 10px;
}
body.l-main .products-list .product_search h3 {
  background: none !important;
  color: var(--shop-ink) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 0 8px !important;
  margin: 8px 0 0 !important;
  border-top: 1px solid #edf0f2;
}
body.l-main .products-list .product_search input.form-control,
body.l-main .products-list .product_search input[type="text"] {
  height: 38px;
  border-radius: 8px;
  border: 1px solid #cdd2d6;
  background: #fff;
  font-size: 14px;
  box-shadow: none;
}
body.l-main .products-list .product_search input::placeholder {
  color: #8a9199;
}
body.l-main .products-list .product_search input:focus {
  border-color: var(--shop-accent);
  box-shadow: 0 0 0 3px rgba(255, 158, 75, 0.25);
}
body.l-main .products-list .product_search .cat_list .cat {
  margin: 0;
  padding: 0;
  border-radius: 6px;
}
body.l-main .products-list .product_search .cat_list .cat:hover {
  background: #f3f5f6;
}
body.l-main .products-list .product_search .cat_list .cat label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  margin: 0;
  cursor: pointer;
}
body.l-main .products-list .product_search .cat_list .cat input {
  position: static;
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--shop-accent);
}
body.l-main .products-list .product_search .cat_list .cat .thumb {
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.l-main .products-list .product_search .cat_list .cat .thumb:empty {
  display: none;
}
body.l-main .products-list .product_search .cat_list .cat .thumb img {
  max-width: 22px;
  max-height: 22px;
}
body.l-main .products-list .product_search .cat_list .cat .name {
  font-size: 14px;
  color: var(--shop-ink);
  margin: 0;
  padding: 0;
  line-height: 1.3;
}
body.l-main .products-list .product_search .cat_list .cat:has(input:checked) {
  background: #fff4ea;
}
body.l-main .products-list .product_search .cat_list .cat:has(input:checked) .name {
  font-weight: 700;
}

/* Legacy notice (products/_aviso.php) */
.shop-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #f0c14b;
  border-left: 4px solid #f0c14b;
  color: var(--shop-ink);
  border-radius: var(--shop-radius);
  padding: 10px 14px;
  font-size: 13px;
  margin: 16px 0 4px;
}
.shop-notice i {
  margin-top: 3px;
  color: #c45500;
}
.shop-notice p {
  margin: 0;
}
.shop-listing-head {
  margin: 0 0 12px;
}
.shop-listing-head h1 {
  font-weight: 700;
  font-size: 22px;
  margin: 0;
  color: var(--shop-ink);
}

/* Traceable legend */
body.l-main .legend_traceable {
  margin: 16px 0;
  background: var(--shop-surface);
  border-radius: var(--shop-radius);
  padding: 14px;
}
body.l-main .legend_traceable .row {
  row-gap: 12px;
}
body.l-main .legend_traceable .img img {
  width: 60px !important;
  height: auto;
}
body.l-main .legend_traceable .text {
  font-size: 12px;
  color: var(--shop-muted);
  line-height: 1.35;
}

/* Home strip of the traceable / certification logos */
.shop-trust-strip {
  list-style: none;
  margin: 0;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  background: var(--shop-surface);
  border-radius: var(--shop-radius);
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.1);
}
.shop-trust-strip li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.shop-trust-strip img {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.shop-trust-strip span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--shop-muted);
}
@media (max-width: 991.98px) {
  .shop-trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .shop-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
    gap: 16px;
  }
}

/* Legacy "Looking for something special?" box */
body.l-main .mensaje_paginacion {
  margin-top: 24px;
}
body.l-main .mensaje_paginacion .wrap {
  background: var(--shop-surface);
  border-radius: var(--shop-radius);
  padding: 20px 24px;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--shop-ink);
  text-transform: none;
}

/* Legacy page heading (.title_box) */
body.l-main .title_box {
  background: var(--shop-surface);
  color: var(--shop-ink);
  border-radius: var(--shop-radius);
  margin-top: 16px;
  padding: 26px 24px 22px !important;
  font-size: 15px;
  line-height: 1.5;
}
body.l-main .title_box h1 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
body.l-main .title_box hr {
  max-width: 64px;
  margin: 12px auto;
}
body.l-main .title_box p {
  margin: 0;
  color: var(--shop-muted);
}

/* Thematic catalog page: banner (or colour) head */
.shop-page-banner {
  margin-top: 20px;
  border-radius: var(--shop-radius);
  overflow: hidden;
  background: var(--card-bg, var(--shop-nav));
}
.shop-page-banner img {
  width: 100%;
  height: var(--shop-banner-h);
  object-fit: cover;
  display: block;
}
.shop-page-banner .caption {
  padding: 16px clamp(16px, 2.6vw, 28px) 18px;
  background: var(--card-bg, var(--shop-nav));
  color: var(--card-fg, #fff);
}
.shop-catalog-head {
  margin-top: 16px;
  border-radius: var(--shop-radius);
  padding: clamp(20px, 2.6vw, 34px);
  background: var(--card-bg, var(--shop-nav));
  color: var(--card-fg, #fff);
}
.shop-catalog-head h1,
.shop-page-banner h1 {
  font-weight: 800;
  font-size: clamp(24px, 3vw, 38px);
  margin: 0;
  color: inherit;
}
.shop-catalog-head p,
.shop-page-banner p {
  margin: 6px 0 0;
  max-width: 820px;
  opacity: 0.9;
}
body.l-main .cats.thematic_catalogs {
  padding: 0;
}
body.l-main .cats.thematic_catalogs > .shop-section:first-child {
  margin-top: 16px;
}

/* "Produced for you" intro under the wide banner: text + claim panel */
.shop-produced-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  margin: 20px 0 24px;
  background: var(--shop-surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.08);
}
.shop-produced-intro .text {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.shop-produced-intro .eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c2620c;
}
.shop-produced-intro h1 {
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  margin: 0;
  color: var(--shop-ink);
}
.shop-produced-intro p {
  color: var(--shop-muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 620px;
  margin: 0;
}
.shop-produced-intro .count {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f0f2f2;
  font-size: 13px;
  font-weight: 700;
  color: var(--shop-ink);
}
.shop-produced-intro .claim {
  position: relative;
  padding: 32px 36px;
  background: var(--shop-header);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}
.shop-produced-intro .claim::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 158, 75, 0.35), transparent 70%);
}
.shop-produced-intro .claim strong {
  position: relative;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--shop-accent);
}
.shop-produced-intro .claim span {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: #c8ced6;
}
@media (max-width: 767.98px) {
  .shop-produced-intro {
    grid-template-columns: 1fr;
  }
  .shop-produced-intro .text,
  .shop-produced-intro .claim {
    padding: 22px 20px;
  }
}

/* Product page */
body.l-main .similar_products h3.title::before {
  display: none;
}
body.l-main .similar_products h3.title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
body.l-main .product.view {
  margin-top: 16px;
}
/* The legacy ficha as one white card: gallery left, buy box right */
body.l-main .product.view .product_item.ficha {
  margin: 0;
  padding: 24px 12px;
  background: var(--shop-surface);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.08);
  --bs-gutter-x: 32px;
}
@media (min-width: 992px) {
  body.l-main .product.view .product_item.ficha > .col-sm-9 {
    width: 60%;
  }
  body.l-main .product.view .product_item.ficha > .col-sm-3 {
    width: 40%;
  }
}
body.l-main .product.view .carousel_box {
  --bs-gutter-x: 16px;
  margin: 0;
}
body.l-main .product.view .thumbs_box {
  background: none !important;
  padding: 0 !important;
}
body.l-main .product.view .thumbs .thumb {
  width: 68px;
  height: 68px;
  margin: 0 0 10px;
  padding: 4px;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.12s, box-shadow 0.12s;
}
body.l-main .product.view .thumbs .thumb:hover,
body.l-main .product.view .thumbs .thumb.active {
  border-color: var(--shop-accent);
  box-shadow: 0 0 0 2px rgba(255, 158, 75, 0.35);
}
body.l-main .product.view .thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.l-main .product.view .images .carousel-inner {
  border-radius: 10px;
  background: #fff;
  cursor: zoom-in;
}
body.l-main .product.view .images .carousel-item img {
  object-fit: contain;
}
body.l-main .product.view .carousel-control-prev,
body.l-main .product.view .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 6px rgba(15, 17, 17, 0.2);
  opacity: 0.9;
  border: 0;
}
body.l-main .product.view .carousel-control-prev {
  left: 8px;
}
body.l-main .product.view .carousel-control-next {
  right: 8px;
}
body.l-main .product.view .carousel-control-prev-icon,
body.l-main .product.view .carousel-control-next-icon {
  width: 16px;
  height: 16px;
}
/* Buy box */
body.l-main .product.view .card-c {
  background: none !important;
  color: var(--shop-ink) !important;
  padding: 4px 0 0 !important;
  border-radius: 0;
  box-shadow: none;
}
body.l-main .product.view .card-c h3 {
  font-size: 26px !important;
  line-height: 1.2;
  font-weight: 800;
  color: var(--shop-ink) !important;
  margin: 0 0 6px;
}
body.l-main .product.view .card-c hr {
  display: none;
}
body.l-main .product.view .card-c .price_wrap {
  display: block;
  margin: 0 0 14px;
  text-align: left;
}
body.l-main .product.view .card-c .price_wrap > .col-auto {
  width: 100%;
  padding: 0;
  text-align: left;
}
body.l-main .product.view .card-c .ref {
  font-size: 13px;
  color: var(--shop-muted);
}
body.l-main .product.view .card-c .price {
  text-align: left !important;
  float: none !important;
  font-size: 28px;
  font-weight: 800;
  color: var(--shop-ink);
  line-height: 1.15;
  padding-top: 12px;
  border-top: 1px solid #edf0f2;
}
body.l-main .product.view .card-c .price .aviso {
  display: block;
  text-align: left;
  position: static;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  color: #b4530a !important;
}
body.l-main .product.view .card-c .product_type {
  display: inline-flex !important;
  width: auto !important;
  align-self: flex-start;
  max-width: 100%;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e3f4e8;
  color: #00632e;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
body.l-main .product.view .card-c .description {
  font-size: 15px;
  line-height: 1.6;
  color: #333a40;
  margin: 0;
}
body.l-main .product.view .card-c > br {
  display: none;
}
body.l-main .product.view .card-c > small.text-amarillo {
  display: block;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff4ea;
  color: #8a4208 !important;
  font-size: 13px;
  line-height: 1.5;
}
/* Stock table */
body.l-main .product.view .stock-info {
  margin-top: 20px;
}
body.l-main .product.view .stock_box table.stock {
  margin: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
body.l-main .product.view .stock_box table.stock th {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--shop-muted);
  background: none;
  border-bottom: 1px solid #d5d9d9;
  padding: 8px 6px;
  white-space: nowrap;
}
body.l-main .product.view .stock_box table.stock td {
  padding: 9px 6px;
  vertical-align: middle;
  background: none;
  border-color: #edf0f2;
}
body.l-main .product.view .stock_box .next_stock_trigger {
  min-width: 72px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 0;
  background: #fff1e4 !important;
  color: #a14a06 !important;
  font-size: 13px;
  font-weight: 700;
}
body.l-main .product.view .stock_box .next_stock_trigger:hover {
  background: #ffe3c7 !important;
}

/* Proposal page: the logos / contact row and the title as one white card */
body.l-main.c-proposal .row.logos {
  background: var(--shop-surface);
  border-radius: var(--shop-radius) var(--shop-radius) 0 0;
  margin: 20px 0 0;
  padding: 18px 20px 8px;
  align-items: center;
}
body.l-main.c-proposal .proposal-public {
  background: var(--shop-surface);
  border-radius: 0 0 var(--shop-radius) var(--shop-radius);
  padding: 4px 20px 20px;
}
body.l-main .alert-warning {
  border-radius: var(--shop-radius);
}
body.l-main.c-proposal .row.logos {
  border-radius: 12px 12px 0 0;
  padding: 22px 24px 14px;
  border-bottom: 1px solid #edf0f2;
}
body.l-main.c-proposal .row.logos .logo img {
  max-height: 64px;
  width: auto;
}
body.l-main.c-proposal .row.logos .contact_info a {
  display: inline;
  color: var(--shop-muted) !important;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
}
body.l-main.c-proposal .row.logos .contact_info a:hover {
  color: var(--shop-ink) !important;
  text-decoration: underline;
}
body.l-main.c-proposal .proposal-public {
  border-radius: 0 0 12px 12px;
  padding: 8px 24px 24px;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.08);
}
body.l-main.c-proposal .proposal-public > .row:first-child {
  align-items: center;
  margin-top: 16px;
  margin-bottom: 12px;
}
body.l-main.c-proposal .proposal-public > .row:first-child h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--shop-ink);
  margin: 0;
}
body.l-main.c-proposal .proposal-public .logo.metaideas {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
body.l-main.c-proposal .proposal_edit.btn {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--shop-nav);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}
body.l-main.c-proposal .proposal_edit.btn:hover {
  background: var(--shop-header);
}
body.l-main.c-proposal .proposal-public .logo.metaideas a:not(.btn) {
  color: #1d6f42 !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
body.l-main.c-proposal table.proposal_info {
  --bs-table-striped-bg: transparent;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e3e6e8;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
body.l-main.c-proposal table.proposal_info td,
body.l-main.c-proposal table.proposal_info th {
  border: 0;
  border-bottom: 1px solid #edf0f2;
  padding: 10px 14px;
  background: #fff;
}
body.l-main.c-proposal table.proposal_info tr:last-child td {
  border-bottom: 0;
}
body.l-main.c-proposal table.proposal_info td:nth-child(odd),
body.l-main.c-proposal table.proposal_info th {
  color: var(--shop-muted);
  font-weight: 700;
  width: 12%;
  background: #f7f8f9;
}
body.l-main.c-proposal .proposal-public .alert-warning {
  background: #fff8e6;
  border: 1px solid #f5dfa6;
  color: #5c4400;
  font-size: 14px;
}
body.l-main .alert > :last-child {
  margin-bottom: 0;
}
/* Each proposal product as its own card */
body.l-main.c-proposal .proposal-public .products .product {
  border: 1px solid #e6e9eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: none;
  background: #fff;
}
body.l-main.c-proposal .proposal-public .product h3,
body.l-main.c-proposal .proposal-public .product h4 {
  font-size: 22px;
  font-weight: 800;
  color: var(--shop-ink);
}
body.l-main.c-proposal .proposal-public .product .ref-info {
  align-items: center;
}
body.l-main.c-proposal .proposal-public .product .ref {
  display: inline-block;
  width: auto;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f0f2f2 !important;
  color: var(--shop-muted) !important;
  font-size: 13px;
  font-weight: 700;
}
body.l-main.c-proposal .proposal-public .product .price_info .price-rage {
  color: var(--shop-ink) !important;
  font-size: 22px;
  font-weight: 800;
  text-align: right;
}
body.l-main.c-proposal .proposal-public .product .price_info .price-rage .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--shop-muted);
}
body.l-main.c-proposal .proposal-public .product table {
  font-size: 13.5px;
}
body.l-main.c-proposal .proposal-public .product table td,
body.l-main.c-proposal .proposal-public .product table th {
  border-color: #e6e9eb;
}
body.l-main.c-proposal .proposal-public .product .text-primary {
  color: var(--shop-ink) !important;
}
body.l-main.c-proposal .proposal-public .product .description strong,
body.l-main.c-proposal .proposal-public .product label,
body.l-main.c-proposal .proposal-public .product b {
  color: var(--shop-ink);
}

/* ── Footer (Amazon) ───────────────────────────────────────────────── */
.shop-footer {
  margin-top: 40px;
  background: var(--shop-footer);
  color: #ddd;
}
.shop-backtop {
  display: block;
  width: 100%;
  border: 0;
  background: var(--shop-footer-top);
  color: #fff;
  font-size: 13px;
  padding: 15px 0;
  text-align: center;
}
.shop-backtop:hover {
  background: #485769;
}
.shop-footer a {
  color: #ddd !important;
  text-decoration: none;
}
.shop-footer a:hover {
  color: #fff !important;
  text-decoration: underline;
}
.shop-footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-top: 44px !important;
  padding-bottom: 40px !important;
}
.shop-footer h5 {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.shop-footer p {
  margin: 0 0 6px;
  font-size: 14px;
}
.shop-footer-logo {
  height: 40px;
  margin-bottom: 18px;
  display: block;
}
.shop-footer-copy {
  background: var(--shop-footer-bottom);
  font-size: 12px;
  padding: 18px 0;
  color: #ccc;
  text-align: center;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .shop-client .name {
    display: none;
  }
}
@media (max-width: 991.98px) {
  .shop-spotlight {
    grid-template-columns: 1fr;
  }
  .shop-spotlight-images {
    border-left: 0;
    border-top: 1px solid #f0f2f2;
  }
  body.l-main .products-list .search_col {
    position: static;
  }
  /* Amazon mobile: the menu is a horizontally scrolling strip */
  .shop-nav .shop-wrap {
    min-height: 42px;
  }
  .shop-nav-items {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .shop-nav-items::-webkit-scrollbar {
    display: none;
  }
  .shop-nav-desc,
  .shop-nav-search,
  .shop-nav.stuck .shop-nav-search,
  .shop-nav.stuck .shop-nav-logo {
    display: none !important;
  }
}
@media (max-width: 767.98px) {
  .shop-mainbar > .shop-wrap:first-child {
    height: 60px;
    gap: 8px;
  }
  .shop-account {
    padding-left: 4px;
    border-left: 0;
  }
  .shop-bannerstrip .shop-wrap {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  :root {
    --shop-banner-h: 140px;
  }
  .shop-bannerstrip-arrow {
    display: none;
  }
  .shop-brand img {
    height: 30px;
  }
  .shop-tagline {
    font-size: 7.5px;
  }
  .shop-client .tile {
    height: 40px;
    padding: 3px 6px;
  }
  .shop-client img {
    max-height: 34px;
    max-width: 96px;
  }
  .shop-hero {
    aspect-ratio: 16 / 5;
    margin-top: 10px;
    min-height: 0;
  }
  .shop-hero-arrow,
  .shop-hero-zoom {
    display: none;
  }
  .shop-hero.shop-hero-wide {
    margin-top: 12px;
    border-radius: 10px;
  }
  .shop-cover-grid {
    grid-template-columns: 1fr;
  }
  .shop-cover {
    min-height: 320px;
  }
  .shop-grid,
  body.l-main .custom_list_view .list-view,
  body.l-main .similar_products .list-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .shop-card-media {
    padding: 10px;
  }
  .shop-card-body {
    padding: 4px 10px 10px;
  }
  .shop-card-title {
    font-size: 13.5px;
  }
  .shop-price strong {
    font-size: 18px;
  }
  .shop-card-foot .shop-btn {
    display: none;
  }
  .shop-spotlight-images .tile {
    padding: 10px;
  }
  .shop-footer-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .shop-lightbox-stage {
    padding: 0 8px;
  }
  .shop-lightbox-arrow {
    display: none;
  }
  body.l-main .custom_list_view .list_header {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.l-main .site-index .destacado {
  margin-top: 24px;
}

/* Listing pages on phones: the filter column stacks under the list. */
@media (max-width: 767.98px) {
  body.l-main .products-list {
    flex-direction: column;
  }
  body.l-main .products-list > .col,
  body.l-main .products-list .search_col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body.l-main .legend_traceable .row > div {
    min-width: 0;
  }
}
.shop-section {
  min-width: 0;
  max-width: 100%;
}
.shop-cover-grid.compact {
  max-width: calc(100% + 8px);
}
/* The proposal info table scrolls instead of widening the page on phones. */
body.l-main .proposal-public .info {
  overflow-x: auto;
}

/* ── Product videos ────────────────────────────────────────────────── */
/* A video still (first frame / provider thumbnail) with the play glyph:
   the product page thumbnail column and the viewer's strip. */
.shop-video-still {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: #0f1111;
  border-radius: 4px;
  overflow: hidden;
}
.shop-video-still video,
.shop-video-still img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* No still (Vimeo, or a file that failed): a dark tile naming the provider
   under the play glyph. */
.shop-video-still-empty {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-bottom: 3px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
}
.shop-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--shop-accent);
  color: #fff;
  font-size: 11px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s;
}
.shop-video-play i {
  margin-left: 2px;
}
body.l-main .product.view .thumbs .thumb.thumb_video {
  padding: 0;
  background: #0f1111;
}
body.l-main .product.view .thumbs .thumb.thumb_video:hover .shop-video-play {
  transform: translate(-50%, -50%) scale(1.12);
}
/* The viewer plays a video at 16:9, as large as the stage allows. */
.shop-lightbox-video {
  width: min(100%, calc((100vh - 200px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--shop-radius-sm);
  overflow: hidden;
  animation: shop-fade 0.2s ease-out;
}
.shop-lightbox-video video,
.shop-lightbox-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.shop-lightbox-thumbs button.is-video {
  height: 58px;
  width: 100px;
}
/* Product card: a product with a video says so over its photo. */
.shop-card-media {
  position: relative;
}
.shop-card-video {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  background: rgba(15, 17, 17, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  pointer-events: none;
}
.shop-card-video i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--shop-accent);
  font-size: 7px;
  padding-left: 1px;
}
