body.woocommerce,
body.woocommerce-page,
body.ega-has-woo{
  --ega-woo-panel: rgba(255,255,255,.88);
  --ega-woo-panel-strong: rgba(255,255,255,.94);
  --ega-woo-panel-soft: rgba(255,255,255,.78);

  --ega-woo-line: rgba(49,43,74,.10);
  --ega-woo-line-strong: rgba(49,43,74,.16);
  --ega-woo-muted: rgba(49,43,74,.62);

  --ega-woo-radius-sm: 12px;
  --ega-woo-radius-md: 14px;
  --ega-woo-radius-lg: 18px;
  --ega-woo-radius-xl: 26px;
  --ega-woo-radius-pill: 999px;

  --ega-woo-shadow-xs: 0 4px 10px rgba(49,43,74,.05);
  --ega-woo-shadow-sm: 0 8px 18px rgba(49,43,74,.08);
  --ega-woo-shadow-md: 0 10px 28px rgba(49,43,74,.10);
  --ega-woo-shadow-lg: 0 18px 60px rgba(49,43,74,.12);

  --ega-woo-btn-h: 46px;
  --ega-woo-input-h: 46px;

  --ega-woo-grad-hero:
    radial-gradient(circle at top left, rgba(248,248,248,.24), transparent 34%),
    radial-gradient(circle at top right, rgba(240,144,168,.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(120,128,248,.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 100%);
}

/* =========================================================
   Base
   ========================================================= */
body.woocommerce,
body.woocommerce-page{
  color: var(--ega-ink);
  font-family: var(--ega-font);
  background: transparent;
}

body.woocommerce .woocommerce,
body.woocommerce-page .woocommerce,
body.woocommerce input,
body.woocommerce select,
body.woocommerce textarea,
body.woocommerce button,
body.woocommerce-page input,
body.woocommerce-page select,
body.woocommerce-page textarea,
body.woocommerce-page button{
  font-family: var(--ega-font) !important;
}

.ega-woo{
  padding: 4px 0 28px;
}

.ega-woo__inner{
  width: min(1240px, 100%);
  margin: 0 auto;
}

.woocommerce a{
  color: var(--ega-ink);
  text-decoration: none;
  transition: color .18s ease, transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.woocommerce a:hover{
  color: var(--ega-primary);
}

.woocommerce img{
  border-radius: var(--ega-woo-radius-lg);
}

.woocommerce .woocommerce-breadcrumb{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: var(--ega-woo-radius-pill);
  background: var(--ega-woo-panel-soft);
  border: 1px solid var(--ega-woo-line);
  box-shadow: var(--ega-woo-shadow-xs);
  color: var(--ega-woo-muted);
  font-size: .92rem;
  backdrop-filter: blur(10px);
}

.woocommerce .woocommerce-breadcrumb a{
  color: var(--ega-ink);
  font-weight: 700;
}

.woocommerce-result-count,
.woocommerce-ordering{
  margin-bottom: 18px;
}

.woocommerce-ordering select,
.woocommerce form .form-row select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
body.woocommerce .select2-container--default .select2-selection--single,
body.woocommerce-page .select2-container--default .select2-selection--single{
  min-height: var(--ega-woo-input-h);
  border-radius: var(--ega-woo-radius-md) !important;
  border: 1px solid var(--ega-woo-line-strong) !important;
  background: #fff !important;
  color: var(--ega-ink) !important;
  box-shadow: none !important;
}

body.woocommerce .select2-container--default .select2-selection--single,
body.woocommerce-page .select2-container--default .select2-selection--single{
  display: flex !important;
  align-items: center;
  padding: 0 12px;
}

body.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered,
body.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height: 44px !important;
  padding-left: 0 !important;
  color: var(--ega-ink) !important;
}

.woocommerce form .form-row textarea{
  min-height: 128px;
  padding-top: 12px;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus{
  outline: none;
  border-color: rgba(120,128,248,.48) !important;
  box-shadow: 0 0 0 4px rgba(120,128,248,.14) !important;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error{
  position: relative;
  overflow: hidden;
  margin: 0 0 20px !important;
  padding: 16px 18px 16px 54px !important;
  border: 0;
  border-radius: var(--ega-woo-radius-lg);
  box-shadow: var(--ega-woo-shadow-sm);
}

.woocommerce-info{
  background: rgba(120,128,248,.12);
  color: #4C54C7;
}

.woocommerce-message{
  background: rgba(248,248,248,.22);
  color: #5A5F9E;
}

.woocommerce-error{
  background: rgba(240,144,168,.12);
  color: #B85F83;
}

.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before{
  top: 50% !important;
  left: 18px !important;
  transform: translateY(-50%);
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt{
  min-height: var(--ega-woo-btn-h);
  padding: 12px 18px !important;
  border: 0 !important;
  border-radius: var(--ega-woo-radius-md) !important;
  background: linear-gradient(135deg, var(--ega-primary), #A7AEFF) !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  box-shadow: 0 10px 24px rgba(120,128,248,.28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover{
  transform: translateY(-1px);
  filter: saturate(1.03);
  box-shadow: 0 16px 30px rgba(120,128,248,.34);
}

.woocommerce .button:active,
.woocommerce button.button:active,
.woocommerce a.button:active{
  transform: translateY(0);
}

.woocommerce .button.disabled,
.woocommerce .button:disabled,
.woocommerce button.button.disabled,
.woocommerce button.button:disabled{
  opacity: .62 !important;
  cursor: not-allowed;
}

.woocommerce .quantity .qty{
  min-width: 78px;
  min-height: var(--ega-woo-input-h);
  border-radius: var(--ega-woo-radius-md);
  border: 1px solid var(--ega-woo-line-strong);
  background: #fff;
  color: var(--ega-ink);
  font-weight: 700;
}

/* =========================================================
   Shop header
   ========================================================= */
body.ega-shop-archive .woocommerce-products-header{
  position: relative;
  overflow: hidden;
  margin: 0 0 24px;
  padding: 28px 24px;
  border-radius: var(--ega-woo-radius-xl);
  background: var(--ega-woo-grad-hero);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: var(--ega-woo-shadow-md);
}

body.ega-shop-archive .woocommerce-products-header::after{
  content: "";
  position: absolute;
  inset: auto -44px -54px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(120,128,248,.12);
  filter: blur(10px);
}

body.ega-shop-archive .woocommerce-products-header__title.page-title{
  margin: 0;
  color: var(--ega-ink);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.04;
}

body.ega-shop-archive .term-description,
body.ega-shop-archive .page-description{
  max-width: 760px;
  margin-top: 10px;
  color: var(--ega-woo-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* =========================================================
   Product grid
   ========================================================= */
.woocommerce ul.products,
.woocommerce-page ul.products{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after{
  display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  position: relative;
  display: flex;
  flex-direction: column;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  list-style: none;
  border-radius: var(--ega-woo-radius-xl);
  background: linear-gradient(180deg, var(--ega-woo-panel-strong) 0%, var(--ega-woo-panel) 100%);
  border: 1px solid rgba(255,255,255,.70);
  box-shadow: var(--ega-woo-shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover{
  transform: translateY(-4px);
  border-color: rgba(120,128,248,.20);
  box-shadow: var(--ega-woo-shadow-lg);
}

.woocommerce ul.products li.product a img{
  width: 100%;
  margin: 0 !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}

.woocommerce ul.products li.product .onsale{
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
  margin: 0 !important;
  min-height: auto;
  padding: 10px 12px;
  border-radius: var(--ega-woo-radius-pill);
  line-height: 1;
  background: linear-gradient(135deg, var(--ega-support), #F7B8C8) !important;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(240,144,168,.26);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link{
  display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title{
  min-height: 3.2em;
  margin: 0;
  padding: 16px 18px 6px;
  color: var(--ega-ink);
  font-size: 1.02rem !important;
  line-height: 1.35;
}

.woocommerce ul.products li.product .price{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 18px 14px;
  color: var(--ega-primary) !important;
  font-size: 1.05rem;
  font-weight: 800;
}

.woocommerce ul.products li.product .price del{
  color: var(--ega-woo-muted);
  opacity: .72;
  font-size: .92rem;
}

.woocommerce ul.products li.product .price ins{
  text-decoration: none;
}

.woocommerce ul.products li.product .star-rating{
  margin: 0 18px 12px !important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart{
  width: calc(100% - 36px);
  margin: auto 18px 18px !important;
  text-align: center;
  justify-content: center;
}

.woocommerce ul.products li.product .added_to_cart{
  display: inline-flex;
  align-items: center;
  min-height: var(--ega-woo-btn-h);
  padding: 12px 16px;
  border-radius: var(--ega-woo-radius-md);
  background: rgba(120,128,248,.10);
  color: #4C54C7;
  font-weight: 700;
}

.woocommerce nav.woocommerce-pagination{
  margin-top: 28px;
}

.woocommerce nav.woocommerce-pagination ul{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li{
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--ega-woo-radius-md);
  background: #fff;
  color: var(--ega-ink);
  border: 1px solid var(--ega-woo-line);
  box-shadow: var(--ega-woo-shadow-xs);
  font-weight: 700;
}

.woocommerce nav.woocommerce-pagination ul li span.current{
  background: linear-gradient(135deg, var(--ega-primary), #A7AEFF);
  color: #fff;
  border-color: transparent;
}

/* =========================================================
   Single product
   ========================================================= */
body.single-product .woocommerce div.product{
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(360px, 1fr);
  gap: 26px;
  align-items: start;
}

body.single-product .woocommerce div.product::before,
body.single-product .woocommerce div.product::after{
  display: none !important;
}

body.single-product .woocommerce div.product > .woocommerce-product-gallery,
body.single-product .woocommerce div.product > .summary{
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  min-width: 0 !important;
}

body.single-product .woocommerce div.product > .woocommerce-product-gallery{
  position: sticky;
  top: 24px;
  width: 100%;
  max-width: 400px;
  justify-self: start;
  padding: 14px;
  border-radius: var(--ega-woo-radius-xl);
  background:
    radial-gradient(circle at top left, rgba(248,248,248,.16), transparent 30%),
    linear-gradient(180deg, var(--ega-woo-panel-strong) 0%, var(--ega-woo-panel) 100%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--ega-woo-shadow-md);
  overflow: hidden;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery__wrapper{
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image,
body.single-product .woocommerce div.product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image a{
  width: 100%;
  height: 100%;
  display: block;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery__wrapper img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
}

body.single-product .woocommerce div.product .onsale{
  top: 18px !important;
  left: 18px !important;
  right: auto !important;
  margin: 0 !important;
  min-height: auto;
  padding: 10px 12px;
  border-radius: 999px;
  line-height: 1;
  background: linear-gradient(135deg, var(--ega-support), #F7B8C8) !important;
  color: #fff !important;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(240,144,168,.24);
}

body.single-product .woocommerce div.product .flex-control-thumbs{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
  margin-top: 10px !important;
}

body.single-product .woocommerce div.product .flex-control-thumbs li{
  width: 100% !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
}

body.single-product .woocommerce div.product .flex-control-thumbs img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: var(--ega-woo-shadow-xs);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.single-product .woocommerce div.product .flex-control-thumbs img:hover,
body.single-product .woocommerce div.product .flex-control-thumbs img.flex-active{
  transform: translateY(-1px);
  border-color: rgba(120,128,248,.42);
  box-shadow: 0 0 0 4px rgba(120,128,248,.12);
}

body.single-product .woocommerce div.product > .summary{
  position: relative;
  padding: 22px;
  border-radius: var(--ega-woo-radius-xl);
  background:
    radial-gradient(circle at top right, rgba(120,128,248,.10), transparent 28%),
    linear-gradient(180deg, var(--ega-woo-panel-strong) 0%, var(--ega-woo-panel) 100%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--ega-woo-shadow-md);
}

body.single-product .woocommerce div.product .product_title{
  margin: 0 0 10px;
  color: var(--ega-ink);
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}

body.single-product .woocommerce div.product .woocommerce-product-rating{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(49,43,74,.08);
}

body.single-product .woocommerce div.product .woocommerce-product-rating .star-rating{
  margin: 0 !important;
}

body.single-product .woocommerce div.product .woocommerce-review-link{
  color: var(--ega-muted);
  font-weight: 600;
}

body.single-product .woocommerce div.product p.price,
body.single-product .woocommerce div.product span.price{
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ega-primary);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
}

body.single-product .woocommerce div.product p.price del,
body.single-product .woocommerce div.product span.price del{
  color: var(--ega-woo-muted);
  opacity: .72;
  font-size: .72em;
}

body.single-product .woocommerce div.product .woocommerce-product-details__short-description{
  margin: 0 0 16px;
  color: var(--ega-woo-muted);
  font-size: 1rem;
  line-height: 1.68;
}

body.single-product .woocommerce div.product form.cart{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(49,43,74,.08);
}

body.single-product .woocommerce div.product form.cart .quantity{
  margin: 0 !important;
}

body.single-product .woocommerce div.product form.cart .qty{
  min-width: 82px;
  min-height: var(--ega-woo-input-h);
  border-radius: 14px;
  font-weight: 800;
}

body.single-product .woocommerce div.product form.cart .single_add_to_cart_button{
  min-width: 220px;
  flex: 1 1 auto;
}

body.single-product .woocommerce div.product .product_meta{
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--ega-woo-line-strong);
  color: var(--ega-woo-muted);
  font-size: .95rem;
}

body.single-product .woocommerce div.product .product_meta > span{
  display: block;
  margin: 7px 0;
}

body.single-product .woocommerce div.product .product_meta a{
  color: var(--ega-ink);
  font-weight: 700;
}

/* Esto era lo que faltaba */
body.single-product .woocommerce div.product .woocommerce-tabs,
body.single-product .woocommerce div.product section.related.products,
body.single-product .woocommerce div.product section.up-sells.upsells{
  grid-column: 1 / -1;
  width: 100%;
}

body.single-product .woocommerce div.product .woocommerce-tabs{
  margin-top: 22px;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs::before{
  display: none !important;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li{
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li::after{
  display: none !important;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li a{
  display: block;
  padding: 12px 16px !important;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ega-woo-line);
  color: var(--ega-ink) !important;
  font-weight: 700;
  box-shadow: var(--ega-woo-shadow-xs);
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active a{
  background: linear-gradient(135deg, rgba(120,128,248,.14), rgba(248,248,248,.28));
  border-color: rgba(120,128,248,.24);
}

body.single-product .woocommerce div.product .woocommerce-Tabs-panel{
  width: 100%;
  max-width: none;
  padding: 22px;
  border-radius: var(--ega-woo-radius-xl);
  background: linear-gradient(180deg, var(--ega-woo-panel-strong) 0%, var(--ega-woo-panel) 100%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--ega-woo-shadow-sm);
}

body.single-product .woocommerce div.product .woocommerce-Tabs-panel > *{
  max-width: 100%;
}

body.single-product .woocommerce div.product .woocommerce-Tabs-panel > *:first-child{
  margin-top: 0;
}

body.single-product .woocommerce div.product .woocommerce-Tabs-panel p,
body.single-product .woocommerce div.product .woocommerce-Tabs-panel li,
body.single-product .woocommerce div.product .woocommerce-Tabs-panel td{
  max-width: none;
}

body.single-product .woocommerce div.product section.related.products,
body.single-product .woocommerce div.product section.up-sells.upsells{
  margin-top: 28px;
}

body.single-product .woocommerce div.product section.related.products > h2,
body.single-product .woocommerce div.product section.up-sells.upsells > h2{
  margin-bottom: 18px;
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--ega-ink);
}

@media (max-width: 980px){
  body.single-product .woocommerce div.product{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.single-product .woocommerce div.product > .woocommerce-product-gallery{
    position: relative;
    top: 0;
    max-width: none;
  }

  body.single-product .woocommerce div.product > .woocommerce-product-gallery,
  body.single-product .woocommerce div.product > .summary,
  body.single-product .woocommerce div.product .woocommerce-Tabs-panel{
    padding: 18px;
    border-radius: 20px;
  }
}

@media (max-width: 640px){
  body.single-product .woocommerce div.product .product_title{
    font-size: 1.8rem;
  }

  body.single-product .woocommerce div.product form.cart .single_add_to_cart_button{
    width: 100%;
    min-width: 0;
  }
}


/* =========================================================
   Cart
   ========================================================= */
.woocommerce-cart .woocommerce{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  align-items: start;
}

.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error{
  grid-column: 1 / -1;
}

.woocommerce-cart .woocommerce-cart-form{
  grid-column: 1;
  margin: 0;
  min-width: 0;
}

.woocommerce-cart .cart-collaterals{
  grid-column: 2;
  width: 100%;
  margin: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals{
  position: sticky;
  top: 24px;
  padding: 22px;
  border-radius: var(--ega-woo-radius-xl);
  background: linear-gradient(180deg, var(--ega-woo-panel-strong) 0%, var(--ega-woo-panel) 100%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--ega-woo-shadow-md);
}

.woocommerce-cart .woocommerce-cart-form{
  padding: 22px;
  border-radius: var(--ega-woo-radius-xl);
  background: linear-gradient(180deg, var(--ega-woo-panel-strong) 0%, var(--ega-woo-panel) 100%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--ega-woo-shadow-md);
}

.woocommerce-cart table.shop_table{
  width: 100%;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0 14px;
  background: transparent;
  margin: 0;
}

.woocommerce-cart table.shop_table thead th{
  border: 0 !important;
  padding: 0 14px 10px !important;
  color: var(--ega-woo-muted);
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.woocommerce-cart table.shop_table tbody tr{
  background: #fff;
  box-shadow: var(--ega-woo-shadow-xs);
}

.woocommerce-cart table.shop_table tbody td{
  padding: 18px 14px !important;
  border-top: 0 !important;
  vertical-align: middle;
  background: #fff;
}

.woocommerce-cart table.shop_table tbody td:first-child{
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.woocommerce-cart table.shop_table tbody td:last-child{
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

.woocommerce-cart table.cart td.product-remove{
  width: 58px;
  text-align: center;
}

.woocommerce-cart table.cart td.product-remove a.remove{
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(240,144,168,.10);
  color: #C56789 !important;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}

.woocommerce-cart table.cart td.product-remove a.remove:hover{
  transform: scale(1.05);
  background: rgba(240,144,168,.18);
  color: #B85F83 !important;
}

.woocommerce-cart table.cart td.product-thumbnail{
  width: 120px;
}

.woocommerce-cart table.cart td.product-thumbnail img{
  width: 88px;
  height: 88px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  box-shadow: var(--ega-woo-shadow-xs);
}

.woocommerce-cart table.cart td.product-name a{
  color: var(--ega-ink);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.35;
}

.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-subtotal{
  white-space: nowrap;
  color: var(--ega-ink);
  font-weight: 700;
  font-size: 1.02rem;
}

.woocommerce-cart table.cart td.product-quantity .quantity{
  margin: 0;
}

.woocommerce-cart table.cart td.product-quantity .qty{
  width: 96px;
  min-width: 96px;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid var(--ega-woo-line-strong);
  background: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  box-shadow: none;
}

.woocommerce-cart table.cart td.actions{
  padding: 16px 14px 0 !important;
  background: transparent;
}

.woocommerce-cart table.cart td.actions::before{
  display: none !important;
}

.woocommerce-cart table.cart td.actions .coupon{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.woocommerce-cart table.cart td.actions .coupon label{
  display: none;
}

.woocommerce-cart .coupon #coupon_code{
  flex: 1 1 260px;
  min-width: 220px;
  min-height: var(--ega-woo-input-h);
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--ega-woo-line-strong);
  background: #fff;
  box-shadow: var(--ega-woo-shadow-xs);
}

.woocommerce-cart .coupon #coupon_code:focus{
  outline: none;
  border-color: rgba(120,128,248,.48);
  box-shadow: 0 0 0 4px rgba(120,128,248,.14);
}

.woocommerce-cart table.cart td.actions .button,
.woocommerce-cart table.cart td.actions button.button,
.woocommerce-cart table.cart td.actions input.button{
  min-height: 54px;
  border-radius: 16px !important;
  padding: 12px 20px !important;
}

.woocommerce-cart table.cart td.actions .coupon + .button,
.woocommerce-cart table.cart td.actions > button.button,
.woocommerce-cart table.cart td.actions > input.button,
.woocommerce-cart table.cart td.actions input[name="update_cart"]{
  margin-left: auto;
}

.woocommerce-cart .cart_totals h2{
  margin: 0 0 18px;
  color: var(--ega-ink);
  font-size: 1.9rem;
  line-height: 1.05;
}

.woocommerce-cart .cart_totals table{
  width: 100%;
  margin: 0 0 18px;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td{
  padding: 18px 16px !important;
  background: #fff;
  border: 0 !important;
  box-shadow: var(--ega-woo-shadow-xs);
}

.woocommerce-cart .cart_totals table th{
  width: 42%;
  color: var(--ega-ink);
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.woocommerce-cart .cart_totals table td{
  color: var(--ega-ink);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.woocommerce-cart .cart_totals table tr.order-total th,
.woocommerce-cart .cart_totals table tr.order-total td{
  font-size: 1.08rem;
}

.woocommerce-cart .wc-proceed-to-checkout{
  margin: 0;
  padding: 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.05rem;
  border-radius: 18px !important;
}

@media (max-width: 1180px){
  .woocommerce-cart .woocommerce{
    grid-template-columns: 1fr;
  }

  .woocommerce-cart .cart-collaterals{
    grid-column: 1;
  }

  .woocommerce-cart .cart-collaterals .cart_totals{
    position: relative;
    top: 0;
  }
}

@media (max-width: 860px){
  .woocommerce-cart .woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals .cart_totals{
    padding: 18px;
  }

  .woocommerce-cart table.shop_table{
    border-spacing: 0 10px;
  }

  .woocommerce-cart table.shop_table thead th{
    font-size: .8rem;
    padding: 0 8px 8px !important;
  }

  .woocommerce-cart table.shop_table tbody td{
    padding: 14px 10px !important;
  }

  .woocommerce-cart table.cart td.product-thumbnail{
    width: 88px;
  }

  .woocommerce-cart table.cart td.product-thumbnail img{
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }

  .woocommerce-cart table.cart td.product-name a{
    font-size: .98rem;
  }

  .woocommerce-cart table.cart td.product-quantity .qty{
    width: 82px;
    min-width: 82px;
    min-height: 48px;
  }
}

@media (max-width: 640px){
  .woocommerce-cart table.cart td.actions .coupon{
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .woocommerce-cart .coupon #coupon_code{
    width: 100%;
    min-width: 0;
  }

  .woocommerce-cart table.cart td.actions .coupon + .button,
  .woocommerce-cart table.cart td.actions > button.button,
  .woocommerce-cart table.cart td.actions > input.button,
  .woocommerce-cart table.cart td.actions input[name="update_cart"]{
    margin-left: 0;
    width: 100%;
  }

  .woocommerce-cart .cart_totals h2{
    font-size: 1.6rem;
  }
}


/* =========================================================
   Cart totals panel fix
   ========================================================= */
.woocommerce-cart .woocommerce{
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.woocommerce-cart .cart-collaterals{
  width: 100%;
}

.woocommerce-cart .cart-collaterals .cart_totals{
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  padding: 24px 22px 22px;
  border-radius: 30px;
  min-height: auto;
}

.woocommerce-cart .cart_totals h2{
  margin: 0 0 16px;
  max-width: none;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.woocommerce-cart .cart_totals table{
  width: 100%;
  margin: 0 0 14px;
  border-spacing: 0 10px;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td{
  padding: 16px 16px !important;
  background: rgba(255,255,255,.92);
  box-shadow: none;
  border: 1px solid rgba(49,43,74,.06);
}

.woocommerce-cart .cart_totals table th{
  width: 52%;
  border-right: 0;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.woocommerce-cart .cart_totals table td{
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.woocommerce-cart .cart_totals table tr.order-total th,
.woocommerce-cart .cart_totals table tr.order-total td{
  background: #fff;
  font-weight: 800;
}

.woocommerce-cart .wc-proceed-to-checkout{
  margin-top: 6px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
  width: 100%;
  min-height: 58px;
  border-radius: 18px !important;
  font-size: 1rem;
}

@media (max-width: 1180px){
  .woocommerce-cart .woocommerce{
    grid-template-columns: 1fr;
  }

  .woocommerce-cart .cart-collaterals .cart_totals{
    max-width: none;
    margin-left: 0;
  }
}
}

/* =========================================================
   Checkout
   ========================================================= */

/* notices arriba */
.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message{
  margin-bottom: 16px;
}

/* base */
.woocommerce-checkout form.checkout{
  display: block;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review,
.woocommerce-checkout .col2-set,
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2{
  box-sizing: border-box;
}

/* =========================================================
   Desktop: 2 columnas reales
   ========================================================= */
@media (min-width: 981px){

  .woocommerce-checkout #customer_details{
    width: calc(100% - 372px) !important;
    float: left !important;
    clear: left !important;
    margin: 0 22px 0 0 !important;
  }

  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review{
    width: 350px !important;
    float: right !important;
    clear: right !important;
    margin: 0 !important;
  }

  .woocommerce-checkout #order_review_heading{
    margin-bottom: 12px !important;
  }

  .woocommerce-checkout form.checkout::after{
    content: "";
    display: block;
    clear: both;
  }

  .woocommerce-checkout #order_review{
    position: sticky;
    top: 24px;
  }
}

/* =========================================================
   Mobile / tablet: 1 columna
   ========================================================= */
@media (max-width: 980px){
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review{
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 0 16px !important;
  }

  .woocommerce-checkout #order_review{
    position: relative;
    top: 0;
  }
}

/* =========================================================
   Left column cards
   ========================================================= */
.woocommerce-checkout #customer_details{
  min-width: 0;
}

.woocommerce-checkout #customer_details.col2-set .col-1,
.woocommerce-checkout #customer_details.col2-set .col-2{
  float: none !important;
  width: 100% !important;
  margin: 0 0 14px !important;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--ega-woo-panel-strong) 0%, var(--ega-woo-panel) 100%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--ega-woo-shadow-sm);
}

.woocommerce-checkout #customer_details.col2-set .col-2{
  margin-bottom: 0 !important;
}

/* headings */
.woocommerce-checkout h3{
  margin: 0 0 12px;
  color: var(--ega-ink);
  font-size: 1.08rem;
  line-height: 1.08;
}

/* field wrappers */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 14px;
}

.woocommerce-checkout .woocommerce-additional-fields__field-wrapper{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.woocommerce-checkout form .form-row{
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-checkout form .form-row-wide,
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #shipping_country_field,
.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #shipping_address_1_field,
.woocommerce-checkout #billing_company_field,
.woocommerce-checkout #shipping_company_field,
.woocommerce-checkout #order_comments_field{
  grid-column: 1 / -1;
}

.woocommerce-checkout form .form-row label{
  display: block;
  margin: 0 0 6px;
  color: var(--ega-ink);
  font-size: .92rem;
  font-weight: 700;
}

.woocommerce-checkout form .form-row .required{
  color: var(--ega-support);
  font-weight: 800;
}

/* inputs */
.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row select,
.woocommerce-checkout form .form-row textarea,
.woocommerce-checkout .select2-container--default .select2-selection--single{
  min-height: 46px;
  border-radius: 14px !important;
  border: 1px solid var(--ega-woo-line-strong) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single{
  display: flex !important;
  align-items: center;
  padding: 0 12px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height: 44px !important;
  padding-left: 0 !important;
  color: var(--ega-ink) !important;
}

.woocommerce-checkout form .form-row textarea{
  min-height: 108px;
  padding-top: 12px;
}

.woocommerce-checkout form .form-row input.input-text:focus,
.woocommerce-checkout form .form-row textarea:focus,
.woocommerce-checkout form .form-row select:focus{
  outline: none;
  border-color: rgba(120,128,248,.48) !important;
  box-shadow: 0 0 0 4px rgba(120,128,248,.14) !important;
}

/* right column cards */
.woocommerce-checkout #order_review_heading{
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--ega-woo-panel-strong) 0%, var(--ega-woo-panel) 100%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--ega-woo-shadow-sm);
  color: var(--ega-ink);
  font-size: 1.14rem;
  line-height: 1.05;
}

.woocommerce-checkout #order_review{
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--ega-woo-panel-strong) 0%, var(--ega-woo-panel) 100%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--ega-woo-shadow-md);
}

/* review table */
.woocommerce-checkout .woocommerce-checkout-review-order-table{
  width: 100%;
  margin: 0 0 14px;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0 8px;
  background: transparent;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead th{
  padding: 0 12px 8px !important;
  border: 0 !important;
  color: var(--ega-woo-muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td{
  padding: 14px 12px !important;
  border-top: 0 !important;
  background: #fff;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td:first-child,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th:first-child{
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td:last-child,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td:last-child{
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name{
  color: var(--ega-ink);
  font-weight: 700;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td{
  text-align: right;
  color: var(--ega-ink);
  font-weight: 700;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total td{
  font-weight: 800;
}

/* payment */
.woocommerce-checkout #payment{
  margin-top: 6px;
  background: rgba(255,248,239,.92) !important;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 20px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.woocommerce-checkout #payment ul.payment_methods{
  margin: 0;
  padding: 8px 16px !important;
  border-bottom: 1px solid var(--ega-woo-line) !important;
}

.woocommerce-checkout #payment ul.payment_methods li{
  margin: 0;
  padding: 10px 0;
}

.woocommerce-checkout #payment ul.payment_methods li label{
  font-weight: 700;
  color: var(--ega-ink);
}

.woocommerce-checkout #payment div.payment_box{
  margin: 8px 0 0 !important;
  padding: 12px 14px !important;
  background: rgba(120,128,248,.10) !important;
  color: var(--ega-ink) !important;
  border-radius: 14px;
}

.woocommerce-checkout #payment div.payment_box::before{
  border-bottom-color: rgba(120,128,248,.10) !important;
}

.woocommerce-checkout #payment .place-order{
  margin: 0;
  padding: 16px !important;
}

.woocommerce-checkout #payment #place_order{
  width: 100%;
  min-height: 56px;
  border-radius: 18px !important;
  font-size: 1rem;
}

.woocommerce-checkout #payment .terms,
.woocommerce-checkout #payment .woocommerce-privacy-policy-text{
  color: var(--ega-woo-muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* responsive compact */
@media (max-width: 860px){
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-additional-fields__field-wrapper{
    grid-template-columns: 1fr;
  }

  .woocommerce-checkout #customer_details.col2-set .col-1,
  .woocommerce-checkout #customer_details.col2-set .col-2,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review{
    padding: 18px;
    border-radius: 22px;
  }
}


/* =========================================================
   My account
   ========================================================= */
body.woocommerce-account .ega-woo__inner{
  width: min(1280px, 100%);
}

body.woocommerce-account .woocommerce{
  display: grid !important;
  grid-template-columns: 290px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

body.woocommerce-account .woocommerce::before,
body.woocommerce-account .woocommerce::after{
  content: none !important;
  display: none !important;
}

/* columnas */
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content{
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  min-width: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation{
  position: sticky;
  top: 24px;
  align-self: start;
}

body.woocommerce-account .woocommerce-MyAccount-content{
  display: block !important;
  width: 100% !important;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--ega-woo-panel-strong) 0%, var(--ega-woo-panel) 100%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--ega-woo-shadow-md);
}

/* menú lateral */
body.woocommerce-account .woocommerce-MyAccount-navigation ul{
  margin: 0 !important;
  padding: 14px !important;
  list-style: none !important;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--ega-woo-panel-strong) 0%, var(--ega-woo-panel) 100%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--ega-woo-shadow-md);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li{
  position: relative;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child{
  margin-bottom: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px;
  width: 100% !important;
  min-height: 50px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  color: var(--ega-ink);
  font-weight: 700;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover{
  background: rgba(120,128,248,.10);
  box-shadow: var(--ega-woo-shadow-xs);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a{
  background: linear-gradient(135deg, rgba(120,128,248,.14), rgba(255,217,49,.22));
  color: var(--ega-ink);
  box-shadow: 0 8px 18px rgba(120,128,248,.12);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active::before{
  content: "";
  position: absolute;
  left: -4px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ega-primary), #A7AEFF);
}

/* contenido general */
body.woocommerce-account .woocommerce-MyAccount-content > *:first-child,
body.woocommerce-account .woocommerce-MyAccount-content h2:first-child,
body.woocommerce-account .woocommerce-MyAccount-content h3:first-child{
  margin-top: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3{
  color: var(--ega-ink);
  line-height: 1.08;
}

body.woocommerce-account .woocommerce-MyAccount-content h2{
  font-size: clamp(1.55rem, 2vw, 2rem);
  margin-bottom: 14px;
}

body.woocommerce-account .woocommerce-MyAccount-content h3{
  font-size: 1.15rem;
  margin-bottom: 12px;
}

body.woocommerce-account .woocommerce-MyAccount-content p{
  max-width: 72ch;
  color: var(--ega-woo-muted);
  line-height: 1.72;
}

/* tablas */
body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account .woocommerce-table{
  width: 100%;
  margin-top: 12px;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0 10px;
  background: transparent;
}

body.woocommerce-account .woocommerce-orders-table thead th,
body.woocommerce-account .woocommerce-table thead th{
  padding: 0 12px 8px !important;
  border: 0 !important;
  color: var(--ega-woo-muted);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

body.woocommerce-account .woocommerce-orders-table tbody td,
body.woocommerce-account .woocommerce-table tbody td,
body.woocommerce-account .woocommerce-orders-table tfoot td,
body.woocommerce-account .woocommerce-orders-table tfoot th,
body.woocommerce-account .woocommerce-table tfoot td,
body.woocommerce-account .woocommerce-table tfoot th{
  padding: 16px 14px !important;
  border-top: 0 !important;
  background: #fff;
  box-shadow: var(--ega-woo-shadow-xs);
  vertical-align: middle;
}

body.woocommerce-account .woocommerce-orders-table tbody td:first-child,
body.woocommerce-account .woocommerce-table tbody td:first-child,
body.woocommerce-account .woocommerce-orders-table tfoot th:first-child,
body.woocommerce-account .woocommerce-table tfoot th:first-child{
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

body.woocommerce-account .woocommerce-orders-table tbody td:last-child,
body.woocommerce-account .woocommerce-table tbody td:last-child,
body.woocommerce-account .woocommerce-orders-table tfoot td:last-child,
body.woocommerce-account .woocommerce-table tfoot td:last-child{
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* direcciones */
body.woocommerce-account .woocommerce-Addresses{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin-top: 12px;
}

body.woocommerce-account .woocommerce-Address{
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ega-woo-line);
  box-shadow: var(--ega-woo-shadow-xs);
}

body.woocommerce-account .woocommerce-Address-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.woocommerce-account .woocommerce-Address-title h3{
  margin: 0;
  font-size: 1.05rem;
}

body.woocommerce-account .woocommerce-Address address{
  margin: 0;
  color: var(--ega-woo-muted);
  line-height: 1.7;
}

/* formularios */
body.woocommerce-account .woocommerce-EditAccountForm,
body.woocommerce-account .woocommerce-address-fields form,
body.woocommerce-account form.woocommerce-ResetPassword{
  display: grid;
  gap: 14px;
}

body.woocommerce-account .woocommerce form .form-row{
  margin: 0;
  padding: 0;
}

body.woocommerce-account .woocommerce form .form-row label{
  display: block;
  margin: 0 0 6px;
  color: var(--ega-ink);
  font-size: .92rem;
  font-weight: 700;
}

body.woocommerce-account .woocommerce form .form-row .input-text,
body.woocommerce-account .woocommerce form .form-row select,
body.woocommerce-account .woocommerce form .form-row textarea{
  min-height: 46px;
  border-radius: 14px !important;
  border: 1px solid var(--ega-woo-line-strong) !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.woocommerce-account .woocommerce form .form-row textarea{
  min-height: 110px;
  padding-top: 12px;
}

body.woocommerce-account .woocommerce form .form-row .input-text:focus,
body.woocommerce-account .woocommerce form .form-row select:focus,
body.woocommerce-account .woocommerce form .form-row textarea:focus{
  outline: none;
  border-color: rgba(120,128,248,.48) !important;
  box-shadow: 0 0 0 4px rgba(120,128,248,.14) !important;
}

/* descargas */
body.woocommerce-account .woocommerce-table--order-downloads,
body.woocommerce-account .woocommerce-order-downloads{
  overflow: hidden;
  border-radius: 18px;
}

body.woocommerce-account .woocommerce-table--order-downloads a,
body.woocommerce-account .download-file a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(120,128,248,.10);
  color: #4C54C7;
  font-weight: 700;
}

body.woocommerce-account .woocommerce-table--order-downloads a:hover,
body.woocommerce-account .download-file a:hover{
  background: rgba(120,128,248,.16);
}

/* botones */
body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content a.button{
  min-height: 44px;
  border-radius: 14px !important;
}

/* mensajes */
body.woocommerce-account .woocommerce-Message,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info{
  border-radius: 18px;
}

/* home dashboard */
body.woocommerce-account .ega-account-home{
  display: grid;
  gap: 18px;
}

body.woocommerce-account .ega-account-home__hero{
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(248,248,248,.20), transparent 28%),
    radial-gradient(circle at top right, rgba(120,128,248,.14), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 100%);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--ega-woo-shadow-md);
}

body.woocommerce-account .ega-account-home__hero::after{
  content: "";
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(240,144,168,.10);
  filter: blur(8px);
}

body.woocommerce-account .ega-account-home__hero-copy{
  position: relative;
  z-index: 1;
}

body.woocommerce-account .ega-account-home__eyebrow{
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(120,128,248,.12);
  color: #4C54C7;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.woocommerce-account .ega-account-home__hero h2{
  margin: 0 0 8px;
  color: var(--ega-ink);
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  line-height: 1.02;
}

body.woocommerce-account .ega-account-home__hero p{
  margin: 0;
  max-width: 62ch;
  color: var(--ega-woo-muted);
  line-height: 1.7;
}

body.woocommerce-account .ega-account-home__hero-actions{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-width: 180px;
}

body.woocommerce-account .ega-account-home__ghost{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(120,128,248,.08);
  color: var(--ega-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--ega-woo-shadow-xs);
}

body.woocommerce-account .ega-account-home__ghost:hover{
  background: rgba(120,128,248,.14);
  color: var(--ega-ink);
}

body.woocommerce-account .ega-account-home__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

body.woocommerce-account .ega-account-quickcard{
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) 20px;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.92) 100%);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--ega-woo-shadow-sm);
  color: var(--ega-ink);
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.woocommerce-account .ega-account-quickcard:hover{
  transform: translateY(-2px);
  border-color: rgba(120,128,248,.22);
  box-shadow: var(--ega-woo-shadow-md);
  color: var(--ega-ink);
}

body.woocommerce-account .ega-account-quickcard__icon{
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(120,128,248,.14), rgba(248,248,248,.22));
  font-size: 1.35rem;
}

body.woocommerce-account .ega-account-quickcard__content{
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.woocommerce-account .ega-account-quickcard__title{
  color: var(--ega-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
}

body.woocommerce-account .ega-account-quickcard__desc{
  color: var(--ega-woo-muted);
  font-size: .92rem;
  line-height: 1.5;
}

body.woocommerce-account .ega-account-quickcard__arrow{
  color: var(--ega-primary);
  font-size: 1.05rem;
  font-weight: 800;
}

body.woocommerce-account .ega-account-home__panel{
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 100%);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--ega-woo-shadow-sm);
}

body.woocommerce-account .ega-account-home__panel-head{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

body.woocommerce-account .ega-account-home__mini{
  display: inline-block;
  margin-bottom: 4px;
  color: var(--ega-primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body.woocommerce-account .ega-account-home__panel-head h3{
  margin: 0;
  color: var(--ega-ink);
  font-size: 1.2rem;
}

body.woocommerce-account .ega-account-home__panel-head a{
  font-weight: 700;
}

body.woocommerce-account .ega-account-orders{
  display: grid;
  gap: 12px;
}

body.woocommerce-account .ega-account-ordercard{
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(49,43,74,.06);
  box-shadow: var(--ega-woo-shadow-xs);
  color: var(--ega-ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.woocommerce-account .ega-account-ordercard:hover{
  transform: translateY(-1px);
  border-color: rgba(120,128,248,.18);
  box-shadow: var(--ega-woo-shadow-sm);
  color: var(--ega-ink);
}

body.woocommerce-account .ega-account-ordercard__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.woocommerce-account .ega-account-ordercard__top strong{
  font-size: 1rem;
}

body.woocommerce-account .ega-account-ordercard__status{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(120,128,248,.10);
  color: #4C54C7;
  font-size: .8rem;
  font-weight: 800;
}

body.woocommerce-account .ega-account-ordercard__meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ega-woo-muted);
  font-size: .92rem;
}

body.woocommerce-account .ega-account-empty{
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(49,43,74,.06);
  box-shadow: var(--ega-woo-shadow-xs);
}

body.woocommerce-account .ega-account-empty p{
  margin: 0;
}

/* responsive */
@media (max-width: 1100px){
  body.woocommerce-account .woocommerce{
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation{
    position: relative;
    top: 0;
  }
}

@media (max-width: 980px){
  body.woocommerce-account .ega-account-home__hero{
    grid-template-columns: 1fr;
  }

  body.woocommerce-account .ega-account-home__hero-actions{
    min-width: 0;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px){
  body.woocommerce-account .woocommerce-MyAccount-content,
  body.woocommerce-account .woocommerce-MyAccount-navigation ul,
  body.woocommerce-account .ega-account-home__hero,
  body.woocommerce-account .ega-account-home__panel{
    padding: 18px !important;
    border-radius: 22px;
  }

  body.woocommerce-account .woocommerce-Addresses,
  body.woocommerce-account .ega-account-home__grid{
    grid-template-columns: 1fr;
  }

  body.woocommerce-account .ega-account-quickcard{
    min-height: 88px;
    padding: 16px;
    border-radius: 18px;
  }
}

@media (max-width: 640px){
  body.woocommerce-account .woocommerce-MyAccount-navigation ul li a{
    min-height: 46px !important;
    padding: 11px 12px !important;
    border-radius: 14px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content{
    padding: 18px;
  }

  body.woocommerce-account .ega-account-home__hero-actions{
    grid-template-columns: 1fr;
  }

  body.woocommerce-account .ega-account-ordercard__top,
  body.woocommerce-account .ega-account-ordercard__meta,
  body.woocommerce-account .ega-account-home__panel-head{
    display: grid;
    align-items: start;
  }
}

/* =========================================================
   My account dashboard only
   ========================================================= */
body.woocommerce-account.ega-account-dashboard-only .woocommerce{
  grid-template-columns: minmax(0, 1fr) !important;
}

body.woocommerce-account.ega-account-dashboard-only .woocommerce-MyAccount-navigation{
  display: none !important;
}

body.woocommerce-account.ega-account-dashboard-only .woocommerce-MyAccount-content{
  grid-column: 1;
  max-width: 100%;
}



/* =========================================================
   Downloads
   ========================================================= */
.woocommerce-order-downloads,
.woocommerce-table--order-downloads{
  overflow: hidden;
  border-radius: var(--ega-woo-radius-lg);
}

.woocommerce-order-downloads td.download-file a,
.woocommerce-table--order-downloads td.download-file a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--ega-woo-radius-sm);
  background: rgba(120,128,248,.10);
  color: #4C54C7;
  font-weight: 700;
}

.woocommerce-order-downloads td.download-file a:hover,
.woocommerce-table--order-downloads td.download-file a:hover{
  background: rgba(120,128,248,.16);
}

/* =========================================================
   Ratings / empty states
   ========================================================= */
.woocommerce .star-rating,
.woocommerce p.stars a{
  color: #F090A8;
}

.woocommerce .cart-empty,
.woocommerce .return-to-shop,
.woocommerce-account .woocommerce-Message{
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--ega-woo-panel-strong) 0%, var(--ega-woo-panel) 100%);
  border: 1px solid rgba(255,255,255,.70);
  box-shadow: var(--ega-woo-shadow-sm);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  body.woocommerce-account .woocommerce{
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 860px){
  .ega-woo{
    padding: 2px 0 22px;
  }

  body.ega-shop-archive .woocommerce-products-header{
    padding: 22px 18px;
    border-radius: 22px;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary{
    float: none !important;
    width: 100% !important;
    margin-bottom: 18px;
  }

  .woocommerce-checkout .col2-set,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review,
  body.woocommerce-account .woocommerce-MyAccount-content{
    padding: 18px;
  }
}

@media (max-width: 640px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns: 1fr;
  }

  .woocommerce table.shop_table,
  .woocommerce table.shop_table tbody,
  .woocommerce table.shop_table tfoot,
  .woocommerce table.shop_table tr,
  .woocommerce table.shop_table td,
  .woocommerce table.shop_table th{
    font-size: .95rem;
  }

  .woocommerce-cart .coupon{
    display: grid;
    grid-template-columns: 1fr;
  }

  .woocommerce-cart .coupon #coupon_code{
    width: 100%;
  }

  .woocommerce div.product .summary,
  .woocommerce div.product .woocommerce-product-gallery,
  .woocommerce div.product .woocommerce-Tabs-panel{
    padding: 18px;
    border-radius: 20px;
  }

  .woocommerce div.product .product_title{
    font-size: 1.8rem;
  }

  .woocommerce .woocommerce-breadcrumb{
    display: flex;
    border-radius: 16px;
    padding: 10px 12px;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  .woocommerce *,
  .woocommerce *::before,
  .woocommerce *::after{
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
