/*
Theme Name: Villegas Theme
Theme URI: https://villegas.local
Description: Child theme for Twenty Twenty-Five with Refined Classical Broadsheet Editorial Design System (Cinzel + DM Serif Display + Plus Jakarta Sans).
Author: Antigravity & Villegas
Template: twentytwentyfive
Version: 4.0.0
*/

/* ==========================================================================
   REFINED CLASSICAL EDITORIAL FOUNDATIONS
   Warm Ivory Paper (#FAF9F6) + Pure Carbon Ink (#111111) + Elevated Editorial Shadows
   ========================================================================== */

:root {
  --wp--custom--measure--body: 68ch;
  --font-display: "Cinzel", Georgia, serif;
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Restrained, dignified palette */
  --villegas-paper: #FAF9F6;
  --villegas-white: #FFFFFF;
  --villegas-ink: #111111;
  --villegas-ink-secondary: #27272A;
  --villegas-ink-muted: #52525B;
  --villegas-ink-faint: #71717A;
  
  --villegas-border: rgba(228, 228, 231, 0.85); /* border-zinc-200/80 */
  --villegas-border-line: #D4D4D8; /* border-zinc-300 */
  --villegas-border-dark: #111111;

  /* Antique bronze / espresso accent gradient */
  --villegas-crimson: #5B4925;
  --villegas-crimson-hover: #3D2F15;
  --villegas-gradient-crimson: linear-gradient(135deg, #8C7A46 0%, #5B4925 48%, #2B1C10 100%);
  --villegas-gradient-bronze: linear-gradient(135deg, #8C7A46 0%, #5B4925 48%, #2B1C10 100%);

  /* Soft elevated luxury editorial shadows */
  --shadow-editorial: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  --shadow-editorial-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.14);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--villegas-paper);
  color: var(--villegas-ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Elegant minimal scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--villegas-paper);
}
::-webkit-scrollbar-thumb {
  background: #27272A;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: #18181B;
  color: #FFFFFF;
}

/* Header & Navbar Reset: ensure zero top margin / block-gap bleed */
#villegas-header,
#villegas-ticker,
#villegas-navbar {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

#villegas-header > *,
:where(.is-layout-flow) > #villegas-navbar,
:where(.wp-block-group) > #villegas-navbar {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

/* Navbar horizontal alignment: match exact grid content bounds */
#villegas-navbar {
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

#villegas-navbar-inner {
  max-width: 1240px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Hero section: strictly symmetrical padding top & bottom */
#villegas-bloque-video-noticias {
  background-color: #261E14 !important;
  background-image: url('../images/Nunork4.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding-top: 48px !important;
  padding-bottom: 48px !important;
  box-sizing: border-box !important;
}

/* Newsletter section: Nunork4.jpg background with balanced padding & zero bottom gap */
#villegas-bloque-newsletter {
  background-color: #261E14 !important;
  background-image: url('../images/Nunork4.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding-top: 64px !important;
  padding-bottom: 64px !important;
  margin-bottom: 0 !important;
  margin-block-end: 0 !important;
  box-sizing: border-box !important;
  border-top: 1px solid #D4D4D8;
}

/* Eliminate any white space / margin gap between main content and footer */
#villegas-main-content {
  margin-bottom: 0 !important;
  margin-block-end: 0 !important;
}

body .wp-site-blocks > footer.wp-block-template-part,
footer.wp-block-template-part,
.wp-block-template-part[class*="footer"],
#villegas-footer {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  background-color: #09090B !important;
}

/* Footer Navigation and Social Links */
.villegas-footer-link,
#villegas-footer-secciones-lista a {
  transition: color 0.18s ease, transform 0.18s ease;
}

.villegas-footer-link:hover,
#villegas-footer-secciones-lista a:hover {
  color: #FFFFFF !important;
}

.villegas-footer-link svg {
  transition: transform 0.18s ease, color 0.18s ease;
  color: #A1A1AA;
}

.villegas-footer-link:hover svg {
  color: #FFFFFF !important;
  transform: scale(1.1);
}

/* Sábados Culturales section: Blackout editorial with Santiago sunset backdrop */
#villegas-bloque-sabados-culturales {
  background-color: #09090B !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding-top: 64px !important;
  padding-bottom: 72px !important;
  box-sizing: border-box !important;
}

#villegas-hero-grid {
  display: flex !important;
  align-items: stretch !important;
}

#villegas-video-columna,
#villegas-despachos-columna {
  display: flex !important;
  flex-direction: column !important;
}

#villegas-video-card,
#villegas-despachos-card {
  flex: 1 1 auto !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   TYPOGRAPHY CLASSES
   ========================================================================== */

.font-display {
  font-family: var(--font-display) !important;
}

.font-serif {
  font-family: var(--font-serif) !important;
}

.font-sans {
  font-family: var(--font-sans) !important;
}

/* Classical double filete of newspapers */
.double-rule-top {
  border-top: 3px double var(--villegas-border-dark);
}

.double-rule-bottom {
  border-bottom: 3px double var(--villegas-border-dark);
}

/* Drop cap monumental Cinzel */
.drop-cap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.25rem;
  line-height: 0.8;
  padding-top: 6px;
  padding-right: 14px;
  padding-bottom: 4px;
  font-weight: 900;
  color: var(--villegas-ink);
}

/* Ticker marquee animation */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Soft monochromatic image filter */
.bw-editorial-img {
  filter: grayscale(100%) contrast(112%);
  transition: filter 0.5s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .bw-editorial-img {
  filter: grayscale(100%) contrast(125%);
  transform: scale(1.03);
}

/* Cards & shadows */
.card-editorial {
  background-color: #FFFFFF;
  border: 1px solid var(--villegas-border);
  border-radius: 16px;
  box-shadow: var(--shadow-editorial);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-editorial:hover {
  box-shadow: var(--shadow-editorial-hover);
}

/* Buttons & Navigation Pills */
.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  background-color: #09090B;
  color: #FFFFFF !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  border: 1px solid #09090B;
}

.btn-pill-dark:hover {
  background-color: #27272A;
  border-color: #27272A;
}

.btn-pill-crimson {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 20px;
  background: var(--villegas-gradient-crimson) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.btn-pill-crimson:hover {
  opacity: 0.90;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(43, 28, 16, 0.25) !important;
}

/* Gradient Crimson Text & Accents (OKLCH) */
.text-gradient-crimson,
.gradient-crimson-text,
[style*="color:var(--villegas-crimson)"],
[style*="color: var(--villegas-crimson)"] {
  background: var(--villegas-gradient-crimson) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block;
}

/* Gradient Crimson for dots, indicators & circular play badges */
[style*="background-color:var(--villegas-crimson)"],
[style*="background-color: var(--villegas-crimson)"],
[style*="background-color:rgba(138, 28, 20"] {
  background: var(--villegas-gradient-crimson) !important;
}

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  background-color: transparent;
  color: #52525B !important;
  text-decoration: none !important;
  border: 1px solid #D4D4D8;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-pill-outline:hover {
  background-color: rgba(228, 228, 231, 0.7);
  color: #09090B !important;
  border-color: #09090B;
}

.nav-pill {
  display: inline-block;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.nav-pill.active {
  background-color: #09090B;
  color: #FFFFFF !important;
}

.nav-pill:not(.active) {
  background-color: transparent;
  color: #52525B !important;
}

.nav-pill:not(.active):hover {
  background-color: rgba(228, 228, 231, 0.7);
  color: #09090B !important;
}

/* ==========================================================================
   LAYOUT CONSTRAINTS & YOUTUBE PLAYER
   ========================================================================== */

.wp-block-columns.alignwide,
.wp-block-group.alignwide {
  max-width: 1240px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 782px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) {
    flex-wrap: nowrap !important;
  }
}

.playlist-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background-color: #000000;
}

.playlist-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ==========================================================================
   HEADER USER AVATAR & DROPDOWN MENU
   ========================================================================== */

.villegas-user-dropdown-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.villegas-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  outline: none;
}

.villegas-user-trigger:hover,
.villegas-user-trigger[aria-expanded="true"] {
  background-color: #F4F4F5;
  border-color: #E4E4E7;
}

.villegas-user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1.5px solid #D4D4D8;
  background: linear-gradient(135deg, #8C7A46 0%, #5B4925 50%, #111111 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.villegas-user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.villegas-user-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.villegas-user-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #09090B;
  letter-spacing: -0.01em;
}

.villegas-user-chevron {
  color: #71717A;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
}

.villegas-user-trigger:hover .villegas-user-chevron,
.villegas-user-trigger[aria-expanded="true"] .villegas-user-chevron {
  color: #09090B;
}

.villegas-user-trigger[aria-expanded="true"] .villegas-user-chevron {
  transform: rotate(180deg);
}

/* User Menu Dropdown */
.villegas-user-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 290px;
  background: #FFFFFF;
  border: 1px solid rgba(228, 228, 231, 0.95);
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.03);
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
  pointer-events: none;
}

.villegas-user-menu-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.villegas-user-dropdown-accent {
  height: 3px;
  background: var(--villegas-gradient-crimson);
  width: 100%;
}

.villegas-user-dropdown-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #FAF9F6;
  border-bottom: 1px solid #F4F4F5;
}

.villegas-user-dropdown-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #8C7A46;
  background: linear-gradient(135deg, #8C7A46 0%, #5B4925 50%, #111111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.villegas-user-dropdown-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.villegas-user-dropdown-info {
  flex: 1;
  min-width: 0;
}

.villegas-user-dropdown-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #09090B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.villegas-user-dropdown-email {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #71717A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.villegas-user-dropdown-badge {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5B4925;
  background-color: rgba(140, 122, 70, 0.12);
  padding: 2px 7px;
  border-radius: 9999px;
}

.villegas-user-dropdown-divider {
  height: 1px;
  background-color: #F4F4F5;
  margin: 0;
}

.villegas-user-dropdown-links {
  padding: 8px 6px;
}

.villegas-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #27272A !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.villegas-user-dropdown-item svg {
  color: #71717A;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.villegas-user-dropdown-item:hover {
  background-color: #FAF9F6;
  color: #09090B !important;
}

.villegas-user-dropdown-item:hover svg {
  color: #5B4925;
}

.villegas-user-dropdown-admin-item {
  margin-top: 4px;
  background-color: #FEFDFB;
  border: 1px dashed #D4D4D8;
  color: #09090B !important;
}

.villegas-user-dropdown-admin-item svg {
  color: #5B4925;
}

.villegas-user-dropdown-admin-item:hover {
  background-color: #FAF9F6;
  border-color: #5B4925;
}

.villegas-user-dropdown-admin-pill {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  background: #09090B;
  color: #F4E8C1;
  border-radius: 4px;
}

.villegas-user-dropdown-footer {
  padding: 8px 6px;
  background-color: #FFFFFF;
}

.villegas-user-dropdown-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #71717A !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.villegas-user-dropdown-logout svg {
  color: #71717A;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.villegas-user-dropdown-logout:hover {
  background-color: #FEF2F2;
  color: #DC2626 !important;
}

.villegas-user-dropdown-logout:hover svg {
  color: #DC2626;
}

/* ==========================================================================
   MI CUENTA: FULL NAVBAR WIDTH ALIGNMENT (1240px)
   ========================================================================== */

