/**
 * Mándale Flores - Warm Boutique & Artisanal Warmth (v1.4.3 Complete)
 */

/* 1. Global Reset & Body */
html, body, #page, .site, .ast-container, #content, .ast-site-content {
  background-color: #fbf9f6 !important;
  color: #1b1c1a !important;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-font-smoothing: antialiased;
}

body {
  padding-bottom: 70px !important;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0 !important;
  }
}

h1, h2, h3, h4, .mf-serif, .entry-title, .page-title {
  font-family: 'Libre Caslon Text', Georgia, serif !important;
  color: #1b1c1a !important;
  font-weight: 400 !important;
}

.mf-italic-serif {
  font-family: 'Libre Caslon Text', Georgia, serif !important;
  font-style: italic !important;
  color: #a33728 !important;
}

/* 2. Header (Desktop & Mobile) */
.mf-site-header {
  background: rgba(251, 249, 246, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(139, 113, 109, 0.15) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  padding: 10px 16px !important;
}

.mf-header-container {
  max-width: 1240px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.mf-brand-logo {
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
}

.mf-logo-img {
  height: 40px !important;
  width: auto !important;
  object-fit: contain !important;
}

@media (max-width: 768px) {
  .mf-logo-img {
    height: 34px !important;
  }
}

.mf-nav-desktop {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}

@media (max-width: 768px) {
  .mf-nav-desktop, header .mf-nav-desktop, .mf-site-header .mf-nav-desktop, nav.mf-nav-desktop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

.mf-nav-link {
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1b1c1a !important;
  transition: color 0.2s ease !important;
}

.mf-nav-link:hover, .mf-nav-link.mf-highlight {
  color: #a33728 !important;
  font-weight: 600 !important;
}

.mf-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.mf-user-btn, .mf-cart-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(139, 113, 109, 0.2) !important;
  color: #1b1c1a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
}

.mf-user-btn:hover, .mf-cart-btn:hover {
  background: #a33728 !important;
  color: #ffffff !important;
  border-color: #a33728 !important;
}

.mf-cart-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #a33728 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  width: 17px !important;
  height: 17px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #fbf9f6 !important;
}

/* 3. Hero Section (Responsive) */
.mf-hero-boutique {
  padding: 44px 16px 36px !important;
  background: radial-gradient(circle at 50% 20%, #ffffff 0%, #fbf9f6 75%) !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(139, 113, 109, 0.15) !important;
}

@media (max-width: 768px) {
  .mf-hero-boutique {
    padding: 24px 12px 20px !important;
  }
}

.mf-hero-title {
  font-size: 42px !important;
  line-height: 1.15 !important;
  max-width: 800px !important;
  margin: 0 auto 10px !important;
  color: #1b1c1a !important;
}

@media (max-width: 768px) {
  .mf-hero-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }
}

.mf-hero-subtitle {
  font-size: 15.5px !important;
  line-height: 1.5 !important;
  color: #605b51 !important;
  max-width: 620px !important;
  margin: 0 auto 20px !important;
}

@media (max-width: 768px) {
  .mf-hero-subtitle {
    font-size: 13.5px !important;
    margin-bottom: 16px !important;
  }
}

/* Delivery Municipality Widget */
.mf-delivery-widget {
  background: #ffffff !important;
  border: 1px solid rgba(139, 113, 109, 0.2) !important;
  border-radius: 16px !important;
  padding: 10px 16px !important;
  max-width: 540px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  box-shadow: 0 8px 24px rgba(27, 28, 26, 0.05) !important;
}

@media (max-width: 640px) {
  .mf-delivery-widget {
    flex-direction: column !important;
    max-width: 75% !important;
    margin: 0 auto !important;
    padding: 10px 14px !important;
    gap: 10px !important;
  }
}

.mf-delivery-select-wrap {
  flex: 1 !important;
  width: 100% !important;
  text-align: left !important;
}

.mf-delivery-select-wrap label {
  display: block !important;
  font-size: 10px !important;
  color: #797469 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-weight: 600 !important;
  margin-bottom: 2px !important;
}

.mf-delivery-select {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1b1c1a !important;
  padding: 2px 0 !important;
  outline: none !important;
  cursor: pointer !important;
}

.mf-btn-hero {
  background: #a33728 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 8px 20px rgba(163, 55, 40, 0.2) !important;
  white-space: nowrap !important;
}

@media (max-width: 640px) {
  .mf-btn-hero {
    width: auto !important;
    min-width: 60% !important;
    max-width: 80% !important;
    margin: 0 auto !important;
    align-self: center !important;
    padding: 8px 16px !important;
  }
}

/* 4. Quick Delivery Municipality Pills */
.mf-quick-delivery-bar {
  max-width: 1240px !important;
  margin: 14px auto 0 !important;
  padding: 0 14px !important;
}

.mf-quick-delivery-inner {
  background: #efeeeb !important;
  border-radius: 14px !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.mf-quick-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #605b51 !important;
  white-space: nowrap !important;
}

.mf-quick-pills-scroll {
  display: flex !important;
  gap: 6px !important;
  overflow-x: auto !important;
  width: 100% !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.mf-quick-pill {
  flex-shrink: 0 !important;
  background: #ffffff !important;
  color: #1b1c1a !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  border: 1px solid rgba(139, 113, 109, 0.15) !important;
}

/* 5. Pill Filters Bar */
.mf-pill-filters-bar {
  max-width: 1240px !important;
  margin: 20px auto 12px !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.mf-pill-group {
  display: flex !important;
  gap: 6px !important;
  overflow-x: auto !important;
  padding-bottom: 4px !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.mf-pill-btn {
  flex-shrink: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(139, 113, 109, 0.2) !important;
  color: #605b51 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.mf-pill-btn.active {
  background: #a33728 !important;
  color: #ffffff !important;
  border-color: #a33728 !important;
}

/* 6. Product Cards Grid (2 Col en Móvil, 4 Col en Desktop) */
.mf-products-grid {
  max-width: 1240px !important;
  margin: 0 auto 30px !important;
  padding: 0 14px !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

@media (max-width: 1024px) {
  .mf-products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .mf-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 10px !important;
  }
}

.mf-product-card {
  background: #ffffff !important;
  border: 1px solid rgba(139, 113, 109, 0.18) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
}

.mf-product-img-wrap {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  position: relative !important;
  background: #f5f3f0 !important;
  display: block !important;
}

.mf-product-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.mf-product-tag {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #1b1c1a !important;
  font-size: 8px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 2px 6px !important;
  border-radius: 999px !important;
}

.mf-product-body {
  padding: 8px 10px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  justify-content: space-between !important;
}

.mf-product-title {
  font-family: 'Libre Caslon Text', Georgia, serif !important;
  font-size: 13.5px !important;
  color: #1b1c1a !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.25 !important;
}

.mf-product-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 6px !important;
  padding-top: 6px !important;
  border-top: 1px solid rgba(139, 113, 109, 0.12) !important;
}

.mf-product-price {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #a33728 !important;
}

.mf-btn-add-cart {
  width: 26px !important;
  height: 26px !important;
  border-radius: 999px !important;
  background: #fbf9f6 !important;
  border: 1px solid rgba(139, 113, 109, 0.2) !important;
  color: #a33728 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

/* 7. Bottom Navigation Bar (Mobile Only - Estilo App Nativa) */
.mf-mobile-bottom-nav {
  display: none !important;
}

@media (max-width: 768px) {
  .mf-mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 56px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid rgba(139, 113, 109, 0.15) !important;
    z-index: 9999 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 6px env(safe-area-inset-bottom, 4px) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05) !important;
  }
}

.mf-bottom-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: #605b51 !important;
  text-decoration: none !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  gap: 2px !important;
  position: relative !important;
  flex: 1 !important;
}

.mf-bottom-nav-item.active, .mf-bottom-nav-item:hover {
  color: #a33728 !important;
}

.mf-bottom-nav-item.active svg {
  stroke: #a33728 !important;
}

.mf-bottom-nav-badge {
  position: absolute !important;
  top: -2px !important;
  right: 24% !important;
  background: #a33728 !important;
  color: #ffffff !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  width: 15px !important;
  height: 15px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 8. Trust Badges */
.mf-trust-section {
  background: #ffffff !important;
  border-top: 1px solid rgba(139, 113, 109, 0.15) !important;
  border-bottom: 1px solid rgba(139, 113, 109, 0.15) !important;
  padding: 28px 14px !important;
  margin: 20px 0 !important;
}

.mf-trust-grid {
  max-width: 1240px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  text-align: center !important;
}

.mf-trust-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.mf-trust-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 999px !important;
  background: #ffdad4 !important;
  color: #862215 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 8px !important;
}

.mf-trust-item h4 {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  margin: 0 0 3px 0 !important;
}

.mf-trust-item p {
  font-size: 11.5px !important;
  color: #605b51 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* 9. Footer */
.mf-site-footer {
  background: #ffffff !important;
  border-top: 1px solid rgba(139, 113, 109, 0.15) !important;
  padding: 36px 20px 20px !important;
}

.mf-footer-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1.8fr 1fr 1fr !important;
  gap: 24px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid rgba(139, 113, 109, 0.15) !important;
}

@media (max-width: 768px) {
  .mf-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center !important;
  }
  .mf-footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .mf-footer-logo-link {
    display: inline-block !important;
    margin: 0 auto 10px !important;
  }
  .mf-footer-logo-img {
    margin: 0 auto 10px !important;
  }
  .mf-footer-desc {
    text-align: center !important;
    max-width: 340px !important;
    margin: 0 auto !important;
  }
  .mf-footer-links {
    text-align: center !important;
  }
  .mf-footer-links h4 {
    text-align: center !important;
  }
  .mf-footer-links ul {
    align-items: center !important;
    text-align: center !important;
  }
  .mf-footer-links li {
    text-align: center !important;
  }
}

