/* Ajustes de marca Humo Sagrado */

:root {
  --humo-black: #080808;
  --humo-black-soft: #161616;
  --humo-cream: #ead8c5;
  --humo-wine: #3d1a24;
  --primary-color: #3d1a24;
  --primary-dark: #552333;
  --secondary-color: #3d1a24;
  --accent-color: #ead8c5;
  --success-color: #3d1a24;
  --color-primary: #3d1a24;
  --color-primary-light: #552333;
  --color-primary-dark: #2b1119;
  --color-secondary: #3d1a24;
  --color-accent: #ead8c5;
  --color-success: #3d1a24;
}

/* Botones de marca en toda la tienda */
.btn-secondary,
.btn-outline:hover,
.button,
button.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.cart-trigger,
.cart-drawer .btn,
.checkout-button,
.wc-block-components-button,
.apply-price-filter,
input[type="submit"] {
  background: var(--humo-wine) !important;
  border-color: var(--humo-wine) !important;
  color: #ffffff !important;
}

.btn-secondary:focus-visible,
.btn-secondary:hover,
.button:focus-visible,
.button:hover,
button.button:focus-visible,
button.button:hover,
.woocommerce a.button:focus-visible,
.woocommerce a.button:hover,
.woocommerce button.button:focus-visible,
.woocommerce button.button:hover,
.woocommerce input.button:focus-visible,
.woocommerce input.button:hover,
.checkout-button:focus-visible,
.checkout-button:hover,
.wc-block-components-button:focus-visible,
.wc-block-components-button:hover,
.apply-price-filter:focus-visible,
.apply-price-filter:hover,
input[type="submit"]:focus-visible,
input[type="submit"]:hover {
  background: var(--humo-cream) !important;
  border-color: var(--humo-cream) !important;
  color: var(--humo-wine) !important;
}

.btn-outline {
  border-color: var(--humo-wine) !important;
  color: var(--humo-wine) !important;
}

