/**
 * Patty Creaciones — theming sobre el tema classic.
 * Línea editorial/boutique (referencia: deladosaladoce.es): tipografía serif,
 * fotografía a gran formato, mucho espacio en blanco, color como acento y no
 * como bloque. Sustituye la línea anterior más "e-commerce denso".
 */

:root {
  --patty-primary: #5AA3A4;
  --patty-primary-dark: #3d7c7e;
  --patty-primary-light: #f2f7f6;
  --patty-accent: #ECA4A2;
  --patty-accent-dark: #c97b79;
  --patty-bg: #ffffff;
  --patty-ink: #2c2624;
  --patty-muted: #6b5b57;
  --patty-hairline: #e8e0dd;
  --patty-footer-bg: #faf7f5;
}

body { font-family: 'Poppins', -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--patty-ink); background: var(--patty-bg); }

h1, h2, h3, .h1, .h2, .h3, .block-category-title,
.product-title, .page-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 500;
  letter-spacing: .2px;
}
#_desktop_logo img, a.navbar-brand { font-family: 'Playfair Display', serif; }

/* ---------- Botones (pequeños, discretos, mayúsculas) ---------- */
a.btn-primary, button.btn-primary, .btn-primary,
#product-availability + .product-add-to-cart button,
.card-block .btn {
  background-color: var(--patty-ink) !important;
  border-color: var(--patty-ink) !important;
  color: #fff !important;
  border-radius: 2px;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 11px 26px;
}
a.btn-primary:hover, button.btn-primary:hover {
  background-color: var(--patty-primary-dark) !important;
  border-color: var(--patty-primary-dark) !important;
}
.btn-outline-primary { color: var(--patty-ink) !important; border-color: var(--patty-ink) !important; border-radius: 2px; }
.btn-outline-primary:hover { background-color: var(--patty-ink) !important; color: #fff !important; }
#wrapper a:not(.btn) { color: var(--patty-ink); }
#wrapper a:not(.btn):hover { color: var(--patty-primary-dark); }

/* ---------- Precios y badges ---------- */
.current-price, .product-price, .price { color: var(--patty-ink) !important; font-weight: 600; }
.regular-price { color: #8a7871 !important; }
.product-flag, .on-sale, span.discount-percentage, span.discount-amount {
  background-color: var(--patty-accent) !important;
  color: #5c2c2a !important;
  border-radius: 0;
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .5px;
}

/* ---------- Fondo general ---------- */
#wrapper, #content-wrapper, .page-content { background-color: #ffffff; }
.page-footer, #footer { background-color: var(--patty-footer-bg); }
#footer a { color: #6d5a56; }
.block-category, #category-description { text-align: center; }
#category-description h1, .page-title { color: var(--patty-ink); }

/* =========================================================
   Cabeceras de sección
   ========================================================= */
.patty-section { max-width: 1200px; margin: 72px auto; padding: 0 20px; }
.patty-section-head { text-align: center; margin-bottom: 40px; }
.patty-section-head h2,
#content .page-home .products-section-title,
#content .page-home h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--patty-ink);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: .3px;
}
.patty-section-head p, .patty-section-head .subtitle {
  color: var(--patty-muted);
  font-size: .9rem;
  margin: 0;
  letter-spacing: .3px;
}
.patty-section-head::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  margin: 18px auto 0;
  background: var(--patty-accent-dark);
}
#content .page-home .products-section-title { text-align: center; width: 100%; }

