/* ==========================================================================
   DistaSalud Theme Stylesheet
   Pixel-matches Pencil design. Zero !important declarations.
   All values reference design tokens from style.css :root.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & BASE
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: var(--ds-font);
  color: var(--ds-foreground);
  background: var(--ds-background);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Main content area expands to push footer down */
.ds-main,
main.ds-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: var(--ds-font);
}

/* --------------------------------------------------------------------------
   2. TOPBAR (.ds-topbar)
   -------------------------------------------------------------------------- */

.ds-topbar {
  background: var(--ds-inverse);
  padding: 8px 64px;
}

.ds-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ds-topbar__left {
  display: flex;
  gap: 24px;
  align-items: center;
}

.ds-topbar__left a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  transition: color 0.2s;
}

.ds-topbar__left a:hover {
  color: #fff;
}

.ds-topbar__right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ds-topbar__right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s;
}

.ds-topbar__right a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ds-topbar__right a svg,
.ds-topbar__left a svg {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. HEADER (.ds-header)
   -------------------------------------------------------------------------- */

.ds-header {
  background: var(--ds-card);
  border-bottom: 1px solid var(--ds-border);
  position: relative;
}

.ds-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 64px;
}

.ds-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ds-font);
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.ds-logo__dista {
  color: var(--ds-foreground);
}

.ds-logo__salud {
  color: var(--ds-primary);
}

.ds-logo__img {
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Nav: positioned center between logo and actions */
.ds-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Mobile-only elements: hidden by default on desktop */
.ds-nav__close-row,
.ds-nav__separator,
.ds-nav__actions,
.ds-nav-backdrop {
  display: none;
}

.ds-nav__list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ds-nav__list li a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  transition: color 0.2s;
}

.ds-nav__list li a:hover,
.ds-nav__list li.current-menu-item a {
  color: var(--ds-primary);
  font-weight: 600;
}

.ds-header__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.ds-header__icon {
  color: var(--ds-foreground);
  transition: color 0.2s;
}

.ds-header__icon:hover {
  color: var(--ds-primary);
}

.ds-header__cart {
  position: relative;
  color: var(--ds-foreground);
}

.ds-header__cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--ds-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: var(--ds-radius-pill);
  text-align: center;
}

.ds-mobile-toggle {
  display: none;
}

/* Nav actions: only visible inside mobile dropdown */
.ds-nav__actions {
  display: none;
}

/* --------------------------------------------------------------------------
   4. HERO (.ds-hero)
   -------------------------------------------------------------------------- */

.ds-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.ds-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0F7B6C 0%, #0A5C50 100%);
}

.ds-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
}

.ds-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  padding: 80px 64px;
  height: 100%;
  gap: 20px;
}

.ds-hero__tag {
  display: inline-block;
  width: fit-content;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--ds-radius-pill);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.ds-hero__title {
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
}

.ds-hero__desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.5;
  max-width: 460px;
}

.ds-hero__trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ds-hero__trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 13px;
  font-weight: 500;
}

.ds-hero__trust-badge svg {
  flex-shrink: 0;
}

.ds-hero__trust-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.ds-hero__cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ds-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--ds-radius-pill);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s;
}

.ds-hero__cta--primary {
  padding: 14px 32px;
  background: #fff;
  color: var(--ds-primary);
}

.ds-hero__cta--primary:hover {
  background: #f0f0f0;
}

.ds-hero__cta--ghost {
  padding: 14px 28px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.ds-hero__cta--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* -- Hero visual: smartwatch + orbiting stat cards -- */

.ds-hero__visual {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 1000px) {
  .ds-hero__visual {
    display: block;
  }
}

/* Decorative rings */
.ds-hero__ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
}

.ds-hero__ring--lg {
  width: 440px;
  height: 440px;
  margin-top: -220px;
  margin-left: -220px;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
}

.ds-hero__ring--sm {
  width: 220px;
  height: 220px;
  margin-top: -110px;
  margin-left: -110px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Smartwatch device */
.ds-hero__device {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 430px;
  height: 430px;
  margin-top: -195px;
  margin-left: -215px;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at center, black 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at center, black 60%, transparent 100%);
}

.ds-hero__device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Orbit container — positioning origin only, no animation */
.ds-hero__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

/* Stat cards — glass morphism + offset-path orbit
   Uses offset-path: circle() instead of rotate + counter-rotate.
   Cards translate along a circular path without rotating,
   so backdrop-filter never needs to recalculate for orientation. */
.ds-hero__stat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  pointer-events: auto;
  /* Orbit via offset-path: translates only, zero rotation */
  offset-path: circle(150px);
  offset-rotate: 0deg;
  transform: translate(-50%, -50%);
  will-change: offset-distance;
  animation: ds-orbit-path 35s linear infinite;
}

.ds-hero__stat-icon {
  flex-shrink: 0;
}

.ds-hero__stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ds-hero__stat-label {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.ds-hero__stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* Space cards 120 degrees apart via negative delay */
.ds-hero__stat--heart {
  animation-delay: 0s;
}

.ds-hero__stat--bp {
  animation-delay: -11.67s;
}

.ds-hero__stat--sleep {
  animation-delay: -23.33s;
}

/* Orbit path — smooth circle, translation only */
@keyframes ds-orbit-path {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}

/* Accessibility: pause animations for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .ds-hero__stat {
    animation: none;
    offset-path: none;
    transform: none;
  }
  .ds-hero__stat--heart { top: -150px; left: -115px; }
  .ds-hero__stat--bp    { top: -35px;  left: 130px; }
  .ds-hero__stat--sleep { top: 110px;  left: -110px; }
}

/* --------------------------------------------------------------------------
   5. FEATURED PRODUCTS (.ds-featured)
   -------------------------------------------------------------------------- */

.ds-featured {
  padding: 48px 64px;
  text-align: center;
}

.ds-featured__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin-bottom: 8px;
}

.ds-featured__subtitle {
  color: var(--ds-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.ds-featured__tabs {
  display: inline-flex;
  margin-bottom: 32px;
}

.ds-tab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-muted);
  letter-spacing: 0.5px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.ds-tab--active {
  color: var(--ds-primary);
  font-weight: 700;
  border-bottom-color: var(--ds-primary);
}

.ds-tab:hover {
  color: var(--ds-primary);
}

.ds-featured__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --------------------------------------------------------------------------
   6. PRODUCT CARD (.ds-product-card)
   -------------------------------------------------------------------------- */

.ds-product-card {
  border-radius: var(--ds-radius-lg);
  border: 1px solid var(--ds-border);
  background: var(--ds-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.ds-product-card:hover {
  box-shadow: var(--ds-shadow-md);
  transform: translateY(-2px);
}

.ds-product-card__image {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-card);
  border-bottom: 1px solid var(--ds-border);
  overflow: hidden;
}

.ds-product-card__img {
  max-height: 176px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 12px;
}

.ds-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ds-destructive);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--ds-radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.ds-product-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ds-shadow-sm);
  cursor: pointer;
  z-index: 2;
  border: none;
  padding: 0;
}

.ds-product-card__content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  text-align: left;
}

.ds-product-card__category {
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ds-product-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ds-foreground);
  line-height: 1.3;
}

.ds-product-card__name a {
  color: var(--ds-foreground);
  text-decoration: none;
}

.ds-product-card__price-row .amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-primary);
}

.ds-product-card__price-row del .amount {
  font-size: 14px;
  font-weight: 400;
  color: var(--ds-muted);
}

.ds-product-card__price-row ins {
  text-decoration: none;
}

.ds-product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Actual template class: ds-product-card__review-count */
.ds-product-card__review-count {
  font-size: 12px;
  color: var(--ds-muted);
  margin-left: 4px;
}

.ds-product-card__add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: var(--ds-primary);
  color: #fff !important;
  border-radius: var(--ds-radius-pill);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
  margin-top: auto;
  text-decoration: none;
}

.ds-product-card__add-to-cart:hover {
  background: var(--ds-primary-hover);
}

/* --------------------------------------------------------------------------
   7. CATEGORY SHOWCASE (.ds-categories)
   -------------------------------------------------------------------------- */

.ds-categories {
  background: var(--ds-background);
  padding: 48px 64px;
}

.ds-categories__title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin-bottom: 32px;
}

.ds-categories__row-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.ds-categories__row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   8. CATEGORY CARD (.ds-category-card)
   -------------------------------------------------------------------------- */

.ds-category-card {
  display: block;
  position: relative;
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
  height: 200px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ds-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ds-category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.65) 100%);
}

.ds-category-card__content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
}

.ds-category-card__name {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.ds-category-card__count {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   9. EMPTY CATEGORY CARD (.ds-category-empty)
   -------------------------------------------------------------------------- */

.ds-category-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #CBD5E1;
  border-radius: var(--ds-radius-lg);
  background: var(--ds-card-alt);
  height: 200px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  gap: 8px;
}

.ds-category-empty:hover {
  border-color: var(--ds-primary);
  background: var(--ds-secondary);
}

.ds-category-empty__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ds-muted);
}

.ds-category-empty__label {
  font-size: 13px;
  color: var(--ds-primary);
  font-weight: 500;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   10. PROMO SECTION (.ds-promo)
   -------------------------------------------------------------------------- */

.ds-promo {
  padding: 48px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ds-promo__image {
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
}

.ds-promo__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ds-radius-lg);
}

.ds-promo__tag {
  color: var(--ds-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.ds-promo__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ds-foreground);
  line-height: 1.2;
  margin-bottom: 16px;
}

.ds-promo__desc {
  color: var(--ds-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.ds-promo__cta {
  display: inline-flex;
  padding: 12px 24px;
  border: 1.5px solid var(--ds-primary);
  color: var(--ds-primary);
  border-radius: var(--ds-radius-pill);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}

.ds-promo__cta:hover {
  background: var(--ds-primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   11. TRUST BAR (.ds-trust / .ds-trust-bar)
   -------------------------------------------------------------------------- */

.ds-trust-bar {
  background: var(--ds-secondary);
  padding: 24px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ds-trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ds-trust__item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-primary);
}

/* --------------------------------------------------------------------------
   12. NEWSLETTER (.ds-newsletter)
   -------------------------------------------------------------------------- */

.ds-newsletter {
  background: var(--ds-inverse);
  padding: 64px;
  text-align: center;
}

.ds-newsletter__title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.ds-newsletter__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.ds-newsletter__form {
  display: inline-flex;
  align-items: center;
}

.ds-newsletter .ds-newsletter__input {
  width: 360px;
  padding: 14px 20px;
  border: none;
  border-radius: 9999px 0 0 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-family: var(--ds-font);
  outline: none;
}

.ds-newsletter .ds-newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ds-newsletter__btn {
  padding: 14px 28px;
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: 0 9999px 9999px 0;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--ds-font);
  transition: background 0.2s;
}

.ds-newsletter__btn:hover {
  background: var(--ds-primary-hover);
}

/* --------------------------------------------------------------------------
   13. FOOTER (.ds-footer)
   -------------------------------------------------------------------------- */

.ds-footer {
  background: var(--ds-inverse);
}

.ds-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  padding: 48px 64px;
}

.ds-footer__col h4,
.ds-footer__heading {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.ds-footer__col p,
.ds-footer__col a,
.ds-footer__col li {
  color: #fff;
  opacity: 0.8;
  font-size: 13px;
  line-height: 1.4;
  transition: opacity 0.2s;
}

.ds-footer__col a:hover {
  opacity: 1;
  color: var(--ds-primary);
}

.ds-footer__col ul,
.ds-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-footer__logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--ds-primary);
  display: block;
  margin-bottom: 16px;
}

/* Contact items — used in footer contact list */
.ds-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ds-footer__contact-list li svg {
  flex-shrink: 0;
  color: #fff;
  opacity: 0.8;
  margin-top: 1px;
}

.ds-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.ds-footer__contact-item svg {
  flex-shrink: 0;
  color: #fff;
  opacity: 0.8;
  margin-top: 1px;
}

/* Footer newsletter (column 4) */
.ds-footer__newsletter-desc {
  color: #fff;
  opacity: 0.8;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.ds-footer__newsletter-form,
.ds-footer__newsletter {
  display: flex;
  gap: 8px;
}

.ds-footer .ds-footer__newsletter-input,
.ds-footer .ds-footer__newsletter input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: var(--ds-radius-md);
  color: #fff;
  font-size: 13px;
  font-family: var(--ds-font);
  outline: none;
}

.ds-footer .ds-footer__newsletter-input::placeholder,
.ds-footer .ds-footer__newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ds-footer__newsletter-btn,
.ds-footer__newsletter button {
  padding: 12px 24px;
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: var(--ds-radius-pill);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--ds-font);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.ds-footer__newsletter-btn:hover,
.ds-footer__newsletter button:hover {
  background: var(--ds-primary-hover);
}

/* Copyright */
.ds-footer__copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 64px;
  text-align: center;
}

.ds-footer__copyright p {
  color: #fff;
  opacity: 0.6;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   14. UTILITIES
   -------------------------------------------------------------------------- */

.ds-container {
  padding: clamp(16px, 4vw, 48px) clamp(0px, calc(5.7vw - 18px), 64px);
}

/* Main content fills remaining space — sticky footer */
.ds-main,
main {
  flex: 1;
}

/* IVA badge: light gray bg matching card-alt palette */
.ds-iva {
  color: var(--ds-muted);
  font-size: 11px;
  font-weight: 500;
  background: var(--ds-card-alt);
  padding: 2px 8px;
  border-radius: var(--ds-radius-sm);
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
}

/* --------------------------------------------------------------------------
   15. BREADCRUMB (.ds-breadcrumb)
   -------------------------------------------------------------------------- */

.ds-breadcrumb {
  background: var(--ds-background);
  padding: 16px 64px;
}

.ds-breadcrumb__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 13px;
}

.ds-breadcrumb__item a {
  color: var(--ds-primary);
  transition: color 0.2s;
}

.ds-breadcrumb__item a:hover {
  text-decoration: underline;
}

.ds-breadcrumb__item:last-child {
  color: var(--ds-foreground);
  font-weight: 500;
}

.ds-breadcrumb__sep {
  vertical-align: middle;
  margin: 0 8px;
}