.mf-footer-logo-img {
  height: 36px !important;
  width: auto !important;
  object-fit: contain !important;
  margin-bottom: 10px !important;
}

.mf-footer-desc {
  font-size: 12.5px !important;
  color: #605b51 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.mf-footer-links h4 {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1b1c1a !important;
  margin: 0 0 10px !important;
}

.mf-footer-links ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.mf-footer-links a {
  text-decoration: none !important;
  font-size: 12.5px !important;
  color: #605b51 !important;
  transition: color 0.2s !important;
}

.mf-footer-links a:hover {
  color: #a33728 !important;
}

.mf-footer-bottom {
  max-width: 1240px !important;
  margin: 18px auto 0 !important;
  text-align: center !important;
  font-size: 11.5px !important;
  color: #797469 !important;
}

/* 8. Estilo de Tarjetas Estandarizadas para Catálogo de Tienda (Store / Shop) */
.woocommerce ul.products, #main ul.products, .ast-woocommerce-container ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin: 0 0 30px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* FIX: Desactivar pseudo-elementos clearfix de WooCommerce que crean un slot vacío en el primer elemento de la cuadrícula CSS Grid */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
#main ul.products::before,
#main ul.products::after,
.ast-woocommerce-container ul.products::before,
.ast-woocommerce-container ul.products::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}