/* ---------- Tarjetas de producto ---------- */
.product-miniature .thumbnail-container, #content .product-cover img {
  border-radius: 0;
  overflow: hidden;
}
.product-miniature { transition: opacity .2s ease; }
.product-miniature:hover { opacity: .9; }
.product-miniature .thumbnail-container { background: #f7f4f2; }
.product-miniature .product-description { padding: 14px 4px 4px; text-align: center; }
.product-miniature .product-title a {
  color: var(--patty-ink);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
}
.product-miniature .comments-note { justify-content: center; display: flex; gap: 6px; margin-top: 4px; }

/* ---------- Hero a pantalla completa, ancho completo (full-bleed) ---------- */
#carousel {
  margin-bottom: 0 !important;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
#carousel .carousel-inner { height: 620px !important; overflow: hidden !important; }
#carousel .carousel-item { display: block !important; width: 100% !important; height: 620px !important; }
#carousel figure { display: block; margin: 0; position: relative; overflow: hidden; width: 100%; height: 100%; }
#carousel .carousel-item img {
  display: block;
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center 25%;
}
#carousel figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 40%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}
#carousel .caption {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 8%;
  top: auto;
  transform: none;
  max-width: 460px;
  text-align: left;
  z-index: 2;
}
#carousel .caption h2.display-1 {
  font-family: 'Playfair Display', serif;
  text-transform: none !important;
  font-size: 2.6rem !important;
  font-weight: 500 !important;
  color: #fff !important;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
#carousel .caption-description p { color: #fff; font-size: 1rem; line-height: 1.6; margin-bottom: 0; max-width: 400px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
#carousel .caption .patty-hero-cta {
  border-color: #fff;
  color: #fff !important;
  background: rgba(255,255,255,.08);
}
#carousel .caption .patty-hero-cta:hover { background: #fff; color: var(--patty-ink) !important; }
#carousel .carousel-control-prev, #carousel .carousel-control-next { z-index: 3; }
#carousel .carousel-indicators { z-index: 3; }
@media (max-width: 900px) {
  #carousel .carousel-inner, #carousel .carousel-item { height: 520px !important; }
  #carousel .carousel-item img { height: 520px !important; object-position: center 18%; }
  #carousel figure::after { background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 65%); }
  #carousel .caption { left: 6%; right: 6%; max-width: none; bottom: 7%; text-align: left; }
  #carousel .caption h2.display-1 { font-size: 1.8rem !important; }
  #carousel .caption-description p { max-width: none; }
}

/* ---------- Nav de categorías con icono (home) ---------- */
.patty-cat-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.patty-cat-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 130px;
  text-decoration: none;
  color: var(--patty-ink);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .3px;
  text-align: center;
}
.patty-cat-nav .patty-cat-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--patty-primary-light);
  transition: transform .2s ease;
}
.patty-cat-nav .patty-cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.patty-cat-nav a:hover .patty-cat-icon { transform: translateY(-3px); }