/* --------------------------------------------------------------------------
   16. SHOP LAYOUT (.ds-shop)
   -------------------------------------------------------------------------- */

.ds-shop {
  display: flex;
  padding-left: 24px;
  margin-top: 15px;
}

/* Filter toggle: hidden on desktop, shown on mobile */
.ds-shop__filter-toggle { display: none; }

/* ── Sidebar ── */
.ds-shop__sidebar {
  width: 260px;
  flex-shrink: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 85px;
  align-self: flex-start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--ds-card);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
}

.ds-shop__widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin-bottom: 12px;
}

.ds-shop__divider {
  height: 1px;
  background: var(--ds-border);
  border: none;
  margin: 0;
}

/* Search */
.ds-shop__search-field {
  position: relative;
}

.ds-shop__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.ds-shop__search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--ds-font);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

/* Override global input padding for search with icon */
input[type="search"].ds-shop__search-input {
  padding-left: 40px;
}

.ds-shop__search-input:focus {
  border-color: var(--ds-primary);
}

/* Category list */
.ds-shop__cat-list {
  display: flex;
  flex-direction: column;
}

.ds-shop__cat-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ds-foreground);
  transition: color 0.2s;
}

.ds-shop__cat-item a:hover {
  color: var(--ds-primary);
}

.ds-shop__cat-item--active a {
  color: var(--ds-primary);
  font-weight: 600;
}

.ds-shop__cat-count {
  color: var(--ds-muted);
  font-weight: 400;
}

/* Parent category row: link + toggle arrow side by side */
.ds-shop__cat-row {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.ds-shop__cat-row:hover { color: var(--ds-primary); }

.ds-shop__cat-row > a {
  flex: 1;
  min-width: 0;
  pointer-events: none; /* clicks handled by the row JS */
}

.ds-shop__cat-item--parent > .ds-shop__cat-row > a,
.ds-shop__cat-item--parent > a {
  font-weight: 600;
}

/* Toggle arrow button */
.ds-shop__cat-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ds-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.ds-shop__cat-toggle:hover { color: var(--ds-primary); }

.ds-shop__cat-toggle--open {
  transform: rotate(180deg);
}

.ds-shop__subcat-list {
  list-style: none;
  padding: 2px 0 4px 16px;
  margin: 0;
}

.ds-shop__cat-item--child a {
  font-weight: 400;
  font-size: 14px;
  color: var(--ds-primary);
  padding: 3px 0;
}

.ds-shop__cat-item--child a:hover {
  text-decoration: underline;
}

/* "Ver todos" reset link when a category filter is active */
.ds-shop__cat-item--all a {
  color: var(--ds-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 0 10px;
}

/* Price filter */
.ds-shop__price-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ds-shop__price-input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid var(--ds-border);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--ds-font);
  outline: none;
  transition: border-color 0.2s;
}

.ds-shop__price-input:focus {
  border-color: var(--ds-primary);
}

.ds-shop__price-sep {
  color: var(--ds-muted);
}

.ds-shop__price-btn {
  padding: 8px 16px;
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--ds-font);
  cursor: pointer;
  transition: background 0.2s;
}

.ds-shop__price-btn:hover {
  background: var(--ds-primary-hover);
}

/* Brand checkboxes */
.ds-shop__brand-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds-shop__brand-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ds-foreground);
  cursor: pointer;
}

.ds-shop__brand-checkbox {
  accent-color: var(--ds-primary);
}

/* ── Main content ── */
.ds-shop__main {
  flex: 1;
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ds-shop__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ds-shop__count {
  font-size: 14px;
  color: var(--ds-muted);
}

/* ── Global themed selects & form elements ── */
/* Sort dropdown inside sidebar: match color dropdown style */
.ds-shop__sidebar .woocommerce-ordering {
  width: 100%;
}
.ds-shop__sidebar .woocommerce-ordering select {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F7B6C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-family: var(--ds-font);
  font-size: 14px;
  color: var(--ds-foreground);
  cursor: pointer;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.ds-shop__sidebar .woocommerce-ordering select:focus {
  border: 2px solid var(--ds-primary);
  box-shadow: none;
}

select,
.woocommerce-ordering select,
.variations select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  font-family: var(--ds-font);
  color: var(--ds-foreground);
  outline: none;
  cursor: pointer;
  background: var(--ds-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7C8D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  transition: border-color 0.2s;
}

select:focus,
.woocommerce-ordering select:focus,
.variations select:focus {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(15, 123, 108, 0.1);
}

/* ── Global themed inputs ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="url"],
textarea {
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--ds-font);
  color: var(--ds-foreground);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
textarea:focus {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(15, 123, 108, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--ds-muted);
}

/* ── Global themed buttons ── */
button,
input[type="submit"],
.button,
.wp-element-button {
  font-family: var(--ds-font);
  cursor: pointer;
}

/* ── Global themed checkboxes ── */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ds-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── WooCommerce notices ── */
.woocommerce-message,
.woocommerce-info {
  padding: 12px 16px;
  border: 1px solid var(--ds-primary);
  border-left: 4px solid var(--ds-primary);
  background: var(--ds-secondary);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ds-foreground);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.woocommerce-message a,
.woocommerce-info a {
  color: var(--ds-primary);
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-message a:hover,
.woocommerce-info a:hover {
  text-decoration: underline;
}

.woocommerce-error {
  padding: 12px 16px;
  border: 1px solid var(--ds-destructive);
  border-left: 4px solid var(--ds-destructive);
  background: #FEF2F2;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ds-foreground);
  margin-bottom: 16px;
  list-style: none;
}

.woocommerce-error li { margin-bottom: 4px; }
.woocommerce-error li:last-child { margin-bottom: 0; }

/* ── Select2 dropdown (checkout province, etc.) ── */
.select2-dropdown {
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  box-shadow: var(--ds-shadow-md);
  overflow: hidden;
}

.select2-results__option {
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--ds-font);
  color: var(--ds-foreground);
}

.select2-results__option--highlighted[aria-selected] {
  background: var(--ds-primary);
  color: #fff;
}

.select2-results__option[aria-selected="true"] {
  background: var(--ds-secondary);
  color: var(--ds-primary);
}

.select2-search--dropdown .select2-search__field {
  padding: 10px 14px;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--ds-font);
  outline: none;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: var(--ds-primary);
}

/* ── Native select option styling (limited browser support) ── */
select option {
  padding: 8px 12px;
  font-family: var(--ds-font);
  font-size: 14px;
}

/* ── Variation "Clear" link ── */
.reset_variations {
  font-size: 12px;
  color: var(--ds-muted);
  text-decoration: none;
  margin-left: 8px;
}

.reset_variations:hover {
  color: var(--ds-destructive);
}

.ds-shop__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ds-shop__empty {
  text-align: center;
  padding: 48px 0;
  color: var(--ds-muted);
  font-size: 15px;
}

/* WooCommerce Pagination */
.woocommerce-pagination {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.woocommerce-pagination ul.page-numbers {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid var(--ds-border);
  color: var(--ds-foreground);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.woocommerce-pagination ul.page-numbers li a:hover {
  border-color: var(--ds-primary);
}

.woocommerce-pagination ul.page-numbers li span.current {
  background: var(--ds-primary);
  color: #fff;
  border-color: var(--ds-primary);
}

/* --------------------------------------------------------------------------
   17. PRODUCT DETAIL (.ds-product)
   -------------------------------------------------------------------------- */

.ds-product {
  padding: 32px 64px;
}

.ds-product__top {
  display: flex;
  gap: 48px;
}

/* ── Gallery ── */
.ds-product__gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-product__main-image {
  border-radius: 12px;
  background: var(--ds-background);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-product__img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.ds-product__thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ds-product__thumb {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--ds-background);
  padding: 0;
  transition: border-color 0.2s;
}

.ds-product__thumb:hover,
.ds-product__thumb--active {
  border-color: var(--ds-primary);
}

.ds-product__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Info ── */
.ds-product__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.ds-product__badge {
  display: inline-block;
  width: fit-content;
  padding: 4px 12px;
  border-radius: var(--ds-radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.ds-product__badge--sale {
  background: var(--ds-destructive);
  color: #fff;
}

.ds-product__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ds-foreground);
  line-height: 1.2;
}

.ds-product__rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ds-product__review-count {
  font-size: 13px;
  color: var(--ds-muted);
  margin-left: 4px;
}

.ds-product__divider {
  height: 1px;
  background: var(--ds-border);
  border: none;
}

/* Price */
.ds-product__price .amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--ds-primary);
}

.ds-product__price del .amount {
  font-size: 18px;
  font-weight: 400;
  color: var(--ds-muted);
}

.ds-product__price ins {
  text-decoration: none;
}

/* Stock */
.ds-product__stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.ds-product__stock-badge--in {
  color: #16a34a;
}

.ds-product__stock-badge--out {
  color: var(--ds-destructive);
}

.ds-product__stock-badge--back {
  color: #d97706;
}

/* Short description */
.ds-product__short-desc {
  font-size: 14px;
  color: var(--ds-muted);
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Fix Google Translate <pre>/<div> junk pasted into product descriptions */
.ds-product__short-desc pre,
.ds-product__short-desc div,
.ds-product__description pre,
.ds-product__description div,
.ds-product__tab-panel pre,
.ds-product__tab-panel div {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  font-family: var(--ds-font);
  font-size: inherit;
}

/* Collapse ALL nested divs inside short-desc (Google Translate junk) */
.ds-product__short-desc div {
  display: contents;
}

.ds-product__short-desc pre {
  display: inline;
  white-space: normal;
  font-family: var(--ds-font);
  font-size: inherit;
}

/* Same for long description */
.ds-product__description div:not(.ds-product__description) {
  display: contents;
}

.ds-product__description pre {
  display: inline;
  white-space: normal;
  font-family: var(--ds-font);
  font-size: inherit;
}

.ds-product__description {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* WooCommerce add-to-cart form inside .ds-product__add-to-cart */
/* Pencil: "Cantidad" label inline-left + [-][1][+] selector */
/* Pencil quantity selector: transparent buttons, grey number bg, 8px radius */
.ds-product__add-to-cart .quantity,
form.cart .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  overflow: hidden;
  width: 132px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.ds-product__add-to-cart .quantity .qty,
form.cart .quantity .qty,
.quantity input[type="number"].qty {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--ds-border);
  border-right: 1px solid var(--ds-border);
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--ds-font);
  color: var(--ds-foreground);
  background: #F0F4F7;
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
  box-shadow: none;
}

/* Hide WC quantity screen-reader label inside the flex container */
.quantity .screen-reader-text,
.quantity label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Ensure quantity container is relative for absolute label */
.ds-product__add-to-cart .quantity,
form.cart .quantity {
  position: relative;
}

.ds-product__add-to-cart .quantity .qty::-webkit-inner-spin-button,
.ds-product__add-to-cart .quantity .qty::-webkit-outer-spin-button,
form.cart .quantity .qty::-webkit-inner-spin-button,
form.cart .quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ds-product__add-to-cart .quantity .minus,
.ds-product__add-to-cart .quantity .plus,
form.cart .quantity .minus,
form.cart .quantity .plus {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

/* Pencil: both buttons use foreground color */
.ds-product__add-to-cart .quantity .minus,
.ds-product__add-to-cart .quantity .plus,
form.cart .quantity .minus,
form.cart .quantity .plus {
  color: var(--ds-foreground);
}

.ds-product__add-to-cart .quantity .minus:hover,
.ds-product__add-to-cart .quantity .plus:hover,
form.cart .quantity .minus:hover,
form.cart .quantity .plus:hover {
  background: var(--ds-secondary);
  color: var(--ds-primary);
}

.ds-product__add-to-cart .single_add_to_cart_button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 32px;
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: var(--ds-radius-pill);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--ds-font);
  cursor: pointer;
  transition: background 0.2s;
}

/* Cart icon before button text — Pencil design */
.ds-product__add-to-cart .single_add_to_cart_button::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  flex-shrink: 0;
}

.ds-product__add-to-cart .single_add_to_cart_button:hover {
  background: var(--ds-primary-hover);
}

/* Hide duplicate "En stock" inside WC add-to-cart form (we show our own badge above) */
.ds-product__add-to-cart .woocommerce-variation-availability,
.ds-product__add-to-cart .stock {
  display: none;
}

.ds-product__add-to-cart form.cart {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

/* WooCommerce variation selector — Pencil: label + dropdown aligned, X clear button */
.ds-product__add-to-cart .variations {
  border-collapse: collapse;
  width: 100%;
}

/* Pencil: "Color" label above dropdown (vertical layout) */
.ds-product__add-to-cart .variations tr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ds-product__add-to-cart .variations td,
.ds-product__add-to-cart .variations th {
  padding: 0;
  border: none;
  vertical-align: middle;
  display: flex;
  align-items: center;
}

.ds-product__add-to-cart .variations th {
  flex-shrink: 0;
}

.ds-product__add-to-cart .variations td {
  width: 100%;
  position: relative;
}

.ds-product__add-to-cart .variations label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
}

.ds-product__add-to-cart .variations select {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  font-family: var(--ds-font);
  font-size: 14px;
  background: #fff;
  color: var(--ds-foreground);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-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 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Pencil: Clear button as 24px circle with × icon (Pencil: sNKCA) */
.ds-product__add-to-cart .variations .reset_variations {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ds-muted);
  text-decoration: none;
  background: var(--ds-background);
  border-radius: 12px;
}

.ds-product__add-to-cart .variations .reset_variations::before {
  content: "\00D7";
  font-size: 16px;
  line-height: 1;
}

.ds-product__add-to-cart .variations .reset_variations:hover {
  color: var(--ds-destructive);
  background: #FEF2F2;
}

.ds-product__add-to-cart .variations select:focus {
  border-color: var(--ds-primary);
}

/* Variation select: extra right padding for clear button */
.ds-product__add-to-cart .variations select {
  padding-right: 48px;
}

/* ── Custom color variation dropdown (Pencil: jakLl) ── */
.ds-color-dropdown {
  position: relative;
  width: 100%;
}

.ds-color-dropdown__selected {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: #fff;
  cursor: pointer;
  font-family: var(--ds-font);
  font-size: 14px;
  color: var(--ds-foreground);
  text-align: left;
  outline: none;
}