/* Scoped strictly to WooCommerce account page: no global main padding */
.woocommerce-account .villegas-myaccount-container,
.villegas-myaccount-container {
  max-width: 1240px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.woocommerce-account .entry-content > *,
.woocommerce-account :where(.wp-block-post-content) > * {
  max-width: 1240px !important;
}

/* Hero Header Banner */
.villegas-account-hero {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto 24px auto !important;
  padding: 24px 32px !important;
  border-top: 3px double var(--villegas-border-dark) !important;
  background-color: #FFFFFF !important;
  border-radius: 16px !important;
  border: 1px solid var(--villegas-border) !important;
  box-shadow: var(--shadow-editorial) !important;
  box-sizing: border-box !important;
}

.villegas-account-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.villegas-account-hero-user {
  display: flex;
  align-items: center;
  gap: 20px;
}

.villegas-account-avatar-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #8C7A46;
  background: linear-gradient(135deg, #8C7A46 0%, #5B4925 50%, #111111 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.villegas-account-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.villegas-account-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.villegas-account-badge {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5B4925;
  margin-bottom: 3px;
}

.villegas-account-title {
  font-family: var(--font-serif) !important;
  font-size: 1.7rem !important;
  line-height: 1.2 !important;
  color: #09090B !important;
  margin: 0 !important;
}

.villegas-account-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #71717A;
  margin: 4px 0 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.villegas-account-email {
  font-weight: 600;
  color: #27272A;
}

.villegas-account-dot {
  color: #D4D4D8;
}

.villegas-account-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Two-column Layout: Sidebar 240px + Main Area */
.villegas-account-layout {
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .villegas-account-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Sidebar Navigation */
.villegas-account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
}

.villegas-account-nav {
  background-color: #FFFFFF;
  border: 1px solid var(--villegas-border);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-editorial);
}

.villegas-account-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.villegas-account-nav-item {
  margin: 0 !important;
  padding: 0 !important;
}

.villegas-account-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #52525B !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.villegas-account-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #71717A;
  transition: color 0.15s ease;
}

.villegas-account-nav-label {
  flex: 1;
}

.villegas-account-nav-arrow {
  opacity: 0.25;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.villegas-account-nav-link:hover {
  background-color: #FAF9F6;
  color: #09090B !important;
}

.villegas-account-nav-link:hover .villegas-account-nav-icon {
  color: #5B4925;
}

.villegas-account-nav-link:hover .villegas-account-nav-arrow {
  opacity: 0.7;
  transform: translateX(2px);
}

/* Active Nav Item */
.villegas-account-nav-item.is-active .villegas-account-nav-link {
  background-color: #09090B;
  color: #FFFFFF !important;
}

.villegas-account-nav-item.is-active .villegas-account-nav-icon {
  color: #8C7A46;
}

.villegas-account-nav-item.is-active .villegas-account-nav-arrow {
  opacity: 1;
  color: #FFFFFF;
}

/* Sidebar Help Box */
.villegas-account-help-box {
  background-color: #FFFFFF;
  border: 1px solid var(--villegas-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-editorial);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.villegas-account-help-icon {
  color: #5B4925;
  flex-shrink: 0;
  margin-top: 2px;
}

.villegas-account-help-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #09090B;
  margin: 0 0 4px 0;
}

.villegas-account-help-text {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #71717A;
  line-height: 1.45;
  margin: 0 0 8px 0;
}

.villegas-account-help-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: #09090B !important;
  text-decoration: underline !important;
}

/* Main Content Area */
.villegas-account-main {
  background-color: #FFFFFF !important;
  border: 1px solid var(--villegas-border) !important;
  border-radius: 16px !important;
  padding: 32px 36px !important;
  box-shadow: var(--shadow-editorial) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* Force WooCommerce MyAccount content to span 100% of panel width (neutralize default float:right; width:68%) */
.woocommerce-account .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  clear: both !important;
}

.woocommerce-account .woocommerce-MyAccount-content > * {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.villegas-dashboard-content,
.villegas-orders-container,
.villegas-downloads-container,
.villegas-addresses-container,
.villegas-edit-account-container,
.villegas-view-order-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .villegas-account-main {
    padding: 20px 16px !important;
  }
}

/* Endpoint Headers */
.villegas-endpoint-header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #F4F4F5;
}

.villegas-endpoint-badge {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5B4925;
  margin-bottom: 4px;
}

.villegas-endpoint-title {
  font-family: var(--font-serif) !important;
  font-size: 1.65rem !important;
  color: #09090B !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.2 !important;
}

.villegas-endpoint-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #71717A;
  margin: 0;
  line-height: 1.45;
}

.villegas-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #71717A !important;
  text-decoration: none !important;
  margin-bottom: 12px;
  transition: color 0.15s ease;
}

.villegas-back-link:hover {
  color: #09090B !important;
}

/* ==========================================================================
   ORDERS TABLE & LIST (HIGHLY OPTIMIZED & LEGIBLE)
   ========================================================================== */

.villegas-orders-table-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid #D4D4D8;
  border-radius: 14px;
  overflow-x: auto;
  background-color: #FFFFFF;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.villegas-orders-table {
  width: 100% !important;
  min-width: 100% !important;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 13.5px;
  table-layout: auto;
}

.villegas-orders-table thead {
  background-color: #FAF9F6;
  border-bottom: 2px solid #09090B;
}

.villegas-orders-table th {
  padding: 15px 20px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #52525B;
  text-align: left;
  white-space: nowrap;
}

.villegas-order-row {
  border-bottom: 1px solid #E4E4E7;
  transition: background-color 0.15s ease;
}

.villegas-order-row:last-child {
  border-bottom: none;
}

.villegas-order-row:hover {
  background-color: #FAF9F6;
}

.villegas-orders-table td {
  padding: 18px 20px;
  vertical-align: middle;
  color: #18181B;
}

/* Column Specifics */
.villegas-td-order {
  white-space: nowrap;
}

.villegas-order-num-badge {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #09090B !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.villegas-order-hash {
  color: #8C7A46;
  margin-right: 2px;
  font-weight: 700;
}

.villegas-order-num-badge:hover {
  color: #5B4925 !important;
  text-decoration: underline !important;
}

.villegas-td-date {
  white-space: nowrap;
}

.villegas-date-text {
  font-size: 13.5px;
  color: #27272A;
  font-weight: 600;
  white-space: nowrap;
}

.villegas-td-status {
  white-space: nowrap;
}

.villegas-td-total {
  white-space: nowrap;
}

.villegas-total-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.villegas-order-total-price {
  font-size: 15px;
  font-weight: 700;
  color: #09090B;
  white-space: nowrap;
}

.villegas-order-item-count {
  font-size: 11.5px;
  color: #71717A;
  white-space: nowrap;
  font-weight: 500;
}

.villegas-td-actions {
  white-space: nowrap;
  text-align: right;
}

/* Status Badges */
.villegas-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.villegas-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-completed {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.status-completed .villegas-status-dot {
  background-color: #059669;
}

.status-processing {
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}
.status-processing .villegas-status-dot {
  background-color: #D97706;
}

.status-warning {
  background-color: #F4F4F5;
  color: #3F3F46;
  border: 1px solid #E4E4E7;
}
.status-warning .villegas-status-dot {
  background-color: #71717A;
}

.status-danger {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
.status-danger .villegas-status-dot {
  background-color: #DC2626;
}

/* Empty State */
.villegas-empty-state {
  text-align: center;
  padding: 48px 24px;
  background-color: #FAF9F6;
  border-radius: 14px;
  border: 1px solid #E4E4E7;
}

.villegas-empty-icon {
  color: #8C7A46;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.villegas-empty-title {
  font-family: var(--font-serif) !important;
  font-size: 1.4rem !important;
  color: #09090B !important;
  margin: 0 0 8px 0 !important;
}

.villegas-empty-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #71717A;
  max-width: 440px;
  margin: 0 auto 24px auto;
  line-height: 1.5;
}

/* Dashboard Specifics */
.villegas-dashboard-welcome-banner {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F4F4F5;
}

.villegas-dashboard-welcome-badge {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5B4925;
  margin-bottom: 4px;
}

.villegas-dashboard-welcome-title {
  font-family: var(--font-serif) !important;
  font-size: 1.65rem !important;
  color: #09090B !important;
  margin: 0 0 6px 0 !important;
}

.villegas-dashboard-welcome-text {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: #52525B;
  line-height: 1.6;
  margin: 0;
  max-width: 100% !important;
  width: 100% !important;
}

/* Dashboard 4 Action Cards Grid */
.villegas-dashboard-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 28px !important;
}

@media (max-width: 720px) {
  .villegas-dashboard-grid {
    grid-template-columns: 1fr !important;
  }
}

.villegas-dash-card {
  background-color: #FAF9F6;
  border: 1px solid #E4E4E7;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.villegas-dash-card:hover {
  background-color: #FFFFFF;
  border-color: #D4D4D8;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.villegas-dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.villegas-dash-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #FFFFFF;
  border: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #09090B;
}

.villegas-dash-card-count {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #09090B;
}

.villegas-dash-card-pill {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #52525B;
  background-color: #FFFFFF;
  border: 1px solid #E4E4E7;
  padding: 3px 10px;
  border-radius: 9999px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.villegas-dash-card-title {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  color: #09090B;
  margin: 0 0 4px 0;
}

.villegas-dash-card-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #71717A;
  margin: 0 0 12px 0;
  line-height: 1.45;
  flex: 1;
}

.villegas-dash-card-action {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: #5B4925;
  transition: color 0.15s ease;
}

.villegas-dash-card:hover .villegas-dash-card-action {
  color: #2B1C10;
}

/* Dashboard Store Promo Banner */
.villegas-dashboard-promo-banner {
  background-color: #09090B;
  color: #FFFFFF;
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.villegas-dashboard-promo-text {
  flex: 1;
  min-width: 260px;
}

.villegas-dashboard-promo-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8C7A46;
  display: block;
  margin-bottom: 4px;
}

.villegas-dashboard-promo-title {
  font-family: var(--font-serif) !important;
  font-size: 1.3rem !important;
  color: #FFFFFF !important;
  margin: 0 0 4px 0 !important;
}

.villegas-dashboard-promo-desc {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: #A1A1AA;
  margin: 0;
  line-height: 1.45;
}

/* Addresses Grid */
.villegas-addresses-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 720px) {
  .villegas-addresses-grid {
    grid-template-columns: 1fr !important;
  }
}

.villegas-address-card {
  padding: 22px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #E4E4E7;
  background-color: #FAF9F6;
}

.villegas-address-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E4E4E7;
}

.villegas-address-card-icon {
  color: #5B4925;
  flex-shrink: 0;
}

.villegas-address-card-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #09090B;
  margin: 0;
}

.villegas-address-body {
  flex: 1;
  margin-bottom: 18px;
}

.villegas-address-text {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #3F3F46;
  line-height: 1.55;
}

.villegas-address-empty {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: #71717A;
  line-height: 1.45;
  margin: 0;
}

/* Downloads Grid */
.villegas-downloads-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.villegas-download-card {
  padding: 18px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #E4E4E7;
  background-color: #FAF9F6;
  flex-wrap: wrap;
}

.villegas-download-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: #FFFFFF;
  border: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5B4925;
  flex-shrink: 0;
}

.villegas-download-info {
  flex: 1;
  min-width: 220px;
}

.villegas-download-name {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 3px 0;
}

.villegas-download-name a {
  color: #09090B !important;
  text-decoration: none !important;
}

.villegas-download-name a:hover {
  text-decoration: underline !important;
}

.villegas-download-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #71717A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.villegas-download-dot {
  color: #D4D4D8;
}

/* Profile Preview Card */
.villegas-profile-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background-color: #FAF9F6;
  border: 1px solid #E4E4E7;
  border-radius: 14px;
  margin-bottom: 24px;
}

.villegas-profile-preview-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #8C7A46;
  background: linear-gradient(135deg, #8C7A46 0%, #5B4925 50%, #111111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.villegas-profile-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.villegas-profile-preview-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #09090B;
  margin: 0 0 2px 0;
}

.villegas-profile-preview-note {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #71717A;
  margin: 0;
  line-height: 1.45;
}

/* Forms & Inputs */
.villegas-form-field {
  margin-bottom: 16px;
}

.villegas-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: #18181B;
  margin-bottom: 6px;
}

.villegas-required {
  color: #DC2626;
}