/* ---------- Grid editorial (estilo revista) ---------- */
.patty-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 380px;
  gap: 18px;
}
.patty-editorial-item {
  position: relative;
  display: block;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
}
.patty-editorial-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35) 100%);
}
.patty-editorial-caption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
}
.patty-editorial-caption h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  margin-bottom: 4px;
  color: #fff;
}
.patty-editorial-caption p { font-size: .82rem; margin-bottom: 10px; max-width: 240px; color: rgba(255,255,255,.9); }
.patty-editorial-caption .patty-btn-ghost {
  display: inline-block;
  border: 1px solid #fff;
  color: #fff !important;
  padding: 7px 18px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.patty-editorial-item:hover .patty-btn-ghost { background: #fff; color: var(--patty-ink) !important; }
@media (max-width: 767px) {
  .patty-editorial-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; }
}

/* ---------- Banners guía ---------- */
.patty-guides { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.patty-guide-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
  padding: 36px;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-decoration: none;
}
.patty-guide-card::before { content: ""; position: absolute; inset: 0; background: rgba(30,24,22,.5); }
.patty-guide-card .patty-guide-text { position: relative; z-index: 1; max-width: 320px; }
.patty-guide-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.patty-guide-card p { font-size: .88rem; margin-bottom: 18px; }
.patty-guide-card .patty-btn {
  display: inline-block;
  border: 1px solid #fff;
  color: #fff;
  padding: 9px 20px;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.patty-guide-card:hover .patty-btn { background: #fff; color: var(--patty-ink); }

/* ---------- Tiles de categoría ---------- */
.patty-category-tiles { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.patty-tiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.patty-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 220px;
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-position: center;
}
.patty-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.5) 100%); }
.patty-tile span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: 'Playfair Display', serif;
  letter-spacing: .3px;
  padding: 18px;
  font-size: 1.05rem;
}
@media (max-width: 900px) { .patty-tiles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .patty-tiles-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonios ---------- */
.patty-testimonials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.patty-testimonial-card { text-align: center; padding: 0 6px; }
.patty-testimonial-card .stars { color: var(--patty-accent-dark); margin-bottom: 14px; letter-spacing: 2px; font-size: .85rem; }
.patty-testimonial-card p.quote { font-size: .88rem; color: #55483f; font-style: italic; margin-bottom: 14px; min-height: 72px; line-height: 1.6; }
.patty-testimonial-card .author { font-weight: 600; color: var(--patty-ink); font-size: .8rem; letter-spacing: .5px; text-transform: uppercase; }
@media (max-width: 992px) { .patty-testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .patty-testimonials { grid-template-columns: 1fr; } }

/* ---------- Barra de confianza (minimalista, sin caja) ---------- */
.patty-reassurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 10px 0;
}
.patty-reassurance-item { text-align: center; }
.patty-reassurance-item img { max-height: 30px; margin-bottom: 14px; opacity: .8; }
.patty-reassurance-item .reassurance-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--patty-ink);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.patty-reassurance-item .reassurance-description-block { font-size: .82rem; color: var(--patty-muted); }
@media (max-width: 767px) { .patty-reassurance { grid-template-columns: 1fr; gap: 28px; } }