.btn-primary,
.single_add_to_cart_button,
.add-to-cart-btn,
.product-actions .btn-primary,
.woocommerce ul.products li.product .button {
  background: var(--humo-wine) !important;
  border-color: var(--humo-wine) !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.single_add_to_cart_button:hover:not(:disabled),
.add-to-cart-btn:hover,
.product-actions .btn-primary:hover,
.woocommerce ul.products li.product .button:hover {
  background: var(--humo-cream) !important;
  border-color: var(--humo-cream) !important;
  color: var(--humo-wine) !important;
}

/* Reemplazo de lineas/acento dorado por morado */
.section-header h2::after,
.section-title::after,
.section-header .section-title::after,
.about-link::after,
.categories-indicator.active,
.categories-indicator:hover,
.carousel-indicator.active,
.carousel-indicator:hover,
.reviews-indicator.active,
.tab-button:hover,
.tab-button.active {
  background: var(--humo-wine) !important;
  border-color: var(--humo-wine) !important;
}

.section-header h2::after,
.section-title::after,
.section-header .section-title::after {
  background-image: none !important;
}

.tab-button:hover,
.tab-button.active {
  color: #ffffff !important;
}

.product-category a,
.product-price,
.product-carousel-item .product-category,
.product-carousel-item .product-price {
  color: var(--humo-wine) !important;
}

/* Tienda sin acentos verdes: filtros, categorias, etiquetas y paginacion */
.post-type-archive-product,
.tax-product_cat,
.tax-product_tag,
.woocommerce-shop,
.woocommerce.archive {
  --primary-color: var(--humo-wine) !important;
  --primary-dark: #552333 !important;
  --success-color: var(--humo-wine) !important;
}

.shop-page svg,
.shop-layout svg,
.shop-sidebar svg,
.shop-header svg,
.shop-toolbar svg,
.filters-toggle svg,
.view-btn svg,
.filter-widget svg,
.category-placeholder svg,
.woocommerce-pagination svg {
  color: var(--humo-wine) !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

.filters-toggle,
.filters-toggle:hover,
.view-btn:hover,
.view-btn.active,
.apply-price-filter,
.apply-price-filter:hover,
.category-link:hover,
.category-link.current,
.tag-link:hover,
.attribute-label input:checked + .checkmark,
.filter-tag,
.page-numbers a:hover,
.page-numbers .current,
.woocommerce-pagination .page-numbers a:hover,
.woocommerce-pagination .page-numbers .current {
  background: var(--humo-wine) !important;
  border-color: var(--humo-wine) !important;
  color: #ffffff !important;
}

.attribute-label:hover {
  background: rgba(61, 26, 36, 0.08) !important;
}

.checkmark {
  border-color: rgba(61, 26, 36, 0.35) !important;
}

.category-link:hover .category-count,
.category-link.current .category-count,
.tag-link:hover,
.page-numbers a:hover,
.page-numbers .current {
  color: #ffffff !important;
}

.tag-link,
.category-link,
.page-numbers a,
.page-numbers span,
.breadcrumb-item a:hover,
.shop-result-count strong,
.category-meta,
.category-card .category-count {
  color: var(--humo-wine) !important;
}

.product-badge.featured-badge,
.product-badge.new-badge,
.category-placeholder,
.stock-badge.low-stock {
  background: var(--humo-wine) !important;
  color: #ffffff !important;
}

.price-slider,
.price-range input[type="range"],
.price-range input[type="range"]::-webkit-slider-thumb,
.price-range input[type="range"]::-moz-range-thumb {
  accent-color: var(--humo-wine) !important;
}

/* Contraste en categorias seleccionadas y estados interactivos */
.category-card .category-link:hover,
.category-card .category-link:focus-visible,
.category-card .category-link:active,
.category-card:hover .category-link,
.category-card:focus-within .category-link {
  background: var(--humo-wine) !important;
  color: #ffffff !important;
}

.category-card .category-link:hover *,
.category-card .category-link:focus-visible *,
.category-card .category-link:active *,
.category-card:hover .category-link *,
.category-card:focus-within .category-link * {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Iconos blancos cuando el control tiene fondo morado */
.filters-toggle svg,
.apply-price-filter svg,
.view-btn.active svg,
.view-btn:hover svg,
.category-link.current svg,
.category-link:hover svg,
.tag-link:hover svg,
.page-numbers .current svg {
  color: #ffffff !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

.filters-toggle,
.filters-toggle *,
.view-btn.active,
.view-btn.active *,
.view-btn:hover,
.view-btn:hover * {
  color: #ffffff !important;
}

/* Banners con contraste negro, sin filtro dorado */
.hero-overlay,
.page-hero::before,
.shop-hero::before,
.category-hero::before,
.product-hero::before {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.66) 0%,
    rgba(0, 0, 0, 0.48) 52%,
    rgba(0, 0, 0, 0.24) 100%
  ) !important;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
  z-index: 1;
}

.hero-slide .container,
.hero-content {
  z-index: 2;
}

.hero-title,
.hero-section h1,
.hero-section h2 {
  color: #ffffff !important;
}

.hero-section .hero-content > .hero-cta,
.hero-section .hero-cta {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: max-content !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.hero-section .hero-content > .hero-cta::before,
.hero-section .hero-content > .hero-cta::after,
.hero-section .hero-cta::before,
.hero-section .hero-cta::after {
  content: none !important;
  display: none !important;
}

.hero-section .hero-cta .btn,
.hero-section .btn.hero-cta {
  background: var(--humo-wine) !important;
  border-color: var(--humo-wine) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  width: auto !important;
  max-width: max-content !important;
  min-width: 0 !important;
  padding: 0.95rem 2.4rem !important;
}

.hero-section .hero-cta .btn:hover,
.hero-section .btn.hero-cta:hover {
  background: #552333 !important;
  border-color: #552333 !important;
  color: #ffffff !important;
}

/* Breadcrumb con botella crema */
.breadcrumb-item:first-child a,
.breadcrumbs .breadcrumb-item:first-child a,
.woocommerce-breadcrumb .breadcrumb-item:first-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb-item:first-child a::before,
.breadcrumbs .breadcrumb-item:first-child a::before,
.woocommerce-breadcrumb .breadcrumb-item:first-child a::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("../images/botella-de-humo/botella-humo-beige.png") center / contain no-repeat;
}

/* Aviso de stock */
.back-in-stock-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(8, 8, 8, 0.14);
  background: #faf7f2;
}

.back-in-stock-box p {
  margin: 0 0 0.75rem;
}

.back-in-stock-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.back-in-stock-form input[type="email"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(8, 8, 8, 0.22);
  padding: 0.75rem;
}

.back-in-stock-success {
  margin-top: 0.75rem;
  color: #1f6f43;
  font-weight: 700;
}

/* Ficha de producto unificada */
.product-unified-section {
  margin: 3rem 0;
}

.product-tabs-section {
  margin: 3rem 0 !important;
}

.tabs-navigation {
  display: none !important;
}

.tabs-content {
  display: grid !important;
  gap: 1rem;
}

.tab-content {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  padding: 1.4rem !important;
  border: 1px solid rgba(8, 8, 8, 0.12);
  background: #ffffff;
}

.tab-content::before {
  display: block;
  margin-bottom: 1rem;
  color: var(--humo-black);
  font-size: 1.25rem;
  font-weight: 900;
}

#caracteristicas {
  order: 2;
}