.villegas-input-hint {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  color: #71717A;
  margin-top: 5px;
}

.villegas-input,
.villegas-address-form input.input-text,
.villegas-address-form select,
.woocommerce-form-login input.input-text,
.woocommerce-form-register input.input-text,
.woocommerce-EditAccountForm input.input-text {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #D4D4D8;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: #09090B;
  background-color: #FFFFFF;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.villegas-input:focus,
.villegas-address-form input.input-text:focus,
.villegas-address-form select:focus,
.woocommerce-form-login input.input-text:focus,
.woocommerce-form-register input.input-text:focus,
.woocommerce-EditAccountForm input.input-text:focus {
  outline: none;
  border-color: #5B4925;
  box-shadow: 0 0 0 3px rgba(91, 73, 37, 0.12);
}

.villegas-two-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .villegas-two-cols {
    grid-template-columns: 1fr;
  }
}

.villegas-password-fieldset {
  border: 1px solid #E4E4E7;
  border-radius: 14px;
  padding: 22px;
  margin: 28px 0 20px 0;
  background-color: #FAF9F6;
}

.villegas-password-legend {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #09090B;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
}

.villegas-password-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #71717A;
  margin: 0 0 16px 0;
}

/* Order Details / View Order */
.villegas-order-notes-box {
  background-color: #FAF9F6;
  border: 1px solid #E4E4E7;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}

.villegas-order-notes-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #09090B;
  margin: 0 0 12px 0;
}

.villegas-order-notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.villegas-order-note-item {
  border-bottom: 1px solid #E4E4E7;
  padding-bottom: 10px;
}

.villegas-order-note-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.villegas-order-note-time {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #71717A;
  display: block;
  margin-bottom: 3px;
}

.villegas-order-note-content {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #27272A;
}

.woocommerce-order-details {
  margin-top: 24px;
}

.woocommerce-order-details__title {
  font-family: var(--font-serif) !important;
  font-size: 1.45rem !important;
  color: #09090B !important;
  margin-bottom: 14px !important;
}

.woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #E4E4E7;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.woocommerce-table--order-details thead {
  background-color: #FAF9F6;
  border-bottom: 2px solid #09090B;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  border-bottom: 1px solid #F4F4F5;
}

.woocommerce-table--order-details tfoot th {
  font-weight: 700;
  text-align: right;
  background-color: #FAF9F6;
}

.woocommerce-table--order-details tfoot td {
  font-weight: 700;
  background-color: #FAF9F6;
}

.woocommerce-customer-details {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 680px) {
  .woocommerce-customer-details {
    grid-template-columns: 1fr;
  }
}

.woocommerce-customer-details address {
  background-color: #FAF9F6;
  border: 1px solid #E4E4E7;
  border-radius: 12px;
  padding: 18px;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
}

/* Logged Out / Auth Page */
.villegas-auth-page-container {
  max-width: 880px;
  margin: 0 auto;
}

.villegas-auth-page-header {
  text-align: center;
  margin-bottom: 28px;
}

.villegas-auth-page-title {
  font-family: var(--font-serif) !important;
  font-size: 2rem !important;
  color: #09090B !important;
  margin: 6px 0 8px 0 !important;
}

.villegas-auth-page-subtitle {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: #71717A;
  margin: 0 auto;
  max-width: 500px;
}

.villegas-google-access-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 18px;
  margin-bottom: 24px;
  background-color: #FFFFFF;
}

.villegas-google-access-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: #FAF9F6;
  border: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.villegas-google-access-text {
  flex: 1;
}

.villegas-google-access-text h4 {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: #09090B;
  margin: 0 0 2px 0;
}

.villegas-google-access-text p {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #71717A;
  margin: 0;
}

.villegas-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
}

.villegas-auth-divider::before,
.villegas-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #D4D4D8;
}

.villegas-auth-divider span {
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717A;
}

.villegas-auth-cards-grid {
  display: grid;
  gap: 24px;
}

.villegas-auth-cards-grid.has-register {
  grid-template-columns: repeat(2, 1fr);
}

.villegas-auth-cards-grid.only-login {
  grid-template-columns: 1fr;
  max-width: 460px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .villegas-auth-cards-grid.has-register {
    grid-template-columns: 1fr;
  }
}

.villegas-auth-card {
  padding: 28px;
}

.villegas-auth-card-title {
  font-family: var(--font-serif) !important;
  font-size: 1.45rem !important;
  color: #09090B !important;
  margin: 0 0 6px 0 !important;
}

.villegas-auth-card-desc {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: #71717A;
  margin: 0 0 18px 0;
  line-height: 1.45;
}

.villegas-forgot-link {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #5B4925 !important;
  text-decoration: underline !important;
}

.villegas-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #52525B;
  cursor: pointer;
}

/* Compact Editorial Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
  padding: 12px 18px 12px 42px !important;
  font-family: var(--font-sans) !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  margin-bottom: 20px !important;
  position: relative !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.woocommerce-message {
  background-color: #ECFDF5 !important;
  color: #065F46 !important;
  border: 1px solid #A7F3D0 !important;
  border-left: 4px solid #059669 !important;
}

.woocommerce-info {
  background-color: #FAF9F6 !important;
  color: #27272A !important;
  border: 1px solid #E4E4E7 !important;
  border-left: 4px solid #8C7A46 !important;
}

.woocommerce-error {
  background-color: #FEF2F2 !important;
  color: #991B1B !important;
  border: 1px solid #FECACA !important;
  border-left: 4px solid #DC2626 !important;
  list-style: none !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  top: 13px !important;
  left: 16px !important;
}


/* WooCommerce Block Notice Banner (Email verification, etc.) */
.wc-block-components-notice-banner {
  border-radius: 10px !important;
  padding: 12px 18px !important;
  font-family: var(--font-sans) !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  box-sizing: border-box !important;
}

.wc-block-components-notice-banner.is-info {
  background-color: #FAF9F6 !important;
  color: #27272A !important;
  border: 1px solid #E4E4E7 !important;
  border-left: 4px solid #8C7A46 !important;
}

.wc-block-components-notice-banner svg {
  fill: #8C7A46 !important;
  flex-shrink: 0 !important;
  width: 20px !important;
  height: 20px !important;
}

.wc-block-components-notice-banner__content {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.wc-block-components-notice-banner a.button {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  background-color: #09090B !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  border: none !important;
  margin: 0 !important;
}


/* ==========================================================================
   COMMERCE & CONTACT: SHOP, CART, CHECKOUT & CONTACTO
   Background: Nunork4.jpg + Warm Ivory Paper wash (#FAF9F6)
   ========================================================================== */

/* Universal Background Texture on Contact Page only */
#villegas-contact-page,
.villegas-contacto-page,
body.page-id-528016 #villegas-main-content,
body:has(#villegas-contact-container) #villegas-main-content {
  background-color: #261E14 !important;
  background-image: url('../images/Nunork4.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* ==========================================================================
   TIENDA, CARRITO & FINALIZAR COMPRA
   Diseño Unificado Editorial:
   1. Hero Banner arriba con imagen de fondo (Nunork4.jpg) y letras blancas.
   2. Abajo contenido sobre fondo blanco limpio (#FFFFFF), sin fondos oscuros ni borrosos.
   ========================================================================== */

#villegas-tienda-page,
#villegas-cart-page,
#villegas-order-page,
body.woocommerce-shop #villegas-main-content,
body.woocommerce-cart #villegas-main-content,
body.post-type-archive-product #villegas-main-content,
body.tax-product_cat #villegas-main-content {
  background-image: none !important;
  background-color: #FFFFFF !important;
}

#villegas-checkout-page,
#villegas-checkout-body,
body.woocommerce-checkout #villegas-main-content {
  background-image: none !important;
  background-color: var(--villegas-paper, #FAF9F6) !important;
  margin-top: 0 !important;
}

/* Hero Banners: Image Background + Crisp White Typography */
#villegas-tienda-hero,
#villegas-cart-hero,
#villegas-checkout-hero,
#villegas-order-hero {
  background-color: #261E14 !important;
  background-image: url('../images/Nunork4.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding-top: 36px !important;
  padding-bottom: 24px !important;
}

#villegas-tienda-hero h1,
#villegas-cart-hero h1,
#villegas-checkout-hero h1,
#villegas-order-hero h1 {
  color: #FFFFFF !important;
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

#villegas-tienda-hero p,
#villegas-cart-hero p,
#villegas-checkout-hero p,
#villegas-order-hero p {
  color: #F4F4F5 !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

#villegas-tienda-hero .villegas-kicker,
#villegas-cart-hero .villegas-kicker,
#villegas-checkout-hero .villegas-kicker,
#villegas-order-hero .villegas-kicker {
  color: #E5D3B3 !important;
  background: none !important;
  -webkit-text-fill-color: #E5D3B3 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

#villegas-tienda-hero div[style*="text-transform:uppercase"],
#villegas-cart-hero div[style*="text-transform:uppercase"],
#villegas-checkout-hero div[style*="text-transform:uppercase"] {
  color: #FFFFFF !important;
}

#villegas-tienda-hero h1 {
  color: #FFFFFF !important;
  font-family: var(--font-serif, serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

#villegas-tienda-hero p {
  color: #F4F4F5 !important;
  font-family: var(--font-sans, sans-serif) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

#villegas-tienda-hero .villegas-kicker,
#villegas-tienda-hero span[style*="color:var(--villegas-crimson)"] {
  color: #E5D3B3 !important;
  background: none !important;
  -webkit-text-fill-color: #E5D3B3 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

#villegas-tienda-hero div[style*="text-transform:uppercase"] {
  color: #FFFFFF !important;
}

#villegas-tienda-hero div[style*="color:#A1A1AA"] {
  color: #D4D4D8 !important;
}

#villegas-tienda-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Banner Search & Order By (White typography, translucent dark container) */
.villegas-hero-search-form input[type="search"] {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 6px !important;
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  padding: 7px 32px 7px 12px !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.villegas-hero-search-form input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.75) !important;
}

.villegas-hero-search-form input[type="search"]:focus {
  border-color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.25) !important;
}

#villegas-tienda-hero .wc-block-catalog-sorting,
#villegas-tienda-hero .woocommerce-ordering {
  margin: 0 !important;
  display: inline-block !important;
}

#villegas-tienda-hero .wc-block-catalog-sorting select,
#villegas-tienda-hero .woocommerce-ordering select {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 6px !important;
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 7px 30px 7px 12px !important;
  cursor: pointer !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
}

#villegas-tienda-hero .wc-block-catalog-sorting select option,
#villegas-tienda-hero .woocommerce-ordering select option {
  background-color: #18181B !important;
  color: #FFFFFF !important;
}

/* Tienda Catalog Grid: Pure White Area (Lifted closer to banner) */
#villegas-tienda-catalog {
  background-color: #FFFFFF !important;
  background-image: none !important;
  padding-top: 20px !important;
  padding-bottom: 60px !important;
}

#villegas-tienda-catalog .wc-block-breadcrumbs,
#villegas-tienda-catalog .woocommerce-breadcrumb {
  color: #71717A !important;
}

#villegas-tienda-catalog .wc-block-breadcrumbs a,
#villegas-tienda-catalog .woocommerce-breadcrumb a {
  color: #18181B !important;
}

/* ==========================================================================
   PRODUCT GRID & CLEAN EDITORIAL BOOK CARDS (NO ENCLOSING BORDER)
   ========================================================================== */

.wc-block-product-template,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 32px 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 40px 0 !important;
}

/* Remove enclosing border, box shadow, and card background */
.wc-block-product-template li.wc-block-product,
ul.products li.product {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 6px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  box-shadow: none !important;
  transition: transform 0.25s ease !important;
  position: relative !important;
  overflow: visible !important;
  height: auto !important;
  box-sizing: border-box !important;
}

