/* ==========================================================================
   EcoQR · Tienda · catálogo one-product
   Scope: body.ecoqr-shop-one
   ========================================================================== */

.ecoqr-shop-one {
  --ecoqr-shop-max: 1120px;
  --ecoqr-shop-gutter: 24px;
}

.ecoqr-shop-one [id] {
  scroll-margin-top: 110px;
}

/* --------------------------------------------------------------------------
   1. Lienzo
   -------------------------------------------------------------------------- */

.ecoqr-shop-one #main {
  background: var(--ecoqr-cream-50);
}

.ecoqr-shop-one .shop-page-title,
.ecoqr-shop-one .woocommerce-result-count,
.ecoqr-shop-one .woocommerce-ordering {
  display: none !important;
}

.ecoqr-shop-one .custom-page-title {
  padding: 0 !important;
}

.ecoqr-shop-one .custom-page-title > .section {
  padding: 0 !important;
  background: transparent !important;
}

.ecoqr-shop-one .row.category-page-row {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}

.ecoqr-shop-one .category-page-row > .col {
  width: 100%;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
}

.ecoqr-shop-one .shop-container {
  width: 100%;
  max-width: none !important;
  padding: 0 !important;
}

.ecoqr-shop-one .woocommerce-notices-wrapper {
  max-width: var(--ecoqr-shop-max);
  margin: 0 auto;
  padding: 0 var(--ecoqr-shop-gutter);
}

.ecoqr-shop-one .ecoqr-eyebrow {
  color: var(--ecoqr-amber-700) !important;
}

/* --------------------------------------------------------------------------
   2. Cabecera de catálogo
   -------------------------------------------------------------------------- */

.ecoqr-catalog-header {
  border-bottom: 1px solid var(--ecoqr-cream-200);
  background: var(--ecoqr-cream-50);
}

.ecoqr-catalog-header__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  max-width: var(--ecoqr-shop-max);
  margin: 0 auto;
  padding: 32px var(--ecoqr-shop-gutter) 24px;
}

.ecoqr-catalog-header__copy {
  max-width: 700px;
}

.ecoqr-catalog-header__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--ecoqr-stone-600);
}

.ecoqr-catalog-header__crumbs a {
  color: var(--ecoqr-green-700);
  text-decoration: none;
}

.ecoqr-catalog-header__crumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ecoqr-catalog-header__crumbs span[aria-current="page"] {
  color: var(--ecoqr-ink);
}

.ecoqr-catalog-header__title {
  margin: 0 0 10px;
  font-family: var(--ecoqr-font-display) !important;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
  color: var(--ecoqr-ink);
}

.ecoqr-catalog-header__intro {
  max-width: 640px;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ecoqr-text-soft);
}

.ecoqr-catalog-header__count {
  flex: none;
  margin: 0 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ecoqr-stone-600);
  white-space: nowrap;
}

.ecoqr-catalog-header__nav {
  border-top: 1px solid var(--ecoqr-cream-200);
}

.ecoqr-catalog-header__nav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: var(--ecoqr-shop-max);
  margin: 0 auto;
  padding: 0 var(--ecoqr-shop-gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.ecoqr-catalog-header__nav-inner::-webkit-scrollbar {
  display: none;
}

.ecoqr-catalog-header__nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ecoqr-stone-600);
  text-decoration: none;
}

.ecoqr-catalog-header__nav a span {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ecoqr-stone-500);
}

.ecoqr-catalog-header__nav a:hover,
.ecoqr-catalog-header__nav a.is-active {
  border-bottom-color: var(--ecoqr-amber-500);
  color: var(--ecoqr-ink);
}

/* --------------------------------------------------------------------------
   3. Layout catálogo
   -------------------------------------------------------------------------- */

.ecoqr-catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  max-width: var(--ecoqr-shop-max);
  margin: 0 auto;
  padding: 32px var(--ecoqr-shop-gutter) 40px;
}

/* --------------------------------------------------------------------------
   4. Sidebar
   -------------------------------------------------------------------------- */

.ecoqr-catalog-sidebar {
  position: sticky;
  top: 118px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  order: 1;
}

.ecoqr-sidebar-card {
  padding: 20px 20px 18px;
  border: 1px solid var(--ecoqr-cream-200);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ecoqr-shadow-sm);
}

.ecoqr-sidebar-card__title {
  margin: 0 0 11px;
  font-family: var(--ecoqr-font-body) !important;
  font-size: 10.5px;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ecoqr-amber-700);
}

.ecoqr-sidebar-specs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ecoqr-sidebar-specs li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ecoqr-cream-100);
  font-size: 12px;
  line-height: 1.4;
}

.ecoqr-sidebar-specs li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ecoqr-sidebar-specs span {
  color: var(--ecoqr-text-soft);
}

.ecoqr-sidebar-specs strong {
  font-weight: 600;
  color: var(--ecoqr-ink);
  text-align: right;
}

.ecoqr-sidebar-colors {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ecoqr-sidebar-colors li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ecoqr-text);
}