#caracteristicas::before {
  content: "Detalles del producto";
}

#momentos-intenciones {
  order: 3;
}

#momentos-intenciones::before {
  content: "Mejores momentos";
}

#recomendaciones {
  order: 4;
}

#recomendaciones::before {
  content: "Uso y seguridad";
}

#beneficios,
#additional-info {
  order: 1;
}

#beneficios::before {
  content: "Un poco más...";
}

#additional-info {
  display: none !important;
}

#reviews {
  order: 5;
}

#reviews::before {
  content: "Valoraciones";
}

.tab-content .content-wrapper {
  max-width: 920px;
}

.tab-content h4,
.tab-content .icon,
.tab-content .emoji {
  display: none !important;
}

.tab-content li::marker,
.product-short-description li::marker {
  color: var(--humo-wine) !important;
}

.product-unified-layout {
  display: grid;
  gap: 1rem;
}

.product-info-panel {
  border: 1px solid rgba(8, 8, 8, 0.12);
  background: #ffffff;
  padding: 1.4rem;
}

.product-info-panel h2,
.product-info-panel h3 {
  margin-top: 0;
  color: var(--humo-black);
}

.product-info-panel details {
  border-top: 1px solid rgba(8, 8, 8, 0.12);
  padding-top: 1rem;
}

.product-info-panel summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--humo-black);
}

.product-info-panel .caracteristica-item h4,
.product-info-panel .beneficio-section h4,
.product-info-panel .momentos-section h4,
.product-info-panel .intenciones-section h4 {
  display: none;
}

.product-info-panel table,
.product-info-panel .shop_attributes {
  width: 100%;
  border-collapse: collapse;
}

.product-info-panel th,
.product-info-panel td {
  border-bottom: 1px solid rgba(8, 8, 8, 0.1);
  padding: 0.75rem;
  text-align: left;
}

.moments-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.moments-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.moments-table th,
.moments-table td {
  width: 50%;
  padding: 0.9rem;
  border: 1px solid rgba(61, 26, 36, 0.18);
  text-align: left;
  vertical-align: top;
}

.moments-table th {
  background: var(--humo-wine);
  color: #ffffff;
}

#reviews .woocommerce-Reviews-title,
#reviews img.avatar,
#reviews .avatar {
  display: none !important;
}

#reviews .comment_container {
  padding-left: 0 !important;
}

#reviews .comment-text {
  margin-left: 0 !important;
}

#reviews p.stars a {
  overflow: hidden;
  color: var(--humo-wine) !important;
}

/* Carrito desplazable y accesible con teclado */
.cart-drawer .cart-content {
  min-height: 0 !important;
  overflow-y: scroll !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: var(--humo-wine) #f0ece8;
  scrollbar-width: auto;
}

.cart-drawer .cart-content::-webkit-scrollbar {
  width: 12px;
}