/* Widget nativo de blockreassurance (ficha de producto / carrito) */
.blockreassurance_product {
  background: var(--patty-primary-light);
  padding: 16px 18px;
  margin-top: 20px !important;
}
.blockreassurance_product > div { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.blockreassurance_product .item-product { float: none !important; width: 28px !important; height: 28px !important; padding-top: 0 !important; flex-shrink: 0; }
.blockreassurance_product .item-product img { width: 28px !important; height: 28px !important; }
.blockreassurance_product p.block-title, .blockreassurance_product span.block-title {
  font-weight: 600; color: var(--patty-ink) !important; line-height: 1.3 !important; margin: 0;
}
.blockreassurance_product p:not(.block-title) { font-size: .82rem; color: var(--patty-muted) !important; margin: 0; }

/* ---------- Marcas ---------- */
.patty-brands { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.patty-brands a {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid var(--patty-hairline);
  color: var(--patty-muted);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.patty-brands a:hover { border-color: var(--patty-ink); color: var(--patty-ink); }

/* ---------- Blog / consejos ---------- */
.patty-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.patty-blog-card { overflow: hidden; text-decoration: none; color: var(--patty-ink); display: block; }
.patty-blog-card img { width: 100%; height: 200px; object-fit: cover; }
.patty-blog-card .patty-blog-body { padding: 18px 2px; }
.patty-blog-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 8px; color: var(--patty-ink); }
.patty-blog-card p { font-size: .85rem; color: var(--patty-muted); margin-bottom: 0; }
@media (max-width: 992px) { .patty-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .patty-blog-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.patty-footer-newsletter-band { background: var(--patty-footer-bg); padding: 20px 0; }
#footer .block_newsletter, .footer-container .block_newsletter,
.patty-footer-newsletter-band .block_newsletter {
  background: #fff;
  border: 1px solid var(--patty-hairline);
  padding: 30px;
}
#footer #block-newsletter-label { font-family: 'Playfair Display', serif; font-weight: 500; color: var(--patty-ink); font-size: 1.1rem; }

/* ---------- Redes sociales en footer (dentro de la columna Contacto) ---------- */
#footer .ps-social-follow ul { display: flex; gap: 10px; list-style: none; padding: 0; margin: 16px 0 0; justify-content: flex-start; }
#footer .ps-social-follow li a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--patty-hairline); border-radius: 50%;
  color: var(--patty-ink) !important; transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
#footer .ps-social-follow li a:hover { border-color: var(--patty-ink); background-color: var(--patty-ink); color: #fff !important; }

/* ---------- Columnas de enlaces del footer ---------- */
.footer-container { padding-top: 44px; background-color: var(--patty-footer-bg); }
.patty-footer-columns { padding-bottom: 24px; }
.patty-footer-columns > div { margin-bottom: 28px; }
.footer-container .h3, .footer-container .h4,
.footer-container p.myaccount-title, .footer-container p.myaccount-title a,
.footer-container p.block-contact-title {
  font-family: 'Playfair Display', serif !important;
  color: var(--patty-ink) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  margin-bottom: 16px;
}
.footer-container .h3 a { color: inherit; }
.footer-container ul { list-style: none; padding: 0; margin: 0; }
.footer-container ul li a, .footer-container .col-md-3 p:not(.h3):not(.h4) {
  color: #6d5a56; font-size: .85rem; line-height: 2.1;
}
.footer-container address, .footer-container .block-contact p, .footer-container .block-contact li {
  color: #6d5a56; font-size: .85rem; line-height: 1.9; font-style: normal;
}
.patty-footer-contact-line { margin: 0 0 4px; }
.footer-container a[href^="mailto:"] { color: var(--patty-ink); overflow-wrap: break-word; }
.footer-container ul li a:hover { color: var(--patty-primary-dark); }
.footer-container .row:last-child { border-top: 1px solid var(--patty-hairline); padding-top: 16px; margin-top: 14px; }
.footer-container .row:last-child a { color: #6b5b52 !important; font-size: .78rem; }

.caption .patty-hero-cta {
  display: inline-block; margin-top: 14px; border: 1px solid var(--patty-ink); color: var(--patty-ink) !important;
  padding: 9px 20px; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px;
}

/* =========================================================
   Header
   ========================================================= */
.header-nav { background-color: var(--patty-footer-bg) !important; font-size: .76rem; }
#header .header-top { background-color: #ffffff !important; border-bottom: 1px solid var(--patty-hairline); padding: 18px 0 10px; }
.header-nav a, .header-nav i { color: var(--patty-ink) !important; }
#header .header-top a:not(.btn), #header .header-top i { color: var(--patty-ink) !important; }
#_desktop_logo img {
  max-height: 74px; height: 74px !important; width: 74px !important;
  object-fit: contain !important; flex-shrink: 0;
}
#search_widget input { border: 1px solid var(--patty-hairline) !important; border-radius: 0; }

/* Barra promocional superior: misma fila, alineación horizontal */
.patty-promo-bar .row > .hidden-sm-down { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.patty-promo-bar .col-md-6 { display: flex; align-items: center; height: 38px; flex: 0 0 auto; width: auto; }
.patty-promo-links { justify-content: flex-end; gap: 24px; }
.patty-promo-links a { color: var(--patty-ink) !important; font-size: .74rem; font-weight: 400; letter-spacing: .3px; }
.patty-promo-links a:hover { text-decoration: underline; }
.patty-promo-bar #contact-link { color: var(--patty-ink); font-size: .74rem; }
.patty-promo-bar #contact-link a { color: var(--patty-ink); font-weight: 600; text-decoration: none; }

/* Fila principal: logo + buscador + cita, todo en una línea */
.patty-header-main-row { align-items: center; display: flex; flex-wrap: nowrap; gap: 24px; }
.patty-header-actions-row { display: flex; justify-content: flex-end; align-items: center; gap: 24px; flex: 1 1 auto; }
.patty-header-actions-row #search_widget { flex: 0 1 320px; order: -1; margin-right: auto; }
.patty-header-actions-row #_desktop_user_info .user-info a,
.patty-header-actions-row #_desktop_cart .blockcart .header {
  display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: .82rem; letter-spacing: .3px;
}
.patty-header-actions-row .material-icons { font-size: 1.2rem; }
.patty-header-actions-row #_desktop_cart .cart-products-count {
  background: var(--patty-ink); color: #fff; border-radius: 10px; min-width: 20px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; padding: 0 4px;
}

/* Fila de búsqueda + menú de categorías */
.patty-header-search-nav { display: flex; flex-wrap: wrap; align-items: center; margin-top: 14px; }
#_desktop_top_menu .top-menu { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; }
#_desktop_top_menu .top-menu > li > a.dropdown-item {
  padding: 4px 0; font-size: .76rem !important; font-weight: 500 !important; letter-spacing: .8px;
  color: var(--patty-ink); text-transform: uppercase; font-family: 'Poppins', sans-serif !important;
  border-bottom: 1px solid transparent; transition: border-color .15s ease, color .15s ease;
}
#_desktop_top_menu .top-menu > li > a.dropdown-item:hover { color: var(--patty-primary-dark); border-bottom-color: var(--patty-accent-dark); }

/* ---------- Filtro móvil en páginas de categoría ---------- */
.patty-mobile-filter-toggle {
  display: flex; align-items: center; gap: 6px; width: 100%;
  background: #fff; border: 1px solid var(--patty-ink); color: var(--patty-ink);
  padding: 10px 14px; font-weight: 600; font-size: .82rem; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: .5px;
}
.patty-mobile-filter-toggle .patty-filter-chevron { margin-left: auto; transition: transform .2s ease; }
.patty-mobile-filter-toggle.is-open .patty-filter-chevron { transform: rotate(180deg); }
@media (max-width: 767px) {
  #left-column .patty-mobile-filters { display: none; }
  #left-column .patty-mobile-filters.patty-filters-open { display: block; margin-bottom: 20px; }
}

/* ---------- Formulario "olvidé mi contraseña" ---------- */
.forgotten-password .form-control-label {
  float: none !important; width: 100% !important; max-width: 100% !important;
  text-align: left !important; margin-bottom: 8px;
}
.forgotten-password .form-fields .email { float: none !important; width: 100% !important; max-width: 100% !important; }
.forgotten-password .center-email-fields { align-items: stretch; }

/* ---------- WhatsApp ---------- */
.patty-whatsapp-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 56px;
  height: 56px;
}
.patty-whatsapp-float {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2fe073, #22c35e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37,211,102,.45), 0 2px 6px rgba(0,0,0,.15);
  transition: transform .18s ease, box-shadow .18s ease;
  flex-shrink: 0;
}
.patty-whatsapp-float svg { position: relative; z-index: 1; }
.patty-whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(37,211,102,.55), 0 3px 8px rgba(0,0,0,.18);
}
.patty-whatsapp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: .55;
  animation: patty-wa-pulse 2.4s ease-out infinite;
}
@keyframes patty-wa-pulse {
  0% { transform: scale(1); opacity: .55; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
.patty-whatsapp-tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translate(6px, -50%);
  margin-right: 12px;
  background: var(--patty-ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.patty-whatsapp-wrap:hover .patty-whatsapp-tooltip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 767px) {
  .patty-whatsapp-wrap { right: 16px; bottom: 16px; }
  .patty-whatsapp-float { width: 52px; height: 52px; }
  .patty-whatsapp-tooltip { display: none; }
}

.patty-btn-whatsapp {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important;
  width: 100%;
  justify-content: center;
}
.patty-btn-whatsapp:hover { background: #1ebe5b !important; border-color: #1ebe5b !important; }
.patty-btn-whatsapp .material-icons { font-size: 1.2rem; }

/* Sprint 2: CTA de llamada + nota de plazos en ficha */
.patty-product-cta-group { display: flex; gap: 10px; }
.patty-product-cta-group .patty-btn-whatsapp { flex: 1 1 auto; }
.patty-btn-call {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff !important; border: 1px solid var(--patty-ink) !important; color: var(--patty-ink) !important;
  border-radius: 4px; padding: 0 16px; white-space: nowrap;
}
.patty-btn-call:hover { background: var(--patty-ink) !important; color: #fff !important; }
.patty-product-delivery-note { font-size: .8rem; color: #6b5f5c; margin-top: 10px; }
.patty-product-delivery-note a { color: inherit; text-decoration: underline; }

/* Sprint 2: barra sticky de WhatsApp en ficha (móvil) */
@media (max-width: 767px) {
  body.page-product { padding-bottom: 72px; }
  body.page-product .patty-whatsapp-wrap { display: none; }
  body.page-product .patty-product-sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    background: #fff; border-top: 1px solid var(--patty-hairline);
    padding: 10px 14px env(safe-area-inset-bottom, 10px);
    box-shadow: 0 -4px 14px rgba(0,0,0,.08);
  }
  body.page-product .patty-product-sticky-bar .patty-btn-whatsapp {
    display: flex !important; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px; font-weight: 600; border-radius: 6px;
  }
}
@media (min-width: 768px) {
  .patty-product-sticky-bar { display: none; }
}

/* Sprint 2: aviso honesto de modo escaparate + tienda en home */
.patty-catalog-note {
  background: var(--patty-cream, #f6efe9); text-align: center; padding: 10px 16px;
  font-size: .82rem; color: #6b5f5c; letter-spacing: .2px;
}

/* ---------- Cómo funciona (pasos) ---------- */
.patty-process-band { background: var(--patty-primary-light); padding: 12px 0; }
.patty-process-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  max-width: 900px; margin: 0 auto;
}
.patty-process-step { text-align: center; }
.patty-process-num {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: 0 auto 18px;
  border-radius: 50%; border: 1px solid var(--patty-primary-dark);
  font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 500;
  color: var(--patty-primary-dark); background: #fff;
}
.patty-process-step h3 {
  font-size: 1.05rem; font-weight: 500; margin-bottom: 8px; color: var(--patty-ink);
}
.patty-process-step p { color: var(--patty-muted); font-size: .88rem; line-height: 1.6; margin: 0; max-width: 240px; margin-inline: auto; }
@media (max-width: 767px) {
  .patty-process-steps { grid-template-columns: 1fr; gap: 32px; max-width: 320px; }
}

/* ---------- Visítanos en tienda ---------- */
.patty-visit-section .patty-section-head { margin-bottom: 32px; }
.patty-visit-block {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.patty-visit-map { border-radius: 4px; overflow: hidden; box-shadow: 0 8px 28px rgba(44,38,36,.1); }
.patty-visit-map iframe { width: 100%; height: 340px; border: 0; display: block; }
.patty-visit-info ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: .92rem; line-height: 1.5; }
.patty-visit-info ul li {
  display: flex; gap: 14px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid var(--patty-hairline);
}
.patty-visit-info ul li:first-child { padding-top: 0; }
.patty-visit-info ul li svg { flex-shrink: 0; color: var(--patty-primary-dark); margin-top: 1px; }
.patty-visit-info ul li span { color: var(--patty-ink); }
.patty-visit-info ul li a { font-weight: 600; }
@media (max-width: 767px) {
  .patty-visit-block { grid-template-columns: 1fr; gap: 28px; }
  .patty-visit-map iframe { height: 240px; }
}

/* Grid editorial de 3 columnas (home, tras retirar tile Outlet vacío) */
.patty-editorial-grid-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 420px; }
@media (max-width: 767px) {
  .patty-editorial-grid-3 { grid-template-columns: 1fr; grid-auto-rows: 320px; }
}

/* Footer WhatsApp CTA + página de contacto */
.patty-footer-whatsapp { text-align: center; padding: 14px 0; border-top: 1px solid var(--patty-hairline); margin-top: 10px; }
.patty-footer-whatsapp a { color: var(--patty-primary-dark) !important; font-weight: 600; text-decoration: none; }
.patty-footer-whatsapp a:hover { text-decoration: underline; }
.patty-contact-info { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.patty-contact-info ul { list-style: none; padding: 0; margin: 16px 0 24px; font-size: .95rem; line-height: 2; }

/* =========================================================
   Sprint 3: Accesibilidad
   ========================================================= */

/* Skip link */
.patty-skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--patty-ink); color: #fff !important; padding: 12px 20px;
  text-decoration: none; font-size: .85rem; font-weight: 600;
}
.patty-skip-link:focus { left: 8px; top: 8px; }

/* Foco visible global */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--patty-primary-dark) !important;
  outline-offset: 2px !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .patty-whatsapp-ring { animation: none !important; display: none !important; }
}