.ecoqr-sidebar-color {
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--dot, var(--ecoqr-cream-300));
  box-shadow: 0 0 0 1px var(--ecoqr-cream-300);
}

.ecoqr-sidebar-timeline {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ecoqr-sidebar-timeline li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.ecoqr-sidebar-timeline li > span {
  margin-top: 2px;
  font-family: var(--ecoqr-font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--ecoqr-amber-500);
}

.ecoqr-sidebar-timeline p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ecoqr-text-soft);
}

.ecoqr-sidebar-help {
  padding: 20px;
  border: 1px solid var(--ecoqr-green-100);
  border-radius: 18px;
  background: var(--ecoqr-green-50);
}

.ecoqr-sidebar-help h2 {
  margin: 0 0 7px;
  font-family: var(--ecoqr-font-display) !important;
  font-size: 22px;
  font-weight: 600 !important;
  line-height: 1.1;
  color: var(--ecoqr-ink);
}

.ecoqr-sidebar-help p {
  margin: 0 0 12px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ecoqr-text-soft);
}

.ecoqr-sidebar-help a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ecoqr-amber-500);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ecoqr-green-700);
  text-decoration: none;
}

.ecoqr-sidebar-help a:hover {
  color: var(--ecoqr-green-800);
}

/* --------------------------------------------------------------------------
   5. Columna de producto
   -------------------------------------------------------------------------- */

.ecoqr-catalog-main {
  min-width: 0;
  order: 2;
}

.ecoqr-catalog-main .products {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.ecoqr-catalog-main .products > .product {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ecoqr-catalog-main .products > .ecoqr-spotlight {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ecoqr-catalog-main .products::before,
.ecoqr-catalog-main .products::after {
  display: none !important;
}

.ecoqr-spotlight__card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--ecoqr-cream-200);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ecoqr-shadow-sm);
}

.ecoqr-spotlight__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(520px 420px at 50% 42%, #fff 0%, var(--ecoqr-cream-100) 72%, var(--ecoqr-cream-200) 100%);
}

.ecoqr-spotlight__media a {
  display: block;
  width: 100%;
  height: 100%;
}

.ecoqr-spotlight__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ecoqr-spotlight__media:hover .ecoqr-spotlight__img {
  transform: scale(1.025);
}

.ecoqr-spotlight__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid rgba(40, 86, 68, 0.12);
  border-radius: var(--ecoqr-radius-pill);
  background: rgba(251, 249, 245, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ecoqr-ink);
}

.ecoqr-spotlight__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 30px 26px;
}

.ecoqr-spotlight__eyebrow {
  margin: 0 0 8px;
  font-family: var(--ecoqr-font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ecoqr-amber-700);
}

.ecoqr-spotlight__title {
  margin: 0 0 10px;
  font-family: var(--ecoqr-font-display) !important;
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 600 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.01em;
  color: var(--ecoqr-ink);
}

.ecoqr-spotlight__title a {
  color: inherit;
  text-decoration: none;
}

.ecoqr-spotlight__title a:hover {
  color: var(--ecoqr-green-700);
}

.ecoqr-spotlight__desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ecoqr-text-soft);
}

.ecoqr-spotlight__desc p {
  margin: 0 0 6px;
}

.ecoqr-spotlight__desc p:last-child {
  margin-bottom: 0;
}

.ecoqr-spotlight__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 14px;
}

.ecoqr-spotlight__from {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ecoqr-amber-700);
}

.ecoqr-spotlight__price .price {
  margin: 0;
  font-family: var(--ecoqr-font-body) !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: var(--ecoqr-green-700) !important;
}

.ecoqr-spotlight__price .price del {
  color: var(--ecoqr-stone-400) !important;
  font-weight: 500 !important;
}

.ecoqr-spotlight__tax {
  font-size: 10.5px;
  color: var(--ecoqr-stone-600);
}

.ecoqr-spotlight__label {
  margin: 0 0 7px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ecoqr-stone-600);
}

.ecoqr-spotlight__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.ecoqr-swatch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 9px 6px 6px;
  border: 1px solid var(--ecoqr-cream-200);
  border-radius: var(--ecoqr-radius-pill);
  background: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--ecoqr-text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ecoqr-swatch__dot {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--swatch, var(--ecoqr-cream-300));
  box-shadow: 0 0 0 1px var(--ecoqr-cream-300);
}

.ecoqr-swatch:hover {
  border-color: var(--ecoqr-green-300);
  transform: translateY(-1px);
  box-shadow: var(--ecoqr-shadow-sm);
  color: var(--ecoqr-ink);
}

.ecoqr-swatch:focus-visible {
  outline: 2px solid var(--ecoqr-amber-500);
  outline-offset: 2px;
}

.ecoqr-spotlight__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 0 0 16px;
  padding: 10px 0 0;
  border-top: 1px solid var(--ecoqr-cream-200);
  list-style: none;
}