.cart-drawer .cart-content::-webkit-scrollbar-thumb {
  background: var(--humo-wine);
  border: 3px solid #f0ece8;
  border-radius: 8px;
}

.cart-drawer .cart-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #ffffff;
}

/* Enlaces del footer legibles sobre fondo oscuro */
.site-footer a,
.site-footer .footer-menu a,
.site-footer .legal-links a,
.site-footer .contact-item a {
  color: #ffffff !important;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--humo-cream) !important;
}

/* Iconos y buscador siempre por encima de la franja informativa */
.header-main,
.header-actions,
.search-dropdown {
  z-index: 4 !important;
}

.header-social .social-link svg {
  display: block;
  color: #ffffff;
  fill: currentColor;
}

.product-quick-actions,
.quick-action-btn {
  display: none !important;
}

/* Checkout regalo */
.humo-gift-wrap {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(8, 8, 8, 0.14);
  background: #faf7f2;
}

.humo-gift-wrap label {
  font-weight: 800;
}

.humo-gift-message textarea {
  width: 100%;
  min-height: 92px;
}

/* Footer pago/redes */
.footer-social {
  text-align: left;
}

.payment-icons {
  display: block !important;
}

.payment-icon.transbank-logo {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0.35rem 0.75rem;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 4px;
  color: #151515 !important;
  font-size: 1rem !important;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: lowercase;
}

@media (max-width: 1024px) {
  .footer-content,
  .footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .new-products .products-carousel {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .new-products .products-carousel-track {
    display: flex !important;
    gap: 0 !important;
    max-width: none !important;
  }

  .new-products .product-carousel-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 0.75rem !important;
  }

  .new-products .product-carousel-item .product-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .new-products .carousel-controls,
  .new-products .carousel-indicators {
    display: flex !important;
  }

  .back-in-stock-form {
    grid-template-columns: 1fr;
  }

  .footer-content,
  .footer-widgets {
    grid-template-columns: 1fr !important;
  }

  .product-info-panel {
    padding: 1rem;
  }
}

/* Ajustes finales de marca: carrito, checkout, login y redes */
.cart-trigger,
.header-actions .cart-trigger,
.header-action.cart-trigger {
  background: var(--humo-cream) !important;
  border-color: var(--humo-cream) !important;
  color: var(--humo-wine) !important;
}

.cart-trigger:hover,
.cart-trigger:focus-visible,
.header-actions .cart-trigger:hover,
.header-actions .cart-trigger:focus-visible {
  background: #f5eadc !important;
  border-color: #f5eadc !important;
  color: var(--humo-wine) !important;
}

.cart-trigger svg,
.header-action.cart-trigger svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

.cart-drawer {
  height: 100dvh !important;
  max-height: 100dvh !important;
  background: #ffffff !important;
  color: var(--humo-wine) !important;
}

.cart-drawer .cart-header {
  flex: 0 0 auto !important;
}

.cart-drawer .cart-content {
  flex: 1 1 auto !important;
  height: auto !important;
  max-height: calc(100dvh - 82px) !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem !important;
}

.cart-drawer .cart-items-wrapper,
.cart-drawer .cart-items-list {
  overflow: visible !important;
}

.cart-drawer .cart-title,
.cart-drawer .cart-title svg,
.cart-drawer .cart-item-name,
.cart-drawer .cart-item-name a,
.cart-drawer .cart-item-price,
.cart-drawer .cart-item-subtotal,
.cart-drawer .cart-summary-row.total,
.cart-drawer .cart-summary-value {
  color: var(--humo-wine) !important;
}

.cart-drawer .cart-close:hover,
.cart-drawer .quantity-btn:hover:not(:disabled) {
  background: var(--humo-cream) !important;
  color: var(--humo-wine) !important;
}

.cart-drawer .cart-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 4 !important;
  margin: 0 !important;
  padding: 0.85rem 0 0 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 22%) !important;
}