@media (max-width: 1024px) {
  .woocommerce ul.products, #main ul.products, .ast-woocommerce-container ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products, #main ul.products, .ast-woocommerce-container ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

.woocommerce ul.products li.product, #main ul.products li.product, .ast-woocommerce-container ul.products li.product {
  background: #ffffff !important;
  border: 1px solid rgba(139, 113, 109, 0.18) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  padding: 0 0 10px 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.woocommerce ul.products li.product:hover, #main ul.products li.product:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  flex: 1 !important;
}

.woocommerce ul.products li.product img, .woocommerce-LoopProduct-link img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 14px 14px 0 0 !important;
  margin: 0 !important;
  display: block !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Libre Caslon Text', Georgia, serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1b1c1a !important;
  line-height: 1.3 !important;
  padding: 10px 10px 4px 10px !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.woocommerce ul.products li.product .price {
  padding: 2px 10px 8px 10px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #a33728 !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product .price del {
  color: #94a3b8 !important;
  font-weight: 400 !important;
  font-size: 11.5px !important;
}

.woocommerce ul.products li.product .button.add_to_cart_button {
  margin: 0 10px !important;
  padding: 8px 14px !important;
  background: #fbf9f6 !important;
  border: 1px solid rgba(139, 113, 109, 0.25) !important;
  border-radius: 8px !important;
  color: #1b1c1a !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
}

.woocommerce ul.products li.product .button.add_to_cart_button:hover {
  background: #a33728 !important;
  color: #ffffff !important;
  border-color: #a33728 !important;
}

/* 9. Checkout en Acordeón Progresivo Vertical (UX Boutique) */
.woocommerce-checkout .woocommerce {
  max-width: 1000px !important;
  margin: 20px auto 40px !important;
  padding: 0 15px !important;
}

.mf-accordion-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
}