.ecoqr-spotlight__specs li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ecoqr-text-soft);
}

.ecoqr-spotlight__specs li::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--ecoqr-amber-500);
}

.ecoqr-spotlight__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ecoqr-shop-one .ecoqr-spotlight__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px !important;
  font-size: 13.5px !important;
  letter-spacing: 0 !important;
  text-align: center;
  text-transform: none !important;
}

.ecoqr-spotlight__link {
  align-self: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ecoqr-green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ecoqr-cream-300);
}

.ecoqr-spotlight__link:hover {
  color: var(--ecoqr-green-800);
  text-decoration-color: var(--ecoqr-amber-500);
}

.ecoqr-spotlight__note {
  margin: 10px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--ecoqr-stone-600);
}

/* --------------------------------------------------------------------------
   6. Servicios de tienda
   -------------------------------------------------------------------------- */

.ecoqr-catalog-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--ecoqr-shop-max);
  margin: 0 auto;
  padding: 20px var(--ecoqr-shop-gutter) 56px;
  border-top: 1px solid var(--ecoqr-cream-200);
}

.ecoqr-catalog-service {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--ecoqr-text-soft);
}

.ecoqr-catalog-service svg {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: var(--ecoqr-green-600);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecoqr-catalog-service strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ecoqr-ink);
}

/* --------------------------------------------------------------------------
   7. Barra fija móvil
   -------------------------------------------------------------------------- */

.ecoqr-sticky-buy {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 998;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ecoqr-cream-200);
  background: rgba(251, 249, 245, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 -10px 30px rgba(14, 34, 28, 0.08);
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.ecoqr-sticky-buy.is-visible {
  visibility: visible;
  transform: none;
}

.ecoqr-sticky-buy__img {
  display: block;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--ecoqr-cream-200);
  border-radius: 12px;
  background: #fff;
  object-fit: cover;
}

.ecoqr-sticky-buy__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ecoqr-sticky-buy__info strong {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ecoqr-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecoqr-sticky-buy__info span {
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--ecoqr-text-soft);
}

.ecoqr-shop-one .ecoqr-sticky-buy .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  flex: none;
  padding: 0 16px !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ecoqr-sticky-buy {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .ecoqr-catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }

  .ecoqr-sidebar-card {
    padding: 18px;
  }

  .ecoqr-spotlight__body {
    padding: 24px 24px 22px;
  }

  .ecoqr-spotlight__title {
    font-size: 28px;
  }
}

@media (max-width: 849px) {
  .ecoqr-catalog-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 26px;
    padding-bottom: 20px;
  }

  .ecoqr-catalog-header__count {
    margin: 0;
  }

  .ecoqr-catalog-header__nav-inner {
    gap: 20px;
  }

  .ecoqr-catalog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .ecoqr-catalog-main {
    order: 1;
  }

  .ecoqr-catalog-sidebar {
    position: static;
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .ecoqr-sidebar-help {
    grid-column: span 2;
  }

  .ecoqr-catalog-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    padding-bottom: 40px;
  }

  .ecoqr-spotlight__card {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .ecoqr-spotlight__body {
    padding: 22px 22px 20px;
  }
}

@media (max-width: 640px) {
  .ecoqr-catalog-header__title {
    font-size: 40px;
  }

  .ecoqr-catalog-header__intro {
    font-size: 14px;
  }

  .ecoqr-spotlight__card {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 20px;
  }

  .ecoqr-spotlight__media {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .ecoqr-spotlight__body {
    padding: 22px 20px 20px;
  }

  .ecoqr-spotlight__title {
    font-size: 27px;
  }

  .ecoqr-sidebar-help {
    grid-column: span 1;
  }
}

@media (max-width: 549px) {
  .ecoqr-shop-one {
    --ecoqr-shop-gutter: 18px;
  }

  .ecoqr-catalog-header__inner {
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .ecoqr-catalog-header__crumbs {
    margin-bottom: 14px;
  }

  .ecoqr-catalog-header__title {
    font-size: 36px;
  }

  .ecoqr-catalog-header__intro {
    font-size: 13.5px;
  }

  .ecoqr-catalog-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .ecoqr-catalog-services {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .ecoqr-spotlight__swatches {
    gap: 5px;
  }

  .ecoqr-swatch {
    min-height: 32px;
    padding: 5px 8px 5px 5px;
    font-size: 10px;
  }

  .ecoqr-spotlight__specs {
    grid-template-columns: minmax(0, 1fr);
  }

  .ecoqr-spotlight__cta {
    min-height: 46px;
  }

}

/* --------------------------------------------------------------------------
   9. Accesibilidad
   -------------------------------------------------------------------------- */

.ecoqr-shop-one a:focus-visible,
.ecoqr-shop-one button:focus-visible {
  outline: 2px solid var(--ecoqr-amber-500);
  outline-offset: 3px;
}

.ecoqr-shop-one .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ecoqr-shop-one *,
  .ecoqr-shop-one *::before,
  .ecoqr-shop-one *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