.cart-drawer .cart-view,
.cart-drawer .cart-checkout,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order,
.woocommerce-checkout button#place_order,
.woocommerce-checkout .place-order button.button {
  background: var(--humo-wine) !important;
  border: 1px solid var(--humo-wine) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.cart-drawer .cart-view:hover,
.cart-drawer .cart-view:focus-visible,
.cart-drawer .cart-checkout:hover,
.cart-drawer .cart-checkout:focus-visible,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:focus-visible,
.woocommerce-checkout #place_order:hover,
.woocommerce-checkout #place_order:focus-visible,
.woocommerce-checkout button#place_order:hover,
.woocommerce-checkout button#place_order:focus-visible,
.woocommerce-checkout .place-order button.button:hover,
.woocommerce-checkout .place-order button.button:focus-visible {
  background: var(--humo-cream) !important;
  border-color: var(--humo-cream) !important;
  color: var(--humo-wine) !important;
}

.cart-drawer .cart-view svg,
.cart-drawer .cart-checkout svg,
.woocommerce-checkout #place_order svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

.site-footer .social-link,
.header-social .social-link,
.mobile-social .social-link {
  color: var(--humo-cream) !important;
}

.site-footer .social-link:hover,
.site-footer .social-link:focus-visible,
.header-social .social-link:hover,
.header-social .social-link:focus-visible,
.mobile-social .social-link:hover,
.mobile-social .social-link:focus-visible {
  background: var(--humo-cream) !important;
  color: var(--humo-wine) !important;
}

.woocommerce-account:not(.logged-in) .site-main,
.woocommerce-account:not(.logged-in) .entry-content {
  background: #ffffff !important;
  color: var(--humo-black) !important;
}

.woocommerce-account:not(.logged-in) .page-header,
.woocommerce-account:not(.logged-in) .entry-header {
  background: #ffffff !important;
  color: var(--humo-wine) !important;
}

.woocommerce-account:not(.logged-in) .woocommerce {
  width: min(1040px, calc(100% - 2rem));
  margin: 2.5rem auto 4rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.woocommerce-account:not(.logged-in) .u-columns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}

.woocommerce-account:not(.logged-in) .u-columns::before {
  content: none !important;
  display: none !important;
}

.woocommerce-account:not(.logged-in) .u-column1 {
  position: relative;
  color: #2d1733;
}

.woocommerce-account:not(.logged-in) .u-column1::after {
  content: none;
}

.woocommerce-account:not(.logged-in) .u-column1,
.woocommerce-account:not(.logged-in) .u-column2,
.woocommerce-account:not(.logged-in) .woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce-form-register {
  background: #fff8f4 !important;
  border: 1px solid rgba(61, 26, 36, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 42px rgba(61, 26, 36, 0.13) !important;
}

.woocommerce-account:not(.logged-in) .u-column1,
.woocommerce-account:not(.logged-in) .u-column2 {
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.woocommerce-account:not(.logged-in) .u-column1 h2,
.woocommerce-account:not(.logged-in) .u-column2 h2 {
  margin: 0 0 0.45rem;
  color: #31123c;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  text-align: center;
}

.woocommerce-account:not(.logged-in) .u-column1 h2::after,
.woocommerce-account:not(.logged-in) .u-column2 h2::after {
  content: "Inicia sesión o crea tu cuenta para continuar";
  display: block;
  margin-top: 0.35rem;
  color: rgba(61, 26, 36, 0.75);
  font-family: var(--cart-font-family, Arial, sans-serif);
  font-size: 1rem;
  font-weight: 600;
}

.woocommerce-account:not(.logged-in) form.login,
.woocommerce-account:not(.logged-in) form.register {
  margin: 1.4rem 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-form-row label,
.woocommerce-account:not(.logged-in) form.login label,
.woocommerce-account:not(.logged-in) form.register label {
  color: #2d1733;
  font-weight: 800;
}

.woocommerce-account:not(.logged-in) .woocommerce-Input,
.woocommerce-account:not(.logged-in) input.input-text {
  min-height: 54px;
  border: 1px solid rgba(61, 26, 36, 0.24) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #2d1733 !important;
  padding: 0.9rem 1rem !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-Input:focus,
.woocommerce-account:not(.logged-in) input.input-text:focus {
  border-color: var(--humo-wine) !important;
  box-shadow: 0 0 0 3px rgba(61, 26, 36, 0.14) !important;
  outline: none !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login__submit,
.woocommerce-account:not(.logged-in) .woocommerce-form-register__submit {
  width: 100%;
  min-height: 56px;
  margin-top: 0.75rem !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #4b1857, var(--humo-wine)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login__submit:hover,
.woocommerce-account:not(.logged-in) .woocommerce-form-login__submit:focus-visible,
.woocommerce-account:not(.logged-in) .woocommerce-form-register__submit:hover,
.woocommerce-account:not(.logged-in) .woocommerce-form-register__submit:focus-visible {
  background: var(--humo-cream) !important;
  color: var(--humo-wine) !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-LostPassword a {
  color: var(--humo-wine) !important;
  font-weight: 800;
}

.woocommerce-account:not(.logged-in) .breadcrumbs,
.woocommerce-account:not(.logged-in) .woocommerce-breadcrumb {
  color: var(--humo-wine) !important;
}

.woocommerce-account:not(.logged-in) .breadcrumb-item:first-child a::before,
.woocommerce-account:not(.logged-in) .breadcrumbs .breadcrumb-item:first-child a::before,
.woocommerce-account:not(.logged-in) .woocommerce-breadcrumb .breadcrumb-item:first-child a::before {
  content: none !important;
  display: none !important;
}

.woocommerce-account:not(.logged-in) .breadcrumb-item:first-child a,
.woocommerce-account:not(.logged-in) .breadcrumbs .breadcrumb-item:first-child a,
.woocommerce-account:not(.logged-in) .woocommerce-breadcrumb .breadcrumb-item:first-child a {
  gap: 0 !important;
}

@media (max-width: 900px) {
  .woocommerce-account:not(.logged-in) .u-columns {
    grid-template-columns: 1fr;
  }

  .woocommerce-account:not(.logged-in) .u-columns::before {
    display: none !important;
  }
}

/* Valoraciones de producto */
.single-product .woocommerce-Reviews,
.single-product #reviews {
  background: #fbf7fb !important;
  border: 1px solid #eaddec !important;
  border-radius: 24px !important;
  padding: clamp(1.5rem, 4vw, 2.5rem) !important;
  margin-top: 2.5rem !important;
  box-shadow: 0 12px 35px rgba(62, 24, 74, 0.08) !important;
}

.single-product #reviews::before {
  color: #3b153f !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(1.9rem, 4vw, 2.15rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 1.25rem !important;
}

.single-product .woocommerce-Reviews-title,
.single-product #reviews h2,
.single-product #reviews h3,
.single-product #review_form #reply-title {
  color: #3b153f !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(1.7rem, 3vw, 2.1rem) !important;
  line-height: 1.2 !important;
  margin-bottom: 1.25rem !important;
}

.single-product #reviews p,
.single-product #reviews label,
.single-product #reviews .description,
.single-product #reviews .comment-notes,
.single-product #reviews .woocommerce-review__published-date {
  color: #2d2230 !important;
  font-size: 1rem !important;
}

.single-product #reviews .commentlist,
.single-product #reviews .commentlist li {
  list-style: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.single-product #reviews .comment_container,
.single-product #reviews .comment-text {
  background: #ffffff !important;
  border: 1px solid #eaddec !important;
  border-radius: 18px !important;
  padding: 1.15rem !important;
  box-shadow: 0 8px 24px rgba(62, 24, 74, 0.06) !important;
}

.single-product #reviews .star-rating,
.single-product #reviews .star-rating::before,
.single-product #reviews .star-rating span::before,
.woocommerce .single-product #reviews p.stars a,
.woocommerce .single-product p.stars a,
.woocommerce p.stars a {
  color: #7b3f8c !important;
}

.woocommerce .single-product #reviews p.stars a,
.woocommerce .single-product p.stars a,
.woocommerce p.stars a {
  display: inline-block !important;
  position: relative !important;
  width: 1.25em !important;
  height: 1.25em !important;
  overflow: hidden !important;
  color: #7b3f8c !important;
  font-size: 1.7rem !important;
  line-height: 1 !important;
  margin-right: 0.35rem !important;
  text-decoration: none !important;
  text-indent: -9999px !important;
  vertical-align: middle !important;
}

.woocommerce .single-product #reviews p.stars a::before,
.woocommerce .single-product p.stars a::before,
.woocommerce p.stars a::before {
  content: "★" !important;
  position: absolute !important;
  inset: 0 !important;
  color: #7b3f8c !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1em !important;
  line-height: 1 !important;
  text-indent: 0 !important;
}

.woocommerce .single-product #reviews p.stars a:hover,
.woocommerce .single-product #reviews p.stars a.active,
.woocommerce .single-product p.stars a:hover,
.woocommerce .single-product p.stars a.active,
.woocommerce p.stars a:hover,
.woocommerce p.stars a.active {
  color: var(--humo-cream) !important;
}

.woocommerce .single-product #reviews p.stars:hover a::before,
.woocommerce .single-product p.stars:hover a::before,
.woocommerce p.stars:hover a::before,
.woocommerce .single-product #reviews p.stars.selected a:not(.active)::before,
.woocommerce .single-product p.stars.selected a:not(.active)::before,
.woocommerce p.stars.selected a:not(.active)::before,
.woocommerce .single-product #reviews p.stars.selected a.active::before,
.woocommerce .single-product p.stars.selected a.active::before,
.woocommerce p.stars.selected a.active::before {
  color: var(--humo-cream) !important;
}

.woocommerce .single-product #reviews p.stars a:hover ~ a::before,
.woocommerce .single-product p.stars a:hover ~ a::before,
.woocommerce p.stars a:hover ~ a::before,
.woocommerce .single-product #reviews p.stars.selected a.active ~ a::before,
.woocommerce .single-product p.stars.selected a.active ~ a::before,
.woocommerce p.stars.selected a.active ~ a::before {
  color: #7b3f8c !important;
}

.single-product #reviews textarea,
.single-product #reviews input[type="text"],
.single-product #reviews input[type="email"] {
  width: 100% !important;
  border: 1px solid #d9c5dd !important;
  border-radius: 14px !important;
  padding: 0.9rem 1rem !important;
  background: #ffffff !important;
  color: #2d2230 !important;
  font-size: 0.95rem !important;
}

.single-product #reviews textarea:focus,
.single-product #reviews input[type="text"]:focus,
.single-product #reviews input[type="email"]:focus {
  border-color: #7b3f8c !important;
  box-shadow: 0 0 0 3px rgba(123, 63, 140, 0.14) !important;
  outline: none !important;
}

.single-product #reviews .comment-form-comment,
.single-product #reviews .comment-form-author,
.single-product #reviews .comment-form-email,
.single-product #reviews .comment-form-rating {
  margin-bottom: 1.35rem !important;
}