.mf-acc-card {
  background: #ffffff !important;
  border: 1px solid rgba(139, 113, 109, 0.2) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03) !important;
  transition: all 0.25s ease !important;
}

.mf-acc-card.active {
  border-color: #a33728 !important;
  box-shadow: 0 6px 20px rgba(163, 55, 40, 0.08) !important;
}

.mf-acc-header {
  padding: 16px 20px !important;
  background: #fbf9f6 !important;
  border-bottom: 1px solid rgba(139, 113, 109, 0.12) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.mf-acc-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.mf-acc-badge {
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  background: #efeeeb !important;
  color: #605b51 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mf-acc-card.active .mf-acc-badge {
  background: #ffdad4 !important;
  color: #a33728 !important;
}

.mf-acc-title {
  font-family: 'Libre Caslon Text', Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #1b1c1a !important;
}

.mf-acc-summary {
  padding: 14px 20px !important;
  font-size: 13.5px !important;
  color: #605b51 !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(139, 113, 109, 0.08) !important;
  line-height: 1.5 !important;
}

.mf-acc-body {
  padding: 20px !important;
}

.mf-acc-edit-btn {
  background: transparent !important;
  border: 1px solid rgba(139, 113, 109, 0.25) !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  color: #605b51 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: all 0.2s ease !important;
}

.mf-acc-edit-btn:hover {
  border-color: #a33728 !important;
  color: #a33728 !important;
}

.mf-acc-actions {
  margin-top: 20px !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.mf-acc-next-btn {
  background: #a33728 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(163, 55, 40, 0.2) !important;
}

.mf-acc-next-btn:hover {
  background: #862215 !important;
  transform: translateY(-1px) !important;
}

/* Toggle Domicilio / Tienda */
.mf-toggle-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-bottom: 20px !important;
}

@media (max-width: 600px) {
  .mf-toggle-wrapper {
    grid-template-columns: 1fr !important;
  }
}

.mf-toggle-card {
  border: 1.5px solid rgba(139, 113, 109, 0.2) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  background: #ffffff !important;
}

.mf-toggle-card.active {
  border-color: #a33728 !important;
  background: #ffdad4 !important;
}

.mf-toggle-card .mf-svg-icon {
  stroke: #a33728 !important;
}

.mf-toggle-text {
  display: flex !important;
  flex-direction: column !important;
}

.mf-toggle-text strong {
  font-size: 13.5px !important;
  color: #1b1c1a !important;
}

.mf-toggle-card.active .mf-toggle-text strong {
  color: #862215 !important;
}

.mf-toggle-text span {
  font-size: 11.5px !important;
  color: #605b51 !important;
}

.mf-hidden-select-field {
  display: none !important;
}

/* Campos de Formulario WooCommerce */
.woocommerce-checkout .form-row {
  margin-bottom: 14px !important;
  padding: 0 !important;
}

.woocommerce-checkout .form-row label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #1b1c1a !important;
  margin-bottom: 4px !important;
  display: block !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(139, 113, 109, 0.25) !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  background: #ffffff !important;
  color: #1b1c1a !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
  border-color: #a33728 !important;
  box-shadow: 0 0 0 3px rgba(163, 55, 40, 0.12) !important;
}

/* Resumen del Pedido y Pasarela de Pago */
#order_review {
  background: #ffffff !important;
  border: 1px solid rgba(139, 113, 109, 0.2) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03) !important;
}

#payment {
  background: #fbf9f6 !important;
  border: 1px solid rgba(139, 113, 109, 0.18) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  margin-top: 16px !important;
}

#payment button#place_order,
#payment button#clip-payment-button,
#payment button.clip-payment-button {
  background: #a33728 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  border: none !important;
  width: 100% !important;
  cursor: pointer !important;
  box-shadow: 0 6px 20px rgba(163, 55, 40, 0.25) !important;
  transition: all 0.2s ease !important;
}

#payment button#place_order:hover,
#payment button#clip-payment-button:hover {
  background: #862215 !important;
  transform: translateY(-1px) !important;
}

/* Banderas Explicativas y Descripciones de Campos en Checkout (Azul muy suave y transparente) */
.woocommerce-checkout span.description,
.woocommerce-checkout .description,
.woocommerce-checkout .form-row .description,
.woocommerce-checkout .woocommerce-input-wrapper .description,
.woocommerce-checkout .field-description,
.woocommerce-checkout .wooccm-description,
.woocommerce-checkout .woocommerce-help-tip,
.woocommerce-checkout .help-tip {
  background-color: rgba(224, 242, 254, 0.45) !important;
  color: #0369a1 !important;
  border: 1px solid rgba(186, 230, 253, 0.6) !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  margin-top: 6px !important;
  display: block !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  box-shadow: none !important;
  position: static !important;
}

