/* ==========================================================================
   MI CARRITO - UNIFIED RESPONSIVE STYLES (PIXEL-PERFECT + SIDEBAR)
   Component: .neural-cart, .app-layout
   ========================================================================== */

/* Base Typography & Background */
body {
  font-family: var(--font-body);
  background-color: #FAFAFA;
  color: var(--on-surface);
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   APP TOPBAR HEADER (DESKTOP)
   -------------------------------------------------------------------------- */
.app-topbar {
  height: 64px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-sizing: border-box;
  width: 100%;
}

.app-topbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-topbar__logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary, #CC0018);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1rem;
}

.app-topbar__logo-text {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.0625rem;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.app-topbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.app-topbar__nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.app-topbar__nav-link:hover {
  color: var(--primary, #CC0018);
}

.app-topbar__user-area {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.app-topbar__security-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  background-color: #F8FAFC;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  border: 1px solid #F1F5F9;
}

.app-topbar__notif {
  position: relative;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.app-topbar__notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background-color: var(--primary, #CC0018);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-topbar__user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
}

.app-topbar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.app-topbar__user-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0F172A;
}

@media (max-width: 1023px) {
  .app-topbar {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   APP LAYOUT (SIDEBAR + MAIN)
   -------------------------------------------------------------------------- */
.app-layout {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - var(--header-height, 5.5rem));
  background-color: #F8FAFC;
  overflow: visible;
}

/* Sidebar â€” sticky: fijo al scroll, lÃ­mite = pie de pÃ¡gina */
.app-sidebar {
  width: 260px;
  border-right: 1px solid #F0F0F0;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  background-color: #FFFFFF;
  flex-shrink: 0;
  position: sticky;
  top: var(--header-height, 5.5rem);
  height: calc(100vh - var(--header-height, 5.5rem));
  max-height: calc(100vh - var(--header-height, 5.5rem));
  align-self: flex-start;
  z-index: 100;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

body.admin-bar .app-sidebar {
  top: calc(var(--header-height, 5.5rem) + 32px);
  height: calc(100vh - var(--header-height, 5.5rem) - 32px);
  max-height: calc(100vh - var(--header-height, 5.5rem) - 32px);
}

.app-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.app-sidebar__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
  color: #334155;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.app-sidebar__item:hover {
  background-color: #F8FAFC;
}

.app-sidebar__item--active {
  background-color: #FEF2F2;
  color: var(--primary);
}

.app-sidebar__item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-sidebar__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.app-sidebar__badge {
  background-color: var(--primary);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar Promo Card */
.app-sidebar__promo {
  background: linear-gradient(180deg, #1A1F2B 0%, #11151D 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  color: white;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.app-sidebar__promo-glow {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 4rem;
  background: radial-gradient(circle, rgba(220,38,38,0.5) 0%, rgba(220,38,38,0) 70%);
  z-index: 1;
}

.app-sidebar__promo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
  color: white;
}

.app-sidebar__promo-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.app-sidebar__promo-desc {
  font-size: 0.6875rem;
  color: #94A3B8;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.app-sidebar__promo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #CBD5E1;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

/* Main Content Area */
.app-main {
  flex: 1 1 auto;
  background-color: #FAFAFA;
  padding: 2rem;
  overflow-x: hidden;
  overflow-y: visible;
  margin-left: 0;
  width: auto;
  max-width: none;
  box-sizing: border-box;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   CART STYLES (neural-cart)
   -------------------------------------------------------------------------- */
.neural-cart {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--header-height);
}

/* Header */
.neural-cart__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.neural-cart__title-wrap {
  display: flex;
  flex-direction: column;
}

.neural-cart__title {
  font-family: var(--font-headline);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--on-surface);
  margin: 0;
  letter-spacing: -0.02em;
}

.neural-cart__subtitle {
  color: var(--on-surface-variant);
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

/* Compartir button */
.neural-cart__share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--on-surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.neural-cart__share-icon-only {
  display: flex;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-variant);
  background: var(--surface-bright);
}

/* Grid Layout */
.neural-cart__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: start; /* Supports sticky positioning */
}

.neural-cart__col-list {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.neural-cart__col-summary {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Priority Banner */
.neural-cart__priority {
  background-color: #F1FAF5;
  border: 1px solid #D1EBDD;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

@media (max-width: 1023px) {
  .neural-cart__priority {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
  }
}

.neural-cart__priority-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1A7344;
}

@media (max-width: 1023px) {
  .neural-cart__priority-info {
    gap: 0.5rem;
  }
}

.neural-cart__priority-icon {
  width: 1.5rem;
  height: 1.5rem;
  background-color: #24965A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1023px) {
  .neural-cart__priority-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  .neural-cart__priority-icon svg {
    width: 12px;
    height: 12px;
  }
}

.neural-cart__priority-title {
  font-size: 0.875rem;
  font-weight: 700;
}

@media (max-width: 1023px) {
  .neural-cart__priority-title {
    font-size: 0.75rem;
  }
}

.neural-cart__priority-desc {
  font-size: 0.6875rem;
  color: #4A8E6A;
  margin-top: 0.125rem;
}

@media (max-width: 1023px) {
  .neural-cart__priority-desc {
    font-size: 0.625rem;
  }
}

/* Cart Container */
.neural-cart__list-container {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  overflow: visible;
}

/* Cart Item */
.neural-cart__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem;
  background-color: #FFFFFF;
  border: 1px solid #F0F0F0;
  border-radius: var(--radius-3xl, 1.25rem);
  margin-bottom: 1rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.neural-cart__item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Checkbox */
.neural-cart__checkbox-wrap {
  display: flex;
  align-items: center;
}

.neural-cart__checkbox {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #CC0018;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  margin: 0;
}

.neural-cart__checkbox::after {
  content: '';
  width: 0.375rem;
  height: 0.625rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: block;
  margin-top: -2px;
}

/* Item Image */
.neural-cart__item-image-wrapper {
  width: 4.5rem;
  height: 4.5rem;
  background-color: #F8FAFC;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.neural-cart__item-image-wrapper a,
.neural-cart__item-image-wrapper a:hover,
.neural-cart__item-image-wrapper a:focus {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.neural-cart__item-image {
  width: 140%;
  height: 140%;
  object-fit: contain;
}

/* Item Tags (Weight & Density) */
.neural-cart__item-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.neural-cart__item-tag, .neural-cart__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #475569;
}

/* Item Body */
.neural-cart__item-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.neural-cart__item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.neural-cart__item-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin: 0;
  color: #0F172A;
}

.neural-cart__item-remove {
  background: #F1F5F9;
  border: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.neural-cart__item-remove:hover {
  background-color: #E2E8F0;
  color: #0F172A;
}

.neural-cart__item-meta {
  font-size: 0.625rem;
  color: #64748B;
  margin-top: 0.25rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Tags */
.neural-cart__item-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.neural-cart__tag {
  background-color: transparent;
  border: 1px solid #E2E8F0;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #475569;
}

.neural-cart__tag svg {
  color: #64748B;
}

/* Item Controls & Price */
.neural-cart__item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  width: 100%;
}

.neural-cart__qty {
  display: flex;
  align-items: center;
  border: 1px solid #E2E8F0;
  border-radius: 2rem;
  background-color: #FFFFFF;
  height: 2rem;
  padding: 0 0.5rem;
  gap: 0.5rem;
}

.neural-cart__qty-btn {
  color: #0F172A;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 1rem;
}

.neural-cart__qty-val {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.875rem;
  color: #0F172A;
}

input.neural-cart__qty-val {
  border: none;
  background: transparent;
  width: 1.75rem;
  text-align: center;
  -moz-appearance: textfield;
  padding: 0;
  outline: none;
}

input.neural-cart__qty-val::-webkit-inner-spin-button,
input.neural-cart__qty-val::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


.neural-cart__item-pricing {
  text-align: right;
}

.neural-cart__price-unit {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748B;
}

.neural-cart__price-total {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  color: #CC0018;
  margin-top: 0.125rem;
}

/* Add More Button */
.neural-cart__add-more {
  width: 100%;
  padding: 1rem;
  border: 1px dashed #FCA5A5;
  border-radius: var(--radius-2xl, 0.75rem);
  color: #0F172A;
  font-weight: 600;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.neural-cart__add-more:hover {
  background-color: #FFF5F5;
  border-color: var(--primary, #CC0018);
}

.neural-cart__add-more-icon {
  width: 1.25rem;
  height: 1.25rem;
  background-color: #CC0018;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Summary Card */
.neural-cart__summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title image"
    "totals image";
  gap: 0.5rem 1rem;
  align-items: center;
  background: linear-gradient(180deg, #FFF6F6 0%, #FFFFFF 100%);
  border-radius: var(--radius-3xl, 24px);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
  border: 1px solid #F8ECEC;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.neural-cart__summary-title {
  grid-area: title;
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

#mt-cart-summary-totals {
  grid-area: totals;
}

.neural-cart__summary-image-container {
  grid-area: image;
  width: 90px;
  height: 90px;
  min-width: 90px;
  background-color: #FFF0F0;
  border-radius: var(--radius-2xl, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  flex-shrink: 0;
  align-self: center;
}

.neural-cart__summary-img-asset,
.neural-cart__summary-image-container img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  display: block;
  filter: none;
  margin: 0;
}

.neural-cart__summary-split {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.neural-cart__summary-info-side {
  flex: 1;
  min-width: 0;
}

.neural-cart__summary-image-side {
  width: 90px;
  height: 90px;
  background-color: #FFF0F0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.neural-cart__summary-image-side img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.neural-cart__summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.neural-cart__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  padding: 0.125rem 0;
}

/* Coupon & Discount Row Styling */
.neural-cart__summary-row-group {
  margin: 0.25rem 0;
}

.neural-cart__summary-row--coupon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.375rem;
  background: transparent;
  border: none;
  padding: 0.375rem 0;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
}

.neural-cart__summary-row--coupon .neural-cart__summary-row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary, #CC0018);
  background-color: #FEF2F2;
  border: 1px solid #FEE2E2;
  padding: 0.2rem 0.4rem;
  border-radius: 0.375rem;
  max-width: 100%;
}

.neural-cart__summary-row--coupon .neural-cart__summary-row-value {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--primary, #CC0018);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

/* WooCommerce Remove Coupon Pill */
a.woocommerce-remove-coupon {
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  background-color: #FEE2E2;
  color: #991B1B !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  margin-left: 0.375rem;
  border: 1px solid #FCA5A5;
}

a.woocommerce-remove-coupon:hover {
  background-color: #DC2626;
  color: #FFFFFF !important;
  border-color: #DC2626;
}

.neural-cart__summary-row-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.neural-cart__summary-row-icon {
  color: #64748B;
  flex-shrink: 0;
}

.neural-cart__summary-row-label {
  color: #64748B;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neural-cart__summary-row-value {
  font-family: var(--font-headline);
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
}

.neural-cart__summary-divider {
  border-top: 1px solid #F1F5F9;
  margin: 1.25rem 0;
}

.neural-cart__summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.neural-cart__summary-total-label {
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0F172A;
}

.neural-cart__summary-total-value {
  font-family: var(--font-headline);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary, #CC0018);
}

/* Checkout Button */
.neural-cart__checkout-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 0 1rem;
  background-color: var(--primary, #CC0018);
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(204, 0, 24, 0.15);
}

.neural-cart__checkout-btn:hover {
  background-color: #B30015;
}

.neural-cart__checkout-btn:active {
  transform: scale(0.98);
}

.neural-cart__checkout-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.neural-cart__checkout-text {
  flex-grow: 1;
  text-align: center;
  margin: 0 12px;
}

.neural-cart__checkout-arrow {
  color: #FFFFFF;
  flex-shrink: 0;
}

/* Bottom Trust Badges Card */
.neural-cart__trust-card {
  background-color: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: var(--radius-2xl, 16px);
  padding: 1.25rem 0.375rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.neural-cart__trust-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.neural-cart__trust-item:not(:last-child) {
  border-right: 1px solid #F1F5F9;
}

.neural-cart__trust-icon {
  color: #334155;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.neural-cart__trust-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.neural-cart__trust-label {
  font-size: 0.5625rem;
  font-weight: 500;
  color: #64748B;
  line-height: 1.1;
  white-space: nowrap;
}

.neural-cart__trust-val {
  font-size: 0.625rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.1;
  margin-top: 0.125rem;
  white-space: nowrap;
}

/* Priority Shipping Banner */
.neural-cart__priority {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  background-color: #f1f9f6;
  border: 1px solid #d1e7dd;
  border-radius: var(--radius-2xl, 1rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-sizing: border-box;
}

.neural-cart__priority-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.neural-cart__priority-icon {
  width: 1.75rem;
  height: 1.75rem;
  background-color: #0f5132;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.neural-cart__priority-title {
  font-family: var(--font-headline, sans-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f5132;
  line-height: 1.2;
}

.neural-cart__priority-desc {
  font-size: 0.6875rem;
  color: #1c6844;
  margin-top: 0.125rem;
  line-height: 1.3;
}

/* Utilities */
.neural-cart__hidden-desktop {
  display: flex;
}

.neural-cart__hidden-mobile {
  display: none;
}

/* Cross-sells */
.neural-cart__cross-sells {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.neural-cart__cross-sells-title {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.neural-cart__cross-sells-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1.5rem;
  scrollbar-width: none;
  padding-bottom: 1rem;
}

.neural-cart__cross-sells-grid::-webkit-scrollbar {
  display: none;
}

/* Empty State */
.neural-cart__empty {
  padding: 5rem 2rem;
  text-align: center;
  background-color: #FFFFFF;
  border-radius: 1rem;
  border: 1px solid #F0F0F0;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.neural-cart__empty-icon {
  color: var(--on-surface-variant);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.neural-cart__empty-icon svg {
  width: 4rem;
  height: 4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.neural-cart__empty-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0 0 0.5rem;
}

.neural-cart__empty-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #64748B;
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.5;
}

.neural-cart__empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 2rem;
  background-color: var(--primary);
  border-radius: 12px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(204, 0, 24, 0.15);
  margin-top: 1.5rem;
}

.neural-cart__empty-btn:hover {
  background-color: #B30015;
}

.neural-cart__empty-btn:active {
  transform: scale(0.98);
}


/* --------------------------------------------------------------------------
   DESKTOP / TABLET OVERRIDES (Media Queries)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .neural-cart__col-list {
    grid-column: span 8;
  }

  .neural-cart__col-summary {
    grid-column: span 4;
    position: sticky;
    top: 2rem;
  }
  
  .neural-cart__hidden-desktop {
    display: none !important;
  }

  .neural-cart__hidden-mobile {
    display: flex !important;
  }

  .neural-cart__list-container {
    background-color: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 1rem;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  }
  
  .neural-cart__item {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: none;
    border-radius: 0;
    background-color: transparent;
    margin-bottom: 0;
    border-bottom: 1px solid #F0F0F0;
    box-shadow: none;
  }

  .neural-cart__item:last-child {
    border-bottom: none;
  }

  .neural-cart__item-left {
    gap: 1.5rem;
  }

  .neural-cart__item-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .neural-cart__item-header {
    width: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .neural-cart__item-controls {
    margin-top: 0;
    width: auto;
    gap: 3rem;
  }

  .neural-cart__summary-image-side {
    width: 110px;
    height: 110px;
  }

  .neural-cart__trust-card {
    padding: 1.25rem 1rem;
  }

  .neural-cart__trust-item {
    gap: 0.5rem;
  }

  .neural-cart__trust-icon {
    width: 22px;
    height: 22px;
  }

  .neural-cart__trust-label {
    font-size: 0.625rem;
  }

  .neural-cart__trust-val {
    font-size: 0.6875rem;
  }

  /* Desktop large feature blocks under cart */
  .neural-cart__features-large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 1.5rem;
    background-color: transparent;
  }
  
  .neural-cart__feature-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0 1rem;
    border-right: 1px solid #E2E8F0;
  }

  .neural-cart__feature-card:last-child {
    border-right: none;
  }
  
  .neural-cart__feature-card-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .neural-cart__feature-card-title {
    font-size: 0.6875rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
    color: #0F172A;
  }
  
  .neural-cart__feature-card-desc {
    font-size: 0.5625rem;
    color: #64748B;
    line-height: 1.4;
  }

  /* Desktop Coupon Box under product list */
  .neural-cart__coupon-box {
    background-color: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: var(--radius-2xl, 16px);
    padding: 1.25rem 1.5rem;
    margin-top: 1.25rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  }

  .neural-cart__coupon-box-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .neural-cart__coupon-box-icon {
    width: 2.25rem;
    height: 2.25rem;
    background-color: #FEF2F2;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .neural-cart__coupon-box-title {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
  }

  .neural-cart__coupon-box-subtitle {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: #64748B;
    margin: 0.125rem 0 0 0;
  }

  .neural-cart__coupon-box-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .neural-cart__coupon-box-input {
    flex: 1;
    height: 46px;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #0F172A;
    outline: none;
    transition: border-color 0.2s;
  }

  .neural-cart__coupon-box-input:focus {
    border-color: var(--primary, #CC0018);
  }

  .neural-cart__coupon-box-btn {
    height: 46px;
    background-color: var(--primary, #CC0018);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 0 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
  }

  .neural-cart__coupon-box-btn:hover {
    background-color: #B30015;
  }

  /* Desktop Summary Card layout overrides */
  .neural-cart__summary-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
  }

  .neural-cart__summary-image-container {
    width: 100%;
    height: 180px;
    background-color: #FFF0F0;
    border-radius: var(--radius-2xl, 16px);
    margin-bottom: 1.25rem;
    align-self: center;
  }

  .neural-cart__summary-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .neural-cart__summary-coupon-link {
    color: var(--primary, #CC0018);
    font-weight: 700;
    font-size: 0.8125rem;
    text-decoration: none;
  }

  .neural-cart__summary-coupon-link:hover {
    text-decoration: underline;
  }

  .neural-cart__summary-total-value {
    color: var(--primary, #CC0018);
    font-size: 1.375rem;
    font-weight: 800;
  }
}

/* Ocultar 'reff:' generado por variaciones */
.variation dt.variation-reff,
.variation dd.variation-reff,
.variation dt.variation-Reff,
.variation dd.variation-Reff,
.variation dt.variation-REFF,
.variation dd.variation-REFF {
  display: none !important;
}

/* Hide Sidebar on Mobile & Refine Mobile Layout Spacing */
@media (max-width: 1023px) {
  .app-layout {
    align-items: stretch;
  }

  .app-sidebar {
    display: none;
    position: static;
  }
  .app-main {
    padding: 0 1.25rem !important;
    box-sizing: border-box;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
  body {
    padding-bottom: 0 !important;
  }
  
  .neural-cart {
    max-width: 540px;
    margin: 0 auto !important;
    width: 100%;
    padding-top: 0 !important;
  }

  .neural-cart__grid {
    gap: 0 !important;
  }

  .neural-cart__header {
    margin-bottom: 0.5rem;
  }

  .neural-cart__list-container {
    order: 1;
  }

  .neural-cart__priority {
    order: 2;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0;
  }

  .neural-cart__add-more {
    order: 3;
    margin-top: 0.5rem;
  }

  .neural-cart__coupon-box,
  .neural-cart__features-large,
  .neural-cart__cross-sells {
    order: 4;
  }

  /* Centered product container list */
  .neural-cart__col-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .neural-cart__list-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .neural-cart__item {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  /* Checkbox overlapping top-left of image on mobile */
  .neural-cart__item-left {
    position: relative !important;
    gap: 0 !important;
  }
  .neural-cart__checkbox-wrap {
    position: absolute !important;
    top: -6px !important;
    left: -6px !important;
    z-index: 10 !important;
  }
  .neural-cart__checkbox {
    width: 1.25rem !important;
    height: 1.25rem !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--primary, #CC0018) !important;
    border: none !important;
  }
  .neural-cart__checkbox::after {
    content: '' !important;
    width: 0.35rem !important;
    height: 0.6rem !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    display: block !important;
    margin-top: -2px !important;
  }

  /* Remove Item button styling */
  .neural-cart__item-remove {
    background-color: #F1F5F9 !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748B !important;
    border: none !important;
  }
  .neural-cart__item-remove.neural-cart__hidden-desktop {
    display: inline-flex !important;
  }
  .neural-cart__item-remove.neural-cart__hidden-mobile {
    display: none !important;
  }

  /* Item Header Layout (Title 90%, X 5%) */
  .neural-cart__item-header {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 2% !important;
  }
  
  .neural-cart__item-name {
    width: 90% !important;
    margin: 0 !important;
    word-break: break-word !important;
  }
  
  .neural-cart__item-header .neural-cart__item-remove {
    width: 5% !important;
    min-width: 24px !important;
    margin-left: auto !important;
  }

  /* Summary Card mobile layout fix (Grid with display: contents) */
  .neural-cart__summary-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "title title"
      "list image" !important;
    background: #FFFFFF !important;
    border: 1px solid #F1F5F9 !important;
    border-radius: var(--radius-2xl, 16px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
    padding: 0 !important;
    gap: 0 !important;
    align-items: stretch !important;
  }
  
  .neural-cart__summary-card .neural-cart__hidden-mobile {
    display: flex !important;
  }

  /* Make totals wrapper disappear so children join the grid */
  #mt-cart-summary-totals {
    display: contents !important;
  }
  
  /* Hide inline divider, total, and checkout button since we use the sticky footer on mobile */
  .neural-cart__summary-card .neural-cart__summary-divider,
  .neural-cart__summary-card .neural-cart__summary-total,
  .neural-cart__summary-card .neural-cart__checkout-btn {
    display: none !important;
  }
  
  .neural-cart__summary-title {
    grid-area: title !important;
    margin: 0 !important;
    font-size: 1.125rem !important;
    background: transparent !important;
    padding: 1.25rem 1.25rem 1rem 1.25rem !important;
    border: none !important;
  }

  .neural-cart__summary-list {
    grid-area: list !important;
    background: transparent !important;
    padding: 0 0 1.25rem 1.25rem !important;
    border: none !important;
  }
  
  .neural-cart__summary-image-container {
    grid-area: image !important;
    background: transparent !important;
    padding: 0 1.25rem 1.25rem 0.5rem !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  
  .neural-cart__summary-img-asset,
  .neural-cart__summary-image-container img {
    width: 85px !important;
    height: 85px !important;
    max-width: 85px !important;
    max-height: 85px !important;
    background-color: #FFF0F0 !important;
    border-radius: var(--radius-2xl, 16px) !important;
    object-fit: contain !important;
    padding: 0.5rem !important;
    box-sizing: border-box !important;
  }

  /* Fix shipping and coupon row overflow */
  .neural-cart__summary-row {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }
  .neural-cart__summary-row-label {
    white-space: normal !important;
  }
  .neural-cart__summary-row-value {
    white-space: normal !important;
    word-break: break-word !important;
    flex: 1 !important;
    text-align: right !important;
    margin-left: 0.5rem !important;
  }
  .neural-cart__summary-row-value p,
  .neural-cart__summary-row-value ul {
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
    text-align: right !important;
  }

  /* Bottom Trust Badges Card */
  .neural-cart__col-summary {
    padding-bottom: 140px !important;
  }
  .neural-cart__trust-card {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    padding: 1rem 0 !important;
    margin-top: 1rem !important;
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }
  .neural-cart__trust-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    border-right: 1px solid #E2E8F0 !important;
  }
  .neural-cart__trust-item:last-child {
    border-right: none !important;
  }
  .neural-cart__trust-icon {
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 0 !important;
  }
  .neural-cart__trust-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.125rem !important;
  }
  .neural-cart__trust-label {
    font-size: 0.5625rem !important;
    color: #64748B !important;
    line-height: 1.2 !important;
  }
  .neural-cart__trust-val {
    font-size: 0.5625rem !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    line-height: 1.2 !important;
  }
}

/* Sticky Mobile Footer â€” Positioned above mobile bottom navigation bar (.app-tab-bar) */
.neural-cart__sticky-footer {
  display: flex;
  position: fixed;
  bottom: 58px !important;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #F1F5F9;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.08);
  z-index: 999;
  flex-direction: column;
  gap: 0.5rem;
  box-sizing: border-box;
}

.neural-cart__sticky-footer .neural-cart__summary-total {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .neural-cart__sticky-footer {
    display: none !important;
  }
  .neural-cart__item-left {
    position: static !important;
    gap: 0.75rem !important;
  }
  .neural-cart__checkbox-wrap {
    position: static !important;
  }
  .neural-cart__trust-card {
    display: flex !important;
  }
  .neural-cart__trust-item:not(:last-child) {
    border-right: 1px solid #F1F5F9 !important;
  }
}

/* ==========================================================================
   WOOCOMMERCE NOTICES & ALERTS (CUSTOM THEME STYLING)
   ========================================================================== */

.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 1.25rem auto;
  box-sizing: border-box;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-notice {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 0.875rem 1.25rem 0.875rem 3.25rem !important;
  border-radius: var(--radius-2xl, 12px) !important;
  margin: 0 0 1rem 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  width: 100% !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid transparent !important;
  list-style: none !important;
}

.woocommerce-message,
.woocommerce-notice--success {
  background-color: #F0FDF4 !important;
  border-color: #BBF7D0 !important;
  border-left: 4px solid #22C55E !important;
  color: #15803D !important;
}

.woocommerce-message::before,
.woocommerce-notice--success::before {
  content: 'âœ“' !important;
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  background-color: #22C55E !important;
  color: #FFFFFF !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
}

.woocommerce-error,
.woocommerce-notice--error {
  background-color: #FEF2F2 !important;
  border-color: #FECDD3 !important;
  border-left: 4px solid var(--primary, #CC0018) !important;
  color: #991B1B !important;
}

.woocommerce-error::before,
.woocommerce-notice--error::before {
  content: 'âœ•' !important;
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  background-color: var(--primary, #CC0018) !important;
  color: #FFFFFF !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
}

.woocommerce-info,
.woocommerce-notice--info {
  background-color: #F0F9FF !important;
  border-color: #BAE6FD !important;
  border-left: 4px solid #0284C7 !important;
  color: #0369A1 !important;
}

.woocommerce-info::before,
.woocommerce-notice--info::before {
  content: 'i' !important;
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  background-color: #0284C7 !important;
  color: #FFFFFF !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-style: italic !important;
  font-size: 0.875rem !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #0F172A !important;
  padding: 0.375rem 0.875rem !important;
  border-radius: 8px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  margin: 0 !important;
  float: none !important;
}

/* ==========================================================================
   WOOCOMMERCE NATIVE CART OVERRIDES
   ========================================================================== */

/* Cart Form and Layout wrapper */
.woocommerce-cart .woocommerce-cart-form {
  background-color: #FFFFFF;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  border: 1px solid #F0F0F0;
  overflow: hidden;
  margin-bottom: 2rem;
  width: 100%;
}

/* Cart Table Overrides */
.woocommerce-cart table.shop_table.cart {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  border: none;
}

.woocommerce-cart table.shop_table.cart th {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant);
  padding: 1.25rem 1rem;
  border-bottom: 2px solid var(--surface-container-high, #e7e8e9);
  background: transparent;
}

.woocommerce-cart table.shop_table.cart td {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #F0F0F0;
  vertical-align: middle;
}

.woocommerce-cart table.shop_table.cart tr.cart_item:hover td {
  background-color: #F8FAFC;
}

.woocommerce-cart table.shop_table.cart .product-thumbnail img {
  width: 5rem;
  height: auto;
  border-radius: 8px;
  background-color: #F8FAFC;
  padding: 0.25rem;
}

.woocommerce-cart table.shop_table.cart .product-name a {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #0F172A;
  text-decoration: none;
}

.woocommerce-cart table.shop_table.cart .product-price,
.woocommerce-cart table.shop_table.cart .product-subtotal {
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 700;
}

.woocommerce-cart table.shop_table.cart .product-subtotal {
  color: var(--primary);
}

.woocommerce-cart table.shop_table.cart .product-remove a {
  color: #64748B;
  font-size: 1.25rem;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: #F1F5F9;
  border-radius: 50%;
}

.woocommerce-cart table.shop_table.cart .product-remove a:hover {
  background-color: #E2E8F0;
  color: #0F172A;
}

/* Coupon and Actions Row â€” Hide duplicate coupon field inside product table actions */
.woocommerce-cart .actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.5rem 0 !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-top: 0.75rem !important;
}

.woocommerce-cart .actions .coupon {
  display: none !important;
}

@media (max-width: 1023px) {
  .woocommerce-cart .actions button[name="update_cart"] {
    display: none !important;
  }
  
  .woocommerce-cart .woocommerce-cart-form {
    margin-bottom: 0 !important;
  }
}

/* Coupon Form Container 1x2 Horizontal */
.woocommerce-cart .coupon,
.neural-cart__coupon-form {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  gap: 0.5rem !important;
  margin-top: 1rem !important;
  box-sizing: border-box !important;
}

.woocommerce-cart .coupon input.input-text,
.neural-cart__coupon-input {
  flex: 1 !important;
  width: 100% !important;
  height: 46px !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  padding: 0 0.875rem !important;
  font-size: 0.875rem !important;
  font-family: var(--font-body) !important;
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease !important;
}

.woocommerce-cart .coupon input.input-text:focus,
.neural-cart__coupon-input:focus {
  border-color: var(--primary, #CC0018) !important;
}

.woocommerce-cart .coupon button[name="apply_coupon"],
.woocommerce-cart .coupon .button,
.neural-cart__coupon-btn {
  height: 46px !important;
  padding: 0 1.25rem !important;
  background-color: var(--primary, #CC0018) !important;
  color: #FFFFFF !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  white-space: nowrap !important;
  border: none !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 12px rgba(204, 0, 24, 0.18) !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.woocommerce-cart .coupon button[name="apply_coupon"]:hover,
.neural-cart__coupon-btn:hover {
  background-color: #B30015 !important;
}

.woocommerce-cart .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full, 0.75rem);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  text-transform: uppercase;
}

.woocommerce-cart .actions button[name="update_cart"] {
  background-color: transparent;
  color: var(--on-surface-variant);
  border: 1px solid #E2E8F0;
}

.woocommerce-cart .actions button[name="update_cart"]:hover {
  background-color: #E2E8F0;
  color: var(--on-surface);
}

/* Cart Totals */
.woocommerce-cart .cart_totals {
  background: linear-gradient(to bottom, #FFF5F5 0%, #FFFFFF 140px, #FFFFFF 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.02);
  border: 1px solid #F1F5F9;
  margin-top: 1rem;
  box-sizing: border-box;
}

.woocommerce-cart .cart_totals h2 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 0.75rem;
}

.woocommerce-cart .cart_totals table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.woocommerce-cart .cart_totals table.shop_table tr {
  border-bottom: 1px solid #F1F5F9;
}

.woocommerce-cart .cart_totals table.shop_table th {
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748B;
  text-align: left;
  width: 35%;
}

.woocommerce-cart .cart_totals table.shop_table td {
  padding: 1rem 0;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  color: #0F172A;
  text-align: right;
}

.woocommerce-cart .cart_totals table.shop_table .order-total th {
  font-size: 1rem;
  color: #0F172A;
  border-bottom: none;
}

.woocommerce-cart .cart_totals table.shop_table .order-total td {
  font-size: 1.25rem;
  color: var(--primary);
  border-bottom: none;
}

.woocommerce-cart .wc-proceed-to-checkout {
  margin-top: 1.5rem;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
  background-color: var(--primary);
  color: white !important;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s;
  box-shadow: 0 4px 14px rgba(204, 0, 24, 0.15);
  box-sizing: border-box;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background-color: #B30015;
  color: white !important;
}

@media (max-width: 768px) {
  .woocommerce-cart .actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .woocommerce-cart .coupon {
    flex-direction: column;
    align-items: stretch;
  }
  
  .woocommerce-cart .coupon input.input-text {
    width: 100%;
  }
  
  .woocommerce-cart table.shop_table.cart th {
    display: none;
  }
  
  .woocommerce-cart table.shop_table.cart td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: right;
    padding: 0.75rem 1rem;
  }
  
  .woocommerce-cart table.shop_table.cart td::before {
    content: attr(data-title) ": ";
    font-weight: 700;
    float: left;
  }
  
  .woocommerce-cart table.shop_table.cart td.product-remove::before,
  .woocommerce-cart table.shop_table.cart td.product-thumbnail::before {
    content: none;
  }
  
  .woocommerce-cart table.shop_table.cart td.product-remove {
    text-align: left;
  }
  
  .woocommerce-cart table.shop_table.cart td.product-thumbnail {
    text-align: center;
  }
}

/* ==========================================================================
   TABLE DESIGN (BEM - DESKTOP ONLY)
   ========================================================================== */
.mt-cart-list {
  background-color: #FFFFFF;
  border-radius: var(--radius-3xl, 24px);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mt-cart-list__header {
  display: grid;
  grid-template-columns: 80px 1fr 100px 120px 100px 80px;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--outline, #E2E8F0);
}

.mt-cart-list__th {
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary, #CC0018);
  text-transform: uppercase;
}

.mt-cart-list__items {
  display: flex;
  flex-direction: column;
}

.mt-cart-list__row {
  display: grid;
  grid-template-columns: 80px 1fr 100px 120px 100px 80px;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--outline, #E2E8F0);
}

.mt-cart-list__row:last-child {
  border-bottom: none;
}

.mt-cart-list__td {
  display: flex;
  align-items: center;
}

/* Specific columns */
.mt-cart-list__th--image, .mt-cart-list__td--image {
  justify-content: center;
}

.mt-cart-list__th--remove, .mt-cart-list__td--remove {
  justify-content: center;
}

.mt-cart-list__img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background-color: transparent;
}

.mt-cart-list__product-name {
  font-weight: 700;
  font-family: var(--font-headline);
  color: var(--on-surface, #0F172A);
  font-size: 0.9375rem;
  text-decoration: none;
}

.mt-cart-list__price {
  font-weight: 500;
  color: var(--on-surface-variant, #475569);
  font-size: 0.9375rem;
}

/* Quantity selector */
.mt-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--primary, #CC0018);
  border-radius: 2rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  background-color: #FFFFFF;
}

.mt-cart-qty__btn {
  background: transparent;
  border: none;
  color: var(--primary, #CC0018);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
}

.mt-cart-qty__input {
  width: 1.5rem;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--on-surface, #0F172A);
  font-size: 0.9375rem;
  padding: 0;
  -moz-appearance: textfield;
}
.mt-cart-qty__input::-webkit-outer-spin-button,
.mt-cart-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mt-cart-list__remove-btn {
  background: transparent;
  border: none;
  color: var(--primary, #CC0018);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  transition: opacity 0.2s;
}

.mt-cart-list__remove-btn:hover {
  opacity: 0.8;
}

/* Actions Bottom */
.mt-cart-list__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

.mt-cart-coupon {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mt-cart-coupon__input {
  border: 1px solid var(--outline, #E2E8F0);
  border-radius: var(--radius-lg, 0.5rem);
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  width: 200px;
  outline: none;
}

.mt-cart-coupon__input:focus {
  border-color: var(--primary, #CC0018);
}

.mt-cart-coupon__btn {
  background-color: var(--primary, #CC0018);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-lg, 0.5rem);
  height: 2.5rem;
  padding: 0 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mt-cart-coupon__btn:hover {
  opacity: 0.9;
}

.mt-cart-update-btn {
  background: transparent;
  border: none;
  color: var(--primary, #CC0018);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  transition: transform 0.3s ease;
}

.mt-cart-update-btn:hover {
  transform: rotate(180deg);
}

@media (max-width: 1023px) {
  .mt-cart-list {
    display: none;
  }
}

/* Layout exacto de Resumen de Pedido (Mobile) */
@media (max-width: 1023px) {
  /* Fila de Cupón/Descuento */
  .neural-cart__summary-row--coupon {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .neural-cart__summary-row--coupon .neural-cart__summary-row-label {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.5rem !important;
  }
  .neural-cart__summary-row--coupon .neural-cart__summary-row-value {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 1rem !important;
  }

  /* Estilos para que Claude Code inyecte el HTML de Envío */
  .mt-shipping-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
  }
  .mt-shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .mt-shipping-badge {
    background-color: #FEF2F2;
    color: var(--primary, #CC0018);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 0.25rem;
    text-align: center;
  }
}