/* Contraste de overlays sobre imagen */
.patty-editorial-item::before { background: linear-gradient(180deg, rgba(0,0,0,.1) 40%, rgba(0,0,0,.62) 100%); }
.patty-editorial-caption h3, .patty-editorial-caption p { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.patty-guide-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 30%, rgba(0,0,0,.6) 100%); }
.patty-guide-card { position: relative; }
.patty-guide-text { position: relative; z-index: 1; }

/* Tamaños mínimos de fuente accesibles */
.product-flag, .on-sale, span.discount-percentage, span.discount-amount { font-size: .72rem !important; }
.btn, button, .patty-btn, .patty-btn-ghost { font-size: .8rem; }

/* Enlaces externos (WhatsApp) */
.patty-whatsapp-float, .patty-btn-whatsapp, .patty-footer-whatsapp a { position: relative; }

/* Hamburguesa / toggle de filtros como <button> accesible */
#menu-icon button.patty-menu-toggle-btn {
  background: none; border: 0; padding: 8px; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
}
.patty-mobile-filter-toggle { min-height: 44px; }

/* Estrellas de reseña con alternativa accesible */
.patty-testimonials .stars { color: var(--patty-accent-dark); }

/* Iconos sociales / carrito con área táctil mínima */
.footer-container .social-sharing a, #header .header-nav a { min-width: 24px; display: inline-flex; align-items: center; }

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