.ds-color-dropdown--open .ds-color-dropdown__selected {
  border: 2px solid var(--ds-primary);
  padding: 11px 15px;
  border-bottom: none;
  border-radius: var(--ds-radius-md) var(--ds-radius-md) 0 0;
  padding-bottom: 12px;
}

.ds-color-dropdown__swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.ds-color-dropdown__swatch--light {
  box-shadow: inset 0 0 0 1px var(--ds-border);
}

.ds-color-dropdown__swatch--hidden {
  display: none;
}

.ds-color-dropdown__text {
  flex: 1;
  min-width: 0;
}

.ds-color-dropdown__chevron {
  color: var(--ds-primary);
  flex-shrink: 0;
  display: flex;
  transition: transform 0.2s;
}

.ds-color-dropdown--open .ds-color-dropdown__chevron {
  transform: rotate(180deg);
}

.ds-color-dropdown__divider {
  height: 1px;
  background: var(--ds-border);
  display: none;
}

.ds-color-dropdown--open .ds-color-dropdown__divider {
  display: block;
  margin-left: 2px;
  margin-right: 2px;
}

.ds-color-dropdown__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid var(--ds-primary);
  border-top: none;
  border-radius: 0 0 var(--ds-radius-md) var(--ds-radius-md);
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
}

.ds-color-dropdown--open .ds-color-dropdown__panel {
  display: block;
}

.ds-color-dropdown__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-family: var(--ds-font);
  font-size: 14px;
  color: var(--ds-foreground);
  transition: background 0.1s;
}

.ds-color-dropdown__option:hover {
  background: var(--ds-background);
}

.ds-color-dropdown__option--active {
  background: #F0FAF8;
  color: var(--ds-primary);
  font-weight: 500;
}

.ds-color-dropdown__option--active:hover {
  background: #F0FAF8;
}

.ds-color-dropdown__check {
  display: none;
  color: var(--ds-primary);
  margin-left: auto;
  flex-shrink: 0;
}

.ds-color-dropdown__option--active .ds-color-dropdown__check {
  display: flex;
}

.ds-color-dropdown__option--clear {
  border-top: 1px solid var(--ds-border);
  color: var(--ds-destructive);
}

.ds-color-dropdown__option--clear:hover {
  background: #FEF2F2;
}

.ds-color-dropdown__option--clear .ds-color-dropdown__swatch {
  display: none;
}

/* Hide native select & reset link when custom dropdown is active */
.ds-color-dropdown ~ select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.ds-product__add-to-cart .variations td .reset_variations {
  display: none;
}

/* Quantity +/- buttons — Pencil: [-][1][+] compact group, 44×44 */
.ds-product__add-to-cart .quantity button,
.ds-product__add-to-cart .quantity .minus,
.ds-product__add-to-cart .quantity .plus {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--ds-foreground);
  font-family: var(--ds-font);
  padding: 0;
}

.ds-product__add-to-cart .quantity .minus:hover,
.ds-product__add-to-cart .quantity .plus:hover {
  background: var(--ds-background);
}

/* Quantity label "Cantidad" */
.ds-product__add-to-cart .quantity-label,
.ds-product__add-to-cart label[for*="quantity"] {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  margin-right: 16px;
}

/* Pencil (oAsRo): "Cantidad" label + qtySelector, 16px between label and controls */
/* Specificity must exceed form.cart .quantity (0,2,1) */
.ds-product__info .ds-product__add-to-cart .quantity {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.ds-product__info .ds-product__add-to-cart .quantity::before {
  content: "Cantidad";
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 16px;
}

/* Inner wrapper for the actual [-][1][+] controls */
.ds-product__add-to-cart .woocommerce-variation-add-to-cart > .quantity > .minus,
.ds-product__add-to-cart .woocommerce-variation-add-to-cart > .quantity > .qty,
.ds-product__add-to-cart .woocommerce-variation-add-to-cart > .quantity > .plus,
.ds-product__add-to-cart form.cart > .quantity > .minus,
.ds-product__add-to-cart form.cart > .quantity > .qty,
.ds-product__add-to-cart form.cart > .quantity > .plus {
  border: 1px solid var(--ds-border);
}

.ds-product__add-to-cart .woocommerce-variation-add-to-cart > .quantity > .minus,
.ds-product__add-to-cart form.cart > .quantity > .minus {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.ds-product__add-to-cart .woocommerce-variation-add-to-cart > .quantity > .qty,
.ds-product__add-to-cart form.cart > .quantity > .qty {
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.ds-product__add-to-cart .woocommerce-variation-add-to-cart > .quantity > .plus,
.ds-product__add-to-cart form.cart > .quantity > .plus {
  border-radius: 0 8px 8px 0;
  border-left: none;
}

/* Pencil 3-row layout: color → quantity → [cart + heart] */
/* Use display:contents to flatten WC form nesting into a single grid */
.ds-product__add-to-cart {
  display: grid;
  gap: 16px;
}

.ds-product__add-to-cart form.cart,
.ds-product__add-to-cart form.variations_form,
.ds-product__add-to-cart .single_variation_wrap,
.ds-product__add-to-cart .woocommerce-variation-add-to-cart {
  display: contents;
}

/* Hide WC variation info (price/availability handled by our own badges) */
.ds-product__add-to-cart .woocommerce-variation {
  display: none;
}

/* Row 1: .variations (color selector) — full width */
/* Row 2: .quantity (cantidad + selector) — full width */
/* Row 3: cart button + heart button — side by side */
.ds-product__add-to-cart .variations,
.ds-product__add-to-cart .quantity {
  grid-column: 1 / -1;
}

.ds-product__add-to-cart .single_add_to_cart_button {
  grid-column: 1;
  width: 100%;
}

/* Pencil (vvn5O): heart-btn circle, 1.5px border, heart icon — match cart button height */
.ds-product__add-to-cart .ds-product__wishlist {
  grid-column: 2;
  width: 47px;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1.5px solid var(--ds-border);
  background: #fff;
  color: var(--ds-muted);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.ds-product__add-to-cart .ds-product__wishlist:hover {
  border-color: var(--ds-primary);
  color: var(--ds-primary);
}

/* Grid: cart button fills remaining, heart is auto-sized */
.ds-product__add-to-cart {
  grid-template-columns: 1fr auto;
}

/* ==========================================================================
   CART PAGE (.ds-cart)
   ========================================================================== */

/* Cart layout */
.ds-cart { padding: 0; }
.ds-cart__title { font-size: 28px; font-weight: 700; color: var(--ds-foreground); margin-bottom: 24px; }
.ds-cart__content { display: flex; gap: 32px; }
.ds-cart__items { flex: 1; display: flex; flex-direction: column; gap: 16px; }

/* Cart item card */
.ds-cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ds-card);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 16px;
}

.ds-cart-item__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.ds-cart-item__thumb img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--ds-radius-md);
}

.ds-cart-item__info { flex: 1; }

.ds-cart-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-foreground);
  display: block;
}

.ds-cart-item__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-primary);
  margin-top: 4px;
  display: block;
}

/* Cart quantity — Pencil: [-] grey-bg-number [+] bordered group, 8px radius */
.ds-cart-item__qty .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  overflow: hidden;
}

.ds-cart-item__qty .qty {
  width: 40px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--ds-border);
  border-right: 1px solid var(--ds-border);
  background: var(--ds-card-alt);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--ds-font);
  color: var(--ds-foreground);
  -moz-appearance: textfield;
  outline: none;
}

.ds-cart-item__qty .qty::-webkit-inner-spin-button,
.ds-cart-item__qty .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ds-cart-item__qty .minus,
.ds-cart-item__qty .plus {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--ds-card);
  font-size: 16px;
  color: var(--ds-primary);
  cursor: pointer;
  font-family: var(--ds-font);
  padding: 0;
  transition: background 0.15s;
}

.ds-cart-item__qty .minus:hover,
.ds-cart-item__qty .plus:hover {
  background: var(--ds-background);
}

.ds-cart-item__subtotal {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-primary);
  min-width: 80px;
  text-align: right;
}

.ds-cart-item__remove {
  color: var(--ds-muted);
  font-size: 24px;
  text-decoration: none;
  padding: 8px;
  line-height: 1;
}

.ds-cart-item__remove:hover { color: var(--ds-destructive); }

/* Cart actions — hidden in main column (coupon moved to sidebar per Pencil) */
.ds-cart__actions {
  display: none;
}

.ds-cart__coupon {
  display: flex;
  gap: 8px;
  flex: 1;
}

.ds-cart__coupon-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  font-size: 14px;
  font-family: var(--ds-font);
}

.ds-cart__coupon-btn {
  padding: 10px 20px;
  border: 1px solid var(--ds-primary);
  color: var(--ds-primary);
  background: transparent;
  border-radius: var(--ds-radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--ds-font);
}

.ds-cart__coupon-btn:hover { background: rgba(15, 123, 108, 0.05); }

.ds-cart__update-btn {
  padding: 10px 20px;
  background: var(--ds-card-alt);
  color: var(--ds-foreground);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--ds-font);
}

/* Empty cart state */
.woocommerce-cart .cart-empty,
.woocommerce-cart .woocommerce-info {
  text-align: center;
  padding: 80px 64px;
  font-size: 18px;
  color: var(--ds-muted);
  font-family: var(--ds-font);
}

.woocommerce-cart .cart-empty::before {
  content: "";
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='%23E2E8F0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.woocommerce-cart .return-to-shop {
  text-align: center;
  padding: 0 64px 80px;
}

.woocommerce-cart .return-to-shop a.button,
.woocommerce-cart .return-to-shop a.wc-backward {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--ds-primary);
  color: #fff;
  border-radius: var(--ds-radius-pill);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--ds-font);
  text-decoration: none;
  transition: background 0.2s;
}

.woocommerce-cart .return-to-shop a.button:hover,
.woocommerce-cart .return-to-shop a.wc-backward:hover {
  background: var(--ds-primary-hover);
}

/* "Undo" notice after removing item */
.woocommerce-cart .woocommerce-message {
  background: var(--ds-card);
  border: 1px solid var(--ds-border);
  border-left: 4px solid var(--ds-primary);
  border-radius: var(--ds-radius-md);
  padding: 12px 20px;
  margin: 16px 64px;
  font-size: 14px;
  font-family: var(--ds-font);
  color: var(--ds-foreground);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.woocommerce-cart .woocommerce-message a {
  color: var(--ds-primary);
  font-weight: 600;
}

/* Sidebar */
.ds-cart__sidebar {
  width: 460px;
  flex-shrink: 0;
  background: var(--ds-card);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 24px;
  align-self: flex-start;
}

.ds-cart__sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin-top: 0;
  margin-bottom: 16px;
}

.ds-cart__summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ds-foreground);
}

.ds-cart__summary-value {
  font-weight: 600;
  text-align: right;
}

/* Clean up WC shipping HTML inside sidebar */
.ds-cart__summary-shipping .woocommerce-shipping-methods {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ds-cart__summary-shipping .woocommerce-shipping-methods li label {
  font-size: 14px;
  font-weight: 600;
}

.ds-cart__summary-shipping .woocommerce-shipping-destination {
  font-size: 12px;
  color: var(--ds-muted);
  margin-top: 2px;
}

.ds-cart__summary-shipping .shipping-calculator-button {
  font-size: 12px;
  color: var(--ds-primary);
}

/* Pencil dividers */
.ds-cart__divider {
  border: none;
  height: 1px;
  background: var(--ds-border);
  margin: 4px 0;
}

/* Category label in cart item */
.ds-cart-item__category {
  font-size: 12px;
  color: var(--ds-muted);
  display: block;
  margin-top: 2px;
}

/* Cart: restore lateral padding */
.woocommerce-cart .ds-container {
  padding: 32px clamp(16px, calc(5.7vw - 18px), 64px) 48px;
}

/* Checkout: restore container padding for billing + order sidebar */
.woocommerce-checkout .ds-container {
  padding: 32px clamp(16px, calc(5.7vw - 18px), 64px) 48px;
}

/* Sidebar coupon (Pencil: label + input + ghost button) */
.ds-cart__sidebar-coupon {
  margin: 0;
}

.ds-cart__coupon-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  display: block;
  margin-bottom: 8px;
}

.ds-cart__coupon-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Trust row (Pencil: centered, muted icons + text) */
.ds-cart__trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.ds-cart__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ds-muted);
}

/* Hide subtotal column from cart item (Pencil doesn't show per-item subtotal) */
.ds-cart-item__subtotal {
  display: none;
}

/* Remove wrapper div from cart item */
.ds-cart-item__remove-wrap {
  display: contents;
}

.ds-cart__summary-total {
  font-size: 20px;
  font-weight: 700;
  padding-top: 4px;
}

.ds-cart__summary-total span:last-child {
  color: var(--ds-primary);
  font-size: 22px;
}

/* Checkout button */
a.ds-cart__checkout-btn,
a.ds-cart__checkout-btn:visited,
a.ds-cart__checkout-btn:link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 32px;
  background: var(--ds-primary);
  color: #fff;
  border-radius: var(--ds-radius-pill);
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
  text-decoration: none;
}

a.ds-cart__checkout-btn:hover { background: var(--ds-primary-hover); color: #fff; }

/* Trust icons */
.ds-cart__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ds-muted);
}

.ds-cart__trust svg { opacity: 0.6; }

/* Cart responsive */
@media (max-width: 900px) {
  .ds-cart { padding: 16px; }
  .ds-cart__content { flex-direction: column; }
  .ds-cart__sidebar { width: 100%; }
  /* Cart responsive */
  .ds-cart { padding: 16px; }
  .ds-cart__content { flex-direction: column; }
  .ds-cart__sidebar { width: 100%; }
  .ds-cart-item { flex-wrap: wrap; }
  .ds-cart-item__info { min-width: 120px; }
  .ds-cart-item__subtotal { display: none; }
  .ds-cart__actions { flex-direction: column; align-items: stretch; }
  .ds-cart__coupon { width: 100%; }
  .ds-cart__coupon-row { flex-direction: column; }
}

/* ==========================================================================
   CHECKOUT PAGE (.woocommerce-checkout)
   ========================================================================== */

/* Checkout heading (handled by ds-checkout-title) */

.woocommerce-checkout h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin-bottom: 16px;
}