.single-product #reviews input[type="submit"],
.single-product .woocommerce #respond input#submit,
.woocommerce #respond input#submit {
  background: linear-gradient(135deg, #3b153f, #7b3f8c) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  padding: 0.9rem 2.15rem !important;
  text-transform: uppercase !important;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease !important;
}

.single-product #reviews input[type="submit"]:hover,
.single-product #reviews input[type="submit"]:focus-visible,
.single-product .woocommerce #respond input#submit:hover,
.single-product .woocommerce #respond input#submit:focus-visible,
.woocommerce #respond input#submit:hover,
.woocommerce #respond input#submit:focus-visible {
  background: var(--humo-cream) !important;
  color: #3b153f !important;
  transform: translateY(-2px) !important;
}

.single-product .woocommerce-noreviews,
.single-product #reviews .woocommerce-noreviews {
  background: #f4eaf5 !important;
  border-left: 4px solid #7b3f8c !important;
  border-radius: 12px !important;
  color: #3b153f !important;
  padding: 0.9rem 1.15rem !important;
}

@media (max-width: 768px) {
  .single-product .woocommerce-Reviews,
  .single-product #reviews {
    border-radius: 18px !important;
    padding: 1.5rem !important;
  }
}

/* Producto unico: estados hover legibles y botones morados */
.single-product .category-tag:hover,
.single-product .category-tag:focus-visible,
.single-product .tab-button:hover,
.single-product .tab-button:focus-visible,
.single-product .tab-button.active {
  background: var(--humo-wine) !important;
  border-color: var(--humo-wine) !important;
  color: #ffffff !important;
}