/* Indicador Visual de Error de Validación en Campos */
.woocommerce-checkout .mf-field-error,
input.mf-field-error,
select.mf-field-error,
textarea.mf-field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
  background-color: #fef2f2 !important;
}

/* Checkbox de Términos y Condiciones en Checkout */
.woocommerce-terms-and-conditions-wrapper {
  margin: 16px 0 !important;
  display: block !important;
}

.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  cursor: pointer !important;
  font-size: 13px !important;
  color: #1b1c1a !important;
  line-height: 1.4 !important;
}

.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]#terms,
.woocommerce-terms-and-conditions-wrapper .woocommerce-form__input-checkbox,
#payment input[type="checkbox"]#terms {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 2px 0 0 0 !important;
  cursor: pointer !important;
  accent-color: #a33728 !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
}

.woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions-checkbox-text {
  font-size: 13px !important;
  color: #1b1c1a !important;
}

/* Ocultar País y Provincia/Estado en Checkout (No solicitados) */
#billing_country_field,
#billing_state_field,
#shipping_country_field,
#shipping_state_field {
  display: none !important;
}

/* ========================================================
   ESTILOS WARM BOUTIQUE PARA LA PÁGINA DEL CARRITO (/cart/)
   ======================================================== */
.woocommerce-cart .woocommerce {
  max-width: 1180px !important;
  margin: 20px auto 40px !important;
  padding: 0 16px !important;
}

.woocommerce-cart .entry-title,
.woocommerce-cart h1.page-title {
  font-family: 'Libre Caslon Text', Georgia, serif !important;
  font-size: 32px !important;
  color: #1b1c1a !important;
  text-align: center !important;
  margin-bottom: 24px !important;
}

/* Formulario del Carrito y Tabla de Productos */
.woocommerce-cart-form {
  background: #ffffff !important;
  border: 1px solid rgba(139, 113, 109, 0.2) !important;
  border-radius: 18px !important;
  padding: 20px !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 30px !important;
}