/* Checkout — handled by section 20 below (ds-checkout custom template) */
.ds-checkout #customer_details {
  display: block;
}

/* Generic wishlist button (product cards, etc.) */
.ds-product__wishlist {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1.5px solid var(--ds-border);
  background: #fff;
  color: var(--ds-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  padding: 0;
}

.ds-product__wishlist:hover {
  border-color: var(--ds-primary);
  color: var(--ds-primary);
}

/* Metadata — Pencil: SKU, Categoria, Marca as compact label:value rows */
.ds-product__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--ds-border);
  margin-top: 4px;
}

.ds-product__meta-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.ds-product__meta-label {
  color: var(--ds-muted);
}

.ds-product__meta-value {
  color: var(--ds-foreground);
}

.ds-product__meta-value a {
  color: var(--ds-primary);
}

.ds-product__meta-value a:hover {
  text-decoration: underline;
}

.ds-product__meta-value a {
  color: var(--ds-primary);
  transition: color 0.2s;
}

.ds-product__meta-value a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   18. PRODUCT TABS (.ds-product__tabs)
   -------------------------------------------------------------------------- */

.ds-product__tabs {
  padding: 16px 0;
  position: relative;
  z-index: 1;
}

.ds-product__tab-bar {
  display: flex;
  border-bottom: 1px solid var(--ds-border);
}

.ds-product__tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-muted);
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-family: var(--ds-font);
  transition: color 0.2s, border-color 0.2s;
  position: relative;
  z-index: 2;
}

.ds-product__tab:hover {
  color: var(--ds-primary);
}

.ds-product__tab--active {
  color: var(--ds-primary);
  border-bottom-color: var(--ds-primary);
  font-weight: 600;
}

.ds-product__tab-panel {
  padding-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ds-foreground);
  overflow: visible;
  max-height: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.ds-product__tab-panel[hidden] {
  display: none;
}

/* Description content — Pencil: compact text, tight list items */
.ds-product__description,
.ds-product__tab-panel .woocommerce-product-details__short-description {
  overflow: visible;
  max-height: none;
}

/* Pencil: description is a compact text block, minimal spacing */
.ds-product__description p,
.ds-product__tab-panel p {
  margin: 0 0 6px 0;
}

.ds-product__description ul,
.ds-product__description ol,
.ds-product__tab-panel ul,
.ds-product__tab-panel ol {
  padding-left: 18px;
  margin: 0 0 6px 0;
  font-size: 0;
  line-height: 0;
}

.ds-product__description li,
.ds-product__tab-panel li {
  margin: 0;
  padding: 2px 0;
  line-height: 1.5;
  font-size: 14px;
}

/* Remove all extra margins/padding from WC content */
.ds-product__tab-panel > *,
.ds-product__description > * {
  margin-top: 0;
}

.ds-product__tab-panel br {
  line-height: 0.5;
}

.ds-product__no-content {
  color: var(--ds-muted);
}

/* Specs table — Pencil: alternating rows, 200px key, left border on value, 4px radius */
.ds-product__specs-table {
  width: 100%;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.ds-product__specs-table th,
.ds-product__specs-table td {
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  border-top: 1px solid var(--ds-border);
}

.ds-product__specs-table tr:first-child th,
.ds-product__specs-table tr:first-child td {
  border-top: none;
}

.ds-product__specs-table th {
  color: var(--ds-muted);
  font-weight: 500;
  width: 200px;
}

.ds-product__specs-table td {
  border-left: 1px solid var(--ds-border);
  color: var(--ds-foreground);
}

/* Pencil: odd rows #F0F4F7 bg */
.ds-product__specs-table tr:nth-child(odd) {
  background: var(--ds-card-alt);
}

.ds-product__specs-table tr:nth-child(even) {
  background: var(--ds-card);
}

/* --------------------------------------------------------------------------
   19. RELATED PRODUCTS (.ds-related)
   -------------------------------------------------------------------------- */

.ds-related {
  padding: 32px 0;
}

.ds-related__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin-bottom: 24px;
}

.ds-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --------------------------------------------------------------------------
   28. 404 PAGE
   -------------------------------------------------------------------------- */

.ds-404 {
  text-align: center;
  padding: 80px 24px 120px;
  max-width: 540px;
  margin: 0 auto;
}
.ds-404__icon {
  margin-bottom: 24px;
}
.ds-404__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin-bottom: 12px;
}
.ds-404__text {
  font-size: 16px;
  color: var(--ds-muted-foreground);
  margin-bottom: 32px;
  line-height: 1.6;
}
.ds-404__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   20. MOBILE / TABLET RESPONSIVE (@media max-width: 900px)
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {

  /* Topbar: hide on mobile (Pencil mobile: no topbar) */
  .ds-topbar {
    display: none;
  }

  /* Header: sticky on mobile */
  .ds-header {
    position: sticky;
    top: 0;
    z-index: 200;
  }

  .ds-header__inner {
    padding: 12px 16px;
  }

  /* Mobile header layout: [hamburger] [DistaSalud text] [cart] — no image logo */
  .ds-logo__img {
    display: none;
  }

  /* Show only cart icon from header actions */
  .ds-header__actions {
    display: flex;
    align-items: center;
    margin-left: auto;
  }
  .ds-header__actions .ds-header__icon,
  .ds-header__actions .ds-search-toggle {
    display: none;
  }
  /* Cart stays visible */
  .ds-header__actions .ds-header__cart {
    display: flex;
  }

  /* Hamburger on the left */
  .ds-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ds-foreground);
    z-index: 301;
    order: -1;
    margin-right: auto;
  }

  /* Nav: hidden by default on mobile */
  .ds-nav {
    display: none;
  }

  /* Backdrop overlay — visible when panel is open */
  .ds-nav-backdrop--visible {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 299;
  }

  /* Slide-in panel from LEFT (matches Pencil design) */
  .ds-nav--open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--ds-card, #fff);
    padding: 0;
    z-index: 300;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    animation: ds-slide-in-left 0.25s ease-out;
  }

  @keyframes ds-slide-in-left {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
  }

  /* Close row at top of panel: X icon + DistaSalud logo */
  .ds-nav--open .ds-nav__close-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ds-border);
    flex-shrink: 0;
  }

  .ds-nav__close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ds-foreground);
    padding: 0;
    display: flex;
    align-items: center;
  }

  .ds-nav__close-logo {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
  }

  /* Nav list items with icons */
  .ds-nav--open .ds-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .ds-nav--open .ds-nav__list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ds-foreground);
    border-bottom: 1px solid var(--ds-border);
    text-decoration: none;
  }

  .ds-nav--open .ds-nav__list li a::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* Icons for nav items — inline Lucide SVGs */
  .ds-nav--open .ds-nav__list li:nth-child(1) a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7C8D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
  }
  .ds-nav--open .ds-nav__list li:nth-child(2) a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7C8D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
    background-color: transparent;
    -webkit-mask-image: none;
    mask-image: none;
    background-size: 20px 20px;
    background-repeat: no-repeat;
  }
  .ds-nav--open .ds-nav__list li:nth-child(3) a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7C8D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1'/%3E%3C/svg%3E");
    background-color: transparent;
    -webkit-mask-image: none;
    mask-image: none;
    background-size: 20px 20px;
    background-repeat: no-repeat;
  }

  /* Active nav item styling (current page) */
  .ds-nav--open .ds-nav__list li.current-menu-item a {
    color: var(--ds-primary);
    font-weight: 600;
  }
  .ds-nav--open .ds-nav__list li.current-menu-item a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230F7B6C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
  }

  /* Separator between nav and action links */
  .ds-nav--open .ds-nav__separator {
    display: block;
    height: 1px;
    background: var(--ds-border);
    margin: 0;
  }

  /* Action links in panel */
  .ds-nav--open .ds-nav__actions {
    display: flex;
    flex-direction: column;
  }

  .ds-nav__action-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ds-foreground);
    border-bottom: 1px solid var(--ds-border);
    text-decoration: none;
  }

  .ds-nav__action-link:last-child {
    border-bottom: none;
  }

  .ds-nav__action-link svg {
    flex-shrink: 0;
    color: var(--ds-muted-foreground);
  }

  /* (mobile toggle styles moved to header section above) */

  /* Hero */
  .ds-hero {
    height: auto;
    min-height: 320px;
  }

  .ds-hero__content {
    padding: 40px 24px;
    gap: 12px;
  }

  .ds-hero__tag {
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 4px 10px;
  }

  .ds-hero__title {
    font-size: 28px;
    font-weight: 700;
  }

  .ds-hero__desc {
    font-size: 14px;
  }

  .ds-hero__trust {
    gap: 6px;
  }

  .ds-hero__trust-badge {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.67);
  }

  .ds-hero__trust-badge svg {
    width: 14px;
    height: 14px;
  }

  .ds-hero__trust-sep {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.33);
  }

  .ds-hero__cta-row {
    gap: 10px;
  }

  .ds-hero__cta {
    font-size: 13px;
  }

  .ds-hero__cta--primary {
    padding: 10px 20px;
  }

  .ds-hero__cta--ghost {
    padding: 10px 20px;
  }

  /* Sections: reduce padding */
  .ds-featured,
  .ds-categories,
  .ds-promo {
    padding: 32px 16px;
  }

  /* Featured tabs: wrap instead of scroll to avoid page overflow */
  .ds-featured__tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  .ds-tab {
    font-size: 12px;
  }

  /* Featured grid: 2 columns */
  .ds-featured__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Product card mobile adjustments */
  .ds-product-card__name { font-size: 13px; }
  .ds-product-card__price-row { font-size: 14px; }
  .ds-product-card__add-to-cart { font-size: 12px; padding: 8px 12px; }
  .ds-product-card__add-to-cart svg { width: 14px; height: 14px; }

  /* Categories: single column */
  .ds-categories__row-1 {
    grid-template-columns: 1fr;
  }

  .ds-categories__row-2 {
    grid-template-columns: 1fr;
  }

  /* Promo: stack vertically */
  .ds-promo {
    grid-template-columns: 1fr;
  }

  .ds-promo__image img {
    width: 100%;
  }

  /* Trust bar: 2x2 grid */
  .ds-trust-bar {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ds-trust-bar li {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    font-size: 12px;
  }

  /* Newsletter */
  .ds-newsletter {
    padding: 32px 16px;
  }

  .ds-newsletter__form {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .ds-newsletter .ds-newsletter__input {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 12px 16px;
    border-radius: 9999px 0 0 9999px;
  }

  .ds-newsletter__btn {
    flex-shrink: 0;
    padding: 12px 20px;
    border-radius: 0 9999px 9999px 0;
  }

  /* Prevent horizontal page scroll on mobile */
  body {
    overflow-x: hidden;
  }

  /* Footer grid: single column on mobile */
  .ds-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px;
  }

  /* Footer: truncate long email */
  .ds-footer__contact-list a,
  .ds-footer__links a {
    word-break: break-all;
  }

  .ds-footer__newsletter-form,
  .ds-footer__newsletter {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }

  .ds-footer__newsletter-input,
  .ds-footer .ds-footer__newsletter input {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    box-sizing: border-box;
  }

  .ds-footer__newsletter-btn,
  .ds-footer__newsletter button {
    flex-shrink: 0;
    box-sizing: border-box;
  }

  /* Footer copyright */
  .ds-footer__copyright {
    padding: 16px;
    font-size: 12px;
  }

  /* Container utility — clamp handles responsive padding from base rule */

  /* Breadcrumb */
  .ds-breadcrumb {
    padding: 12px 16px;
  }

  /* Shop layout */
  .ds-shop {
    flex-direction: column;
    padding-left: 0;
  }

  .ds-shop__sidebar {
    width: -webkit-fill-available;
    width: -moz-available;
    width: fill-available;
    display: none;
    padding: 20px;
    gap: 20px;
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    z-index: 10;
    background: var(--ds-card);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    margin: 8px 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .ds-shop__sidebar--open {
    display: flex;
  }

  .ds-shop__sidebar .ds-shop__divider {
    margin: 4px 0;
  }

  .ds-shop__filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--ds-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--ds-font);
    color: var(--ds-foreground);
    cursor: pointer;
    margin: 12px 16px;
  }

  .ds-shop__main {
    padding: 16px;
  }

  .ds-shop__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ds-shop__toolbar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  /* Breadcrumb: truncate long text */
  .ds-breadcrumb {
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .ds-bc-wrap { padding: 0 16px; }

  /* Product detail */
  .ds-product {
    padding: 16px;
  }

  .ds-product__top {
    flex-direction: column;
  }

  .ds-product__title {
    font-size: 20px;
  }

  .ds-product__tabs {
    padding: 24px 0;
  }

  .ds-product__tab-bar {
    flex-wrap: wrap;
    gap: 0;
  }

  .ds-product__tab {
    padding: 10px 14px;
    font-size: 13px;
  }

  .ds-product__specs-table th {
    width: auto;
  }

  /* Related products */
  .ds-related__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Page content (legal, about) — clamp handles responsive padding */

  .ds-page-content {
    font-size: 14px;
  }

  .ds-page-content h1 {
    font-size: 24px;
  }
}

/* ==========================================================================
   Cookie Banner (GDPR Cookie Compliance plugin)
   ========================================================================== */