.wc-block-product-template li.wc-block-product:hover,
ul.products li.product:hover {
  transform: translateY(-4px) !important;
  border: none !important;
  box-shadow: none !important;
}

/* Book Cover Presentation */
.wc-block-components-product-image,
ul.products li.product img,
.wc-block-product-template li.wc-block-product img {
  border-radius: 6px !important;
  overflow: hidden !important;
  margin: 0 auto 10px auto !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  display: block !important;
  max-height: 250px !important;
  width: auto !important;
  object-fit: contain !important;
}

.wc-block-product:hover .wc-block-components-product-image img,
ul.products li.product:hover img {
  transform: scale(1.02) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2) !important;
}

/* Product Titles (Compact) */
.wc-block-product .wp-block-post-title,
.wc-block-product .wp-block-post-title a,
.wc-block-components-product-title,
.wc-block-components-product-title a,
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #09090B !important;
  text-decoration: none !important;
  margin: 4px 0 2px 0 !important;
  text-align: center !important;
  transition: color 0.2s ease !important;
}

.wc-block-product .wp-block-post-title a:hover,
.wc-block-components-product-title a:hover,
ul.products li.product .woocommerce-loop-product__title:hover {
  color: var(--villegas-crimson) !important;
}

/* Product Author (Sans-Serif, Smaller Font, Compact Spacing) */
.villegas-product-author {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #71717A !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-align: center !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.25 !important;
}

/* Product Price (Compact) */
.wc-block-components-product-price,
ul.products li.product .price {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #09090B !important;
  text-align: center !important;
  margin: 0 0 10px 0 !important;
  display: block !important;
  line-height: 1.2 !important;
}

/* Buy / Add to Cart Button */
.wc-block-components-product-button,
ul.products li.product .button {
  margin-top: auto !important;
  width: 100% !important;
  max-width: 130px !important;
}

.wc-block-components-product-button button,
.wc-block-components-product-button .wp-block-button__link,
.wc-block-components-product-button a,
ul.products li.product .button,
ul.products li.product a.add_to_cart_button {
  background: #111111 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 4px !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0.03em !important;
  padding: 0 16px !important;
  height: 32px !important;
  line-height: 32px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
  cursor: pointer !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 130px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  outline: none !important;
  text-decoration: none !important;
}

.wc-block-components-product-button button:hover,
.wc-block-components-product-button .wp-block-button__link:hover,
.wc-block-components-product-button a:hover,
ul.products li.product .button:hover,
ul.products li.product a.add_to_cart_button:hover {
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
  background: #27272A !important;
  color: #FFFFFF !important;
}

/* Stepper Bar */
#villegas-cart-stepper,
#villegas-checkout-stepper,
#villegas-order-stepper {
  font-family: var(--font-sans, sans-serif) !important;
}

/* Breadcrumbs */
.wc-block-breadcrumbs,
.woocommerce-breadcrumb {
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 12px !important;
  color: #71717A !important;
  margin-bottom: 20px !important;
}

.wc-block-breadcrumbs a,
.woocommerce-breadcrumb a {
  color: #52525B !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.wc-block-breadcrumbs a:hover,
.woocommerce-breadcrumb a:hover {
  color: var(--villegas-crimson) !important;
}

/* Toolbar: Sorting & Count */
#villegas-tienda-toolbar {
  border-bottom: 1px solid #E4E4E7 !important;
  padding-bottom: 16px !important;
  margin-bottom: 36px !important;
}

.wc-block-product-results-count p,
.woocommerce-result-count {
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 13px !important;
  color: #52525B !important;
  margin: 0 !important;
}