.woocommerce-cart-form table.shop_table {
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce-cart-form table.shop_table th {
  font-family: 'Libre Caslon Text', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #605b51 !important;
  border: none !important;
  border-bottom: 1.5px solid rgba(139, 113, 109, 0.2) !important;
  padding: 10px 14px 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.woocommerce-cart-form table.shop_table td {
  border: none !important;
  padding: 14px !important;
  vertical-align: middle !important;
  background: #fbf9f6 !important;
}

.woocommerce-cart-form table.shop_table tr.cart_item td:first-child {
  border-top-left-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
}

.woocommerce-cart-form table.shop_table tr.cart_item td:last-child {
  border-top-right-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

/* Thumbnail del Producto */
.woocommerce-cart table.cart .product-thumbnail img {
  width: 72px !important;
  height: 72px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  border: 1px solid rgba(139, 113, 109, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}

/* Nombre del Producto */
.woocommerce-cart table.cart .product-name a {
  font-family: 'Libre Caslon Text', Georgia, serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1b1c1a !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.woocommerce-cart table.cart .product-name a:hover {
  color: #a33728 !important;
}

/* Precios */
.woocommerce-cart table.cart .product-price .amount,
.woocommerce-cart table.cart .product-subtotal .amount {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #a33728 !important;
}

/* Botón Eliminar Producto */
.woocommerce-cart table.cart .product-remove a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 999px !important;
  background: rgba(163, 55, 40, 0.08) !important;
  color: #a33728 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.woocommerce-cart table.cart .product-remove a.remove:hover {
  background: #a33728 !important;
  color: #ffffff !important;
}

/* Control de Cantidad */
.woocommerce-cart .quantity input.qty {
  width: 54px !important;
  height: 38px !important;
  border: 1.5px solid rgba(139, 113, 109, 0.25) !important;
  border-radius: 8px !important;
  text-align: center !important;
  font-weight: 600 !important;
  background: #ffffff !important;
  color: #1b1c1a !important;
}

/* Cupones y Actualización de Carrito */
.woocommerce-cart-form td.actions {
  background: transparent !important;
  padding: 16px 0 0 0 !important;
}

.woocommerce-cart .coupon {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.woocommerce-cart .coupon input.input-text {
  height: 42px !important;
  border: 1.5px solid rgba(139, 113, 109, 0.25) !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  background: #ffffff !important;
  color: #1b1c1a !important;
  font-size: 13.5px !important;
}

.woocommerce-cart button[name="apply_coupon"],
.woocommerce-cart button[name="update_cart"] {
  height: 42px !important;
  background: #ffffff !important;
  border: 1.5px solid #a33728 !important;
  color: #a33728 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 0 18px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.woocommerce-cart button[name="apply_coupon"]:hover,
.woocommerce-cart button[name="update_cart"]:hover {
  background: #a33728 !important;
  color: #ffffff !important;
}

/* Resumen del Carrito (Cart Totals) */
.cart-collaterals {
  display: flex !important;
  justify-content: flex-end !important;
}

.cart-collaterals .cart_totals {
  width: 100% !important;
  max-width: 480px !important;
  background: #ffffff !important;
  border: 1px solid rgba(139, 113, 109, 0.2) !important;
  border-radius: 18px !important;
  padding: 24px !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04) !important;
}

.cart-collaterals .cart_totals h2 {
  font-family: 'Libre Caslon Text', Georgia, serif !important;
  font-size: 20px !important;
  color: #1b1c1a !important;
  margin: 0 0 16px 0 !important;
  border-bottom: 1.5px solid rgba(139, 113, 109, 0.15) !important;
  padding-bottom: 10px !important;
}

.cart-collaterals .cart_totals table.shop_table {
  border: none !important;
  width: 100% !important;
  margin-bottom: 20px !important;
}

.cart-collaterals .cart_totals table.shop_table th {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #605b51 !important;
  border: none !important;
  border-bottom: 1px solid rgba(139, 113, 109, 0.1) !important;
  padding: 10px 0 !important;
  text-align: left !important;
}

.cart-collaterals .cart_totals table.shop_table td {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #1b1c1a !important;
  border: none !important;
  border-bottom: 1px solid rgba(139, 113, 109, 0.1) !important;
  padding: 10px 0 !important;
  text-align: right !important;
}

.cart-collaterals .cart_totals tr.order-total th,
.cart-collaterals .cart_totals tr.order-total td {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #a33728 !important;
  border-top: 1.5px solid rgba(139, 113, 109, 0.2) !important;
  border-bottom: none !important;
  padding-top: 14px !important;
}

/* Botón Principal Proceder al Pago */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 48px !important;
  background: #a33728 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(163, 55, 40, 0.25) !important;
  margin-top: 16px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #862215 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(163, 55, 40, 0.35) !important;
}

/* Adaptación Móvil del Carrito */
@media (max-width: 768px) {
  .woocommerce-cart-form {
    padding: 12px !important;
    border-radius: 14px !important;
  }
  .woocommerce-cart-form table.shop_table td {
    padding: 8px !important;
  }
  .woocommerce-cart table.cart .product-thumbnail img {
    width: 54px !important;
    height: 54px !important;
  }
  .woocommerce-cart .coupon {
    flex-direction: column !important;
    width: 100% !important;
  }
  .woocommerce-cart .coupon input.input-text,
  .woocommerce-cart button[name="apply_coupon"],
  .woocommerce-cart button[name="update_cart"] {
    width: 100% !important;
  }
}

/* Avisos y Botones de Carrito Vacío */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  background: #ffffff !important;
  border: 1px solid rgba(139, 113, 109, 0.2) !important;
  border-left: 4px solid #a33728 !important;
  border-radius: 14px !important;
  padding: 16px 20px !important;
  color: #1b1c1a !important;
  font-size: 14.5px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03) !important;
  max-width: 800px !important;
  margin: 30px auto 20px !important;
}

.woocommerce-info::before,
.woocommerce-message::before {
  color: #a33728 !important;
}

p.return-to-shop {
  text-align: center !important;
  margin-top: 24px !important;
}

p.return-to-shop .button.wc-backward,
.woocommerce a.button.wc-backward {
  background: #a33728 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(163, 55, 40, 0.25) !important;
}

p.return-to-shop .button.wc-backward:hover,
.woocommerce a.button.wc-backward:hover {
  background: #862215 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(163, 55, 40, 0.35) !important;
}