/* Outer wrapper — must be full-width dark blue, not black */
.moove-gdpr-align-center,
.moove-gdpr-dark-scheme,
.gdpr_infobar_postion_bottom {
  background-color: #1A2B3D;
  max-width: 100%;
  width: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* Inner container — full width */
.moove-gdpr-info-bar-container {
  background-color: #1A2B3D;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.moove-gdpr-info-bar-content {
  max-width: 100%;
  width: 100%;
  padding: 16px 64px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.moove-gdpr-cookie-notice p,
.moove-gdpr-cookie-notice {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

.moove-gdpr-cookie-notice a {
  color: #0F7B6C;
}

/* Accept button — our teal green #0F7B6C */
.moove-gdpr-info-bar-container .mgbutton,
.moove-gdpr-button-holder .mgbutton {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  padding: 8px 20px;
  cursor: pointer;
}

.moove-gdpr-info-bar-container .mgbutton.moove-gdpr-infobar-allow-all,
.moove-gdpr-button-holder .mgbutton.moove-gdpr-infobar-allow-all {
  background-color: #0F7B6C !important;
  color: #fff !important;
  border: none !important;
}

.moove-gdpr-info-bar-container .mgbutton.moove-gdpr-infobar-allow-all:hover,
.moove-gdpr-button-holder .mgbutton.moove-gdpr-infobar-allow-all:hover {
  background-color: #0A5C50 !important;
}

.moove-gdpr-info-bar-container .mgbutton.moove-gdpr-infobar-settings-btn,
.moove-gdpr-button-holder .mgbutton.moove-gdpr-infobar-settings-btn {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.moove-gdpr-info-bar-container .mgbutton.moove-gdpr-infobar-settings-btn:hover,
.moove-gdpr-button-holder .mgbutton.moove-gdpr-infobar-settings-btn:hover {
  border-color: #fff;
  color: #fff;
}

/* Floating cookie settings button — match theme (high specificity to override plugin) */
button#moove_gdpr_save_popup_settings_button,
button.gdpr-floating-button-custom-position {
  background-color: var(--ds-primary);
  border-radius: var(--ds-radius-lg);
  border: none;
}

button#moove_gdpr_save_popup_settings_button:hover,
button.gdpr-floating-button-custom-position:hover {
  background-color: var(--ds-primary-hover);
}

/* --------------------------------------------------------------------------
   VALORACIONES (REVIEWS) TAB
   -------------------------------------------------------------------------- */

/* ── Reviews section (Pencil: q5paD) ── */
.ds-reviews {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px;
}

.ds-reviews__divider {
  border: none;
  height: 1px;
  background: var(--ds-border);
  margin: 0;
}

/* Rating summary: score-col + bars-col */
.ds-reviews__summary {
  display: flex;
  gap: 40px;
  align-items: center;
}

.ds-reviews__score-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 180px;
  flex-shrink: 0;
}

.ds-reviews__big-score {
  font-size: 48px;
  font-weight: 700;
  color: var(--ds-foreground);
  line-height: 1;
}

.ds-reviews__stars {
  display: flex;
  gap: 2px;
}

.ds-reviews__count-text {
  font-size: 12px;
  color: var(--ds-muted);
}

.ds-reviews__bars-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.ds-reviews__bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-reviews__bar-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-foreground);
  width: 10px;
  text-align: right;
  flex-shrink: 0;
}

.ds-reviews__bar-star {
  flex-shrink: 0;
}

.ds-reviews__bar-track {
  flex: 1;
  height: 8px;
  background: var(--ds-border);
  border-radius: 4px;
  overflow: hidden;
}

.ds-reviews__bar-fill {
  height: 100%;
  background: var(--ds-primary);
  border-radius: 4px;
  transition: width 0.3s;
}

.ds-reviews__bar-count {
  font-size: 13px;
  color: var(--ds-muted);
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}

/* Reviews list */
.ds-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ds-reviews__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-reviews__item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ds-reviews__item-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-reviews__avatar {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--ds-font);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.ds-reviews__name-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ds-reviews__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-foreground);
}

.ds-reviews__date {
  font-size: 12px;
  color: var(--ds-muted);
}

.ds-reviews__item-stars {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.ds-reviews__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ds-foreground);
  margin: 0;
}

/* Write review CTA */
.ds-reviews__write {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ds-reviews__write-prompt {
  font-size: 14px;
  color: var(--ds-muted);
}

.ds-reviews__write-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1.5px solid var(--ds-primary);
  border-radius: var(--ds-radius-pill);
  background: #fff;
  color: var(--ds-primary);
  font-family: var(--ds-font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.ds-reviews__write-btn:hover {
  background: var(--ds-secondary);
}

/* WC review form (hidden by default, toggled by JS) */
#ds-review-form-wrap {
  margin-top: 24px;
}

#ds-review-form-wrap .comment-respond {
  max-width: 600px;
  padding: 0;
}

#ds-review-form-wrap #comments {
  margin: 0;
  padding: 0;
}

/* Hide duplicate WC elements — we already show ratings summary in our custom panel */
#ds-review-form-wrap #comments { display: none; }
#ds-review-form-wrap .clear { display: none; }
/* Collapse all WC wrapper divs — pass through to inner content */
#ds-review-form-wrap #reviews,
#ds-review-form-wrap #review_form_wrapper,
#ds-review-form-wrap #review_form {
  display: contents;
}
#ds-review-form-wrap #respond {
  margin: 0; padding: 0;
}

#ds-review-form-wrap .comment-form label {
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

#ds-review-form-wrap .comment-form textarea,
#ds-review-form-wrap .comment-form input[type="text"],
#ds-review-form-wrap .comment-form input[type="email"] {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  font-family: var(--ds-font);
  font-size: 14px;
}

#ds-review-form-wrap .comment-form .form-submit input {
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: var(--ds-radius-pill);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--ds-font);
  cursor: pointer;
}

#ds-review-form-wrap .stars a {
  color: var(--ds-warning);
}

/* Mobile: stack summary columns */
@media (max-width: 640px) {
  .ds-reviews__summary {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .ds-reviews__score-col {
    width: 100%;
    align-items: center;
  }
  .ds-reviews__bars-col {
    width: 100%;
  }
  .ds-reviews__write {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   20. CHECKOUT PAGE (Pencil: hdkPZ)
   -------------------------------------------------------------------------- */

/* --- Breadcrumb (Pencil: bc-wrap, gap 6px) --- */
.ds-checkout-bc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.ds-checkout-bc a {
  color: var(--ds-accent);
  font-size: 13px;
  font-weight: 400;
}

.ds-checkout-bc a:hover {
  text-decoration: underline;
}

.ds-checkout-bc svg {
  color: var(--ds-muted);
  flex-shrink: 0;
}

.ds-checkout-bc__current {
  color: var(--ds-foreground);
  font-size: 13px;
  font-weight: 500;
}

/* --- Page title (Pencil: "Finalizar Compra" 28px 700) --- */
.ds-checkout-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0 0 8px;
}

/* --- Hide coupon toggle (not in Pencil) --- */
.woocommerce-form-coupon-toggle {
  display: none;
}

/* --- Two-column layout (Pencil: content-wrap, gap 32px) --- */
.ds-checkout__columns {
  display: flex;
  gap: 32px;
  margin-top: 16px;
}

.ds-checkout__billing {
  flex: 1;
  min-width: 0;
}

.ds-checkout__sidebar {
  flex: 0 0 460px;
  max-width: 460px;
}

/* --- Billing title (Pencil: 20px 700, divider below) --- */
.ds-checkout .woocommerce-billing-fields h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0 0 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--ds-border);
}

/* --- Form field wrapper (Pencil: gap 20px vertical, 16px horizontal) --- */
.ds-checkout .woocommerce-billing-fields__field-wrapper,
.ds-checkout .woocommerce-shipping-fields__field-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 16px;
}

/* Full-width fields */
.ds-checkout .form-row-wide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Side-by-side fields (Pencil: 50/50 with 16px gap) */
.ds-checkout .form-row-first,
.ds-checkout .form-row-last {
  flex: 1;
  min-width: 0;
  padding: 0;
  margin: 0;
}

/* --- Field labels (Pencil: 14px, 500, #1A2B3D, 6px below) --- */
.ds-checkout .form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  margin-bottom: 6px;
}

.ds-checkout .form-row label .required {
  color: var(--ds-foreground);
}

/* --- Inputs (Pencil: 8px radius, white bg, #E2E8F0 border, 10px 16px pad) --- */
.ds-checkout input.input-text,
.ds-checkout textarea,
.ds-checkout select {
  width: 100%;
  font-family: var(--ds-font);
  font-size: 14px;
  color: var(--ds-foreground);
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  padding: 10px 16px;
  line-height: 1.4;
  transition: border-color 0.2s ease;
}

.ds-checkout input.input-text:focus,
.ds-checkout textarea:focus,
.ds-checkout select:focus {
  border-color: var(--ds-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 123, 108, 0.1);
}

.ds-checkout input.input-text::placeholder,
.ds-checkout textarea::placeholder {
  color: var(--ds-muted);
  font-size: 14px;
}

/* Select2 overrides */
.ds-checkout .select2-container--default .select2-selection--single {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  height: auto;
  padding: 10px 16px;
}

.ds-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ds-foreground);
  font-size: 14px;
  line-height: 1.4;
  padding: 0;
}

.ds-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 12px;
}

/* --- Order notes (Pencil: divider before, 100px textarea) --- */
.ds-checkout #order_comments_field {
  padding-top: 20px;
  border-top: 1px solid var(--ds-border);
}

.ds-checkout #order_comments {
  height: 100px;
  min-height: 100px;
  resize: vertical;
}

/* --- Checkboxes: teal when checked (match theme primary) --- */
.ds-checkout input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ds-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
  position: relative;
  flex-shrink: 0;
}

.ds-checkout input[type="checkbox"]:checked {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
}

.ds-checkout input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --- Shipping toggle (Pencil: doesn't show separate shipping by default) --- */
.ds-checkout .woocommerce-shipping-fields {
  margin-top: 24px;
}

.ds-checkout #ship-to-different-address label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ds-foreground);
  cursor: pointer;
}

/* Hide country field (always Spain) */
.ds-checkout #billing_country_field,
.ds-checkout #shipping_country_field {
  display: none;
}

/* --------------------------------------------------------------------------
   20B. CHECKOUT SIDEBAR — Order Review Card
   -------------------------------------------------------------------------- */

/* --- Card wrapper (Pencil: white, 12px radius, 1px border, 24px pad) --- */
.ds-checkout__card {
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 24px;
  position: sticky;
  top: 24px;
}

/* --- Heading (Pencil: "Tu Pedido" 18px 700) --- */
.ds-checkout__card #order_review_heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--ds-border);
}

/* --- Order table --- */
.ds-checkout .woocommerce-checkout-review-order-table {
  width: 100%;
  border: none;
  border-collapse: collapse;
  margin: 0 0 16px;
}

.ds-checkout .woocommerce-checkout-review-order-table th,
.ds-checkout .woocommerce-checkout-review-order-table td {
  border: none;
  padding: 6px 0;
  font-family: var(--ds-font);
  vertical-align: top;
}

/* Column headers (Pencil: 13px 600 #1A2B3D) */
.ds-checkout .woocommerce-checkout-review-order-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-foreground);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ds-border);
}

.ds-checkout .woocommerce-checkout-review-order-table thead th:last-child {
  text-align: right;
}

/* Product names (Pencil: 13px normal #6B7C8D) */
.ds-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--ds-muted);
  padding-right: 8px;
}

/* Product prices (Pencil: 13px 600 #1A2B3D, right-aligned) */
.ds-checkout .woocommerce-checkout-review-order-table .cart_item td.product-total {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-foreground);
  text-align: right;
  white-space: nowrap;
}

/* Summary divider */
.ds-checkout .woocommerce-checkout-review-order-table tfoot tr:first-child th,
.ds-checkout .woocommerce-checkout-review-order-table tfoot tr:first-child td {
  padding-top: 12px;
  border-top: 1px solid var(--ds-border);
}

/* Summary labels (Pencil: 14px normal #6B7C8D) */
.ds-checkout .woocommerce-checkout-review-order-table tfoot th {
  font-size: 14px;
  font-weight: 400;
  color: var(--ds-muted);
}

/* Summary values (Pencil: 14px 600 #1A2B3D) */
.ds-checkout .woocommerce-checkout-review-order-table tfoot td {
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-foreground);
  text-align: right;
}

/* Shipping/IVA values — normal weight */
.ds-checkout .woocommerce-checkout-review-order-table tfoot .shipping td,
.ds-checkout .woocommerce-checkout-review-order-table tfoot .tax-rate td {
  font-weight: 400;
}

/* Hide "(ex. VAT)" text */
.ds-checkout .woocommerce-checkout-review-order-table .includes_tax,
.ds-checkout .woocommerce-checkout-review-order-table .tax_label {
  display: none;
}

/* Total row (Pencil: divider above, 16px/700 label, 18px/700 teal value) */
.ds-checkout .woocommerce-checkout-review-order-table tfoot .order-total th,
.ds-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
  padding-top: 16px;
  border-top: 1px solid var(--ds-border);
}

.ds-checkout .woocommerce-checkout-review-order-table tfoot .order-total th {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-foreground);
}

.ds-checkout .woocommerce-checkout-review-order-table tfoot .order-total td,
.ds-checkout .woocommerce-checkout-review-order-table tfoot .order-total td .amount,
.ds-checkout .woocommerce-checkout-review-order-table tfoot .order-total td strong .woocommerce-Price-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-primary);
}

/* --------------------------------------------------------------------------
   20C. CHECKOUT — Payment Section
   -------------------------------------------------------------------------- */

/* Payment wrapper */
.ds-checkout #payment {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 16px 0 0;
}

/* "Método de Pago" pseudo-title */
.ds-checkout #payment .wc_payment_methods {
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  border: none;
  border-top: 1px solid var(--ds-border);
}

.ds-checkout #payment .wc_payment_methods::before {
  content: "Método de Pago";
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin-bottom: 12px;
}

/* Payment method items */
.ds-checkout #payment .wc_payment_methods li {
  padding: 0;
  margin-bottom: 10px;
  border: none;
  background: transparent;
}

/* Custom radio buttons (Pencil: teal when selected, grey border otherwise) */
.ds-checkout #payment .wc_payment_methods li input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ds-border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  vertical-align: middle;
  margin-right: 10px;
  flex-shrink: 0;
  position: relative;
}

.ds-checkout #payment .wc_payment_methods li input[type="radio"]:checked {
  border-color: var(--ds-primary);
  background: var(--ds-primary);
  box-shadow: inset 0 0 0 3px #fff;
}

/* Payment label (Pencil: 14px 500 #1A2B3D) */
.ds-checkout #payment .wc_payment_methods li label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  cursor: pointer;
  display: inline;
}

/* Payment description (Pencil: 12px normal #6B7C8D, indent under radio) */
.ds-checkout #payment .wc_payment_methods li .payment_box {
  background: transparent;
  padding: 4px 0 0 28px;
  margin: 0;
  border: none;
  color: var(--ds-muted);
}

.ds-checkout #payment .wc_payment_methods li .payment_box::before {
  display: none;
}