.single-product .category-tag:hover *,
.single-product .category-tag:focus-visible *,
.single-product .tab-button:hover *,
.single-product .tab-button:focus-visible *,
.single-product .tab-button.active * {
  color: #ffffff !important;
}

.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button,
.single-product .cart .button,
.single-product .cart button.button,
.single-product .back-in-stock-form .btn,
.single-product .product-actions .btn {
  background: var(--humo-wine) !important;
  border-color: var(--humo-wine) !important;
  color: #ffffff !important;
}

.single-product .single_add_to_cart_button:hover:not(:disabled),
.single-product .single_add_to_cart_button:focus-visible:not(:disabled),
.single-product button.single_add_to_cart_button:hover:not(:disabled),
.single-product button.single_add_to_cart_button:focus-visible:not(:disabled),
.single-product .cart .button:hover:not(:disabled),
.single-product .cart .button:focus-visible:not(:disabled),
.single-product .cart button.button:hover:not(:disabled),
.single-product .cart button.button:focus-visible:not(:disabled),
.single-product .back-in-stock-form .btn:hover,
.single-product .back-in-stock-form .btn:focus-visible,
.single-product .product-actions .btn:hover,
.single-product .product-actions .btn:focus-visible {
  background: var(--humo-cream) !important;
  border-color: var(--humo-cream) !important;
  color: var(--humo-wine) !important;
}