.wc-block-catalog-sorting select,
.woocommerce-ordering select {
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #18181B !important;
  background-color: #FFFFFF !important;
  border: 1px solid #D4D4D8 !important;
  border-radius: 6px !important;
  padding: 8px 18px !important;
  cursor: pointer !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.wc-block-catalog-sorting select:focus,
.woocommerce-ordering select:focus {
  border-color: var(--villegas-crimson) !important;
  box-shadow: 0 0 0 3px rgba(138, 28, 20, 0.12) !important;
}

/* Sale Badge */
.wc-block-components-product-sale-badge,
ul.products li.product .onsale {
  background: var(--villegas-gradient-crimson, linear-gradient(135deg, #8A1C14 0%, #B91C1C 100%)) !important;
  color: #FFFFFF !important;
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-radius: 6px !important;
  padding: 4px 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
}

/* Pagination */
.wp-block-query-pagination,
nav.woocommerce-pagination {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 40px !important;
  margin-bottom: 20px !important;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span,
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  border: 1px solid #E4E4E7 !important;
  background-color: #FFFFFF !important;
  color: #27272A !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.wp-block-query-pagination span.current,
nav.woocommerce-pagination ul li span.current {
  background-color: #09090B !important;
  color: #FFFFFF !important;
  border-color: #09090B !important;
}

.wp-block-query-pagination a:hover,
nav.woocommerce-pagination ul li a:hover {
  border-color: var(--villegas-crimson) !important;
  color: var(--villegas-crimson) !important;
}

/* ==========================================================================
   CART PAGE STYLING
   ========================================================================== */

.wp-block-woocommerce-cart {
  font-family: var(--font-sans, sans-serif) !important;
}

/* Cart Items Card */
.wc-block-cart-items,
.woocommerce-cart-form__contents {
  background-color: #FFFFFF !important;
  border: 1px solid #E4E4E7 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

.wc-block-cart-items__header th,
.woocommerce-cart-form th {
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: #71717A !important;
  border-bottom: 1px solid #E4E4E7 !important;
  padding-bottom: 14px !important;
}

/* Product names in cart */
.wc-block-components-product-name,
.woocommerce-cart-form .product-name a {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 1.18rem !important;
  font-weight: 700 !important;
  color: #09090B !important;
  text-decoration: none !important;
}

.wc-block-components-product-name:hover,
.woocommerce-cart-form .product-name a:hover {
  color: var(--villegas-crimson) !important;
}

/* Cart Item Image */
.wc-block-cart-item__image img,
.woocommerce-cart-form .product-thumbnail img {
  border-radius: 6px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
}

/* Cart Totals & Order Summary */
.wc-block-cart__sidebar,
.cart-collaterals .cart_totals {
  background-color: #FFFFFF !important;
  border: 1px solid #E4E4E7 !important;
  border-radius: 12px !important;
  padding: 28px 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

.wc-block-cart__totals-title,
.cart-collaterals .cart_totals h2 {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #09090B !important;
  border-bottom: 1px solid #E4E4E7 !important;
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.wc-block-components-totals-item {
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 13.5px !important;
  color: #52525B !important;
  padding: 8px 0 !important;
}

.wc-block-components-totals-item--total {
  border-top: 1px solid #E4E4E7 !important;
  padding-top: 14px !important;
  margin-top: 14px !important;
}

.wc-block-components-totals-item--total .wc-block-components-totals-item__value {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #09090B !important;
}

/* Proceed to Checkout CTA */
.wc-block-cart__submit-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: linear-gradient(135deg, #8C7A46 0%, #5B4925 48%, #2B1C10 100%) !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 14px 28px !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(43, 28, 16, 0.25) !important;
  transition: all 0.25s ease !important;
  width: 100% !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  margin-top: 20px !important;
  box-sizing: border-box !important;
}

.wc-block-cart__submit-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(43, 28, 16, 0.35) !important;
  opacity: 0.95 !important;
}

/* Empty Cart State */
.wc-block-cart__empty-cart-wrapper,
.woocommerce-info:has(.return-to-shop) {
  background-color: #FFFFFF !important;
  border: 1px solid #E4E4E7 !important;
  border-radius: 12px !important;
  padding: 48px 32px !important;
  text-align: center !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

/* ==========================================================================
   CHECKOUT PAGE STYLING (ORDEN & TIPOGRAFÍA EDITORIAL)
   ========================================================================== */

.wp-block-woocommerce-checkout {
  font-family: var(--font-sans, sans-serif) !important;
}

/* Checkout Step Cards (Left Column) */
.wc-block-components-checkout-step,
.wc-block-checkout__form--with-step-numbers .wc-block-components-checkout-step--with-step-number {
  background-color: #FFFFFF !important;
  border: 1px solid #E4E4E7 !important;
  border-radius: 12px !important;
  padding: 24px 28px !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

.wc-block-checkout__main > div:empty,
.wc-block-checkout__main .wp-block-woocommerce-checkout-express-payment-block:empty,
.wc-block-checkout__main .wc-block-checkout__contact-fields,
.wc-block-checkout__main .wp-block-woocommerce-checkout-contact-information-block,
.wc-block-checkout__main .wp-block-woocommerce-checkout-shipping-method-block:empty,
.wc-block-checkout__main .wp-block-woocommerce-checkout-pickup-options-block:empty,
.wc-block-checkout__main .wc-block-components-notices:empty,
.wc-block-checkout__main .wc-block-components-notices__snackbar:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wc-block-checkout__main > .wc-block-components-checkout-step:first-of-type,
.wc-block-checkout__shipping-fields {
  margin-top: 0 !important;
}

.wc-block-components-checkout-step__heading-container {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
}

.wc-block-components-checkout-step__heading {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

.wc-block-components-checkout-step__title {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  color: #09090B !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-transform: none !important;
}

/* Reducir espacio entre el título y el primer campo del formulario de dirección */
.wc-block-components-checkout-step__content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.wc-block-components-address-form {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.wc-block-components-address-form__first_name,
.wc-block-components-address-form__last_name,
.wc-block-components-address-form > .wc-block-components-text-input:first-child,
.wc-block-components-address-form > div:first-child {
  margin-top: 6px !important;
}

/* ==========================================================================
   CHECKOUT FORM INPUTS & FLOATING LABELS (AMPLIO ESPACIADO Y SIN COLISIONES)
   ========================================================================== */

/* Contenedor del Input */
.wc-block-components-text-input,
.wc-block-components-select {
  position: relative !important;
  margin-top: 18px !important;
  margin-bottom: 6px !important;
}

/* Input Fields con altura generosa y padding-top adecuado */
.wc-block-components-text-input input,
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  background-color: #FFFFFF !important;
  border: 1px solid #D4D4D8 !important;
  border-radius: 6px !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14.5px !important;
  color: #18181B !important;
  height: 56px !important;
  line-height: 20px !important;
  padding: 24px 14px 6px 14px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* Floating Label cuando está inactivo / placeholder (SOLO sin foco y sin valor) */
.wc-block-components-text-input label {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #71717A !important;
  pointer-events: none !important;
  transition: all 0.15s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  z-index: 2 !important;
  line-height: 1 !important;
}

/* Floating Label ACTIVO: cuando el campo tiene valor, tiene foco, o tiene clase is-active / has-value */
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input.has-value label,
.wc-block-components-text-input:focus-within label,
.wc-block-components-text-input:has(input:focus) label,
.wc-block-components-text-input:has(input:not([value=""])) label,
.wc-block-components-text-input:has(input:-webkit-autofill) label,
.wc-block-components-text-input input:focus + label,
.wc-block-components-text-input input:not(:placeholder-shown) + label {
  top: 7px !important;
  left: 14px !important;
  transform: none !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #71717A !important;
  letter-spacing: 0.02em !important;
  line-height: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wc-block-components-text-input input:focus {
  border-color: #8C7A46 !important;
  box-shadow: 0 0 0 3px rgba(140, 122, 70, 0.15) !important;
  outline: none !important;
}

.wc-block-components-text-input:focus-within label {
  color: #8C7A46 !important;
}

/* Selector Desplegable (Select) */
.wc-block-components-select select,
.woocommerce form .form-row select {
  background-color: #FFFFFF !important;
  border: 1px solid #D4D4D8 !important;
  border-radius: 6px !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14px !important;
  color: #18181B !important;
  height: 56px !important;
  padding: 20px 14px 6px 14px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.wc-block-components-select label {
  position: absolute !important;
  top: 9px !important;
  left: 14px !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #71717A !important;
  margin: 0 !important;
  z-index: 1 !important;
  line-height: 1 !important;
}

/* Tarjeta de Dirección Guardada (Preview limpio con excelente interlineado) */
.wc-block-components-address-card {
  background: #FAFAFA !important;
  border: 1px solid #E4E4E7 !important;
  border-radius: 8px !important;
  padding: 16px 20px !important;
  margin-top: 14px !important;
}

.wc-block-components-address-card address {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14px !important;
  color: #27272A !important;
  line-height: 1.65 !important;
  font-style: normal !important;
}

.wc-block-components-address-card__address-section--primary {
  font-weight: 600 !important;
  color: #09090B !important;
  display: block !important;
  margin-bottom: 2px !important;
}

.wc-block-components-address-card__address-section--secondary {
  color: #52525B !important;
  display: block !important;
}

/* ==========================================================================
   OPCIONES DE PAGO Y DESPACHO (RADIO BUTTONS SIN TRASLAPE NI DOBLE BORDE)
   ========================================================================== */

/* Quitar completamente el borde wrapper exterior y separadores de WooCommerce Blocks */
.wc-block-components-radio-control:before,
.wc-block-components-radio-control:after,
.wc-block-components-radio-control--highlight-checked:before,
.wc-block-components-radio-control--highlight-checked:after,
.wc-block-components-radio-control-accordion-option:before,
.wc-block-components-radio-control-accordion-option:after,
.wc-block-checkout__payment-method .wc-block-components-radio-control:after,
.wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked:after,
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:after,
.wc-block-checkout__payment-method .wc-block-components-radio-control__option:after {
  display: none !important;
  content: none !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  width: 0 !important;
  height: 0 !important;
}

.wc-block-components-radio-control {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.wc-block-components-radio-control-accordion-option {
  position: relative !important;
  border: 1.5px solid #E4E4E7 !important;
  border-radius: 8px !important;
  margin-bottom: 10px !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background-color: #FFFFFF !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
}

.wc-block-components-radio-control-accordion-option:hover {
  border-color: #C7BA99 !important;
}

.wc-block-components-radio-control-accordion-option:has(input:checked),
.wc-block-components-radio-control-accordion-option.wc-block-components-radio-control-accordion-option--checked-option-highlighted {
  border-color: #8C7A46 !important;
  background-color: #FAF8F4 !important;
  box-shadow: 0 2px 8px rgba(140, 122, 70, 0.12) !important;
}

/* Fila interactiva principal (Label) */
.wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option,
.wc-block-components-radio-control__option {
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 52px !important;
  height: 52px !important;
  padding: 0 16px !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* Input Radio: Estático dentro del flex, punto central definido al marcar */
.wc-block-components-radio-control-accordion-option input[type="radio"],
.wc-block-components-radio-control__option input[type="radio"],
.wc-block-components-radio-control__input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  border-radius: 50% !important;
  border: 2px solid #D4D4D8 !important;
  background-color: #FFFFFF !important;
  box-shadow: none !important;
  cursor: pointer !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.wc-block-components-radio-control-accordion-option input[type="radio"]:hover,
.wc-block-components-radio-control__option input[type="radio"]:hover,
.wc-block-components-radio-control__input:hover {
  border-color: #8C7A46 !important;
}

/* Radio button cuando está MARCADO: punto central dorado definido y aro dorado */
.wc-block-components-radio-control-accordion-option input[type="radio"]:checked,
.wc-block-components-radio-control__option input[type="radio"]:checked,
.wc-block-components-radio-control__input:checked {
  border: 2px solid #8C7A46 !important;
  background-color: #8C7A46 !important;
  box-shadow: inset 0 0 0 3px #FFFFFF !important;
}

/* Eliminar pseudo-elementos errantes de WooCommerce Blocks */
.wc-block-components-radio-control__input:before,
.wc-block-components-radio-control__input:after,
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked:before,
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked:after {
  display: none !important;
  content: none !important;
}

/* Control de altura de logos e iconos */
.wc-block-checkout__payment-method img,
.wc-block-components-radio-control img {
  height: 20px !important;
  max-height: 20px !important;
  width: auto !important;
  max-width: 65px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

/* Grupo de etiqueta de pago */
.wc-block-components-radio-control__option-layout {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Texto de la opción de pago (Transferencia Bancaria Directa / Webpay Plus) */
.wc-block-components-radio-control__label-group,
.wc-block-components-radio-control__label,
.wc-block-components-payment-method-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #09090B !important;
  line-height: 1.4 !important;
}

/* Contenido del Accordion (Descripción de la cuenta bancaria / instrucciones) */
.wc-block-components-radio-control-accordion-content {
  padding: 10px 16px 14px 46px !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  color: #52525B !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  background-color: transparent !important;
}

/* ==========================================================================
   CHECKOUT SIDEBAR / ORDER SUMMARY (ORDEN LIMPIO & TIPOGRAFÍA AJUSTADA)
   ========================================================================== */

/* Checkout & Tienda Full Width Layout — Edge-to-Edge Hero & Navbar, Centered Content */
#villegas-checkout-page,
#villegas-tienda-page,
#villegas-cart-page,
#villegas-order-page {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#villegas-checkout-hero,
#villegas-tienda-hero,
#villegas-cart-hero,
#villegas-order-hero {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#villegas-checkout-hero {
  margin-bottom: 0 !important;
}

#villegas-checkout-body {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background-color: var(--villegas-paper, #FAF9F6) !important;
  padding-top: 24px !important;
  padding-bottom: 60px !important;
}

#villegas-tienda-catalog {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#villegas-checkout-container,
#villegas-checkout-hero > div,
#villegas-tienda-hero > div,
#villegas-cart-hero > div,
body.woocommerce-checkout .entry-content,
body.page-id-22 .entry-content,
body.woocommerce-checkout .wp-block-post-content,
body.page-id-22 .wp-block-post-content,
.entry-content:has(.wp-block-woocommerce-checkout),
.wp-block-post-content:has(.wp-block-woocommerce-checkout),
.wp-block-woocommerce-checkout {
  max-width: 1240px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Ocultar bloque duplicado de Información de Contacto (está en el Banner Hero) */
.wp-block-woocommerce-checkout-contact-information-block,
.wc-block-checkout__contact-fields,
.wc-block-checkout-contact-information-block {
  display: none !important;
}

/* Ocultar barra flotante de carrito en la página de Checkout y Carrito */
#villegas-checkout-page ~ #villegas-floating-cart-bar,
body.woocommerce-checkout #villegas-floating-cart-bar,
body.page-id-22 #villegas-floating-cart-bar,
body.woocommerce-cart #villegas-floating-cart-bar,
body.page-id-21 #villegas-floating-cart-bar,
#villegas-cart-page ~ #villegas-floating-cart-bar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ocultar País, Ciudad, Código Postal y Selector Nativo de Comuna (reemplazado por predictivo Shipit) */
.wc-block-components-address-form__country,
.wc-block-components-country-input,
#shipping-country,
#billing-country,
.wc-block-components-address-form__postcode,
.wc-block-components-address-form__city,
#shipping-postcode,
#billing-postcode,
#shipping-city,
#billing-city,
.wc-block-components-address-form__state,
.wc-block-components-state-input,
.wc-block-components-address-form__address_1 {
  display: none !important;
}

/* Ocultar acciones nativas del cuerpo izquierdo para usar el botón integrado en el sidebar */
.wc-block-checkout__main .wc-block-checkout__actions,
.wc-block-checkout__main .wc-block-checkout-actions-block {
  display: none !important;
}

/* Ocultar sección de "Opciones de envío" del cuerpo (Shipit calcula y asigna automáticamente por Comuna) */
.wp-block-woocommerce-checkout-shipping-methods-block,
.wc-block-checkout__shipping-option,
.wc-block-checkout__shipping-methods,
.wc-block-components-checkout-step:has(.wc-block-components-shipping-rates-control) {
  display: none !important;
}

/* Sidebar: Fila de Envío Shipit Ultra-Compacta (Label "Envío", Precio, Courier y Fecha) */
.wc-block-components-totals-shipping .wc-block-components-totals-item {
  align-items: flex-start !important;
}

.wc-block-components-totals-shipping .wc-block-components-totals-item__label {
  font-weight: 500 !important;
  color: #3F3F46 !important;
}

.wc-block-components-totals-shipping .wc-block-components-totals-item__value {
  font-weight: 600 !important;
  color: #18181B !important;
  white-space: nowrap !important;
}

.villegas-shipit-sidebar-info {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
  color: #71717A !important;
  margin-top: 2px !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
}

.villegas-shipit-sidebar-info .villegas-shipit-courier {
  font-weight: 600 !important;
  color: #27272A !important;
}

.villegas-shipit-sidebar-info .villegas-shipit-dot {
  color: #A1A1AA !important;
  font-size: 10px !important;
}

.villegas-shipit-sidebar-info .villegas-shipit-date {
  color: #52525B !important;
}

.villegas-shipit-sidebar-info .villegas-shipit-badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: #15803D !important;
  background: #DCFCE7 !important;
  padding: 0 4px !important;
  border-radius: 3px !important;
  margin-left: 2px !important;
  letter-spacing: 0.02em !important;
}

/* Estilos para el botón integrado de Finalizar Compra en el sidebar */
.villegas-sidebar-actions {
  margin-top: 22px !important;
  padding-top: 16px !important;
  border-top: 1px solid #E4E4E7 !important;
  width: 100% !important;
}

.villegas-sidebar-place-order-btn {
  width: 100% !important;
  height: 52px !important;
  background: linear-gradient(135deg, #8C7A46 0%, #5B4925 48%, #2B1C10 100%) !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  border: none !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 16px rgba(43, 28, 16, 0.25) !important;
  transition: all 0.2s ease !important;
}

.villegas-sidebar-place-order-btn:hover {
  box-shadow: 0 6px 20px rgba(43, 28, 16, 0.4) !important;
  transform: translateY(-1px) !important;
}

.villegas-sidebar-place-order-btn:disabled,
.villegas-sidebar-place-order-btn.is-loading {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.villegas-sidebar-guarantee {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-top: 10px !important;
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 11.5px !important;
  color: #71717A !important;
}

/* Fila Dividida de Dirección: Nombre Calle (75%) y Número (25%) */
.villegas-street-split-row {
  display: flex !important;
  gap: 14px !important;
  width: 100% !important;
  margin-top: 18px !important;
  margin-bottom: 6px !important;
  box-sizing: border-box !important;
}

.villegas-street-name-wrap {
  flex: 1 1 70% !important;
  margin: 0 !important;
}

.villegas-street-number-wrap {
  flex: 0 0 130px !important;
  min-width: 100px !important;
  margin: 0 !important;
}

/* Mensajes de Validación y Asistencia en inputs de Dirección */
.villegas-input-helper-msg {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #B45309 !important; /* Ámbar de advertencia amigable */
  line-height: 1.35 !important;
  margin-top: 6px !important;
  display: none;
  transition: all 0.2s ease !important;
}

.villegas-input-helper-msg.is-visible {
  display: block !important;
}

.wc-block-components-text-input.has-warning input {
  border-color: #F59E0B !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15) !important;
}

/* ==========================================================================
   AUTOSUGGESTION DE COMUNAS (SHIPIT COBERTURA CHILE)
   ========================================================================== */

.villegas-comuna-autocomplete-wrap {
  position: relative !important;
  margin-top: 18px !important;
  margin-bottom: 6px !important;
}

.villegas-comuna-search-icon {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #A1A1AA !important;
  pointer-events: none !important;
}

.villegas-comuna-dropdown {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  background-color: #FFFFFF !important;
  border: 1px solid #E4E4E7 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
  z-index: 9999 !important;
  overflow: hidden !important;
  animation: villegasFadeDown 0.15s ease-out !important;
}

@keyframes villegasFadeDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.villegas-comuna-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 44px !important;
  padding: 0 16px !important;
  cursor: pointer !important;
  border-bottom: 1px solid #F4F4F5 !important;
  transition: background-color 0.15s ease !important;
  box-sizing: border-box !important;
}

.villegas-comuna-item:last-child {
  border-bottom: none !important;
}

.villegas-comuna-item:hover,
.villegas-comuna-item.is-highlighted {
  background-color: #F8F8F7 !important;
}

.villegas-comuna-item-name {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #18181B !important;
  line-height: 1 !important;
}

.villegas-comuna-item-name strong {
  color: #8C7A46 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.villegas-comuna-item-sub {
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 11px !important;
  color: #71717A !important;
}

.villegas-comuna-item-badge {
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #15803D !important;
  background-color: #DCFCE7 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  letter-spacing: 0.02em !important;
}

/* ==========================================================================
   MODERN TOGGLE SWITCH: DIRECCIÓN DE FACTURACIÓN VS DESPACHO
   ========================================================================== */

.wc-block-checkout__use-address-for-billing {
  background-color: #FAF9F6 !important;
  border: 1px solid #E4E4E7 !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  margin: 18px 0 16px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.wc-block-checkout__use-address-for-billing:hover {
  border-color: #D4D4D8 !important;
  background-color: #F4F4F5 !important;
}

.wc-block-checkout__use-address-for-billing label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin: 0 !important;
  cursor: pointer !important;
  gap: 16px !important;
}

/* Contenido de texto a la izquierda */
.wc-block-checkout__use-address-for-billing .wc-block-components-checkbox__label {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #18181B !important;
  order: 1 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

/* Subtítulo aclaratorio sobre Shipit */
.villegas-billing-switch-subtext {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #71717A !important;
  line-height: 1.35 !important;
}

/* Toggle Switch Track & Slider a la derecha */
.wc-block-checkout__use-address-for-billing input[type="checkbox"] {
  order: 2 !important;
  position: relative !important;
  width: 46px !important;
  height: 26px !important;
  min-width: 46px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: #D4D4D8 !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  outline: none !important;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.wc-block-checkout__use-address-for-billing input[type="checkbox"]:checked {
  background-color: #8C7A46 !important;
  border-color: #726233 !important;
}

/* Knob deslizante del Switch */
.wc-block-checkout__use-address-for-billing input[type="checkbox"]::after {
  content: "" !important;
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28) !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wc-block-checkout__use-address-for-billing input[type="checkbox"]:checked::after {
  transform: translateX(20px) !important;
}

/* Ocultar checkmark svg nativo de WooCommerce */
.wc-block-checkout__use-address-for-billing .wc-block-components-checkbox__mark {
  display: none !important;
}

/* Badges y notas de diferenciación clara entre Despacho y Facturación */
.villegas-shipping-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 8px !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #15803D !important;
  background-color: #F0FDF4 !important;
  border: 1px solid #BBF7D0 !important;
  border-radius: 4px !important;
  letter-spacing: 0.02em !important;
  margin-left: 8px !important;
  vertical-align: middle !important;
}

.villegas-billing-helper-text {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 12.5px !important;
  color: #52525B !important;
  line-height: 1.4 !important;
  margin-top: 2px !important;
  margin-bottom: 12px !important;
}

/* Contenedor del Sidebar de Totales (Marco exterior único y limpio) */
.wc-block-checkout__sidebar {
  background-color: #FFFFFF !important;
  border: 1px solid #E4E4E7 !important;
  border-radius: 12px !important;
  padding: 24px 28px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  margin-top: 0 !important;
}

/* ELIMINAR TODOS LOS BORDES INTERNOS / CAJAS ANIDADAS DENTRO DEL PANEL */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block .checkout-order-summary-block-fill,
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title,
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__content,
.wc-block-checkout__sidebar .wc-block-components-panel,
.wc-block-checkout__sidebar .wc-block-components-panel__content,
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-totals-block,
.wc-block-checkout__main .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-checkout__main .wp-block-woocommerce-checkout-order-summary-totals-block {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Alineación at the top para Resumen del Pedido */
.wc-block-checkout__sidebar > div:first-child,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-totals-block {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title,
.wc-block-components-checkout-order-summary__title {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  cursor: default !important;
}

.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title-icon,
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title-price {
  display: none !important;
}

/* Título de Resumen del pedido unificado en size y weight con Dirección de envío y Medio de pago */
.wc-block-checkout__totals-title,
.wc-block-components-order-summary__title,
.wc-block-components-checkout-order-summary__title,
.wc-block-components-checkout-order-summary__title-text,
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title-text {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.25 !important;
  color: #09090B !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: none !important;
}

/* Order Summary Items List */
.wc-block-components-order-summary-item {
  padding: 14px 0 !important;
  border-bottom: 1px solid #F4F4F5 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.wc-block-components-order-summary-item:last-child {
  border-bottom: none !important;
}

/* Product Thumbnail with badge */
.wc-block-components-order-summary-item__image {
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  height: 52px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 6px !important;
  position: relative !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
}

.wc-block-components-order-summary-item__image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.wc-block-components-order-summary-item__image img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  display: block !important;
}

.wc-block-components-order-summary-item__quantity,
.wc-block-components-order-summary-item__quantity-badge {
  background-color: #09090B !important;
  color: #FFFFFF !important;
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  min-width: 20px !important;
  height: 20px !important;
  line-height: 20px !important;
  padding: 0 5px !important;
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  transform: none !important;
  z-index: 2 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wc-block-components-order-summary-item__quantity span {
  color: #FFFFFF !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* Product Details in line item */
.wc-block-components-order-summary-item__description {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

/* Clean, readable product name in summary */
.wc-block-components-order-summary-item__title,
.wc-block-components-order-summary-item .wc-block-components-product-name {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: #09090B !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  display: block !important;
}

/* Hide duplicate descriptions / excerpts inside order summary */
.wc-block-components-order-summary-item .wc-block-components-product-metadata,
.wc-block-components-order-summary-item .wc-block-components-product-metadata__description,
.wc-block-components-order-summary-item__individual-prices {
  display: none !important;
}

/* Product line item price on the right */
.wc-block-components-order-summary-item__price,
.wc-block-components-order-summary-item .price {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: #09090B !important;
  margin-left: auto !important;
  white-space: nowrap !important;
  text-align: right !important;
  flex-shrink: 0 !important;
}

/* Totals Breakdown */
.wc-block-components-totals-coupon {
  font-size: 13px !important;
  padding: 10px 0 !important;
  border-top: 1px solid #F4F4F5 !important;
}

.wc-block-components-totals-item {
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 13.5px !important;
  color: #52525B !important;
  padding: 6px 0 !important;
}

.wc-block-components-totals-item--subtotal .wc-block-components-totals-item__value {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #09090B !important;
}

.wc-block-components-totals-item--total {
  border-top: 1px solid #E4E4E7 !important;
  padding-top: 14px !important;
  margin-top: 12px !important;
}

.wc-block-components-totals-item--total .wc-block-components-totals-item__label {
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #09090B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.wc-block-components-totals-item--total .wc-block-components-totals-item__value {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: #09090B !important;
}

/* Place Order CTA Button */
.wc-block-components-checkout-place-order-button,
#place_order {
  background: linear-gradient(135deg, #8C7A46 0%, #5B4925 48%, #2B1C10 100%) !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 14px 28px !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(43, 28, 16, 0.25) !important;
  transition: all 0.25s ease !important;
  width: 100% !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  margin-top: 20px !important;
  box-sizing: border-box !important;
}

.wc-block-components-checkout-place-order-button:hover,
#place_order:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(43, 28, 16, 0.35) !important;
  opacity: 0.95 !important;
}

.wc-block-checkout__sidebar .wc-block-checkout__actions {
  margin-top: 20px !important;
  padding-top: 16px !important;
  border-top: 1px solid #E4E4E7 !important;
  width: 100% !important;
}

/* ==========================================================================
   CHECKOUT 60/40 PROPORTIONS (FORMULARIO 60% / SIDEBAR 40%)
   Alineación milimétrica con el Banner Hero (x = 96px en 1440px)
   ========================================================================== */

.wp-block-woocommerce-checkout,
.wp-block-woocommerce-checkout.wc-block-checkout {
  display: block !important;
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

@media (min-width: 961px) {
  .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    column-gap: 36px !important;
    gap: 36px !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Formulario de Envío (60% - reducción de ancho para balance visual y alineación con hero) */
  .wc-block-components-sidebar-layout .wc-block-components-main,
  .wc-block-checkout__main {
    flex: 0 0 calc(58% - 18px) !important;
    width: calc(58% - 18px) !important;
    max-width: calc(58% - 18px) !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box !important;
  }

  /* Sidebar Ensanchado (40% - espacio óptimo para Totales, Pago compacto y Botón) */
  .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  .wc-block-checkout__sidebar {
    flex: 0 0 calc(42% - 18px) !important;
    width: calc(42% - 18px) !important;
    max-width: calc(42% - 18px) !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 90px !important;
  }
}

@media (max-width: 960px) {
  .wc-block-components-sidebar-layout {
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
  }

  .wc-block-components-sidebar-layout .wc-block-components-main,
  .wc-block-checkout__main,
  .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  .wc-block-checkout__sidebar {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   OPCIONES DE PAGO DENTRO DEL SIDEBAR (ULTRA-COMPACTO & ELEGANTE)
   ========================================================================== */

/* Contenedor del Bloque de Pago en el Sidebar */
.wc-block-checkout__sidebar .wc-block-checkout__payment-method,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-payment-block,
.villegas-payment-in-sidebar {
  margin-top: 20px !important;
  padding-top: 18px !important;
  border-top: 1px solid #E4E4E7 !important;
  margin-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

/* Quitar líneas y pseudo-elementos de pasos de checkout */
.wc-block-checkout__sidebar .wc-block-components-checkout-step--with-step-number,
.wc-block-checkout__sidebar .wc-block-components-checkout-step {
  padding-left: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.wc-block-checkout__sidebar .wc-block-components-checkout-step__title:before,
.wc-block-checkout__sidebar .wc-block-components-checkout-step__content:before,
.wc-block-checkout__sidebar .wc-block-components-checkout-step__description:before {
  display: none !important;
  content: "" !important;
}

/* Título de Medio de Pago en el Sidebar unificado en size y weight */
.wc-block-checkout__sidebar .wc-block-components-checkout-step__heading-container,
.wc-block-checkout__sidebar .wc-block-components-checkout-step__heading,
.villegas-payment-in-sidebar .wc-block-components-checkout-step__heading-container,
.villegas-payment-in-sidebar .wc-block-components-checkout-step__heading {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  padding: 0 !important;
}

.wc-block-checkout__sidebar .wc-block-components-checkout-step__title,
.villegas-payment-in-sidebar .wc-block-components-checkout-step__title,
.wc-block-checkout__payment-method .wc-block-components-checkout-step__title {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: -0.015em !important;
  line-height: 1.25 !important;
  color: #09090B !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Eliminar completamente el borde wrapper exterior de WooCommerce y separadores */
.wc-block-checkout__sidebar .wc-block-components-radio-control:before,
.wc-block-checkout__sidebar .wc-block-components-radio-control:after,
.wc-block-checkout__sidebar .wc-block-components-radio-control--highlight-checked:before,
.wc-block-checkout__sidebar .wc-block-components-radio-control--highlight-checked:after,
.wc-block-checkout__sidebar .wc-block-components-radio-control-accordion-option:before,
.wc-block-checkout__sidebar .wc-block-components-radio-control-accordion-option:after,
.wc-block-checkout__sidebar .wc-block-components-radio-control__option:after {
  display: none !important;
  content: none !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  width: 0 !important;
  height: 0 !important;
}

.wc-block-checkout__sidebar .wc-block-components-radio-control {
  margin-bottom: 4px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Tarjetas individuales de cada opción de pago: medidas uniformes e idénticas */
.wc-block-checkout__sidebar .wc-block-components-radio-control-accordion-option {
  border: 1.5px solid #E4E4E7 !important;
  border-radius: 8px !important;
  margin-bottom: 10px !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.wc-block-checkout__sidebar .wc-block-components-radio-control-accordion-option:hover {
  border-color: #C7BA99 !important;
}

/* Opción seleccionada / activa: fondo suave y borde dorado distintivo */
.wc-block-checkout__sidebar .wc-block-components-radio-control-accordion-option:has(input:checked),
.wc-block-checkout__sidebar .wc-block-components-radio-control-accordion-option.wc-block-components-radio-control-accordion-option--checked-option-highlighted {
  border-color: #8C7A46 !important;
  background-color: #FAF8F4 !important;
  box-shadow: 0 2px 8px rgba(140, 122, 70, 0.12) !important;
}

/* Fila interactiva principal (Label): altura fija de 52px y alineación perfecta */
.wc-block-checkout__sidebar .wc-block-components-radio-control__option {
  min-height: 52px !important;
  height: 52px !important;
  padding: 0 16px !important;
  gap: 12px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: none !important;
  background: transparent !important;
}

/* Radio Button con apariencia moderna y nítida */
.wc-block-checkout__sidebar .wc-block-components-radio-control__input,
.wc-block-checkout__sidebar input[type="radio"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  border-radius: 50% !important;
  border: 2px solid #D4D4D8 !important;
  background-color: #FFFFFF !important;
  box-shadow: none !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  position: static !important;
  transform: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.wc-block-checkout__sidebar .wc-block-components-radio-control__option:hover input[type="radio"],
.wc-block-checkout__sidebar .wc-block-components-radio-control__option:hover .wc-block-components-radio-control__input {
  border-color: #8C7A46 !important;
}

/* Radio Button Seleccionado: marcado evidente con punto central dorado y aro */
.wc-block-checkout__sidebar .wc-block-components-radio-control__input:checked,
.wc-block-checkout__sidebar input[type="radio"]:checked {
  border: 2px solid #8C7A46 !important;
  background-color: #8C7A46 !important;
  box-shadow: inset 0 0 0 3px #FFFFFF !important;
}

.wc-block-checkout__sidebar .wc-block-components-radio-control__input:before,
.wc-block-checkout__sidebar .wc-block-components-radio-control__input:after {
  display: none !important;
  content: none !important;
}

/* Logo de Flow y otros iconos: altura uniforme que encaja a la perfección */
.wc-block-checkout__sidebar .wc-block-components-radio-control img,
.wc-block-checkout__sidebar .wc-block-components-payment-method-icons img,
.wc-block-checkout__sidebar .wc-block-components-radio-control__label img {
  height: 20px !important;
  max-height: 20px !important;
  width: auto !important;
  max-width: 65px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

/* Tipografía y contenedor de etiquetas */
.wc-block-checkout__sidebar .wc-block-components-payment-method-label,
.wc-block-checkout__sidebar .wc-block-components-radio-control__label {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #18181B !important;
  line-height: 1.4 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.wc-block-checkout__sidebar .wc-block-components-radio-control__option-layout,
.wc-block-checkout__sidebar .wc-block-components-radio-control__label-group {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Contenido acordeón (descripción de transferencia bancaria u otras notas) */
.wc-block-checkout__sidebar .wc-block-components-radio-control-accordion-content {
  padding: 10px 16px 14px 46px !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  color: #52525B !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  background-color: transparent !important;
}

/* Ocultar avisos vacíos del bloque de pago */
.wc-block-checkout__sidebar .wc-block-components-notices:empty,
.wc-block-checkout__sidebar .wc-block-components-notices__snackbar:empty {
  display: none !important;
}

/* Acciones y Botón Finalizar Compra en el Sidebar: pegado debajo de las opciones de pago */
.wc-block-checkout__sidebar .villegas-sidebar-actions {
  margin-top: 16px !important;
  padding-top: 0 !important;
  border-top: none !important;
  width: 100% !important;
}

/* ==========================================================================
   UNIVERSAL BUTTON BORDER RADIUS (6px)
   Applies 6px border-radius to all buttons across the entire site
   ========================================================================== */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button,
.btn,
.btn-pill-dark,
.btn-pill-crimson,
.btn-pill-outline,
.wp-block-button__link,
.wp-element-button,
.wc-block-components-button,
.wc-block-components-product-button a,
.wc-block-components-product-button .wp-block-button__link,
ul.products li.product .button,
ul.products li.product a.add_to_cart_button,
.single_add_to_cart_button,
.wc-block-cart__submit-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.wc-block-components-checkout-place-order-button,
#place_order,
.el-villegas-btn-submit,
.villegas-submit-btn,
#villegas-btn-volver-arriba {
  border-radius: 6px !important;
}

/* ==========================================================================
   SINGLE PRODUCT PAGE — CLASSICAL EDITORIAL BOOK SHOWCASE
   ========================================================================== */

.single-product .wp-site-blocks {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .wp-block-group.woocommerce.product,
.single-product main#villegas-single-product-page,
#villegas-single-product-page {
  background-color: #FFFFFF !important;
  color: #111111 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 14px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Remove breadcrumbs to lift product immediately below navbar */
#villegas-single-product-page .woocommerce-breadcrumb,
#villegas-single-product-page .wc-block-breadcrumbs,
#villegas-single-product-page .villegas-single-breadcrumbs-row {
  display: none !important;
}

/* 2-Column Stage (Immediately below navbar) */
.villegas-product-stage {
  display: flex !important;
  align-items: flex-start !important;
  gap: 48px !important;
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  margin-bottom: 40px !important;
  padding-top: 0 !important;
}

@media (max-width: 860px) {
  .villegas-product-stage {
    flex-direction: column !important;
    gap: 36px !important;
  }
}

/* Left Column: Book Showcase */
.villegas-product-cover-col {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.villegas-product-cover-col .woocommerce-product-gallery,
.villegas-product-cover-col .wc-block-product-gallery {
  width: 100% !important;
  max-width: 380px !important;
  margin: 0 auto !important;
  position: relative !important;
}

.villegas-product-cover-col .woocommerce-product-gallery__wrapper {
  margin: 0 !important;
}

.villegas-product-cover-col .woocommerce-product-gallery__image img,
.villegas-product-cover-col img {
  display: block !important;
  width: 100% !important;
  max-height: 480px !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  background: #FAF9F6 !important;
}

/* Zoom Trigger */
.villegas-product-cover-col .woocommerce-product-gallery__trigger {
  top: 12px !important;
  right: 12px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #E4E4E7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  z-index: 10 !important;
}

/* Right Column: Book Info & Details */
.villegas-product-info-col {
  text-align: left !important;
}

.villegas-product-info-col .villegas-kicker {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--villegas-crimson) !important;
  margin-bottom: 4px !important;
  display: block !important;
}

.villegas-product-info-col h1.wp-block-post-title,
.villegas-product-info-col .product_title {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  color: #09090B !important;
  margin: 0 0 2px 0 !important;
  text-align: left !important;
}

.villegas-product-info-col .villegas-product-author {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #71717A !important;
  text-align: left !important;
  margin: 0 0 10px 0 !important;
  display: block !important;
}

.villegas-product-info-col .wc-block-components-product-price,
.villegas-product-info-col .price {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: #09090B !important;
  text-align: left !important;
  margin: 0 0 14px 0 !important;
  display: block !important;
}

.villegas-product-info-col .wp-block-post-excerpt,
.villegas-product-info-col .woocommerce-product-details__short-description {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  color: #3F3F46 !important;
  margin: 0 0 18px 0 !important;
  max-width: 58ch !important;
  text-align: left !important;
}

.villegas-product-info-col .wp-block-post-excerpt p {
  margin: 0 !important;
}

/* Hide Stock Status (User requested: no mostrar cuántos quedan disponibles) */
.villegas-product-info-col .stock,
.villegas-product-info-col .stock.in-stock,
.villegas-product-info-col .stock.out-of-stock,
.villegas-product-info-col p.stock,
.stock,
.stock.in-stock,
p.stock {
  display: none !important;
}

/* Add to Cart Form in Single Product (Button next to quantity, compact width) */
.villegas-product-info-col form.cart,
.villegas-product-info-col .wp-block-woocommerce-add-to-cart-form form,
.single-product form.cart,
.single-product div.product form.cart,
.wp-block-woocommerce-add-to-cart-form form.cart {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  margin: 0 0 20px 0 !important;
  width: auto !important;
}

.villegas-product-info-col .quantity,
.single-product form.cart .quantity,
.single-product div.product form.cart .quantity,
.wp-block-woocommerce-add-to-cart-form form.cart .quantity {
  margin: 0 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
}

.villegas-product-info-col .quantity input.qty,
.single-product form.cart .quantity input.qty,
.single-product div.product form.cart .quantity input.qty,
.wp-block-woocommerce-add-to-cart-form form.cart .quantity input.qty {
  height: 46px !important;
  width: 58px !important;
  padding: 0 6px !important;
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-align: center !important;
  background-color: #FAF9F6 !important;
  border: 1px solid #D4D4D8 !important;
  border-radius: 6px !important;
  color: #09090B !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
}

.villegas-product-info-col .quantity input.qty:focus,
.single-product form.cart .quantity input.qty:focus,
.single-product div.product form.cart .quantity input.qty:focus,
.wp-block-woocommerce-add-to-cart-form form.cart .quantity input.qty:focus {
  border-color: #8C7A46 !important;
  box-shadow: 0 0 0 3px rgba(140, 122, 70, 0.15) !important;
}

.villegas-product-info-col button.single_add_to_cart_button,
.villegas-product-info-col form.cart button[type="submit"],
.single-product form.cart .single_add_to_cart_button,
.single-product div.product form.cart .single_add_to_cart_button,
.wp-block-woocommerce-add-to-cart-form form.cart .single_add_to_cart_button {
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  height: 40px !important;
  width: auto !important;
  min-width: 140px !important;
  max-width: 200px !important;
  flex: 0 0 auto !important;
  background: #111111 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 4px !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0 24px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.villegas-product-info-col button.single_add_to_cart_button:hover,
.villegas-product-info-col form.cart button[type="submit"]:hover,
.single-product form.cart .single_add_to_cart_button:hover,
.single-product div.product form.cart .single_add_to_cart_button:hover,
.wp-block-woocommerce-add-to-cart-form form.cart .single_add_to_cart_button:hover {
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  background: #27272A !important;
  color: #FFFFFF !important;
}

/* Category & Meta */
.villegas-product-info-col .product_meta {
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  color: #71717A !important;
  margin-top: 14px !important;
}

.villegas-product-info-col .product_meta a {
  color: #52525B !important;
  text-decoration: underline !important;
}

/* Hide Bottom Description / Reviews Tabs (User requested: eliminar la descripción de abajo) */
.villegas-product-tabs-wrapper,
.woocommerce-tabs,
.wc-block-components-product-details,
#tab-description {
  display: none !important;
}

.woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 24px !important;
  border-bottom: 1px solid #E4E4E7 !important;
  padding: 0 !important;
  margin: 0 0 28px 0 !important;
  list-style: none !important;
}

.woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 0 12px 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.woocommerce-tabs ul.tabs li a {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #71717A !important;
  text-decoration: none !important;
  padding: 0 !important;
  transition: color 0.15s ease !important;
}

.woocommerce-tabs ul.tabs li.active {
  border-bottom: 2px solid #8C7A46 !important;
}

.woocommerce-tabs ul.tabs li.active a {
  color: #09090B !important;
}

.woocommerce-Tabs-panel {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #27272A !important;
  max-width: 78ch !important;
}

.woocommerce-Tabs-panel h2 {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: #09090B !important;
  margin-bottom: 16px !important;
}

/* Related Products Collection Grid: STRICT 4-column responsive CSS Grid */
.villegas-related-collection .wc-block-product-template,
.villegas-related-collection ul.products,
.related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 28px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

@media (max-width: 992px) {
  .villegas-related-collection .wc-block-product-template,
  .villegas-related-collection ul.products,
  .related.products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 520px) {
  .villegas-related-collection .wc-block-product-template,
  .villegas-related-collection ul.products,
  .related.products ul.products {
    grid-template-columns: 1fr !important;
  }
}

.villegas-related-collection .wc-block-product-template li.wc-block-product,
.related.products ul.products li.product {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.villegas-related-collection .wc-block-components-product-image,
.villegas-related-collection .wc-block-product-template li.wc-block-product img {
  max-height: 240px !important;
  width: auto !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  margin-bottom: 12px !important;
}

/* Related Products Collection Details Styling */
.villegas-related-collection .wp-block-post-title,
.villegas-related-collection .wp-block-post-title a {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
  color: #09090B !important;
  text-decoration: none !important;
  margin: 6px 0 2px 0 !important;
  text-align: center !important;
}

.villegas-related-collection .villegas-product-author {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #71717A !important;
  margin: 0 0 6px 0 !important;
  text-align: center !important;
}

.villegas-related-collection .wc-block-components-product-price,
.villegas-related-collection .wp-block-woocommerce-product-price {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #09090B !important;
  margin: 0 0 12px 0 !important;
  text-align: center !important;
}

.villegas-related-collection .wc-block-components-product-button,
.villegas-related-collection .wp-block-woocommerce-product-button {
  width: 100% !important;
  max-width: 220px !important;
  margin: 0 auto !important;
}

.villegas-related-collection .wc-block-components-product-button button,
.villegas-related-collection .wc-block-components-product-button__button {
  width: 100% !important;
  background: linear-gradient(135deg, #8C7A46 0%, #5B4925 48%, #2B1C10 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 10px 16px !important;
  box-shadow: 0 2px 8px rgba(43, 28, 16, 0.2) !important;
}

/* Force Single Product Page containers to stretch to 1180px max-width, overriding core block constraints */
#villegas-single-product-page,
#villegas-single-product-page .villegas-single-product-container,
#villegas-single-product-page .villegas-single-product-container > div,
#villegas-single-product-page .villegas-product-stage,
#villegas-single-product-page .villegas-product-tabs-wrapper,
#villegas-single-product-page .villegas-related-collection,
#villegas-single-product-page .wp-block-woocommerce-product-collection {
  max-width: 100% !important;
  width: 100% !important;
}

#villegas-single-product-page .villegas-single-product-container {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==========================================================================
   GLOBAL FOCUS / ACTIVE OUTLINE REMOVAL
   Elimina bordes, halos azules y contornos al hacer click en cualquier link o botón
   ========================================================================== */
*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent !important;
}

a,
a:focus,
a:active,
a:focus-visible,
a:focus:not(:focus-visible),
a:visited,
button,
button:focus,
button:active,
button:focus-visible,
button:focus:not(:focus-visible),
input[type="button"],
input[type="button"]:focus,
input[type="button"]:active,
input[type="button"]:focus-visible,
input[type="submit"],
input[type="submit"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus-visible,
input[type="reset"],
input[type="reset"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus-visible,
.wp-element-button,
.wp-element-button:focus,
.wp-element-button:active,
.wp-element-button:focus-visible,
.wp-block-button__link,
.wp-block-button__link:focus,
.wp-block-button__link:active,
.wp-block-button__link:focus-visible,
.villegas-footer-link,
.villegas-footer-link:focus,
.villegas-footer-link:active,
.villegas-footer-link:focus-visible,
.wc-block-components-button,
.wc-block-components-button:focus,
.wc-block-components-button:active,
.wc-block-components-button:focus-visible,
[role="button"],
[role="button"]:focus,
[role="button"]:active,
[role="button"]:focus-visible,
[role="link"],
[role="link"]:focus,
[role="link"]:active,
[role="link"]:focus-visible,
[tabindex]:focus,
[tabindex]:focus-visible {
  outline: none !important;
  outline-width: 0 !important;
  outline-style: none !important;
  outline-color: transparent !important;
}

/* Prevenir cualquier halo de foco predeterminado en links o botones */
:focus:not(:focus-visible) {
  outline: none !important;
}

:focus-visible {
  outline: none !important;
}


/* ==========================================================================
   VILLEGAS BLOQUE LIBRERÍA — CARRUSEL DE PRODUCTOS (IDÉNTICO A TIENDA)
   ========================================================================== */
#villegas-bloque-libreria {
  background-color: #FAF9F6;
  position: relative;
}

.villegas-carousel-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.villegas-carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #D4D4D8;
  color: #09090B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 0;
}

.villegas-carousel-arrow:hover {
  background: #09090B;
  border-color: #09090B;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.villegas-carousel-arrow:active {
  transform: scale(0.95);
}

/* Carrusel Track */
.villegas-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px 24px 4px;
  margin: 0;
  list-style: none;
}

.villegas-carousel-track::-webkit-scrollbar {
  display: none;
}

/* Carrusel Item: Mismo Formato que Tienda (Sin bordes envolventes ni fondos blancos) */
.villegas-carousel-item {
  flex: 0 0 calc(25% - 18px);
  min-width: 260px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  position: relative;
  transition: transform 0.25s ease;
}

.villegas-carousel-item:hover {
  transform: translateY(-4px);
}

/* Portada del libro */
.villegas-carousel-thumb-wrapper {
  width: 100%;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.villegas-carousel-thumb-link {
  display: block;
  text-decoration: none;
}

.villegas-carousel-img {
  border-radius: 6px !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  display: block !important;
  max-height: 250px !important;
  width: auto !important;
  object-fit: contain !important;
}

.villegas-carousel-item:hover .villegas-carousel-img {
  transform: scale(1.02) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2) !important;
}

/* Título */
.villegas-carousel-title {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #09090B !important;
  margin: 4px 0 2px 0 !important;
  text-align: center !important;
}

.villegas-carousel-title a {
  color: #09090B !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.villegas-carousel-title a:hover {
  color: var(--villegas-crimson) !important;
}

/* Autor */
.villegas-carousel-item .villegas-product-author {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #71717A !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-align: center !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.25 !important;
}

/* Precio */
.villegas-carousel-price {
  font-family: var(--font-serif, "DM Serif Display", serif) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #09090B !important;
  text-align: center !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.2 !important;
}

/* Botón Comprar */
.villegas-carousel-btn-wrapper {
  margin-top: auto;
  width: 100%;
  max-width: 130px;
  display: flex;
  justify-content: center;
}

.villegas-carousel-buy-btn {
  background: #111111 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 4px !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  padding: 0 16px !important;
  text-align: center !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 130px !important;
  height: 32px !important;
  line-height: 32px !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

.villegas-carousel-buy-btn:hover {
  opacity: 1 !important;
  background: #27272A !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
}

.villegas-carousel-buy-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .villegas-carousel-item {
    flex: 0 0 calc(33.333% - 16px);
  }
}

@media (max-width: 768px) {
  .villegas-carousel-item {
    flex: 0 0 calc(50% - 12px);
    min-width: 220px;
  }
}

@media (max-width: 480px) {
  .villegas-carousel-item {
    flex: 0 0 78%;
    min-width: 200px;
  }
}

/* ==========================================================================
   MI CUENTA: FORMULARIO DE DIRECCIONES EDITABLE (GRID Y FLOATING LABELS IDENTICOS AL CHECKOUT)
   ========================================================================== */

/* Ocultar contenedores de campos nativos clásicos de WooCommerce */
.villegas-address-form .woocommerce-address-fields__field-wrapper > .form-row,
.villegas-address-form #shipping_country_field,
.villegas-address-form #billing_country_field,
.villegas-address-form #shipping_address_1_field,
.villegas-address-form #billing_address_1_field,
.villegas-address-form #shipping_address_2_field,
.villegas-address-form #billing_address_2_field,
.villegas-address-form #shipping_state_field,
.villegas-address-form #billing_state_field,
.villegas-address-form #shipping_city_field,
.villegas-address-form #billing_city_field,
.villegas-address-form #shipping_postcode_field,
.villegas-address-form #billing_postcode_field,
.villegas-address-form #shipping_first_name_field,
.villegas-address-form #billing_first_name_field,
.villegas-address-form #shipping_last_name_field,
.villegas-address-form #billing_last_name_field,
.villegas-address-form #shipping_phone_field,
.villegas-address-form #billing_phone_field,
.villegas-address-form #billing_email_field {
  display: none !important;
}

.villegas-account-form-grid {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 680px !important;
  box-sizing: border-box !important;
}

.villegas-account-form-grid .villegas-two-cols {
  display: flex !important;
  gap: 14px !important;
  width: 100% !important;
}

.villegas-account-form-grid .villegas-two-cols > .wc-block-components-text-input {
  flex: 1 1 50% !important;
  min-width: 0 !important;
  margin-top: 14px !important;
  margin-bottom: 6px !important;
}

.villegas-account-form-grid .villegas-street-split-row {
  display: flex !important;
  gap: 14px !important;
  width: 100% !important;
  margin-top: 14px !important;
  margin-bottom: 6px !important;
}

.villegas-account-form-grid .villegas-street-name-wrap {
  flex: 1 1 72% !important;
  min-width: 0 !important;
}

.villegas-account-form-grid .villegas-street-number-wrap {
  flex: 0 0 130px !important;
  min-width: 100px !important;
}

.villegas-account-form-grid > .wc-block-components-text-input {
  margin-top: 14px !important;
  margin-bottom: 6px !important;
}

@media (max-width: 640px) {
  .villegas-account-form-grid .villegas-two-cols {
    flex-direction: column !important;
    gap: 0 !important;
  }
}

/* Botones en Formulario de Direcciones de Mi Cuenta */
.villegas-form-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 24px !important;
}

.villegas-form-actions button[name="save_address"],
.villegas-form-actions .btn-pill-crimson {
  background: linear-gradient(135deg, #8C7A46 0%, #5B4925 48%, #2B1C10 100%) !important;
  color: #FFFFFF !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  border-radius: 6px !important;
  padding: 13px 26px !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(43, 28, 16, 0.25) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.villegas-form-actions button[name="save_address"]:hover,
.villegas-form-actions .btn-pill-crimson:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(43, 28, 16, 0.35) !important;
  opacity: 0.96 !important;
}

.villegas-form-actions .btn-pill-outline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 22px !important;
  border: 1px solid #D4D4D8 !important;
  background-color: #FFFFFF !important;
  border-radius: 6px !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #52525B !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  margin: 0 !important;
}

.villegas-form-actions .btn-pill-outline:hover {
  background-color: #F4F4F5 !important;
  color: #18181B !important;
  border-color: #A1A1AA !important;
}

/* ==========================================================================
   ALMADEN SINGLE POST: EXACT NAVBAR INNER ALIGNMENT (1236px) & TRANSPARENT SUBNAV
   ========================================================================== */
.almaden-post-subnav {
  border-bottom: 2px solid #111111 !important;
  background: transparent !important;
  padding: 10px 0 !important;
  margin-bottom: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.almaden-single-post-page #almaden-single-main,
#almaden-single-main {
  max-width: 1236px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0px !important;
  box-sizing: border-box !important;
}

@media (max-width: 1288px) {
  .almaden-single-post-page #almaden-single-main,
  #almaden-single-main {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-width: 680px) {
  .almaden-single-post-page #almaden-single-main,
  #almaden-single-main {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

.almaden-blog-figure {
  margin: 2.2em 0 !important;
  border: none !important;
  background: #fafafa !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