/* =========================================================
   Sprint 14: Móvil — ergonomía táctil
   ========================================================= */
a, button, .btn, input[type="submit"], .patty-btn-ghost { min-height: 44px; }
.patty-btn-ghost, .patty-btn { display: inline-flex; align-items: center; justify-content: center; }

/* Botón fantasma base (fuera de captions sobre imagen) */
.patty-btn-ghost {
  border: 1px solid var(--patty-ink);
  color: var(--patty-ink) !important;
  padding: 11px 26px;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.patty-btn-ghost:hover { background: var(--patty-ink); color: #fff !important; }
.patty-editorial-caption .patty-btn-ghost:hover { background: #fff; color: var(--patty-ink) !important; }
.patty-section-more { text-align: center; margin-top: 32px; }
input, select, textarea { font-size: 16px !important; }
.patty-whatsapp-wrap {
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
}
body.page-product .patty-product-sticky-bar {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
@media (max-width: 767px) {
  .footer-container .social-sharing a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  #header .header-nav a, #header .header-top a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* FAQ home */
.patty-faq { max-width: 760px; margin: 0 auto; }
.patty-faq-item { border-bottom: 1px solid var(--patty-hairline); padding: 16px 0; }
.patty-faq-item summary { cursor: pointer; font-weight: 500; font-family: 'Playfair Display', serif; font-size: 1.05rem; list-style: none; }
.patty-faq-item summary::-webkit-details-marker { display: none; }
.patty-faq-item summary::after { content: "+"; float: right; font-size: 1.2rem; }
.patty-faq-item[open] summary::after { content: "\2212"; }
.patty-faq-item p { margin-top: 10px; color: var(--patty-muted); font-size: .92rem; line-height: 1.6; }

/* =========================================================
   Sprint 10: Header sticky, CTA de cita, menú móvil limpio
   ========================================================= */
#header { position: sticky; top: 0; z-index: 1030; background: #fff; transition: box-shadow .2s ease; }
#header.patty-header-scrolled { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
#header.patty-header-scrolled .header-top { padding: 8px 0; }
#header.patty-header-scrolled #_desktop_logo img { max-height: 46px; transition: max-height .2s ease; }
#_desktop_logo img { transition: max-height .2s ease; }
@media (min-width: 768px) {
  #header.patty-header-scrolled .patty-promo-bar { max-height: 0; overflow: hidden; opacity: 0; }
}
.patty-promo-bar { max-height: 40px; transition: max-height .2s ease, opacity .2s ease; overflow: hidden; }

/* CTA "Reserva tu cita" sustituyendo Iniciar sesión */
.patty-header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--patty-ink) !important; font-weight: 600; font-size: .82rem;
}
.patty-header-cta:hover { color: var(--patty-primary-dark) !important; }

/* Estado activo del menú principal */
#_desktop_top_menu .category.active > a,
#_desktop_top_menu li.active > a { color: var(--patty-primary-dark) !important; font-weight: 600; }
#_desktop_top_menu li > a { position: relative; }
#_desktop_top_menu li.active > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--patty-primary-dark);
}

/* Teléfono en menú móvil */
.patty-mobile-menu-phone { display: block; padding: 10px 15px; font-weight: 600; color: var(--patty-ink); }

/* Botón volver arriba */
.patty-back-to-top {
  position: fixed; right: 20px; bottom: 90px; z-index: 1035;
  width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--patty-hairline);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.12);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.patty-back-to-top.is-visible { opacity: 1; pointer-events: auto; }
@media (max-width: 767px) { .patty-back-to-top { right: 16px; bottom: 84px; width: 36px; height: 36px; } }

/* Sprint 11: nombres de producto legibles (2 líneas máx, sin truncado agresivo) */
.product-miniature .product-title a {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35; min-height: 2.7em;
}

/* CTA WhatsApp en tarjeta de producto */
.patty-card-whatsapp {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  font-size: .74rem; font-weight: 600; color: #1a9e4f !important; text-decoration: none;
}
.patty-card-whatsapp:hover { text-decoration: underline; }

/* =========================================================
   Sprint 13: pulido visual — hover de tarjetas y grid editorial
   ========================================================= */
.product-miniature .thumbnail-container { transition: transform .25s ease, box-shadow .25s ease; }
.product-miniature:hover .thumbnail-container { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(44,38,36,.1); }
.product-miniature { opacity: 1; }
.patty-editorial-item { transition: filter .3s ease; }
.patty-editorial-item:hover { filter: brightness(1.06); }
.patty-guide-card, .patty-blog-card img { transition: transform .3s ease; }
.patty-blog-card:hover img { transform: scale(1.03); }
.patty-blog-card img { overflow: hidden; }
.patty-guide-card:hover { filter: brightness(1.04); }

@media (prefers-reduced-motion: reduce) {
  .product-miniature .thumbnail-container, .patty-blog-card img, .patty-guide-card { transition: none !important; }
}

/* El indicador de stock no es accionable en modo escaparate (sin compra online);
   los datos de talla/color son aleatorios y aún no reflejan inventario real. */
.product-flag.out_of_stock, .product-out-of-stock { display: none !important; }

/* Imagen de cabecera en páginas CMS (ej. Sobre nosotros) */
.patty-cms-hero { margin: 0 0 28px; }
.patty-cms-hero img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 2px; }
