/* SF Premium — WooCommerce catalog */

.sf-catalog-page {
  background: var(--sf-cream, #f5f2ed);
}

.sf-shop,
.sf-product-page {
  padding: 2rem 0 4rem;
}

.sf-shop__header {
  margin-bottom: 1.75rem;
}

.sf-shop__title {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--sf-black, #0a0a0a);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.sf-shop__title span {
  color: var(--sf-gold, #c5a059);
}

.term-description,
.sf-shop__header .woocommerce-archive-description {
  color: #5c5c5c;
  max-width: 70ch;
  line-height: 1.65;
}

.sf-shop__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Sidebar */
.sf-shop-sidebar {
  position: sticky;
  top: calc(var(--sf-masthead-h, 124px) + 1rem);
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.18);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
}

.sf-shop-sidebar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sf-shop-sidebar__head h2 {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: 1.35rem;
  margin: 0;
  color: var(--sf-black, #0a0a0a);
}

.sf-shop-sidebar__close {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--sf-gold, #c5a059);
  cursor: pointer;
}

.sf-shop-sidebar__block h3,
.sf-shop-sidebar__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sf-gold, #c5a059);
  margin: 1.25rem 0 0.65rem;
  font-weight: 700;
}

.sf-shop-search {
  display: grid;
  gap: 0.5rem;
  position: relative;
}

.sf-shop-search .sf-search-suggest {
  z-index: 1015;
}

.sf-shop-search input[type="search"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font: inherit;
  background: var(--sf-cream, #f5f2ed);
}

.sf-shop-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

/* "Todos los productos" vive en un <ul> hermano del árbol: separar del primer chip */
.sf-shop-sidebar__block > .sf-shop-cats + .sf-shop-cats {
  margin-top: 0.75rem;
}

.sf-shop-cats--child {
  margin: 0.35rem 0 0.1rem 0.65rem;
  padding-left: 0;
  border-left: none;
  gap: 0.3rem;
}

.sf-shop-cats__item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sf-cta-text, #ffffff);
  background: var(--sf-cta, #000000);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.sf-shop-cats__item a:hover {
  background: var(--sf-cta-hover, #1a1a1a);
  color: var(--sf-cta-text, #ffffff);
  transform: translateX(2px);
}

.sf-shop-cats__item.is-active > a,
.sf-shop-cats__item a[aria-current="page"] {
  background: var(--sf-cta-active, #000000);
  color: var(--sf-cta-text, #ffffff);
}

/* Subcategorías: sin chip verde — jerarquía visual más quieta */
.sf-shop-cats--child > .sf-shop-cats__item > a {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.55rem;
  color: var(--sf-text, #1a1a1a);
  background: transparent;
  border-radius: 6px;
}

.sf-shop-cats--child > .sf-shop-cats__item > a:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--sf-cta, #000000);
  transform: none;
}

.sf-shop-cats--child > .sf-shop-cats__item.is-active > a,
.sf-shop-cats--child > .sf-shop-cats__item > a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.12);
  color: var(--sf-cta, #000000);
  font-weight: 600;
}

.sf-shop-cats__count {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  flex-shrink: 0;
}

.sf-shop-cats--child .sf-shop-cats__count {
  color: rgba(26, 26, 26, 0.55);
}

/* WC product categories widget (si está en shop-filters) */
.sf-shop-sidebar .widget_product_categories .product-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.sf-shop-sidebar .widget_product_categories .product-categories ul {
  list-style: none;
  margin: 0.35rem 0 0.1rem 0.65rem;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.sf-shop-sidebar .widget_product_categories .product-categories > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sf-cta-text, #ffffff);
  background: var(--sf-cta, #000000);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sf-shop-sidebar .widget_product_categories .product-categories > li > a:hover,
.sf-shop-sidebar .widget_product_categories .product-categories > .current-cat > a {
  background: var(--sf-cta-active, #000000);
  color: var(--sf-cta-text, #ffffff);
}

.sf-shop-sidebar .widget_product_categories .product-categories ul a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sf-text, #1a1a1a);
  background: transparent;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sf-shop-sidebar .widget_product_categories .product-categories ul a:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--sf-cta, #000000);
}

.sf-shop-sidebar .widget_product_categories .product-categories ul .current-cat > a {
  background: rgba(0, 0, 0, 0.12);
  color: var(--sf-cta, #000000);
  font-weight: 600;
}

.sf-shop-sidebar .widget_product_categories .product-categories > li > a .count {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.sf-shop-sidebar .widget_product_categories .product-categories ul .count {
  color: rgba(26, 26, 26, 0.55);
  font-weight: 600;
}

.sf-shop-sidebar__backdrop {
  display: none;
}

/* Toolbar */
.sf-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 12px;
}

.sf-shop-toolbar__filters {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--sf-black, #0a0a0a);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.woocommerce-result-count {
  margin: 0 !important;
  font-size: 0.88rem;
  color: #666;
}

.woocommerce-ordering {
  margin: 0 !important;
}

.woocommerce-ordering select {
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: var(--sf-cream, #f5f2ed);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Product grid */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.sf-product-card {
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.12);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.sf-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.sf-product-card__link {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sf-product-card__image-wrap {
  position: relative;
}
.sf-product-card__image-link { display: block; }
.sf-product-card__quick {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sf-black, #0a0a0a);
  color: var(--sf-gold, #c5a059);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
  border: 1px solid rgba(197, 160, 89, 0.35);
}
.sf-product-card:hover .sf-product-card__quick {
  opacity: 1;
  transform: translateY(0);
}
.sf-product-card__image {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #faf8f5 0%, #f0ebe3 100%);
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.sf-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sf-product-card:hover .sf-product-card__image img {
  transform: scale(1.04);
}

/* Placeholder de producto: movido a cart-drawer.css (carga global) */

.sf-product-card__body {
  padding: 1rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sf-product-card__cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sf-gold, #c5a059);
  font-weight: 600;
}

.sf-product-card__title {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: 1.1rem;
  line-height: 1.25;
  margin: 0;
  color: var(--sf-black, #0a0a0a);
}

.sf-product-card__excerpt {
  margin: 0;
  font-size: 0.82rem;
  color: #777;
  line-height: 1.45;
}

.sf-product-card__actions {
  padding: 0.75rem 1rem 1rem;
}

.sf-product-card__actions .button,
.sf-btn--cart {
  width: 100%;
  text-align: center;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 0.7rem 1rem !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}

/* Agregar al carrito: verde CTA + texto blanco */
.sf-product-card__actions .button,
.sf-product-card__actions .button.add_to_cart_button,
.sf-product-card__actions .sf-btn--gold,
.sf-btn--cart,
.sf-btn--cart.sf-btn--gold,
ul.products .button.add_to_cart_button,
.woocommerce ul.products .button.add_to_cart_button,
.sf-featured-carousel .button.add_to_cart_button {
  background: var(--sf-cta, #000000) !important;
  color: var(--sf-cta-text, #ffffff) !important;
  border: 1px solid var(--sf-cta, #000000) !important;
}

.sf-product-card__actions .button:hover,
.sf-product-card__actions .button.add_to_cart_button:hover,
.sf-product-card__actions .sf-btn--gold:hover,
.sf-btn--cart:hover,
.sf-btn--cart.sf-btn--gold:hover,
ul.products .button.add_to_cart_button:hover,
.woocommerce ul.products .button.add_to_cart_button:hover,
.sf-featured-carousel .button.add_to_cart_button:hover {
  background: var(--sf-cta-hover, #1a1a1a) !important;
  border-color: var(--sf-cta-hover, #1a1a1a) !important;
  color: var(--sf-cta-text, #ffffff) !important;
  transform: translateY(-1px);
}

.sf-product-card__actions .button:active,
.sf-product-card__actions .button.add_to_cart_button:active,
.sf-product-card__actions .sf-btn--gold:active,
.sf-btn--cart:active,
.sf-btn--cart.sf-btn--gold:active {
  background: var(--sf-cta-active, #000000) !important;
  border-color: var(--sf-cta-active, #000000) !important;
}

/* Buscar del sidebar: mantiene dorado */
.sf-shop-search .sf-btn--gold {
  background: var(--sf-gold, #c5a059) !important;
  color: #fff !important;
  border: 1px solid var(--sf-gold, #c5a059) !important;
}

.sf-shop-search .sf-btn--gold:hover {
  background: var(--sf-gold-light, #d4b876) !important;
  border-color: var(--sf-gold-light, #d4b876) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.sf-shop-search .sf-btn--gold:active {
  background: #a8863f !important;
  border-color: #a8863f !important;
}

.sf-btn--outline-gold,
.sf-product-card__actions .sf-btn--outline-gold {
  background: transparent !important;
  color: var(--sf-black, #0a0a0a) !important;
  border: 1px solid var(--sf-gold, #c5a059) !important;
}

/* Price block */
.sf-price-block {
  display: grid;
  gap: 0.1rem;
  margin-top: 0.35rem;
}

.sf-price-block__main {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sf-black, #0a0a0a);
}

.sf-price-block__regular {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85rem;
}

.sf-price-block__cash {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.15rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #0a0a0a;
  font-weight: 600;
  background: #c5a059;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.sf-price-block--cart .sf-price-block__main {
  font-size: 1rem;
}

.sf-price-block--cart .sf-price-block__cash {
  display: inline-block;
  margin-top: 0.15rem;
}

.sf-checkout-pricing-note {
  margin: 0.35rem 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: #3d3428;
  font-size: 0.82rem;
  line-height: 1.45;
}

.sf-mini-cart__meta .sf-price-block {
  gap: 0.05rem;
}

.sf-mini-cart__meta .sf-price-block__main {
  font-size: 0.92rem;
}

.sf-mini-cart__meta .sf-price-block__cash {
  font-size: 0.72rem;
}

.sf-cart-item__unit .sf-price-block__main {
  font-size: 1rem;
}

.sf-cart-item__unit .sf-price-block__cash {
  font-size: 0.75rem;
}

.sf-price-block--blocks {
  text-align: right;
  min-width: 0;
}

.sf-price-block--blocks-in-desc {
  text-align: left;
  margin-top: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.sf-price-block--blocks .sf-price-block__main {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sf-black, #0a0a0a);
}

.sf-price-block--blocks-in-desc .sf-price-block__main--list-ref {
  font-size: 0.92rem;
  font-weight: 600;
  color: #6b6358;
}

.sf-price-block--tier-cash .sf-price-block__main {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sf-black, #0a0a0a);
}

.sf-price-block__savings {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: var(--sf-cta, #000000);
  border: 1px solid var(--sf-cta, #000000);
  white-space: nowrap;
}

.sf-price-block__savings .woocommerce-Price-amount,
.sf-price-block__savings .woocommerce-Price-currencySymbol,
.sf-price-block__savings .amount,
.sf-price-block__savings bdi {
  color: #fff;
}

.sf-price-block--blocks .sf-price-block__cash {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: left;
  max-width: 100%;
  white-space: normal;
}

.sf-price-block--blocks-in-desc .sf-price-block__cash {
  text-align: left;
  margin-left: 0;
}

/* Ocultar precio nativo WC Blocks (Previous/Discounted price, Save badge) */
.sf-blocks-dual-pricing .wc-block-components-sale-badge,
.sf-blocks-dual-pricing [class*="sale-badge"],
.sf-blocks-dual-pricing [data-sf-dual-price-mounted] .wc-block-components-product-price,
.sf-blocks-dual-pricing [data-sf-native-price-hidden],
.sf-blocks-dual-pricing .wc-block-cart-item__total-price-and-sale-badge [data-sf-native-price-hidden],
.sf-blocks-dual-pricing .wc-block-components-order-summary-item__total [data-sf-native-price-hidden] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sf-blocks-dual-pricing [data-sf-dual-price-mounted] .wc-block-components-order-summary-item__total,
.sf-blocks-dual-pricing [data-sf-dual-price-mounted] .wc-block-cart-item__total {
  min-width: 0 !important;
  width: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.wc-block-cart-item__total [data-sf-native-price-hidden],
.wc-block-components-order-summary-item__total [data-sf-native-price-hidden] {
  display: none !important;
}

.sf-price-block-mount {
  width: 100%;
}

/* Nota precio contado bajo Total estimado (carrito) */
.sf-cart-cash-totals-note {
  display: block;
  width: 100%;
  margin: 0.5rem 0 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 500;
  color: #6b6358;
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.22);
  text-align: left;
  box-sizing: border-box;
}

/* Blocks cart/checkout — layout línea de producto */
.wc-block-cart .wc-block-cart-items__row,
.wc-block-cart .wc-block-cart-item {
  align-items: flex-start;
}

.wc-block-cart .wc-block-cart-item__product {
  min-width: 0;
  flex: 1 1 auto;
}

.sf-blocks-dual-pricing .wc-block-components-product-name,
.sf-blocks-dual-pricing .wc-block-cart-item__product .wc-block-components-product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  line-height: 1.35;
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 100%;
  white-space: normal;
}

.wc-block-checkout .wc-block-components-order-summary-item {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding-bottom: 0.85rem;
}

.wc-block-checkout .wc-block-components-order-summary-item__description {
  min-width: 0;
  padding-right: 0.25rem;
}

.wc-block-cart .wc-block-cart-item__total,
.wc-block-checkout .wc-block-components-order-summary-item__total {
  min-width: 0;
}

@media (max-width: 782px) {
  .sf-blocks-dual-pricing .wc-block-components-product-name {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
  }

  .sf-price-block--blocks .sf-price-block__cash {
    font-size: 0.68rem;
  }

  .sf-cart-cash-totals-note {
    font-size: 0.68rem;
    padding: 0.5rem 0.55rem;
  }

  .wc-block-checkout .wc-block-components-order-summary-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.5rem;
  }
}

/* Ocultar metadata duplicada de precio contado si Blocks la renderiza */
.wc-block-cart .wc-block-components-product-details__sf-premium,
.wc-block-checkout .wc-block-components-product-details__sf-premium {
  display: none !important;
}


/* Badges */
.sf-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--sf-black, #0a0a0a);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
}

.sf-badge--sale {
  left: auto;
  right: 10px;
  background: #8b3a3a;
}

.sf-badge--stock {
  background: #555;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
  margin-top: 2rem;
}

.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  border: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 89, 0.25);
  font-weight: 600;
  color: var(--sf-black, #0a0a0a);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--sf-gold, #c5a059);
  border-color: var(--sf-gold, #c5a059);
  color: var(--sf-black, #0a0a0a);
}

/* Empty state */
.sf-shop__empty {
  background: #fff;
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  border: 1px solid rgba(197, 160, 89, 0.15);
}

.sf-shop__empty .woocommerce-info {
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

/* Single product */
.sf-single-product__card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(197, 160, 89, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
  margin-bottom: 3rem;
}

.sf-single-product__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.sf-single-product__gallery-col .woocommerce-product-gallery {
  background: linear-gradient(160deg, #faf8f5, #f0ebe3);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(197, 160, 89, 0.1);
}

/* Sin lupa flotante; zoom suave premium + lightbox al click */
.sf-single-product__gallery-col .woocommerce-product-gallery__trigger {
  display: none !important;
}

.sf-single-product__gallery-col .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
  border-radius: 10px;
  overflow: hidden;
}

.sf-single-product__gallery-col .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image a {
  display: block;
  cursor: zoom-in;
}

.sf-single-product__gallery-col .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sf-single-product__gallery-col .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:hover img {
  transform: scale(1.06);
}

.sf-single-product__gallery-col .flex-control-thumbs li img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.sf-single-product__gallery-col .flex-control-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem !important;
  padding: 0;
  list-style: none;
}
.sf-single-product__gallery-col .flex-control-thumbs li img {
  border-radius: 8px;
  border: 2px solid transparent;
  opacity: 0.7;
}
.sf-single-product__gallery-col .flex-control-thumbs li img.flex-active {
  border-color: var(--sf-gold, #c5a059);
  opacity: 1;
}

.sf-single-product__cat {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sf-gold, #c5a059);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sf-single-product__summary-col .product_title {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--sf-black, #0a0a0a);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.sf-single-product__summary-col .price,
.sf-single-product__summary-col .woocommerce-Price-amount { display: none; }

.sf-single-product__summary-col .sf-price-block .woocommerce-Price-amount,
.sf-single-product__summary-col .sf-price-block .woocommerce-Price-currencySymbol { display: inline; }

.sf-single-product__summary-col .sf-price-block {
  margin: 0.5rem 0 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--sf-cream, #f5f2ed);
  border-radius: 12px;
  border: 1px solid rgba(197, 160, 89, 0.15);
}
.sf-single-product__summary-col .sf-price-block__main { font-size: 1.45rem; }

.sf-single-product__summary-col .sf-price-block__cash {
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.sf-single-product__payments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.sf-single-product__payments--duo {
  grid-template-columns: repeat(2, 1fr);
}
.sf-single-product__payment {
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.18);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  text-align: center;
}
.sf-single-product__payment strong {
  display: block;
  font-size: 0.82rem;
  color: var(--sf-black);
}
.sf-single-product__payment span {
  font-size: 0.68rem;
  color: #777;
}

.sf-single-product__summary-col .woocommerce-product-details__short-description {
  color: #555;
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.sf-single-product__cart-row form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.sf-single-product__cart-row .quantity,
.sf-single-product__cart-row .sf-qty,
.sf-cart-item .quantity,
.sf-cart-item .sf-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.sf-single-product__cart-row .quantity .qty,
.sf-cart-item .quantity .qty {
  width: 3rem;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 0.5rem 0.25rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  -moz-appearance: textfield;
  appearance: textfield;
  background: transparent;
}
.sf-single-product__cart-row .quantity .qty::-webkit-outer-spin-button,
.sf-single-product__cart-row .quantity .qty::-webkit-inner-spin-button,
.sf-cart-item .quantity .qty::-webkit-outer-spin-button,
.sf-cart-item .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sf-single-product__cart-row .quantity .minus,
.sf-single-product__cart-row .quantity .plus,
.sf-cart-item .quantity .minus,
.sf-cart-item .quantity .plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: rgba(197, 160, 89, 0.1);
  color: var(--sf-black, #0a0a0a);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.sf-single-product__cart-row .quantity .minus:hover,
.sf-single-product__cart-row .quantity .plus:hover,
.sf-cart-item .quantity .minus:hover,
.sf-cart-item .quantity .plus:hover,
.sf-qty__btn:hover,
.sf-qty__btn:focus-visible {
  background: rgba(197, 160, 89, 0.22);
  color: var(--sf-gold, #c5a059);
}
.sf-qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: rgba(197, 160, 89, 0.1);
  color: var(--sf-black, #0a0a0a);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.sf-single-product__cart-row .single_add_to_cart_button,
.sf-single-product__cart-row button[type="submit"] {
  flex: 1;
  min-width: 200px;
  background: var(--sf-cta, #000000) !important;
  color: var(--sf-cta-text, #ffffff) !important;
  border: 1px solid var(--sf-cta, #000000) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: 0.95rem 2rem !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}
.sf-single-product__cart-row .single_add_to_cart_button:hover,
.sf-single-product__cart-row button[type="submit"]:hover {
  background: var(--sf-cta-hover, #1a1a1a) !important;
  border-color: var(--sf-cta-hover, #1a1a1a) !important;
  color: var(--sf-cta-text, #ffffff) !important;
  transform: translateY(-1px);
}
.sf-single-product__cart-row .single_add_to_cart_button:active,
.sf-single-product__cart-row button[type="submit"]:active {
  background: var(--sf-cta-active, #000000) !important;
  border-color: var(--sf-cta-active, #000000) !important;
}

.sf-single-product__summary-col .product_meta {
  font-size: 0.82rem;
  color: #888;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}

.sf-single-product__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 0.78rem;
  color: #555;
}

/* Full product description (WooCommerce post_content) — inside white card, full width */
.sf-single-product__description {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
}

.sf-single-product__description-title {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: 1.75rem;
  margin: 0 0 1.25rem;
  color: var(--sf-black, #0a0a0a);
}

.sf-single-product__description-content {
  line-height: 1.75;
  color: #444;
  font-size: 0.95rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.sf-single-product__description-content h2,
.sf-single-product__description-content h3 {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  color: var(--sf-black, #0a0a0a);
}

.sf-single-product__description-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.sf-single-product__description-content h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.sf-single-product__description-content p {
  margin: 0 0 1rem;
}

.sf-single-product__description-content ul,
.sf-single-product__description-content ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.sf-single-product__description-content li {
  margin-bottom: 0.35rem;
}

.sf-single-product__description-content a {
  color: var(--sf-gold, #c5a059);
  text-decoration: none;
  font-weight: 500;
}

.sf-single-product__description-content a:hover {
  color: var(--sf-brown, #3d2b1f);
}

.sf-single-product__description-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* WooCommerce tabs (reviews, additional info) */
.sf-single-product__wrap .woocommerce-tabs {
  margin-top: 2rem;
  max-width: 880px;
}

.sf-single-product__wrap .woocommerce-tabs .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.sf-single-product__wrap .woocommerce-tabs .tabs li a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sf-single-product__wrap .woocommerce-tabs .tabs li.active a,
.sf-single-product__wrap .woocommerce-tabs .tabs li a:hover {
  color: var(--sf-gold, #c5a059);
  border-bottom-color: var(--sf-gold, #c5a059);
}

.sf-single-product__wrap .woocommerce-Tabs-panel {
  line-height: 1.75;
  color: #444;
  font-size: 0.95rem;
}

.sf-single-product__wrap .woocommerce-Tabs-panel h2 {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--sf-black, #0a0a0a);
}

/* Related & upsells */
.related.products,
.up-sells.upsells {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
}
.related.products > h2,
.up-sells.upsells > h2 {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--sf-black);
}

/* Mini cart drawer: movido a cart-drawer.css (carga global) */

/* Cart toast */
.sf-cart-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--sf-black, #0a0a0a);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10001;
  border: 1px solid rgba(197, 160, 89, 0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.sf-cart-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

.sf-is-loading {
  opacity: 0.65;
  pointer-events: none;
}

/* Cart page — compact */
.sf-cart-checkout {
  width: min(100% - 2rem, var(--sf-container, 1240px));
  max-width: none;
  margin-inline: auto;
  padding: 1.5rem 0 3rem;
}

.sf-page-cart .sf-content,
.sf-page-checkout .sf-content,
.sf-page-cart .wp-block-post-content,
.sf-page-checkout .wp-block-post-content {
  max-width: none;
  width: 100%;
}

.sf-cart-page__head {
  margin-bottom: 1.25rem;
}

.sf-cart-page__title {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--sf-black, #0a0a0a);
  margin: 0 0 0.2rem;
}

.sf-cart-page__subtitle {
  margin: 0;
  color: #888;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sf-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 65%) minmax(280px, 35%);
  gap: 2rem;
  align-items: start;
}

.sf-cart-layout__items {
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.sf-cart-layout__sidebar {
  position: sticky;
  top: calc(var(--sf-masthead-h, 124px) + 1rem);
}

.sf-cart-collaterals {
  width: 100%;
  float: none;
}

.sf-cart-list {
  display: flex;
  flex-direction: column;
}

.sf-cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  align-items: start;
}

.sf-cart-item:last-child {
  border-bottom: none;
}

.sf-cart-item__thumb a,
.sf-cart-item__thumb {
  display: block;
  line-height: 0;
}

.sf-cart-item__thumb img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--sf-cream, #f5f2ed);
  border-radius: 10px;
  padding: 0.25rem;
  border: 1px solid rgba(197, 160, 89, 0.1);
}

.sf-cart-item__body {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.sf-cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.sf-cart-item__name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.sf-cart-item__name a {
  color: var(--sf-black, #0a0a0a);
  text-decoration: none;
}

.sf-cart-item__name a:hover {
  color: var(--sf-gold, #c5a059);
}

.sf-cart-item__remove {
  flex-shrink: 0;
}

.sf-cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #aaa;
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
  transition: 0.2s ease;
}

.sf-cart-remove:hover {
  color: #c0392b;
  border-color: #c0392b;
  background: rgba(192, 57, 43, 0.06);
}

.sf-cart-item dl.variation {
  margin: 0;
  font-size: 0.75rem;
  color: #888;
}

.sf-cart-item dl.variation dt,
.sf-cart-item dl.variation dd {
  display: inline;
  margin: 0;
}

.sf-cart-item__meta {
  font-size: 0.8rem;
  color: #666;
}

.sf-cart-item__unit-label {
  font-size: 0.7rem;
  color: #999;
  margin-left: 0.15rem;
}

.sf-cart-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.sf-cart-item__qty,
.sf-cart-item__subtotal {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sf-cart-item__field-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
}

.sf-cart-item__subtotal strong {
  font-size: 0.92rem;
  color: var(--sf-gold, #c5a059);
  font-weight: 700;
}

.sf-cart-item .quantity .qty {
  width: 3.25rem;
  height: 32px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.25rem;
  font-size: 0.85rem;
}

.sf-cart-item__backorder {
  margin: 0;
  font-size: 0.75rem;
  color: #b45309;
}

.sf-cart-toolbar {
  padding: 0.85rem 1rem;
  background: var(--sf-cream, #f5f2ed);
  border-top: 1px solid rgba(197, 160, 89, 0.12);
  display: grid;
  gap: 0.75rem;
}

.sf-cart-toolbar__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.sf-btn--sm {
  padding: 0.55rem 1rem !important;
  font-size: 0.75rem !important;
}

/* Coupon box */
.sf-coupon-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.12) 0%, rgba(197, 160, 89, 0.04) 100%);
  border: 1px dashed rgba(197, 160, 89, 0.45);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.sf-coupon-box--inline,
.sf-coupon-box--compact {
  width: 100%;
  margin-bottom: 0;
}

.sf-coupon-box--compact {
  padding: 0.75rem 0.85rem;
  gap: 0.75rem;
}

.sf-coupon-box--compact .sf-coupon-box__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.sf-coupon-box__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sf-black, #0a0a0a);
  margin-bottom: 0.45rem;
}

.sf-coupon-box__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sf-black, #0a0a0a);
  color: var(--sf-gold, #c5a059);
  border-radius: 12px;
}

.sf-coupon-box__content {
  flex: 1;
  min-width: 0;
}

.sf-coupon-box__content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--sf-black, #0a0a0a);
  margin-bottom: 0.65rem;
}

.sf-coupon-box .coupon {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sf-coupon-input,
.sf-coupon-box .coupon .input-text {
  flex: 1;
  min-width: 160px;
  padding: 0.75rem 1rem !important;
  border-radius: 10px !important;
  border: 1px solid rgba(197, 160, 89, 0.35) !important;
  background: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sf-coupon-input:focus,
.sf-coupon-box .coupon .input-text:focus {
  outline: none;
  border-color: var(--sf-gold, #c5a059) !important;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.sf-coupon-box .coupon .button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Cart totals sidebar */
.sf-cart-totals {
  background: transparent;
  padding: 0;
  width: 100%;
  float: none;
}

.sf-cart-totals__title {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--sf-black, #0a0a0a);
}

.sf-cart-totals__card {
  background: var(--sf-cream, #f5f2ed);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(197, 160, 89, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.sf-cart-totals__table {
  width: 100%;
  border: none;
  margin-bottom: 1rem;
}

.sf-cart-totals__table th,
.sf-cart-totals__table td {
  background: transparent !important;
  color: var(--sf-black, #0a0a0a);
  padding: 0.45rem 0;
  border: none;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: normal;
}

.sf-cart-totals__table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sf-cart-totals__table tr:last-child {
  border-bottom: none;
}

.sf-cart-totals__table .order-total th,
.sf-cart-totals__table .order-total td {
  font-size: 1rem;
  font-weight: 700;
  padding-top: 0.65rem;
  color: var(--sf-black, #0a0a0a);
}

.sf-cart-totals__table .order-total td {
  color: var(--sf-gold, #c5a059);
}

.sf-coupon-applied {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #2e7d32;
  font-weight: 600;
}

/* Nota de envío (cart/checkout/mini): movida a cart-drawer.css (carga global) */

.sf-cart-shipping-row__value {
  font-weight: 600;
  font-size: 0.82rem;
  color: #555;
}

.sf-cart-totals__table .sf-cart-shipping-row td {
  vertical-align: middle;
}

/* Blocks: fila Envío | A convenir — ocultar carrier, GRATIS y $0 en valor */
.sf-page-cart .wc-block-components-totals-shipping .wc-block-components-totals-item__label[data-sf-shipping-row="1"],
.sf-page-checkout .wc-block-components-totals-shipping .wc-block-components-totals-item__label[data-sf-shipping-row="1"] {
  font-weight: inherit;
}

.sf-page-cart .wc-block-components-totals-shipping .wc-block-components-totals-item__value,
.sf-page-checkout .wc-block-components-totals-shipping .wc-block-components-totals-item__value {
  position: relative;
  color: transparent;
  user-select: none;
}

.sf-page-cart .wc-block-components-totals-shipping .wc-block-components-totals-item__value::after,
.sf-page-checkout .wc-block-components-totals-shipping .wc-block-components-totals-item__value::after {
  content: 'A convenir';
  position: absolute;
  right: 0;
  top: 0;
  color: #777;
  font-weight: 500;
  font-style: italic;
  white-space: nowrap;
}

.sf-page-cart .wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label,
.sf-page-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label,
.sf-page-cart .wc-block-components-shipping-rates-control .wc-block-formatted-money-amount,
.sf-page-checkout .wc-block-components-shipping-rates-control .wc-block-formatted-money-amount {
  font-size: 0 !important;
  line-height: 0;
  color: transparent;
}

.sf-page-cart .wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label::after,
.sf-page-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label::after {
  content: 'A convenir';
  font-size: 0.875em;
  line-height: 1.4;
  color: #777;
  font-weight: 500;
  font-style: italic;
}

.sf-page-cart .wc-block-components-totals-shipping .wc-block-formatted-money-amount,
.sf-page-checkout .wc-block-components-totals-shipping .wc-block-formatted-money-amount {
  display: none;
}

.sf-cart-transfer-note {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(245, 242, 237, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-left: 3px solid var(--sf-gold, #c5a059);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: #555;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.sf-cart-transfer-note svg {
  flex-shrink: 0;
  color: var(--sf-gold, #c5a059);
  margin-top: 0.1rem;
}

.sf-cart-transfer-note p {
  margin: 0;
}

.sf-cart-checkout-btn__inner,
.sf-mini-cart__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.sf-cart-checkout-btn .checkout-button,
#place_order {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}
.sf-cart-checkout-btn .checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.85rem !important;
  padding: 0.8rem 1.15rem !important;
  letter-spacing: 0.03em;
}

.sf-cart-trust-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sf-cart-trust-list li {
  font-size: 0.72rem;
  color: #777;
  padding-left: 1rem;
  position: relative;
}

.sf-cart-trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sf-gold, #c5a059);
}

/* Empty cart */
.sf-cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(197, 160, 89, 0.12);
  max-width: 520px;
  margin: 2rem auto;
}

.sf-cart-empty__icon {
  color: var(--sf-gold, #c5a059);
  margin-bottom: 1rem;
}

.sf-cart-empty h2 {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  margin: 0 0 0.5rem;
}

.sf-cart-empty p {
  color: #777;
  margin: 0 0 1.5rem;
}

/* Checkout */
.woocommerce-checkout #order_review {
  background: var(--sf-cream, #f5f2ed);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid rgba(197, 160, 89, 0.15);
}

.woocommerce-checkout .woocommerce-form-coupon {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.12) 0%, rgba(197, 160, 89, 0.04) 100%);
  border: 1px dashed rgba(197, 160, 89, 0.45);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.woocommerce-checkout .woocommerce-form-coupon .form-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0;
}

.woocommerce-checkout .woocommerce-form-coupon input.input-text {
  flex: 1;
  min-width: 160px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.woocommerce table.shop_table thead th {
  background: var(--sf-black, #0a0a0a);
  color: var(--sf-gold, #c5a059);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1rem;
}

.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot th {
  background: transparent;
  padding: 0.85rem 1rem;
}

.woocommerce table.shop_table td {
  padding: 1rem;
  vertical-align: middle;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--sf-cta, #000000) !important;
  color: var(--sf-cta-text, #ffffff) !important;
  border: 1px solid var(--sf-cta, #000000) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--sf-cta-hover, #1a1a1a) !important;
  border-color: var(--sf-cta-hover, #1a1a1a) !important;
  color: var(--sf-cta-text, #ffffff) !important;
}

.woocommerce #respond input#submit:active,
.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce input.button:active {
  background: var(--sf-cta-active, #000000) !important;
  border-color: var(--sf-cta-active, #000000) !important;
}

.woocommerce form.checkout .form-row input,
.woocommerce form.checkout .form-row select,
.woocommerce form.checkout .form-row textarea {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0.7rem 0.9rem;
}

.woocommerce form.checkout h3 {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  color: var(--sf-black);
}

/* Breadcrumbs */
.sf-breadcrumbs {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 1rem;
}

.sf-breadcrumbs a:hover {
  color: var(--sf-gold, #c5a059);
}

.woocommerce-checkout .woocommerce {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid rgba(197, 160, 89, 0.12);
}

/* Checkout Blocks — resumen premium + cupón */
.sf-page-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
  gap: 1.25rem;
}

.sf-page-checkout .wc-block-checkout__sidebar {
  position: sticky;
  top: calc(var(--sf-masthead-h, 124px) + 1rem);
  align-self: start;
}

/* Respiro interno del resumen: filas Subtotal/Envío/Total no pegadas al borde */
.sf-page-checkout .wp-block-woocommerce-checkout-order-summary-block {
  padding: 0.5rem 1.15rem 0.9rem;
}

.sf-page-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item {
  gap: 1rem;
}

.sf-page-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item__value {
  text-align: right;
}

/* Sin subrayados en sidebar resumen */
.sf-page-checkout .wc-block-checkout__sidebar a,
.sf-page-cart .wc-block-cart__sidebar a,
.sf-page-checkout .wc-block-components-order-summary a,
.sf-page-cart .wc-block-cart__totals a,
.sf-page-checkout .wc-block-components-totals-coupon a,
.sf-page-cart .wc-block-components-totals-coupon a {
  text-decoration: none !important;
}

.sf-page-checkout .wc-block-checkout__sidebar a:hover,
.sf-page-cart .wc-block-cart__sidebar a:hover,
.sf-page-checkout .wc-block-components-order-summary a:hover,
.sf-page-cart .wc-block-cart__totals a:hover,
.sf-page-checkout .wc-block-components-totals-coupon a:hover,
.sf-page-cart .wc-block-components-totals-coupon a:hover {
  text-decoration: none !important;
}

.sf-page-checkout .wc-block-components-order-summary,
.sf-page-checkout .wc-block-components-checkout-order-summary,
.sf-page-cart .wc-block-components-order-summary,
.sf-page-cart .wc-block-cart__totals {
  background: var(--sf-cream, #f5f2ed);
  border: 1px solid rgba(197, 160, 89, 0.24);
  border-radius: 18px;
  padding: 1.2rem 1.35rem 1.25rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.sf-page-checkout .sf-order-summary-panel:not(.sf-order-summary-panel--scrollable),
.sf-page-cart .sf-order-summary-panel:not(.sf-order-summary-panel--scrollable) {
  max-height: none !important;
  overflow: visible !important;
}

.sf-page-checkout .wc-block-components-order-summary__title-text,
.sf-page-checkout .wc-block-components-checkout-order-summary__title-text,
.sf-page-cart .wc-block-cart__totals-title,
.sf-page-cart .wc-block-components-order-summary__title-text {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sf-black, #0a0a0a);
  letter-spacing: 0.01em;
}

.sf-page-checkout .wc-block-components-checkout-order-summary__title {
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  padding-bottom: 0.65rem;
  margin-bottom: 0.35rem;
}

.sf-page-cart .wc-block-cart__totals-title {
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  padding-bottom: 0.65rem;
  margin: 0 0 0.35rem;
}

/* Lista de ítems — caja interior crema */
.sf-page-checkout .sf-order-summary-panel .wc-block-components-order-summary__content,
.sf-page-checkout .sf-order-summary-panel .wc-block-components-checkout-order-summary__content,
.sf-page-cart .sf-order-summary-panel .wc-block-components-order-summary__content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.48) 100%);
  border: 1px solid rgba(197, 160, 89, 0.16);
  border-radius: 12px;
  padding: 0.35rem 0.85rem 0.45rem;
  margin: 0.15rem 0 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.sf-page-checkout .wc-block-components-order-summary-item,
.sf-page-cart .wc-block-components-order-summary-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  grid-template-areas: "thumb info total";
  column-gap: 0.85rem;
  row-gap: 0.12rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  align-items: start;
}

.sf-page-checkout .wc-block-components-order-summary-item:last-child,
.sf-page-cart .wc-block-components-order-summary-item:last-child {
  border-bottom: none;
}

.sf-page-checkout .wc-block-components-order-summary-item__description,
.sf-page-cart .wc-block-components-order-summary-item__description {
  grid-area: info;
  flex: 1;
  min-width: 0;
  display: block;
  visibility: visible;
}

.sf-page-checkout .wc-block-components-product-metadata,
.sf-page-cart .wc-block-components-order-summary-item .wc-block-components-product-metadata {
  font-size: 0.72rem;
  color: #777;
  margin-top: 0.2rem;
}

.sf-page-checkout .wc-block-components-product-metadata__description,
.sf-page-cart .wc-block-components-order-summary-item .wc-block-components-product-metadata__description {
  display: none;
}

/* Items list — grows naturally; inner scroll only with .sf-order-summary-panel--scrollable (5+ ítems) */
.sf-page-checkout .wc-block-components-order-summary__content,
.sf-page-checkout .wc-block-components-checkout-order-summary__content,
.sf-page-cart .wc-block-components-order-summary__content {
  max-height: none;
  overflow: visible;
  overflow-x: hidden;
  padding-right: 0;
  margin-right: 0;
}

.sf-page-checkout .sf-order-summary-panel--scrollable .wc-block-components-order-summary__content,
.sf-page-checkout .sf-order-summary-panel--scrollable .wc-block-components-checkout-order-summary__content,
.sf-page-cart .sf-order-summary-panel--scrollable .wc-block-components-order-summary__content {
  max-height: min(55vh, 520px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.15rem;
  margin-right: -0.15rem;
}

.sf-page-checkout .wc-block-components-order-summary-item__image,
.sf-page-cart .wc-block-components-order-summary-item__image {
  grid-area: thumb;
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-right: 0;
  border-radius: 6px;
}

.sf-page-checkout .wc-block-components-order-summary-item__image img,
.sf-page-checkout .wc-block-components-order-summary-item__image .sf-product-placeholder-wrap,
.sf-page-cart .wc-block-components-order-summary-item__image img,
.sf-page-cart .wc-block-components-order-summary-item__image .sf-product-placeholder-wrap {
  display: block;
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  object-fit: cover;
  background: #fff;
  border-radius: 6px;
  border: 1px solid rgba(197, 160, 89, 0.2);
  box-sizing: border-box;
}

.sf-page-checkout .wc-block-components-order-summary-item__image img.sf-order-summary-img--fallback,
.sf-page-cart .wc-block-components-order-summary-item__image img.sf-order-summary-img--fallback {
  object-fit: contain;
  padding: 0.45rem;
  background: linear-gradient(145deg, #fff 0%, var(--sf-cream, #f5f2ed) 100%);
}

.sf-page-checkout .wc-block-components-order-summary-item__image .sf-product-placeholder-wrap,
.sf-page-cart .wc-block-components-order-summary-item__image .sf-product-placeholder-wrap {
  padding: 0;
  overflow: hidden;
}

.sf-page-checkout .wc-block-components-order-summary-item__image .sf-product-placeholder,
.sf-page-cart .wc-block-components-order-summary-item__image .sf-product-placeholder {
  min-height: 0;
  width: 100%;
  height: 100%;
}

.sf-page-checkout .wc-block-components-order-summary-item__quantity,
.sf-page-cart .wc-block-components-order-summary-item__quantity {
  top: -6px;
  right: -6px;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.3rem;
  background: var(--sf-gold, #c5a059);
  border: 2px solid var(--sf-cream, #f5f2ed);
  color: var(--sf-black, #0a0a0a);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sf-page-checkout .wc-block-components-product-name,
.sf-page-cart .wc-block-components-order-summary-item .wc-block-components-product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sf-black, #0a0a0a);
  margin: 0 0 0.15rem;
}

.sf-page-checkout .wc-block-components-order-summary-item__total-price,
.sf-page-cart .wc-block-components-order-summary-item__total-price {
  grid-area: total;
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sf-gold, #c5a059);
  text-align: right;
  align-self: flex-start;
  margin-top: 0;
  white-space: nowrap;
}

.sf-page-checkout .wc-block-components-order-summary-item__individual-prices,
.sf-page-checkout .wc-block-components-order-summary-item__individual-price,
.sf-page-cart .wc-block-components-order-summary-item__individual-prices,
.sf-page-cart .wc-block-components-order-summary-item__individual-price {
  display: none;
  font-size: 0.72rem;
  font-weight: 500;
  color: #888;
  margin-top: 0.1rem;
}

.sf-page-checkout .sf-order-summary-item--multi-qty .wc-block-components-order-summary-item__individual-prices,
.sf-page-checkout .sf-order-summary-item--multi-qty .wc-block-components-order-summary-item__individual-price,
.sf-page-cart .sf-order-summary-item--multi-qty .wc-block-components-order-summary-item__individual-prices,
.sf-page-cart .sf-order-summary-item--multi-qty .wc-block-components-order-summary-item__individual-price {
  display: block;
}

.sf-page-checkout .sf-order-summary-item--multi-qty .wc-block-components-order-summary-item__total-price,
.sf-page-cart .sf-order-summary-item--multi-qty .wc-block-components-order-summary-item__total-price {
  font-size: 1rem;
}

.sf-page-checkout .wc-block-components-product-price__value {
  color: var(--sf-gold, #c5a059);
  font-weight: 700;
}

.sf-page-checkout .wc-block-components-totals-wrapper,
.sf-page-cart .wc-block-components-totals-wrapper {
  border-top: 1px solid rgba(197, 160, 89, 0.22);
  margin-top: 0.25rem;
  padding-top: 0.65rem;
}

.sf-page-checkout .wc-block-components-totals-item,
.sf-page-cart .wc-block-components-totals-item {
  padding: 0.45rem 0;
  font-size: 0.84rem;
}

.sf-page-checkout .wc-block-components-totals-item__label,
.sf-page-cart .wc-block-components-totals-item__label {
  color: #555;
  font-weight: 500;
}

.sf-page-checkout .wc-block-components-totals-item__value,
.sf-page-cart .wc-block-components-totals-item__value {
  font-weight: 600;
  color: var(--sf-black, #0a0a0a);
}

.sf-page-checkout .wc-block-components-totals-footer-item,
.sf-page-cart .wc-block-components-totals-footer-item {
  padding: 0.6rem 0 0.15rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-top: 1px solid rgba(197, 160, 89, 0.25);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
}

.sf-page-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.sf-page-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  color: var(--sf-black, #0a0a0a);
  font-weight: 700;
  font-size: 1.05rem;
}

.sf-page-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.sf-page-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--sf-gold, #c5a059);
  font-size: 1.25rem;
  font-weight: 800;
}

/* Cupón Blocks — caja dorada premium */
.sf-page-checkout .sf-checkout-coupon-panel,
.sf-page-checkout .wc-block-components-totals-coupon,
.sf-page-cart .sf-checkout-coupon-panel,
.sf-page-cart .wc-block-components-totals-coupon {
  margin: 0.55rem 0 0.45rem;
  background: transparent !important;
}

.sf-page-checkout .sf-checkout-coupon-panel .wc-block-components-panel,
.sf-page-cart .sf-checkout-coupon-panel .wc-block-components-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.16) 0%, rgba(197, 160, 89, 0.06) 100%) !important;
  border: 1.5px dashed rgba(197, 160, 89, 0.55) !important;
  border-radius: 12px !important;
  padding: 0.82rem 1rem !important;
  font-family: var(--sf-font-body, "Inter", system-ui, sans-serif) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  color: var(--sf-black, #0a0a0a) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button:hover,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-panel__button:hover {
  border-color: var(--sf-gold, #c5a059) !important;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.24) 0%, rgba(197, 160, 89, 0.1) 100%) !important;
}

.sf-page-checkout .sf-checkout-coupon-panel--open .wc-block-components-panel__button,
.sf-page-cart .sf-checkout-coupon-panel--open .wc-block-components-panel__button {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-style: solid !important;
  border-bottom-color: rgba(197, 160, 89, 0.25) !important;
}

.sf-page-checkout .sf-checkout-coupon-panel .wc-block-components-panel__button > svg,
.sf-page-cart .sf-checkout-coupon-panel .wc-block-components-panel__button > svg {
  display: none !important;
}

.sf-page-checkout .sf-checkout-coupon-panel__icon,
.sf-page-cart .sf-checkout-coupon-panel__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sf-black, #0a0a0a);
  color: var(--sf-gold, #c5a059);
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.sf-page-checkout .sf-checkout-coupon-panel__label,
.sf-page-cart .sf-checkout-coupon-panel__label {
  flex: 1;
  min-width: 0;
  text-align: left;
  text-decoration: none !important;
}

.sf-page-checkout .sf-checkout-coupon-panel__chevron,
.sf-page-cart .sf-checkout-coupon-panel__chevron {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--sf-gold, #c5a059);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button[aria-expanded='true'] .sf-checkout-coupon-panel__chevron,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-panel__button[aria-expanded='true'] .sf-checkout-coupon-panel__chevron,
.sf-page-checkout .sf-checkout-coupon-panel--open .sf-checkout-coupon-panel__chevron,
.sf-page-cart .sf-checkout-coupon-panel--open .sf-checkout-coupon-panel__chevron {
  transform: rotate(180deg);
}

.sf-page-checkout .wc-block-components-totals-coupon__content,
.sf-page-cart .wc-block-components-totals-coupon__content {
  padding: 0.85rem 1rem 0.65rem !important;
  margin: 0 !important;
  transition: opacity 0.25s ease;
}

.sf-page-checkout .sf-checkout-coupon-panel--open .wc-block-components-totals-coupon__content,
.sf-page-cart .sf-checkout-coupon-panel--open .wc-block-components-totals-coupon__content {
  opacity: 1;
  border: 1.5px dashed rgba(197, 160, 89, 0.55);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, rgba(197, 160, 89, 0.06) 0%, rgba(245, 242, 237, 0.4) 100%);
}

.sf-page-checkout .wc-block-components-totals-coupon__form,
.sf-page-cart .wc-block-components-totals-coupon__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-text-input,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-text-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0 !important;
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-text-input input,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-text-input input {
  width: 100% !important;
  min-height: 44px;
  padding: 0.75rem 1rem !important;
  border-radius: 10px !important;
  border: 1px solid rgba(197, 160, 89, 0.35) !important;
  background: var(--sf-cream, #f5f2ed) !important;
  font-family: inherit;
  font-size: 0.875rem !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--sf-black, #0a0a0a);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-text-input input:focus,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-text-input input:focus {
  border-color: var(--sf-gold, #c5a059) !important;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.22) !important;
  outline: none;
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-button,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-button {
  border-radius: 999px !important;
  background: var(--sf-cta, #000000) !important;
  color: var(--sf-cta-text, #ffffff) !important;
  border: 1px solid var(--sf-cta, #000000) !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  min-height: 44px;
  padding: 0.65rem 1.35rem !important;
  box-shadow: none;
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-button:not(:disabled):not([aria-disabled='true']):hover,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-button:not(:disabled):not([aria-disabled='true']):hover {
  background: var(--sf-cta-hover, #1a1a1a) !important;
  border-color: var(--sf-cta-hover, #1a1a1a) !important;
  color: var(--sf-cta-text, #ffffff) !important;
  transform: translateY(-1px);
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-button:disabled,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-button:disabled,
.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-button[aria-disabled='true'],
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-button[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-chip,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.35rem 0.7rem 0.35rem 0.85rem;
  background: rgba(197, 160, 89, 0.14);
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 999px;
  color: var(--sf-black, #0a0a0a);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-chip__text,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-chip__text {
  text-decoration: none !important;
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-chip__remove,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-chip__remove,
.sf-page-checkout .wc-block-components-totals-coupon a,
.sf-page-cart .wc-block-components-totals-coupon a {
  color: var(--sf-gold, #c5a059);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.72rem;
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-chip__remove:hover,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-chip__remove:hover,
.sf-page-checkout .wc-block-components-totals-coupon a:hover,
.sf-page-cart .wc-block-components-totals-coupon a:hover {
  color: var(--sf-black, #0a0a0a);
  text-decoration: none !important;
}

.sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-validation-error,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-validation-error {
  display: block;
  margin-top: 0.55rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.18);
  color: #9a1f14;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none !important;
}

@media (min-width: 480px) {
  .sf-page-checkout .wc-block-components-totals-coupon__form,
  .sf-page-cart .wc-block-components-totals-coupon__form {
    flex-direction: row;
    align-items: flex-end;
  }

  .sf-page-checkout .wc-block-components-totals-coupon .wc-block-components-totals-coupon__button,
  .sf-page-cart .wc-block-components-totals-coupon .wc-block-components-totals-coupon__button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.sf-page-checkout .wc-block-components-totals-discount .wc-block-components-totals-item__value,
.sf-page-cart .wc-block-components-totals-discount .wc-block-components-totals-item__value {
  color: var(--sf-gold, #c5a059);
  font-weight: 700;
}

.sf-checkout-transfer-note {
  margin-top: 0.75rem;
  background: linear-gradient(135deg, rgba(245, 242, 237, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-left: 3px solid var(--sf-gold, #c5a059);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.sf-page-checkout .sf-checkout-transfer-note,
.sf-page-cart .sf-checkout-transfer-note {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.sf-page-checkout .sf-checkout-transfer-note p,
.sf-page-cart .sf-checkout-transfer-note p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #444;
  font-weight: 500;
}

.sf-checkout-coupon-intro {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.1) 0%, rgba(197, 160, 89, 0.03) 100%);
  border: 1px dashed rgba(197, 160, 89, 0.35);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.sf-checkout-coupon-intro p {
  margin: 0;
  font-size: 0.82rem;
  color: #555;
}

.sf-checkout-coupon-box {
  margin-bottom: 1.25rem;
}

.sf-checkout-coupon-box .checkout_coupon {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0;
}

.sf-checkout-coupon-box .form-row {
  margin: 0;
  padding: 0;
  width: auto;
  flex: 1;
  min-width: 140px;
}

.sf-checkout-coupon-box .form-row-last {
  flex: 0 0 auto;
}

.sf-checkout-review-table .product-name {
  width: 68%;
}

.sf-checkout-review-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.sf-checkout-review-item__thumb img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--sf-cream, #f5f2ed);
  border-radius: 8px;
  padding: 0.2rem;
  border: 1px solid rgba(197, 160, 89, 0.1);
}

.sf-checkout-review-item__body {
  font-size: 0.85rem;
  line-height: 1.35;
}

.sf-checkout-review-item__qty {
  display: inline-block;
  font-weight: 700;
  color: var(--sf-gold, #c5a059);
  margin-right: 0.25rem;
}

.sf-page-checkout .wc-block-components-validation-error {
  font-size: 0.78rem;
}

.sf-page-checkout .wc-block-components-address-form__address_2-toggle {
  font-size: 0.8rem;
  color: var(--sf-gold, #c5a059);
  font-weight: 600;
}

.woocommerce table.shop_table {
  border-radius: 10px;
  overflow: hidden;
}

.woocommerce table.shop_table.woocommerce-table--order-details {
  overflow: visible;
  display: table;
  width: 100%;
}

/* Order received / thank you — tabla completa + totales visibles */
.sf-page-order-received .woocommerce-order,
.sf-order-received .woocommerce-order {
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

/* Hero de confirmación */
.sf-page-order-received .woocommerce-notice--success,
.sf-order-received .woocommerce-notice--success {
  display: block;
  text-align: center;
  background: linear-gradient(160deg, #111 0%, #1d1a14 100%);
  color: #f5f2ed;
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-left: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.9rem;
  margin-bottom: 1.75rem;
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.25;
}

.sf-page-order-received .woocommerce-notice--success::before,
.sf-order-received .woocommerce-notice--success::before {
  content: '';
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  border: 2px solid var(--sf-gold, #c5a059);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23c5a059' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 26px no-repeat;
}

.sf-page-order-received .woocommerce-order-overview,
.sf-order-received .woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.sf-page-order-received .woocommerce-order-overview li,
.sf-order-received .woocommerce-order-overview li {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sf-black, #0a0a0a);
  background: var(--sf-cream, #f5f2ed);
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  border-right-width: 1px !important;
  margin-right: 0 !important;
  padding-right: 1rem !important;
}

.sf-page-order-received .woocommerce-order-overview li strong,
.sf-order-received .woocommerce-order-overview li strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sf-gold, #c5a059);
  margin-bottom: 0.15rem;
}

.sf-page-order-received .woocommerce-order-details__title,
.sf-page-order-received .woocommerce-column__title,
.sf-order-received .woocommerce-order-details__title,
.sf-order-received .woocommerce-column__title {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--sf-black, #0a0a0a);
  margin: 0 0 0.85rem;
}

.sf-page-order-received table.shop_table.woocommerce-table--order-details,
.sf-order-received table.shop_table.woocommerce-table--order-details {
  display: table !important;
  table-layout: auto;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: visible !important;
  margin-bottom: 1.5rem;
}

.sf-page-order-received table.shop_table.woocommerce-table--order-details thead,
.sf-page-order-received table.shop_table.woocommerce-table--order-details tbody,
.sf-page-order-received table.shop_table.woocommerce-table--order-details tfoot,
.sf-order-received table.shop_table.woocommerce-table--order-details thead,
.sf-order-received table.shop_table.woocommerce-table--order-details tbody,
.sf-order-received table.shop_table.woocommerce-table--order-details tfoot {
  display: table-row-group !important;
}

.sf-page-order-received table.shop_table.woocommerce-table--order-details tr,
.sf-order-received table.shop_table.woocommerce-table--order-details tr {
  display: table-row !important;
}

.sf-page-order-received table.shop_table.woocommerce-table--order-details th,
.sf-page-order-received table.shop_table.woocommerce-table--order-details td,
.sf-order-received table.shop_table.woocommerce-table--order-details th,
.sf-order-received table.shop_table.woocommerce-table--order-details td {
  display: table-cell !important;
}

.sf-page-order-received table.shop_table.woocommerce-table--order-details .product-name,
.sf-order-received table.shop_table.woocommerce-table--order-details .product-name {
  min-width: 12rem;
  max-width: none;
  white-space: normal;
  word-break: break-word;
}

.sf-page-order-received table.shop_table.woocommerce-table--order-details tfoot tr,
.sf-order-received table.shop_table.woocommerce-table--order-details tfoot tr {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sf-page-order-received table.shop_table.woocommerce-table--order-details tfoot tr:last-child th,
.sf-page-order-received table.shop_table.woocommerce-table--order-details tfoot tr:last-child td,
.sf-order-received table.shop_table.woocommerce-table--order-details tfoot tr:last-child th,
.sf-order-received table.shop_table.woocommerce-table--order-details tfoot tr:last-child td {
  font-size: 1.05rem;
  font-weight: 700;
  padding-top: 0.85rem;
  color: var(--sf-black, #0a0a0a);
}

.sf-page-order-received table.shop_table.woocommerce-table--order-details tfoot tr:last-child td,
.sf-order-received table.shop_table.woocommerce-table--order-details tfoot tr:last-child td {
  color: var(--sf-gold, #c5a059);
}

/* Cabecera de tabla de detalle más liviana (sin bloque negro pesado) */
.sf-page-order-received table.shop_table.woocommerce-table--order-details thead th,
.sf-order-received table.shop_table.woocommerce-table--order-details thead th {
  background: var(--sf-cream, #f5f2ed);
  color: var(--sf-gold, #c5a059);
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

/* Filas de totales: etiquetas sin fondo, alineación limpia */
.sf-page-order-received table.shop_table.woocommerce-table--order-details tfoot th,
.sf-order-received table.shop_table.woocommerce-table--order-details tfoot th {
  background: transparent;
  color: #777;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
}

.sf-page-order-received table.shop_table.woocommerce-table--order-details tfoot td,
.sf-order-received table.shop_table.woocommerce-table--order-details tfoot td {
  text-align: right;
  font-weight: 600;
  color: var(--sf-black, #0a0a0a);
}

.sf-page-order-received table.shop_table.woocommerce-table--order-details tbody td,
.sf-order-received table.shop_table.woocommerce-table--order-details tbody td {
  border-bottom: 1px solid rgba(197, 160, 89, 0.12);
}

.sf-page-order-received .woocommerce-customer-details,
.sf-order-received .woocommerce-customer-details {
  margin-top: 1.75rem;
}

.sf-page-order-received .woocommerce-customer-details .col2-set,
.sf-order-received .woocommerce-customer-details .col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.sf-page-order-received .woocommerce-customer-details .col2-set .col-1,
.sf-page-order-received .woocommerce-customer-details .col2-set .col-2,
.sf-order-received .woocommerce-customer-details .col2-set .col-1,
.sf-order-received .woocommerce-customer-details .col2-set .col-2 {
  float: none;
  width: 100%;
  max-width: none;
}

.sf-page-order-received .woocommerce-customer-details .woocommerce-column,
.sf-order-received .woocommerce-customer-details .woocommerce-column {
  background: var(--sf-cream, #f5f2ed);
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  height: 100%;
}

.sf-page-order-received .woocommerce-customer-details address,
.sf-order-received .woocommerce-customer-details address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #444;
  border: 0;
  padding: 0;
}

.sf-page-order-received .woocommerce-customer-details--phone,
.sf-page-order-received .woocommerce-customer-details--email,
.sf-order-received .woocommerce-customer-details--phone,
.sf-order-received .woocommerce-customer-details--email {
  margin: 0.35rem 0 0;
  padding-left: 0;
}

@media (max-width: 640px) {
  .sf-page-order-received .woocommerce-customer-details .col2-set,
  .sf-order-received .woocommerce-customer-details .col2-set {
    grid-template-columns: 1fr;
  }
}

.sf-page-order-received .wc-block-components-radio-control__label,
.sf-page-order-received .wc-block-components-payment-method-label,
.sf-order-received .wc-block-components-radio-control__label {
  font-weight: 600;
  color: var(--sf-black, #0a0a0a);
}

.sf-checkout-shipping-unavailable {
  background: linear-gradient(135deg, rgba(91, 141, 239, 0.07) 0%, rgba(197, 160, 89, 0.1) 100%);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  margin: 0.5rem 0;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
}

.sf-checkout-shipping-unavailable strong {
  display: block;
  color: var(--sf-black, #0a0a0a);
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.sf-checkout-shipping-unavailable a {
  color: var(--sf-gold, #c5a059);
  font-weight: 700;
}

@media (max-width: 960px) {
  .sf-page-checkout .wc-block-checkout__sidebar {
    position: static;
  }

  .sf-page-checkout .wc-block-components-checkout-order-summary {
    padding: 0;
    overflow: hidden;
  }

  .sf-page-checkout .wc-block-components-checkout-order-summary__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 1rem 1.1rem;
    border: 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(245, 242, 237, 0.85) 100%);
    cursor: pointer;
    text-align: left;
  }

  .sf-page-checkout .wc-block-components-checkout-order-summary__title-text {
    font-size: 1.05rem;
  }

  .sf-page-checkout .wc-block-components-checkout-order-summary__title::after {
    content: '';
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: -0.2rem;
    border-right: 2px solid var(--sf-gold, #c5a059);
    border-bottom: 2px solid var(--sf-gold, #c5a059);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .sf-page-checkout .wc-block-components-checkout-order-summary__title[aria-expanded='true']::after {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
  }

  .sf-page-checkout .sf-order-summary-panel .wc-block-components-order-summary__content,
  .sf-page-checkout .sf-order-summary-panel .wc-block-components-checkout-order-summary__content,
  .sf-page-cart .sf-order-summary-panel .wc-block-components-order-summary__content {
    padding: 0.3rem 0.75rem 0.4rem;
    margin-bottom: 0.75rem;
  }

  .sf-page-checkout .wc-block-components-order-summary-item__image,
  .sf-page-cart .wc-block-components-order-summary-item__image {
    width: 68px;
    height: 68px;
  }

  .sf-page-checkout .wc-block-components-order-summary-item__image img,
  .sf-page-checkout .wc-block-components-order-summary-item__image .sf-product-placeholder-wrap,
  .sf-page-cart .wc-block-components-order-summary-item__image img,
  .sf-page-cart .wc-block-components-order-summary-item__image .sf-product-placeholder-wrap {
    width: 68px;
    height: 68px;
    max-width: 68px;
    max-height: 68px;
  }

  .sf-page-checkout .wc-block-components-order-summary-item,
  .sf-page-cart .wc-block-components-order-summary-item {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    column-gap: 0.75rem;
  }

  .sf-page-checkout .wc-block-components-order-summary,
  .sf-page-checkout .wc-block-components-checkout-order-summary,
  .sf-page-cart .wc-block-components-order-summary,
  .sf-page-cart .wc-block-cart__totals {
    border-radius: 16px;
    padding: 0;
    width: 100%;
  }

  .sf-page-checkout .wc-block-components-checkout-order-summary__content.is-open,
  .sf-page-checkout .wc-block-components-order-summary__content,
  .sf-page-cart .wc-block-components-order-summary__content {
    max-height: none;
    overflow: visible;
    padding: 0.75rem 1.05rem 1rem;
  }

  .sf-page-checkout .sf-order-summary-panel--scrollable .wc-block-components-checkout-order-summary__content.is-open,
  .sf-page-checkout .sf-order-summary-panel--scrollable .wc-block-components-order-summary__content,
  .sf-page-cart .sf-order-summary-panel--scrollable .wc-block-components-order-summary__content {
    max-height: min(60vh, 560px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: calc(1.05rem + 0.15rem);
    margin-right: -0.15rem;
  }

  .sf-page-cart .wc-block-cart__totals-title {
    padding: 1rem 1.1rem 0.65rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    margin: 0;
  }

  .sf-page-cart .wc-block-cart__totals .wc-block-components-totals-wrapper,
  .sf-page-cart .wc-block-cart__totals .wc-block-components-totals-coupon,
  .sf-page-cart .wc-block-cart__totals .sf-checkout-transfer-note,
  .sf-page-cart .wc-block-cart__totals .wc-block-components-order-summary,
  .sf-page-cart .wc-block-cart__totals .wc-block-cart__submit-container {
    margin-left: 1.05rem;
    margin-right: 1.05rem;
  }

  .sf-page-cart .wc-block-cart__totals .wc-block-cart__submit-container {
    padding-bottom: 1.05rem;
  }

  .sf-checkout-coupon-box .checkout_coupon {
    flex-direction: column;
  }

  .sf-checkout-coupon-box .form-row-last .button {
    width: 100%;
  }

  .sf-cart-layout,
  .sf-page-cart .wc-block-components-sidebar-layout.wc-block-cart,
  .sf-page-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
    grid-template-columns: 1fr !important;
  }

  /* !important: la regla base "grid-column: 2" del sidebar está definida más
     abajo en el archivo y, a igual especificidad, ganaría por orden de fuente. */
  .sf-cart-layout__sidebar,
  .sf-page-cart .wc-block-cart__sidebar {
    position: static;
    grid-column: 1 !important;
  }

  .sf-page-cart .wc-block-cart__main {
    grid-column: 1 !important;
  }

  .sf-cart-item {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 0.75rem 0.85rem;
  }

  .sf-cart-item__thumb img {
    width: 56px;
    height: 56px;
  }

  .sf-coupon-box .coupon {
    flex-direction: column;
  }

  .sf-coupon-box .coupon .button {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 1100px) {
  .sf-shop__layout {
    grid-template-columns: 1fr;
  }

  .sf-shop-toolbar__filters {
    display: inline-flex;
  }

  .sf-shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 88vw);
    height: 100dvh;
    z-index: 1003;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    top: 0;
  }

  body.sf-filters-open .sf-shop-sidebar {
    transform: translateX(0);
  }

  .sf-shop-sidebar__close {
    display: block;
  }

  /* Solo visible con filtros abiertos: display:block incondicional pisaba
     el atributo [hidden] y dejaba la pantalla oscurecida y bloqueada. */
  .sf-shop-sidebar__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.5);
  }

  body.sf-filters-open .sf-shop-sidebar__backdrop:not([hidden]) {
    display: block;
  }

  .sf-shop-sidebar__backdrop[hidden] {
    display: none !important;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sf-single-product__card {
    padding: 1.25rem;
  }

  .sf-single-product__grid {
    grid-template-columns: 1fr;
  }

  .sf-single-product__description {
    margin-top: 0.25rem;
    padding-top: 1.5rem;
  }

  .sf-single-product__description-title {
    font-size: 1.45rem;
  }

  .sf-single-product__description-content {
    font-size: 0.9rem;
  }

  .sf-single-product__description-content h2 {
    font-size: 1.25rem;
  }

  .sf-single-product__description-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sf-single-product__payments {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }

  .sf-shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce-ordering {
    width: 100%;
  }

  .woocommerce-ordering select {
    width: 100%;
  }
}

/* ==========================================================================
   My Account
   ========================================================================== */
.sf-page--account {
  padding: 2rem 0 4rem;
}

.sf-account__layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.sf-account__sidebar {
  position: sticky;
  top: calc(var(--sf-masthead-h, 124px) + 1rem);
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.18);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.sf-account__user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.sf-account__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.12);
  color: var(--sf-gold, #c5a059);
  flex-shrink: 0;
}

.sf-account__user-name {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--sf-black, #0a0a0a);
}

.sf-account__user-email {
  display: block;
  font-size: 0.78rem;
  color: #888;
  word-break: break-all;
}

.sf-account-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.sf-account-nav__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  color: #333;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.sf-account-nav__glyph {
  display: inline-flex;
  color: var(--sf-gold, #c5a059);
  flex-shrink: 0;
}

.sf-account-nav__link:hover,
.woocommerce-MyAccount-navigation-link.is-active .sf-account-nav__link {
  background: rgba(197, 160, 89, 0.1);
  color: var(--sf-black, #0a0a0a);
}

.woocommerce-MyAccount-navigation-link--customer-logout .sf-account-nav__link {
  color: #a33;
}

.woocommerce-MyAccount-navigation-link--customer-logout .sf-account-nav__glyph {
  color: #c55;
}

.sf-account__content {
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 16px;
  padding: 1.75rem;
  min-width: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.sf-account__head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.12);
}

.sf-account__title {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  margin: 0;
  color: var(--sf-black, #0a0a0a);
  font-weight: 600;
}

.sf-account__welcome {
  margin-bottom: 1.5rem;
  color: #444;
  line-height: 1.65;
}

.sf-account__welcome p {
  margin: 0 0 0.75rem;
}

.sf-account__welcome a {
  color: var(--sf-gold, #c5a059);
  font-weight: 600;
}

.sf-account__quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.sf-account__quick-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(197, 160, 89, 0.16);
  background: var(--sf-cream, #f5f2ed);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sf-account__quick-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-2px);
}

.sf-account__quick-icon {
  color: var(--sf-gold, #c5a059);
}

.sf-account__quick-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sf-black, #0a0a0a);
}

.sf-account__quick-text {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.45;
}

.sf-account__empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.sf-account__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.12);
  color: var(--sf-gold, #c5a059);
}

.sf-account__empty h2 {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  margin: 0 0 0.5rem;
}

.sf-account__empty p {
  color: #777;
  margin: 0 0 1.25rem;
}

.sf-account-table {
  width: 100%;
  border-collapse: collapse;
}

.sf-account__content .woocommerce-message,
.sf-account__content .woocommerce-info,
.sf-account__content .woocommerce-error {
  border-radius: 10px;
  margin-bottom: 1rem;
}

.sf-account__content .woocommerce-orders-table,
.sf-account__content .woocommerce-table--order-downloads {
  border-radius: 12px;
  overflow: hidden;
}

.sf-account-form .form-row {
  margin-bottom: 1rem;
}

.sf-account-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.35rem;
}

.sf-account-form input.input-text,
.sf-account-form select,
.sf-account-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.95rem;
}

.sf-account-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sf-account-auth__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.sf-account-auth__panel {
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 16px;
  padding: 1.75rem;
}

.sf-account-auth__head {
  margin-bottom: 1.25rem;
}

.sf-account-auth__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.12);
  color: var(--sf-gold, #c5a059);
}

.sf-account-auth__head h2 {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.sf-account-auth__head p {
  margin: 0;
  color: #777;
  font-size: 0.92rem;
}

.sf-account__subtitle {
  margin: 0.45rem 0 0;
  color: #777;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Edit account */
.sf-account-edit__intro {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.1) 0%, rgba(197, 160, 89, 0.03) 100%);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 12px;
}

.sf-account-edit__intro-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sf-black, #0a0a0a);
  color: var(--sf-gold, #c5a059);
}

.sf-account-edit__intro p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #555;
}

.sf-account-edit__section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.12);
}

.sf-account-edit__section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.25rem;
}

.sf-account-edit__section-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.sf-account-edit__section-head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sf-black, #0a0a0a);
}

.sf-account-edit__section-head p {
  margin: 0;
  font-size: 0.82rem;
  color: #888;
}

.sf-account-edit__section-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(197, 160, 89, 0.12);
  color: var(--sf-gold, #c5a059);
}

.sf-account-edit__section-icon--lock {
  background: rgba(10, 10, 10, 0.06);
  color: var(--sf-black, #0a0a0a);
}

.sf-account-edit__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.sf-account-edit__field {
  margin-bottom: 1rem !important;
}

.sf-account-edit__field label {
  color: var(--sf-black, #0a0a0a);
  font-size: 0.78rem;
}

.sf-account-edit__field label .required {
  color: #c0392b;
}

.sf-account-edit__field .input-text {
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-account-edit__field .input-text:focus {
  outline: none;
  border-color: var(--sf-gold, #c5a059);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18);
}

.sf-account-edit__hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #888;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.sf-account-edit__password-card {
  border: 1px solid rgba(197, 160, 89, 0.18) !important;
  border-radius: 12px !important;
  padding: 1.15rem 1.2rem !important;
  margin: 0 !important;
  background: #fafafa;
}

.sf-account-edit__password-card legend {
  padding: 0;
}

.sf-account-edit__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.5rem;
}

.sf-account-edit__submit {
  min-width: 200px;
  padding: 0.85rem 1.75rem !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.06em;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset:not(.sf-account-edit__password-card) {
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset legend {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-weight: 600;
  padding: 0 0.5rem;
}

.woocommerce-account .show-password-input {
  color: var(--sf-gold, #c5a059);
}

.woocommerce-account .woocommerce-Address {
  background: var(--sf-cream, #f5f2ed);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.woocommerce-account .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.woocommerce-account .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.woocommerce-account .woocommerce-address-fields .form-row {
  margin-bottom: 1rem;
  width: 100%;
  float: none;
}

.woocommerce-account .woocommerce-address-fields .form-row-wide,
.woocommerce-account .woocommerce-address-fields #billing_address_2_field,
.woocommerce-account .woocommerce-address-fields #shipping_address_2_field {
  grid-column: 1 / -1;
}

.woocommerce-account .woocommerce-address-fields label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.35rem;
}

.woocommerce-account .woocommerce-address-fields .input-text,
.woocommerce-account .woocommerce-address-fields select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-account .woocommerce-address-fields .input-text:focus,
.woocommerce-account .woocommerce-address-fields select:focus {
  outline: none;
  border-color: var(--sf-gold, #c5a059);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18);
}

.woocommerce-account .woocommerce-address-fields button[type="submit"] {
  margin-top: 0.5rem;
}

.sf-account-address-form {
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.12);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

@media (max-width: 960px) {
  .sf-account__layout {
    grid-template-columns: 1fr;
  }

  .sf-account__sidebar {
    position: static;
  }

  .sf-account-nav__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-account__quick-grid,
  .sf-account-auth__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .sf-account-nav__list {
    grid-template-columns: 1fr;
  }

  .sf-account__content {
    padding: 1.25rem;
  }

  .sf-account-edit__grid,
  .woocommerce-account .woocommerce-address-fields__field-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sf-account-edit__actions {
    justify-content: stretch;
  }

  .sf-account-edit__submit {
    width: 100%;
    min-width: 0;
  }
}

/* Carrito / Checkout — cabecera de flujo */
.sf-wc-flow-hero {
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, #0a0a0a 0%, #17140f 55%, #1f1a12 100%);
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sf-wc-flow-hero::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.sf-wc-flow-hero__copy { position: relative; margin-bottom: 1.1rem; }
.sf-wc-flow-hero__copy .sf-label { color: rgba(197, 160, 89, 0.9); }
.sf-wc-flow-hero__title {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--sf-font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #fff;
}
.sf-wc-flow-hero__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  max-width: 42rem;
}
.sf-wc-flow-hero__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  position: relative;
}
.sf-wc-flow-hero__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  opacity: 0.55;
  transition: transform 0.3s var(--sf-ease-out, ease), opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.sf-wc-flow-hero__step.is-reached { opacity: 0.85; }
.sf-wc-flow-hero__step.is-active {
  opacity: 1;
  border-color: rgba(197, 160, 89, 0.55);
  background: rgba(197, 160, 89, 0.12);
  transform: translateY(-2px);
}
.sf-wc-flow-hero__step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(197, 160, 89, 0.14);
  color: var(--sf-gold);
  border: 1px solid rgba(197, 160, 89, 0.35);
}
.sf-wc-flow-hero__step.is-active .sf-wc-flow-hero__step-icon {
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15);
}
.sf-wc-flow-hero__step-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sf-wc-flow-hero__badges {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  position: relative;
}
.sf-wc-flow-hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.sf-wc-flow-hero__badges svg { color: var(--sf-gold); }

/* Cart / Checkout Blocks — estilos compartidos */
.sf-page-cart .alignwide,
.sf-page-checkout .alignwide,
.sf-page-cart .wp-block-woocommerce-cart,
.sf-page-checkout .wp-block-woocommerce-checkout,
.sf-page-cart .wc-block-cart,
.sf-page-checkout .wc-block-checkout,
.sf-page-cart .wc-block-components-sidebar-layout,
.sf-page-checkout .wc-block-components-sidebar-layout {
  max-width: none !important;
  width: 100% !important;
}

.sf-page-cart .wc-block-components-sidebar-layout.wc-block-cart {
  display: grid !important;
  grid-template-columns: minmax(0, 65%) minmax(280px, 35%);
  gap: 2rem;
  align-items: start;
}

/* WC 10.x: el grid real del checkout vive en sidebar-layout, no en el wrapper externo */
.sf-page-checkout .wp-block-woocommerce-checkout.wc-block-checkout {
  display: block !important;
  padding-top: 0;
}

.sf-page-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px) !important;
  gap: 2rem;
  align-items: start;
}

.sf-page-cart .wc-block-cart__main {
  grid-column: 1;
  min-width: 0;
  width: 100%;
}

.sf-page-cart .wc-block-cart__sidebar {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.sf-page-cart .wc-block-cart-items,
.sf-page-cart .wc-block-cart__main .wc-block-components-main {
  width: 100%;
}

.sf-page-cart .wc-block-cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.12);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  margin-bottom: 0.85rem;
}

.sf-page-cart .wc-block-cart-item__image img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.sf-page-cart .wc-block-cart-item__product {
  min-width: 0;
}

.sf-page-cart .wc-block-components-product-name {
  font-size: 1rem;
}

.sf-page-cart .wc-block-components-product-metadata {
  font-size: 0.82rem;
  color: #777;
  margin-top: 0.25rem;
}

.sf-page-cart .wc-block-cart-item__quantity {
  align-self: center;
}

.sf-page-cart .wc-block-cart__sidebar,
.sf-page-checkout .wc-block-checkout__sidebar {
  position: sticky;
  top: calc(var(--sf-masthead-h, 124px) + 1rem);
  align-self: start;
}

.sf-page-cart .wc-block-cart__sidebar .wc-block-components-sidebar,
.sf-page-cart .wc-block-cart__sidebar .wc-block-components-sidebar-layout {
  width: 100%;
}

.sf-page-cart .wc-block-components-totals-coupon {
  display: block;
}

.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-text-input,
.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-text-input input {
  width: 100%;
  min-width: 0;
}

.sf-page-cart .wc-block-components-totals-coupon .wc-block-components-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.sf-page-checkout .wc-block-checkout__main,
.sf-page-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
}

/* Checkout form — no dimmed / cloudy overlay on main column */
.sf-page-checkout .wc-block-checkout__main,
.sf-page-checkout .wc-block-checkout__main .wc-block-components-main {
  opacity: 1;
  filter: none;
}

.sf-page-checkout .wc-block-checkout__main .wc-block-components-loading-mask {
  background: transparent;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

body.sf-search-panel-open .sf-page-checkout .sf-search-panel__backdrop {
  opacity: 0;
  pointer-events: none;
}

.sf-page-cart .wc-block-cart__submit-button,
.sf-page-checkout .wc-block-components-checkout-place-order-button {
  border-radius: 999px !important;
  font-weight: 700 !important;
  min-height: 48px;
  background: var(--sf-cta, #000000) !important;
  color: var(--sf-cta-text, #ffffff) !important;
  border: 1px solid var(--sf-cta, #000000) !important;
}
.sf-page-cart .wc-block-cart__submit-button:hover,
.sf-page-checkout .wc-block-components-checkout-place-order-button:hover {
  background: var(--sf-cta-hover, #1a1a1a) !important;
  border-color: var(--sf-cta-hover, #1a1a1a) !important;
  color: var(--sf-cta-text, #ffffff) !important;
}

.sf-page-cart .wc-block-components-product-name {
  font-weight: 600;
  line-height: 1.35;
}
.sf-page-cart .wc-block-components-product-price__value {
  color: var(--sf-gold);
  font-weight: 700;
}
.sf-page-cart .wc-block-cart__submit-container,
.sf-page-checkout .wc-block-checkout__actions {
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .sf-single-product__cart-row form.cart {
    flex-direction: column;
    align-items: stretch;
  }

  .sf-single-product__cart-row .quantity {
    align-self: flex-start;
  }

  .sf-single-product__cart-row .single_add_to_cart_button,
  .sf-single-product__cart-row button[type="submit"] {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .sf-single-product__payments {
    grid-template-columns: 1fr;
  }

  .sf-single-product__trust {
    flex-direction: column;
    gap: 0.45rem;
  }

  .sf-page-cart .wc-block-cart-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.75rem 1rem;
  }

  .sf-page-cart .wc-block-cart-item__quantity {
    grid-column: 2;
    justify-self: start;
  }

  .sf-page-cart .wc-block-components-sidebar-layout.wc-block-cart,
  .sf-page-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
    grid-template-columns: 1fr !important;
  }

  .sf-page-cart .wc-block-cart__sidebar,
  .sf-page-checkout .wc-block-checkout__sidebar {
    position: static;
    grid-column: 1 !important;
  }

  .sf-page-cart .wc-block-cart__main {
    grid-column: 1 !important;
  }

  .sf-wc-flow-hero__steps { grid-template-columns: 1fr; }
  .sf-wc-flow-hero__step { flex-direction: row; justify-content: flex-start; text-align: left; }
}

/* ============================================================
   Recuperar / restablecer contraseña — tarjeta premium
   ============================================================ */
.sf-account-recover {
  max-width: 540px;
  margin: 1.5rem auto 3.5rem;
}

.sf-account-recover__panel {
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.07);
}

.sf-account-recover__head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.sf-account-recover__head .sf-account-auth__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.18), rgba(197, 160, 89, 0.06));
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: var(--sf-gold, #c5a059);
  margin-bottom: 0.85rem;
}

.sf-account-recover__head h1 {
  font-family: var(--sf-font-heading, "Cormorant Garamond", Georgia, serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--sf-black, #0a0a0a);
  margin: 0 0 0.45rem;
}

.sf-account-recover__head p {
  margin: 0;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
}

.sf-account-recover__form .form-row {
  float: none;
  width: 100%;
  margin: 0 0 1.1rem;
  padding: 0;
}

.sf-account-recover__form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sf-black, #0a0a0a);
  margin-bottom: 0.4rem;
}

.sf-account-recover__form label .required {
  color: var(--sf-gold, #c5a059);
  text-decoration: none;
}

.sf-account-recover__form input.input-text {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(10, 10, 10, 0.14);
  border-radius: 10px;
  background: #fff;
  font-size: 0.92rem;
  color: var(--sf-black, #0a0a0a);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-account-recover__form input.input-text:focus {
  border-color: var(--sf-gold, #c5a059);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
  outline: none;
}

.sf-account-recover__actions {
  margin-bottom: 0 !important;
}

.sf-account-recover__form .woocommerce-Button {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  border-radius: 999px;
  background: var(--sf-cta, #000000);
  color: var(--sf-cta-text, #ffffff);
  border: 1px solid var(--sf-cta, #000000);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sf-account-recover__form .woocommerce-Button:hover {
  background: var(--sf-cta-hover, #1a1a1a);
  border-color: var(--sf-cta-hover, #1a1a1a);
  color: var(--sf-cta-text, #ffffff);
  transform: translateY(-1px);
}

.sf-account-recover__form .woocommerce-Button:active {
  background: var(--sf-cta-active, #000000);
  border-color: var(--sf-cta-active, #000000);
}

.sf-account-recover__back {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
}

.sf-account-recover__back a {
  color: var(--sf-gold, #c5a059);
  font-weight: 600;
  text-decoration: none;
}

.sf-account-recover__back a:hover {
  color: var(--sf-black, #0a0a0a);
}

/* -------------------------------------------------------------------------
   Primary purchase CTAs — gentle green color pulse (see main.css keyframes)
   Excludes sidebar cats, discount chips, outline/secondary buttons.
   ------------------------------------------------------------------------- */
.sf-product-card__actions .button.add_to_cart_button:not(.sf-btn--outline-gold),
.sf-product-card__actions .sf-btn--gold:not(.sf-btn--outline-gold),
.sf-btn--cart:not(.sf-btn--outline-gold),
ul.products .button.add_to_cart_button:not(.sf-btn--outline-gold),
.woocommerce ul.products .button.add_to_cart_button:not(.sf-btn--outline-gold),
.sf-featured-carousel .button.add_to_cart_button:not(.sf-btn--outline-gold),
.sf-single-product__cart-row .single_add_to_cart_button,
.sf-single-product__cart-row button[type="submit"],
.sf-cart-checkout-btn .checkout-button,
.woocommerce a.checkout-button,
#place_order,
.sf-page-cart .wc-block-cart__submit-button,
.sf-page-checkout .wc-block-components-checkout-place-order-button {
  animation: sf-cta-color-pulse 2.8s ease-in-out infinite;
}

.sf-product-card__actions .button.add_to_cart_button:not(.sf-btn--outline-gold):hover,
.sf-product-card__actions .button.add_to_cart_button:not(.sf-btn--outline-gold):active,
.sf-product-card__actions .button.add_to_cart_button:not(.sf-btn--outline-gold):focus-visible,
.sf-product-card__actions .sf-btn--gold:not(.sf-btn--outline-gold):hover,
.sf-product-card__actions .sf-btn--gold:not(.sf-btn--outline-gold):active,
.sf-product-card__actions .sf-btn--gold:not(.sf-btn--outline-gold):focus-visible,
.sf-btn--cart:not(.sf-btn--outline-gold):hover,
.sf-btn--cart:not(.sf-btn--outline-gold):active,
.sf-btn--cart:not(.sf-btn--outline-gold):focus-visible,
ul.products .button.add_to_cart_button:not(.sf-btn--outline-gold):hover,
ul.products .button.add_to_cart_button:not(.sf-btn--outline-gold):active,
ul.products .button.add_to_cart_button:not(.sf-btn--outline-gold):focus-visible,
.woocommerce ul.products .button.add_to_cart_button:not(.sf-btn--outline-gold):hover,
.woocommerce ul.products .button.add_to_cart_button:not(.sf-btn--outline-gold):active,
.woocommerce ul.products .button.add_to_cart_button:not(.sf-btn--outline-gold):focus-visible,
.sf-featured-carousel .button.add_to_cart_button:not(.sf-btn--outline-gold):hover,
.sf-featured-carousel .button.add_to_cart_button:not(.sf-btn--outline-gold):active,
.sf-featured-carousel .button.add_to_cart_button:not(.sf-btn--outline-gold):focus-visible,
.sf-single-product__cart-row .single_add_to_cart_button:hover,
.sf-single-product__cart-row .single_add_to_cart_button:active,
.sf-single-product__cart-row .single_add_to_cart_button:focus-visible,
.sf-single-product__cart-row button[type="submit"]:hover,
.sf-single-product__cart-row button[type="submit"]:active,
.sf-single-product__cart-row button[type="submit"]:focus-visible,
.sf-cart-checkout-btn .checkout-button:hover,
.sf-cart-checkout-btn .checkout-button:active,
.sf-cart-checkout-btn .checkout-button:focus-visible,
.woocommerce a.checkout-button:hover,
.woocommerce a.checkout-button:active,
.woocommerce a.checkout-button:focus-visible,
#place_order:hover,
#place_order:active,
#place_order:focus-visible,
.sf-page-cart .wc-block-cart__submit-button:hover,
.sf-page-cart .wc-block-cart__submit-button:active,
.sf-page-cart .wc-block-cart__submit-button:focus-visible,
.sf-page-checkout .wc-block-components-checkout-place-order-button:hover,
.sf-page-checkout .wc-block-components-checkout-place-order-button:active,
.sf-page-checkout .wc-block-components-checkout-place-order-button:focus-visible,
.button.loading,
.button.added,
.button.disabled,
.disabled {
  animation: none;
}

.sf-btn--outline-gold,
.sf-product-card__actions .sf-btn--outline-gold,
.sf-btn--cart.sf-btn--outline-gold {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .sf-product-card__actions .button.add_to_cart_button,
  .sf-product-card__actions .sf-btn--gold,
  .sf-btn--cart,
  ul.products .button.add_to_cart_button,
  .woocommerce ul.products .button.add_to_cart_button,
  .sf-featured-carousel .button.add_to_cart_button,
  .sf-single-product__cart-row .single_add_to_cart_button,
  .sf-single-product__cart-row button[type="submit"],
  .sf-cart-checkout-btn .checkout-button,
  .woocommerce a.checkout-button,
  #place_order,
  .sf-page-cart .wc-block-cart__submit-button,
  .sf-page-checkout .wc-block-components-checkout-place-order-button {
    animation: none !important;
  }
}