.single-product .related-products-section .products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 2vw, 1.8rem) !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .related-products-section .products-grid > li.product,
.single-product .related-products-section .product-item {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.single-product .related-products-section .products-grid > li.product::before,
.single-product .related-products-section .product-item::before {
  content: none !important;
  display: none !important;
}

.single-product .related-products-section .product-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  gap: 0.9rem !important;
  background: #ffffff !important;
  border: 1px solid rgba(61, 26, 36, 0.1) !important;
  border-radius: 14px !important;
  padding: 1rem !important;
  box-shadow: 0 14px 36px rgba(61, 26, 36, 0.08) !important;
}

.single-product .related-products-section .woocommerce-loop-product__link {
  display: block !important;
  color: inherit !important;
  text-decoration: none !important;
}

.single-product .related-products-section .product-inner img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  background: #f7f4f1 !important;
}

.single-product .related-products-section .woocommerce-loop-product__title {
  min-height: 3.2em !important;
  margin: 0.25rem 0 0 !important;
  color: #2d2230 !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem) !important;
  line-height: 1.2 !important;
}

.single-product .related-products-section .star-rating,
.single-product .related-products-section .star-rating + .woocommerce-review-link {
  display: none !important;
}

.single-product .related-products-section .price {
  display: block !important;
  margin-top: auto !important;
  color: var(--humo-wine) !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}

.single-product .related-products-section .button,
.single-product .related-products-section a.button,
.single-product .related-products-section .add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 48px !important;
  margin-top: 0.35rem !important;
  border-radius: 10px !important;
  background: var(--humo-wine) !important;
  border: 1px solid var(--humo-wine) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
}

.single-product .related-products-section .button:hover,
.single-product .related-products-section .button:focus-visible,
.single-product .related-products-section a.button:hover,
.single-product .related-products-section a.button:focus-visible,
.single-product .related-products-section .add_to_cart_button:hover,
.single-product .related-products-section .add_to_cart_button:focus-visible {
  background: var(--humo-cream) !important;
  border-color: var(--humo-cream) !important;
  color: var(--humo-wine) !important;
}

@media (max-width: 1024px) {
  .single-product .related-products-section .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .single-product .related-products-section .products-grid {
    grid-template-columns: 1fr !important;
  }
}