.ds-checkout #payment .wc_payment_methods li .payment_box p {
  font-size: 12px;
  font-weight: 400;
  color: var(--ds-muted);
  line-height: 1.4;
  margin: 0;
}

/* --- Place order button (Pencil: teal pill, 15px 600, full width) --- */
.ds-checkout #payment .place-order {
  padding: 16px 0 0;
  border-top: 1px solid var(--ds-border);
  margin-top: 16px;
}

.ds-checkout #place_order {
  width: 100%;
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: var(--ds-radius-pill);
  padding: 12px 24px;
  font-family: var(--ds-font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
}

.ds-checkout #place_order:hover {
  background: var(--ds-primary-hover);
}

/* --- Terms & conditions (compact) --- */
.ds-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 12px;
}

.ds-checkout .woocommerce-terms-and-conditions-wrapper p {
  font-size: 12px;
  color: var(--ds-muted);
  line-height: 1.4;
}

.ds-checkout .woocommerce-terms-and-conditions-wrapper a {
  color: var(--ds-accent);
}

/* --- Secure note (Pencil: NZgyj — 11px #6B7C8D center, shield icon) --- */
.ds-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.ds-secure-note svg {
  color: var(--ds-muted);
  flex-shrink: 0;
}

.ds-secure-note span {
  font-size: 11px;
  font-weight: 400;
  color: var(--ds-muted);
}

/* --------------------------------------------------------------------------
   20D. ORDER PAY PAGE — 2-column layout (Pencil frame ItZAm "Confirmar Pago")
   -------------------------------------------------------------------------- */

/* ---- Outer 2-column grid ---- */
.ds-order-pay {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  max-width: 1280px;
  margin: 32px auto;
  padding: 0 64px;
  align-items: start;
}

/* ---- Columns ---- */
.ds-order-pay__left,
.ds-order-pay__right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- Shared card style ---- */
.ds-order-pay__summary-card,
.ds-order-pay__address-card,
.ds-order-pay__pay-card {
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 24px;
}

/* ---- Card title ---- */
.ds-order-pay__card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ds-foreground);
  margin: 0 0 16px;
}

/* ---- Card divider ---- */
.ds-order-pay__card-divider {
  height: 1px;
  background: var(--ds-border);
  margin: 0 0 16px;
}

/* ---- Order summary table ---- */
.ds-order-pay__table {
  width: 100%;
  border-collapse: collapse;
}

.ds-order-pay__table thead th {
  font-size: 12px;
  font-weight: 500;
  color: var(--ds-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ds-border);
  text-align: left;
}

.ds-order-pay__table thead th.product-total {
  text-align: right;
}

.ds-order-pay__table tbody tr.order_item td {
  padding: 12px 0;
  border-bottom: 1px solid var(--ds-card-alt);
  vertical-align: middle;
}

.ds-order-pay__table tbody td.product-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  padding-right: 16px;
}

.ds-order-pay__table .product-qty {
  font-size: 12px;
  color: var(--ds-muted);
  margin-left: 6px;
}

.ds-order-pay__table tbody td.product-subtotal {
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-foreground);
  text-align: right;
  white-space: nowrap;
}

/* tfoot rows */
.ds-order-pay__table tfoot tr th {
  font-size: 14px;
  font-weight: 400;
  color: var(--ds-muted);
  padding: 10px 16px 10px 0;
  text-align: left;
}

.ds-order-pay__table tfoot tr td.product-total {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  text-align: right;
  white-space: nowrap;
}

/* First tfoot row — divider from tbody */
.ds-order-pay__table tfoot tr:first-child th,
.ds-order-pay__table tfoot tr:first-child td {
  padding-top: 16px;
  border-top: 1px solid var(--ds-border);
}

/* Last tfoot row — Total */
.ds-order-pay__table tfoot tr:last-child th {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-foreground);
  border-top: 1px solid var(--ds-border);
  padding-top: 16px;
}

.ds-order-pay__table tfoot tr:last-child td.product-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-primary);
  border-top: 1px solid var(--ds-border);
  padding-top: 16px;
}

/* Hide secondary tax/shipping texts */
.ds-order-pay__table small,
.ds-order-pay__table .tax_label,
.ds-order-pay__table .includes_tax {
  display: none;
}

/* ---- Billing address card ---- */
.ds-order-pay__address-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ds-order-pay__address-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.ds-order-pay__address-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-muted);
  min-width: 76px;
  flex-shrink: 0;
}

.ds-order-pay__address-value {
  font-size: 13px;
  color: var(--ds-foreground);
}

.ds-order-pay__address-edit-row {
  text-align: right;
}

.ds-order-pay__edit-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-primary);
  text-decoration: none;
}

.ds-order-pay__edit-link:hover { text-decoration: underline; }

/* ---- Pay card (right column) ---- */
.ds-order-pay__pay-card {
  display: flex;
  flex-direction: column;
}

/* Redsys method display row */
.ds-order-pay__method-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ds-secondary);
  border-radius: var(--ds-radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.ds-order-pay__method-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: var(--ds-radius-md);
  border: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ds-order-pay__method-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ds-order-pay__method-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-foreground);
}

.ds-order-pay__method-desc {
  font-size: 12px;
  color: var(--ds-muted);
}

/* ---- WC payment methods list — hidden, kept in DOM for form submission ---- */
.ds-order-pay #payment {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.ds-order-pay #payment ul.wc_payment_methods {
  display: none;
}

/* ---- Accepted card logos ---- */
.ds-order-pay__card-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ds-order-pay__card-badges {
  display: flex;
  gap: 6px;
}

.ds-order-pay__card-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--ds-foreground);
  border: 1px solid var(--ds-border);
  border-radius: 4px;
  padding: 3px 7px;
  letter-spacing: 0.5px;
}

.ds-order-pay__card-logos-label {
  font-size: 12px;
  color: var(--ds-muted);
}

/* ---- Total to pay ---- */
.ds-order-pay__pay-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.ds-order-pay__pay-total-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-foreground);
}

.ds-order-pay__pay-total-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--ds-primary);
}

/* ---- Submit row ---- */
.ds-order-pay__submit-row {
  padding: 0 !important;
  margin: 0 !important;
}

/* ---- Pay button ---- */
.ds-order-pay #place_order,
.ds-order-pay .ds-order-pay__submit-btn {
  background: var(--ds-primary) !important;
  color: #fff !important;
  border: none;
  border-radius: var(--ds-radius-pill);
  padding: 14px 24px;
  font-family: var(--ds-font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(15, 123, 108, 0.25);
  margin: 0;
}

.ds-order-pay #place_order:hover,
.ds-order-pay .ds-order-pay__submit-btn:hover {
  background: var(--ds-primary-hover) !important;
  box-shadow: 0 4px 12px rgba(15, 123, 108, 0.35);
}

/* ---- Trust text ---- */
.ds-order-pay__trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ds-muted);
}

/* ---- WC terms / privacy wrappers ---- */
.ds-order-pay .woocommerce-privacy-policy-text {
  font-size: 12px;
  color: var(--ds-muted);
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.5;
}

.ds-order-pay .woocommerce-privacy-policy-text a { color: var(--ds-primary); text-decoration: underline; }

.ds-order-pay .woocommerce-terms-and-conditions-wrapper { margin-bottom: 16px; }

.ds-order-pay .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--ds-muted);
  cursor: pointer;
}

.ds-order-pay .woocommerce-form__input-checkbox {
  accent-color: var(--ds-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.ds-order-pay .woocommerce-form__label-for-checkbox a { color: var(--ds-primary); text-decoration: underline; }

/* ---- WC payment_box reset ---- */
.ds-order-pay #payment .payment_box {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.ds-order-pay #payment .payment_box::before { display: none; }

/* ---- Info notice (Redsys redirect) ---- */
.ds-order-pay__info-notice {
  background: #EFF6FF;
  border-radius: var(--ds-radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ds-order-pay__info-icon { flex-shrink: 0; margin-top: 1px; }

.ds-order-pay__info-text strong {
  font-size: 14px;
  font-weight: 600;
  color: #1E40AF;
  display: block;
  margin-bottom: 4px;
}

.ds-order-pay__info-text p {
  font-size: 13px;
  color: #3B82F6;
  margin: 0;
  line-height: 1.5;
}

/* ---- Back to checkout button ---- */
.ds-order-pay__nav { text-align: center; }

.ds-order-pay__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  padding: 10px 20px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.ds-order-pay__back-btn:hover {
  border-color: var(--ds-primary);
  color: var(--ds-primary);
}

/* ---- Cancel order link ---- */
.ds-order-pay__cancel { text-align: center; }

.ds-order-pay__cancel-link {
  font-size: 12px;
  color: var(--ds-muted);
  text-decoration: none;
}

.ds-order-pay__cancel-link:hover { text-decoration: underline; }

/* ---- Already paid message ---- */
.ds-order-pay__already-paid {
  font-size: 14px;
  color: var(--ds-muted);
  text-align: center;
  padding: 20px 0;
}

/* ---- WC misc resets ---- */
.ds-order-pay .clear { display: none; }
.ds-order-pay #payment .form-row { padding: 0; margin: 0; }

/* --------------------------------------------------------------------------
   20E. CHECKOUT — Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .ds-checkout__columns {
    flex-direction: column;
  }

  .ds-checkout__sidebar {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ds-checkout__card {
    position: static;
  }
}

@media (max-width: 480px) {
  .ds-checkout-title {
    font-size: 24px;
  }

  .ds-checkout .form-row-first,
  .ds-checkout .form-row-last {
    flex: 0 0 100%;
  }
}

/* =========================================================================
   22. MY ACCOUNT PAGE — Tabbed Card (Pencil: pADR4 + aYCj7)
   ========================================================================= */

/* --- Auth wrapper: centered 480px card --- */
.ds-auth {
  display: flex;
  justify-content: center;
  padding: 48px 24px;
}

.ds-auth__card {
  width: 480px;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
}

/* --- Tab bar (Pencil: tab-bar) --- */
.ds-auth__tabs {
  display: flex;
}

.ds-auth__tab {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-family: var(--ds-font);
  font-size: 15px;
  font-weight: 400;
  color: var(--ds-muted);
  background: none;
  border: none;
  border-bottom: 1px solid var(--ds-border);
  cursor: pointer;
  transition: color 0.2s;
}

.ds-auth__tab--active {
  color: var(--ds-primary);
  font-weight: 600;
  border-bottom: 3px solid var(--ds-primary);
}

/* --- Panels --- */
.ds-auth__panel {
  display: none;
  padding: 32px;
}

.ds-auth__panel--active {
  display: block;
}

/* --- Subtitle --- */
.ds-auth__subtitle {
  font-size: 14px;
  color: var(--ds-muted);
  margin: 0 0 16px;
}

/* --- Form fields --- */
.ds-auth__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ds-auth__field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  margin-bottom: 6px;
}

.ds-auth__field label .required {
  color: var(--ds-destructive);
}

.ds-auth__field input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  font-family: var(--ds-font);
  font-size: 14px;
  color: var(--ds-foreground);
  background: #fff;
  transition: border-color 0.2s;
}

.ds-auth__field input:focus {
  border-color: var(--ds-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 123, 108, 0.1);
}

.ds-auth__field input::placeholder {
  color: var(--ds-muted);
}

.ds-auth__pw-wrap {
  position: relative;
}

.ds-auth__pw-wrap input {
  padding-right: 44px;
}

.ds-auth__eye-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--ds-muted);
  display: flex;
  align-items: center;
  line-height: 1;
}

.ds-auth__eye-toggle:hover {
  color: var(--ds-foreground);
}

/* --- Remember + Forgot row (Pencil: space-between) --- */
.ds-auth__remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 335px) {
  .ds-auth__remember-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.ds-auth__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ds-foreground);
  cursor: pointer;
}

.ds-auth__remember input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ds-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.ds-auth__remember input[type="checkbox"]:checked {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
}

.ds-auth__remember input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ds-auth__forgot {
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-accent);
  text-decoration: none;
}

.ds-auth__forgot:hover {
  text-decoration: underline;
}

/* --- Buttons --- */
.ds-auth__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  border-radius: var(--ds-radius-pill);
  font-family: var(--ds-font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  border: none;
}

.ds-auth__btn--primary {
  background: var(--ds-primary);
  color: #fff;
}

.ds-auth__btn--primary:hover {
  background: var(--ds-primary-hover);
}

.ds-auth__btn--outline {
  background: #fff;
  color: var(--ds-primary);
  border: 1.5px solid var(--ds-primary);
}

.ds-auth__btn--outline:hover {
  background: rgba(15, 123, 108, 0.05);
}

.ds-auth__btn--outline svg {
  color: var(--ds-primary);
}

/* --- Divider "o" --- */
.ds-auth__divider {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ds-auth__divider-line {
  flex: 1;
  height: 1px;
  background: var(--ds-border);
}

.ds-auth__divider-text {
  font-size: 13px;
  color: var(--ds-muted);
}

/* --- Terms checkbox (register) --- */
.ds-auth__terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ds-foreground);
}

.ds-auth__terms input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ds-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
}

.ds-auth__terms input[type="checkbox"]:checked {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
}

.ds-auth__terms input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ds-auth__terms label {
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.ds-auth__terms a {
  color: var(--ds-accent);
}

/* --- Back link (lost password) --- */
.ds-auth__back {
  padding: 16px 24px;
}

.ds-auth__back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-accent);
  text-decoration: none;
}

.ds-auth__back a:hover {
  text-decoration: underline;
}

/* --- Recover title --- */
.ds-auth__recover-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0 0 8px;
}

/* --- Hide old WC account styles, page title --- */
.woocommerce-account .entry-content,
.woocommerce-account .page-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Old #customer_login + subtitle styles removed — using .ds-auth tabbed card */

/* (old #customer_login field styles removed) */

.woocommerce-account #customer_login input[type="text"],
.woocommerce-account #customer_login input[type="email"],
.woocommerce-account #customer_login input[type="password"] {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--ds-font);
  color: var(--ds-foreground);
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.woocommerce-account #customer_login input[type="text"]:focus,
.woocommerce-account #customer_login input[type="email"]:focus,
.woocommerce-account #customer_login input[type="password"]:focus {
  border-color: var(--ds-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 123, 108, 0.1);
}

.woocommerce-account #customer_login input[type="text"]::placeholder,
.woocommerce-account #customer_login input[type="email"]::placeholder,
.woocommerce-account #customer_login input[type="password"]::placeholder {
  color: var(--ds-muted);
}

.woocommerce-account #customer_login .form-row {
  margin-bottom: 16px;
}

/* Remember-me + forgot password row (Pencil: same line, space-between) */
.woocommerce-account #customer_login .woocommerce-form-login > .form-row:last-of-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  position: relative;
}

.woocommerce-account #customer_login .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ds-foreground);
  cursor: pointer;
  order: 1;
}

.woocommerce-account #customer_login .woocommerce-form-login__rememberme input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #E2E8F0;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.woocommerce-account #customer_login .woocommerce-form-login__rememberme input[type="checkbox"]:checked {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
}

.woocommerce-account #customer_login .woocommerce-form-login__rememberme input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.woocommerce-account #customer_login .woocommerce-form-login > .form-row:last-of-type button[type="submit"] {
  order: 3;
  width: 100%;
  flex-basis: 100%;
}

/* Position forgot-password link beside Recordarme checkbox */
.woocommerce-account #customer_login .woocommerce-LostPassword {
  margin: 0 0 12px;
}

.woocommerce-account #customer_login .woocommerce-LostPassword a {
  color: #2563EB;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.woocommerce-account #customer_login .woocommerce-LostPassword a:hover {
  text-decoration: underline;
}

.woocommerce-account #customer_login button[type="submit"],
.woocommerce-account #customer_login .woocommerce-button,
.woocommerce-account #customer_login .button {
  width: 100%;
  padding: 12px 24px;
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--ds-font);
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.woocommerce-account #customer_login button[type="submit"]:hover,
.woocommerce-account #customer_login .woocommerce-button:hover,
.woocommerce-account #customer_login .button:hover {
  background: var(--ds-primary-hover);
}

.woocommerce-account #customer_login .woocommerce-privacy-policy-text {
  font-size: 12px;
  color: var(--ds-muted);
  margin-top: 8px;
}

.woocommerce-account #customer_login .woocommerce-privacy-policy-text a {
  color: var(--ds-primary);
}

/* Logged-in account dashboard (Pencil: ooRP3) */

/* Outer wrapper: column to stack breadcrumb + layout row */
.woocommerce-account.logged-in .woocommerce {
  display: flex;
  flex-direction: column;
}

/* Breadcrumb (Pencil: TfRaS — padding 12px 64px) */
.ds-acct-breadcrumb {
  padding: 12px 64px;
  font-size: 14px;
  color: var(--ds-muted);
}

.ds-acct-breadcrumb a {
  color: var(--ds-muted);
  text-decoration: none;
}

.ds-acct-breadcrumb a:hover {
  color: var(--ds-primary);
}

.ds-acct-breadcrumb__sep {
  margin: 0 8px;
  color: #CBD5E1;
}

.ds-acct-breadcrumb__current {
  color: var(--ds-foreground);
  font-weight: 500;
}

/* Page background for logged-in account (Pencil: ooRP3 fill #F8FAFB) */
.woocommerce-account.logged-in .ds-main {
  background: #F8FAFB;
}

/* Layout: sidebar 260px + main content, gap 32px (Pencil: R8mu0) */
.ds-acct-layout {
  display: flex;
  gap: 32px;
  padding: 32px 64px;
}

/* --- Sidebar (Pencil: nOiPG — 260px, white card, rounded) --- */
.woocommerce-account .woocommerce-MyAccount-navigation {
  flex-shrink: 0;
  width: 260px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  align-self: flex-start;
}

/* User card (Pencil: 7w3cO — #E8F5F2 bg, 20px padding, 12px gap) */
.ds-acct-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--ds-secondary);
}

.ds-acct-user-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ds-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.ds-acct-user-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ds-acct-user-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ds-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-acct-user-card__email {
  font-size: 12px;
  color: var(--ds-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav list (Pencil: J4t4z — vertical, 8px top/bottom padding) */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--ds-foreground);
  text-decoration: none;
  transition: background 0.15s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: #F1F5F9;
}

/* Active nav item (Pencil: GENEc — green bg, white text) */
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--ds-primary);
  color: #fff;
  font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active .ds-acct-nav-icon svg {
  stroke: #fff;
}

/* Nav icons (Pencil: 18x18, #6B7C8D stroke) */
.ds-acct-nav-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ds-acct-nav-icon svg {
  stroke: var(--ds-muted);
}

/* Logout nav (Pencil: Ctkb2 — red text + icon) */
.ds-acct-nav-logout {
  color: #DC2626 !important;
}

.ds-acct-nav-logout .ds-acct-nav-icon svg {
  stroke: #DC2626 !important;
}

/* Divider before logout (Pencil: nt1rY — 1px #E2E8F0) */
.ds-acct-nav-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 0;
  list-style: none;
}

/* --- Main content area (Pencil: vX3zC — fills remaining, 24px gap) --- */
.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

/* Hide empty WC notices wrapper — prevents phantom gap from flex gap */
.woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty {
  display: none;
}

/* --- Welcome banner (Pencil: ibstV — #E8F5F2 bg, 24px/28px padding, rounded 12) --- */
.ds-acct-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ds-secondary);
  border-radius: 12px;
  padding: 24px 28px;
}

.ds-acct-welcome__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ds-acct-welcome__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0;
}

.ds-acct-welcome__desc {
  font-size: 14px;
  color: var(--ds-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
}

/* Edit profile button (Pencil: CKDf1 — secondary button) */
.ds-acct-welcome__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.ds-acct-welcome__btn:hover {
  border-color: var(--ds-primary);
  background: #F8FAFB;
}

.ds-acct-welcome__btn svg {
  flex-shrink: 0;
}

/* --- Summary cards (Pencil: uvpjd — 3 cards, 16px gap, fill_container) --- */
.ds-acct-cards {
  display: flex;
  gap: 16px;
}

.ds-acct-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
}

.ds-acct-card__icon {
  display: flex;
  color: var(--ds-primary);
}

.ds-acct-card__icon svg {
  stroke: var(--ds-primary);
}

.ds-acct-card__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--ds-foreground);
  line-height: 1;
}

.ds-acct-card__label {
  font-size: 13px;
  color: var(--ds-muted);
}

/* --- Recent orders (Pencil: jKfxq — 16px gap) --- */
.ds-acct-orders {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ds-acct-orders__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ds-acct-orders__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0;
}

.ds-acct-orders__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-primary);
  text-decoration: none;
}

.ds-acct-orders__link:hover {
  text-decoration: underline;
}

.ds-acct-orders__empty {
  font-size: 14px;
  color: var(--ds-muted);
  margin: 0;
}

/* --- Orders table (Pencil: w1Ryu — rounded 12, border) --- */
.ds-acct-table {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
}

.ds-acct-table__head {
  display: flex;
  padding: 12px 16px;
  background: #F0F4F7;
}

.ds-acct-table__th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-muted);
}

.ds-acct-table__th--order { width: 120px; flex-shrink: 0; }
.ds-acct-table__th--date  { flex: 1; }
.ds-acct-table__th--status { flex: 1; }
.ds-acct-table__th--total { width: 120px; flex-shrink: 0; }
.ds-acct-table__th--action { width: 80px; flex-shrink: 0; }

.ds-acct-table__row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid #E2E8F0;
}

.ds-acct-table__td {
  font-size: 14px;
  color: var(--ds-foreground);
}

.ds-acct-table__td--order { width: 120px; flex-shrink: 0; font-weight: 600; color: var(--ds-primary); }
.ds-acct-table__td--date  { flex: 1; }
.ds-acct-table__td--status { flex: 1; }
.ds-acct-table__td--total { width: 120px; flex-shrink: 0; font-weight: 600; }
.ds-acct-table__td--action { width: 80px; flex-shrink: 0; }

.ds-acct-table__view {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-primary);
  text-decoration: none;
}

.ds-acct-table__view:hover {
  text-decoration: underline;
}

/* Status badges (Pencil: IaNUa, 2TBOs, UfkRK) */
.ds-acct-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.ds-acct-badge--processing { background: #DBEAFE; color: #2563EB; }
.ds-acct-badge--completed  { background: #DCFCE7; color: #16A34A; border: 1px solid #16A34A; }
.ds-acct-badge--shipped    { background: #FEF3C7; color: #D97706; border: 1px solid #F59E0B; }
.ds-acct-badge--on-hold    { background: #FEF3C7; color: #D97706; border: 1px solid #F59E0B; }
.ds-acct-badge--pending    { background: #FEF9C3; color: #A16207; }
.ds-acct-badge--cancelled  { background: #FEE2E2; color: #DC2626; }
.ds-acct-badge--refunded   { background: #F3E8FF; color: #7C3AED; }
.ds-acct-badge--failed     { background: #FEE2E2; color: #DC2626; }
.ds-acct-badge--default    { background: #F1F5F9; color: var(--ds-muted); }

/* --- Shared account content title (all sub-pages) --- */
.woocommerce-MyAccount-content > h2:first-child,
.ds-acct-content-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0;
}

.woocommerce-MyAccount-content > p {
  font-size: 14px;
  color: var(--ds-muted);
  margin: 0 0 16px;
}

/* WC notices */
.woocommerce-MyAccount-content .woocommerce-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin: 0 0 16px;
  border-left: none;
  background: #DCFCE7;
  color: #16A34A;
}

/* Empty state card (e.g. "No tienes pedidos todavía") */
.woocommerce-MyAccount-content .woocommerce-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 48px 32px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  border-left: none;
  font-size: 15px;
  color: var(--ds-muted);
  margin: 0;
}

/* Package icon before empty orders text */
.woocommerce-MyAccount-content .woocommerce-info::before {
  content: '';
  display: block;
  width: 64px;
  height: 64px;
  background: var(--ds-secondary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%230F7B6C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z'/%3E%3Cpath d='M12 22V12'/%3E%3Cpath d='m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* CTA button inside empty state */
.woocommerce-MyAccount-content .woocommerce-info .woocommerce-Button,
.woocommerce-MyAccount-content .woocommerce-info .button {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.woocommerce-MyAccount-content .woocommerce-info .woocommerce-Button:hover,
.woocommerce-MyAccount-content .woocommerce-info .button:hover {
  background: var(--ds-primary-hover);
}

/* Account form inputs */
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--ds-font);
  color: var(--ds-foreground);
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
  border-color: var(--ds-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 123, 108, 0.1);
}

.woocommerce-MyAccount-content input::placeholder,
.woocommerce-MyAccount-content textarea::placeholder {
  color: var(--ds-muted);
}

.woocommerce-MyAccount-content label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  margin-bottom: 6px;
}

/* Account submit buttons — primary pill */
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"],
.woocommerce-MyAccount-content .button:not(.ds-acct-add-address) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--ds-font);
  cursor: pointer;
  transition: background 0.2s;
}

.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover,
.woocommerce-MyAccount-content .button:not(.ds-acct-add-address):hover {
  background: var(--ds-primary-hover);
}

/* --- Orders page (Pencil: 3i6hZ) — WC orders table restyle --- */
.woocommerce-MyAccount-content .woocommerce-orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
}

.woocommerce-orders-table thead { background: #F0F4F7; }

.woocommerce-orders-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-muted);
  text-align: left;
  padding: 12px 16px;
  border: none;
}

.woocommerce-orders-table tbody tr { border-top: 1px solid #E2E8F0; }
.woocommerce-orders-table tbody tr:first-child td { border-top: 1px solid #E2E8F0; }

.woocommerce-orders-table tbody td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ds-foreground);
  border: none;
  vertical-align: middle;
  background: #fff;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
  color: var(--ds-primary);
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-total { font-weight: 600; }

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
  color: var(--ds-primary);
  font-weight: 500;
  text-decoration: none;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover {
  text-decoration: underline;
}

/* --- Addresses page (Pencil: Lt5q8) — custom template --- */
.ds-acct-addresses {
  display: flex;
  gap: 24px;
}

.ds-acct-address-card {
  flex: 1;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
}

.ds-acct-address-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ds-acct-address-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ds-foreground);
  margin: 0;
}

.ds-acct-address-card__edit {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-primary);
  text-decoration: none;
}

.ds-acct-address-card__edit:hover { text-decoration: underline; }

.ds-acct-address-card__body address {
  font-style: normal;
  font-size: 14px;
  color: var(--ds-muted);
  line-height: 1.6;
}

/* First line (name) is darker */
.ds-acct-address-card__body address br:first-of-type ~ br { display: none; }

.ds-acct-address-card__empty {
  font-size: 14px;
  color: var(--ds-muted);
  margin: 0;
}

/* --- Account Details form (Pencil: JKpvs) — custom template --- */
.ds-acct-details-form {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Form rows (wrapped in <p>) — tighter spacing */
.ds-acct-details-form p {
  margin: 0;
}

/* Section titles get extra top space */
.ds-acct-details-form .ds-acct-form-section {
  margin-top: 8px;
}

.ds-acct-details-form .ds-acct-separator {
  margin: 8px 0;
}

.ds-acct-form-section {
  font-size: 16px;
  font-weight: 600;
  color: var(--ds-foreground);
  margin: 0;
}

.ds-acct-field-row {
  display: flex;
  gap: 16px;
}

.ds-acct-field-row > p { flex: 1; margin: 0; }

.ds-acct-separator {
  height: 1px;
  background: #E2E8F0;
  border: none;
  margin: 0;
}

.ds-acct-details-form .form-row { margin: 0; }

/* Hide WC password strength meter + hint text in account form */
.ds-acct-details-form .woocommerce-password-strength,
.ds-acct-details-form .woocommerce-password-hint,
.ds-acct-details-form .pw-weak,
.ds-acct-details-form small {
  display: none;
}

/* Password show/hide button positioning */
.ds-acct-details-form .password-input {
  position: relative;
}

.ds-acct-details-form .show-password-input {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ds-muted);
  padding: 0;
}

/* Also style WC default edit-account form if template not overridden */
.woocommerce-MyAccount-content form.edit-account {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 32px;
}

.woocommerce-MyAccount-content .form-row { margin-bottom: 16px; }

/* --- Wishlist in account (Pencil: wJPLM) --- */
.ds-acct-wishlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ds-acct-wishlist-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0;
}

.ds-acct-wishlist-count {
  font-size: 14px;
  color: var(--ds-muted);
}

.ds-acct-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: 24px;
}

/* --- Logout popup (Pencil: BaVP7) --- */
.ds-logout-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.ds-logout-overlay.active { display: flex; }

.ds-logout-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 32px;
  width: 400px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.ds-logout-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FEE2E2;
}

.ds-logout-card__icon svg { stroke: #DC2626; }

.ds-logout-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0;
}

.ds-logout-card__msg {
  font-size: 14px;
  color: var(--ds-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 300px;
}

.ds-logout-card__buttons {
  display: flex;
  gap: 12px;
  width: 100%;
}

.ds-logout-card__cancel {
  flex: 1;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  cursor: pointer;
  font-family: var(--ds-font);
  transition: border-color 0.2s;
}

.ds-logout-card__cancel:hover { border-color: var(--ds-primary); }

.ds-logout-card__confirm {
  flex: 1;
  padding: 10px 20px;
  background: #DC2626;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  font-family: var(--ds-font);
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.ds-logout-card__confirm:hover { background: #B91C1C; }

/* Notify availability dialog */
.ds-notify-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.ds-notify-dialog {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.ds-notify-dialog h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0 0 8px;
}
.ds-notify-dialog p {
  font-size: 14px;
  color: var(--ds-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
.ds-notify-dialog__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--ds-font);
  outline: none;
  box-sizing: border-box;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.ds-notify-dialog__input:focus { border-color: var(--ds-primary); }
.ds-notify-dialog__buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.ds-notify-dialog__cancel {
  padding: 10px 20px;
  background: none;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  cursor: pointer;
}
.ds-notify-dialog__confirm {
  padding: 10px 20px;
  background: var(--ds-primary);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.ds-notify-dialog__confirm:hover { background: var(--ds-primary-hover); }

/* --- Mobile responsive for account sub-pages --- */
@media (max-width: 768px) {
  .ds-acct-addresses {
    flex-direction: column;
  }

  .ds-acct-field-row {
    flex-direction: column;
    gap: 0;
  }

  .ds-acct-wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .woocommerce-orders-table { font-size: 13px; }
  .woocommerce-orders-table thead th,
  .woocommerce-orders-table tbody td { padding: 10px 12px; }
}

/* Hide WC page title on account page (we use form headings) */
.woocommerce-account .woocommerce > h1:first-child,
.woocommerce-account .page-title,
.woocommerce-account .entry-title {
  display: none;
}

/* Lost password — now handled by ds-auth__* classes in lost-password.php template */

/* --- Responsive (mobile) --- */
@media (max-width: 768px) {
  .woocommerce-account .entry-content,
  .woocommerce-account .page-content {
    padding: 24px 16px;
  }

  .woocommerce-account #customer_login {
    flex-direction: column;
  }

  .ds-acct-breadcrumb {
    padding: 12px 16px;
  }

  .ds-acct-layout {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
  }

  .ds-acct-user-card {
    padding: 16px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 4px 0;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li a {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 13px;
  }

  .ds-acct-nav-divider {
    display: none;
  }

  .ds-acct-welcome {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .ds-acct-cards {
    flex-direction: column;
  }

  .ds-acct-table {
    overflow-x: auto;
  }

  .ds-acct-table__head,
  .ds-acct-table__row {
    min-width: 560px;
  }

  /* Auth (login/register) mobile overrides */
  .ds-auth { padding: 24px 16px; }
  .ds-auth__panel { padding: 24px 16px; }
  .ds-auth__btn { font-size: 14px; padding: 12px 16px; }
}

/* =========================================================================
   22B. EMPTY CATEGORY PAGE (Pencil: AHSEa)
   ========================================================================= */

/* Pencil: ecHero — #F0F4F7 bg, expands to fill main, centered vertically */
.ds-empty-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #F0F4F7;
  flex: 1;
  min-height: 400px;
  padding: 48px 24px;
}

/* Pencil: 80x80 circle, #E8F5F2 bg, category icon inside */
.ds-empty-cat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  background: var(--ds-secondary);
  margin-bottom: 20px;
}

.ds-empty-cat__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0 0 12px;
}

.ds-empty-cat__desc {
  font-size: 16px;
  color: var(--ds-muted);
  line-height: 1.5;
  max-width: 500px;
  margin: 0 0 20px;
}

/* Pencil: clock icon + text, pill, #E8F5F2 bg */
.ds-empty-cat__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ds-secondary);
  color: var(--ds-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--ds-radius-pill);
  margin-bottom: 20px;
}

.ds-empty-cat__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ds-empty-cat__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--ds-radius-pill);
  font-family: var(--ds-font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

/* Pencil: outlined teal — white bg, 1.5px teal border */
.ds-empty-cat__btn--outline {
  background: #fff;
  color: var(--ds-primary);
  border: 1.5px solid var(--ds-primary);
}

.ds-empty-cat__btn--outline:hover {
  background: rgba(15, 123, 108, 0.05);
}

.ds-empty-cat__btn--outline:disabled {
  cursor: default;
}

/* Pencil: ghost — no bg/border, teal text */
.ds-empty-cat__btn--ghost {
  background: none;
  color: var(--ds-primary);
  border: none;
}

.ds-empty-cat__btn--ghost:hover {
  background: rgba(15, 123, 108, 0.05);
}

/* =========================================================================
   23. CONTACT PAGE (Pencil: Vfpsu)
   ========================================================================= */

.ds-bc-wrap { padding: 0 64px; }

.ds-contact-header {
  text-align: center;
  padding: 16px 64px;
}

.ds-contact-header__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0 0 8px;
}

.ds-contact-header__sub {
  font-size: 15px;
  color: var(--ds-muted);
  margin: 0;
}

.ds-contact {
  display: flex;
  gap: 32px;
  padding: 32px 64px;
}

.ds-contact__form-card {
  flex: 1;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 32px;
}

.ds-contact__info-card {
  width: 480px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 32px;
  align-self: flex-start;
}

.ds-contact__row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.ds-contact__row .ds-contact__field { flex: 1; }

.ds-contact__field { margin-bottom: 16px; }
.ds-contact__row .ds-contact__field { margin-bottom: 0; }

.ds-contact__field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-foreground);
  margin-bottom: 6px;
}

.ds-contact__field input,
.ds-contact__field textarea {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--ds-font);
  color: var(--ds-foreground);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ds-contact__field input:focus,
.ds-contact__field textarea:focus {
  border-color: var(--ds-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 123, 108, 0.1);
}

.ds-contact__field input::placeholder,
.ds-contact__field textarea::placeholder {
  color: var(--ds-muted);
}

.ds-contact__field textarea {
  resize: vertical;
  min-height: 120px;
}

.ds-contact__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--ds-font);
  cursor: pointer;
  transition: background 0.2s;
}

.ds-contact__submit:hover { background: var(--ds-primary-hover); }

.ds-contact__info-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0 0 16px;
}

.ds-contact__info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--ds-foreground);
}

.ds-contact__info-row a {
  color: var(--ds-foreground);
  text-decoration: none;
}

.ds-contact__info-row a:hover { color: var(--ds-primary); }

.ds-contact__info-row svg { flex-shrink: 0; }

.ds-contact__divider {
  border: none;
  border-top: 1px solid #E2E8F0;
  margin: 16px 0;
}

.ds-contact__section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ds-foreground);
  margin: 0 0 8px;
}

.ds-contact__hours {
  font-size: 14px;
  color: var(--ds-foreground);
  margin: 0;
}

.ds-contact__social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.ds-contact__social a {
  color: #6B7C8D;
  transition: color 0.15s;
}

.ds-contact__social a:hover { color: var(--ds-primary); }
.ds-contact__social a:hover svg { stroke: var(--ds-primary); }

.ds-contact__map-section {
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ds-border);
  margin: 0 64px 32px;
  height: 300px;
}

.ds-contact__map-section iframe {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .ds-bc-wrap,
  .ds-contact-header,
  .ds-contact { padding-left: 16px; padding-right: 16px; }

  .ds-contact { flex-direction: column; }
  .ds-contact__info-card { width: 100%; }
  .ds-contact__row { flex-direction: column; gap: 0; }
  .ds-contact__row .ds-contact__field { margin-bottom: 16px; }
}

/* =========================================================================
   24. LEGAL PAGES (Pencil: 9eUUc)
   ========================================================================= */

.ds-page-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ds-foreground);
}

/* WooCommerce pages need full width (cart, checkout, account) */
.woocommerce-cart .ds-page-content,
.woocommerce-checkout .ds-page-content,
.woocommerce-account .ds-page-content {
  max-width: none;
}

/* Logged-in account: full-width layout, no centering */
.woocommerce-account.logged-in .ds-container {
  padding: 0 !important;
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.ds-page-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 24px 0 8px;
}

.ds-page-content h2:first-child {
  margin-top: 0;
}

.ds-page-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ds-foreground);
  margin: 24px 0 8px;
}

.ds-page-content p {
  margin: 0 0 16px;
}

.ds-page-content ul,
.ds-page-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.ds-page-content li {
  margin-bottom: 8px;
}

.ds-page-content a {
  color: var(--ds-primary);
  text-decoration: none;
}

.ds-page-content a:hover { text-decoration: underline; }

.ds-page-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  overflow: hidden;
  margin: 0 0 16px;
}

.ds-page-content th,
.ds-page-content td {
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  border-top: 1px solid var(--ds-border);
}

.ds-page-content thead th {
  background: var(--ds-background);
  font-weight: 600;
  color: var(--ds-foreground);
  border-top: none;
}

.ds-page-content tbody tr:nth-child(odd) {
  background: #FAFBFC;
}

.ds-page-content td {
  color: var(--ds-foreground);
}

.ds-page-content strong {
  font-weight: 600;
}

.ds-page-content em {
  color: var(--ds-muted);
  font-style: italic;
}

.ds-page-content hr {
  border: none;
  border-top: 1px solid #E2E8F0;
  margin: 24px 0;
}

.ds-page-content h2 + p {
  margin-top: 0;
}

/* =========================================================================
   25. OFERTAS PAGE (Pencil: gS4M4)
   ========================================================================= */

.ds-ofertas-banner {
  background: #DC2626;
  padding: 24px 64px;
  text-align: center;
}

.ds-ofertas-banner__title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.ds-ofertas-banner__sub {
  font-size: 16px;
  color: #fff;
  opacity: 0.9;
  margin: 0;
}

.ds-ofertas-grid {
  padding: 32px 64px;
}

.ds-ofertas-grid__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0 0 24px;
}

.ds-ofertas__empty {
  text-align: center;
  padding: 64px 0;
  grid-column: 1 / -1;
}

.ds-ofertas__empty svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

.ds-ofertas__empty p {
  font-size: 16px;
  color: var(--ds-muted);
  margin: 0 0 16px;
}

.ds-ofertas__shop-link {
  display: inline-block;
  padding: 10px 24px;
  background: var(--ds-primary);
  color: #fff;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.ds-ofertas__shop-link:hover { background: var(--ds-primary-hover); }

@media (max-width: 768px) {
  .ds-ofertas-banner { padding: 24px 16px; }
  .ds-ofertas-grid { padding: 24px 16px; }
}

/* =========================================================================
   26. SEARCH OVERLAY
   ========================================================================= */

.ds-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 43, 61, 0.5);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.ds-search-overlay[hidden] {
  display: flex;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.ds-search-overlay--open {
  display: flex;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.ds-search-overlay__inner {
  width: 100%;
  max-width: 640px;
  padding: 0 16px;
}

.ds-search-overlay__form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--ds-shadow-lg);
}

.ds-search-overlay__icon { flex-shrink: 0; }

.ds-search-overlay__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--ds-font);
  color: var(--ds-foreground);
  background: transparent;
}

.ds-search-overlay__input::placeholder { color: var(--ds-muted); }

.ds-search-overlay__close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ds-muted);
  transition: color 0.15s;
}

.ds-search-overlay__close:hover { color: var(--ds-foreground); }

/* Search toggle button reset */
button.ds-header__icon,
button.ds-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

/* =========================================================================
   27. WISHLIST PAGE
   ========================================================================= */

.ds-wishlist { padding: 32px 64px 48px; max-width: 1440px; margin: 0 auto; }

.ds-wishlist__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.ds-wishlist__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ds-foreground);
  margin: 0;
}

.ds-wishlist__count {
  font-size: 14px;
  color: var(--ds-muted);
}

.ds-wishlist__subtitle {
  font-size: 15px;
  color: var(--ds-muted);
  margin: -16px 0 24px;
}

.ds-wishlist__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: 24px;
}

.ds-wishlist__empty {
  text-align: center;
  padding: 64px 0;
  grid-column: 1 / -1;
}

.ds-wishlist__empty svg { margin-bottom: 16px; opacity: 0.4; }

.ds-wishlist__empty p {
  font-size: 16px;
  color: var(--ds-muted);
  margin: 0 0 16px;
}

.ds-wishlist__shop-link {
  display: inline-block;
  padding: 10px 24px;
  background: var(--ds-primary);
  color: #fff;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.ds-wishlist__shop-link:hover { background: var(--ds-primary-hover); }

/* Active heart icon state */
.ds-product-card__wishlist--active svg,
.ds-product__wishlist-btn--active svg {
  fill: var(--ds-destructive);
  stroke: var(--ds-destructive);
}

.ds-wishlist__loading {
  text-align: center;
  padding: 48px 0;
  grid-column: 1 / -1;
  color: var(--ds-muted);
  font-size: 15px;
}

@media (max-width: 768px) {
  .ds-wishlist { padding: 16px; }
  .ds-wishlist__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* =========================================================================
   27. PLUGIN OVERRIDES (Nextend Social Login, reCAPTCHA)
   ========================================================================= */

/* Hide Nextend's default social login buttons — we use our custom button */
#nsl-custom-login-form-main,
#nsl-custom-login-form-1,
#nsl-custom-login-form-2,
.nsl-container { display: none !important; }

/* Hide reCAPTCHA v3 badge (allowed per Google TOS if attribution text is shown) */
.grecaptcha-badge { visibility: hidden !important; }
