/* =========================================================
   WooCommerce – Escuelaguia App
   ========================================================= */

:root{
  --ega-woo-bg:#ffffff;
  --ega-woo-card:rgba(255,255,255,.96);
  --ega-woo-line:rgba(43,62,102,.08);
  --ega-woo-line-strong:rgba(43,62,102,.12);
  --ega-woo-shadow:0 10px 24px rgba(43,62,102,.06);
  --ega-woo-shadow-hover:0 16px 34px rgba(43,62,102,.10);
}

/* =========================================================
   Base
   ========================================================= */

.ega-woo-wrap{
  width:100%;
}

.ega-woo-container{
  width:min(1200px, 100%);
  margin:0 auto;
  padding:14px;
}

body.woocommerce .woocommerce,
body.woocommerce-page .woocommerce{
  color:var(--ega-ink);
}

body.woocommerce .woocommerce a,
body.woocommerce-page .woocommerce a{
  color:var(--ega-ink);
}

body.woocommerce .woocommerce a:hover,
body.woocommerce-page .woocommerce a:hover{
  color:var(--ega-primary);
}

body.woocommerce ul.products,
body.woocommerce-page ul.products{
  list-style:none;
  margin:0;
  padding:0;
}

body.woocommerce .button,
body.woocommerce button.button,
body.woocommerce input.button,
body.woocommerce a.button,
body.woocommerce-page .button,
body.woocommerce-page button.button,
body.woocommerce-page input.button,
body.woocommerce-page a.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 18px;
  border:none;
  border-radius:999px;
  background:var(--ega-rainbow);
  color:#fff !important;
  font-weight:700;
  line-height:1.1;
  box-shadow:0 8px 18px rgba(43,62,102,.10);
  transition:transform .14s ease, filter .14s ease, box-shadow .14s ease;
}

body.woocommerce .button:hover,
body.woocommerce button.button:hover,
body.woocommerce input.button:hover,
body.woocommerce a.button:hover,
body.woocommerce-page .button:hover,
body.woocommerce-page button.button:hover,
body.woocommerce-page input.button:hover,
body.woocommerce-page a.button:hover{
  transform:translateY(-1px);
  filter:saturate(1.04);
  box-shadow:0 14px 26px rgba(43,62,102,.14);
  color:#fff !important;
}

body.woocommerce input.input-text,
body.woocommerce textarea,
body.woocommerce select,
body.woocommerce-page input.input-text,
body.woocommerce-page textarea,
body.woocommerce-page select{
  width:100%;
  min-height:46px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(91,141,239,.12);
  background:#fff;
  color:var(--ega-ink);
  box-shadow:none;
}

body.woocommerce input.input-text:focus,
body.woocommerce textarea:focus,
body.woocommerce select:focus,
body.woocommerce-page input.input-text:focus,
body.woocommerce-page textarea:focus,
body.woocommerce-page select:focus{
  outline:none;
  border-color:rgba(77,150,255,.34);
  box-shadow:0 0 0 3px rgba(77,150,255,.10);
}

body.woocommerce .woocommerce-message,
body.woocommerce .woocommerce-info,
body.woocommerce .woocommerce-error,
body.woocommerce-page .woocommerce-message,
body.woocommerce-page .woocommerce-info,
body.woocommerce-page .woocommerce-error{
  margin:0 0 14px;
  padding:14px 16px;
  border:none;
  border-radius:16px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--ega-woo-shadow);
}

/* =========================================================
   Archive
   ========================================================= */

body.woocommerce-shop ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  margin:18px 0 0;
  padding:0;
}

body.woocommerce-shop ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product{
  width:auto !important;
  float:none !important;
  margin:0 !important;
}

.ega-shophead,
.ega-shopbar,
.ega-shoppager,
.ega-shop-empty{
  margin-bottom:16px;
}

.ega-shophead,
.ega-shopbar,
.ega-shoppager,
.ega-shop-empty{
  background:rgba(255,255,255,.74);
  border:1px solid rgba(255,255,255,.62);
  box-shadow:0 12px 30px rgba(43,62,102,.05);
}

.ega-shophead{
  padding:22px;
}

.ega-shophead__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.ega-shophead__intro{
  display:grid;
  gap:8px;
}

.ega-shophead__title{
  margin:0;
  font-size:clamp(34px, 4vw, 52px);
  line-height:1.02;
  color:var(--ega-ink);
}

.ega-shophead .term-description,
.ega-shophead .page-description,
.ega-shophead p{
  margin:0;
  max-width:760px;
  color:var(--ega-muted);
  line-height:1.7;
}

.ega-shopbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:16px 18px;
}

.ega-shopbar__count .woocommerce-result-count{
  margin:0;
  color:var(--ega-muted);
  font-weight:600;
}

.ega-shopbar__orderby .woocommerce-ordering{
  margin:0;
}

.ega-shopbar__orderby .orderby{
  min-width:320px;
}

.ega-shoppager{
  padding:16px 18px;
}

.ega-shoppager .woocommerce-pagination{
  margin:0;
}

.ega-shoppager .woocommerce-pagination ul.page-numbers{
  border:none;
  margin:0;
  padding:0;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  list-style:none;
}

.ega-shoppager .woocommerce-pagination ul.page-numbers li{
  border:none;
  margin:0;
  padding:0;
  overflow:visible;
}

.ega-shoppager .woocommerce-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  text-decoration:none;
  background:#fff;
  border:1px solid rgba(91,141,239,.10);
  color:var(--ega-ink);
  font-weight:700;
}

.ega-shoppager .woocommerce-pagination .page-numbers.current,
.ega-shoppager .woocommerce-pagination a.page-numbers:hover{
  background:var(--ega-rainbow);
  color:#fff;
  border-color:transparent;
}

.ega-shop-empty{
  padding:18px;
}

/* =========================================================
   Product cards
   ========================================================= */

body.woocommerce-shop ul.products li.product.ega-product-card,
body.tax-product_cat ul.products li.product.ega-product-card,
body.tax-product_tag ul.products li.product.ega-product-card{
  display:flex;
  flex-direction:column;
  padding:0;
  border:1px solid rgba(91,141,239,.08);
  border-radius:20px;
  background:var(--ega-woo-card);
  box-shadow:var(--ega-woo-shadow);
  overflow:hidden;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

body.woocommerce-shop ul.products li.product.ega-product-card:hover,
body.tax-product_cat ul.products li.product.ega-product-card:hover,
body.tax-product_tag ul.products li.product.ega-product-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--ega-woo-shadow-hover);
  border-color:rgba(91,141,239,.14);
}

.ega-product-card__link{
  display:flex;
  flex-direction:column;
  color:inherit;
  text-decoration:none;
  height:100%;
}

.ega-product-card__media{
  position:relative;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:linear-gradient(
    135deg,
    rgba(255,107,107,.08),
    rgba(77,150,255,.10)
  );
}

.ega-product-card__media img{
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  object-fit:cover;
  display:block;
}

.ega-product-card__badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--ega-support);
  color:#fff;
  font-size:12px;
  font-weight:800;
  line-height:1;
  box-shadow:0 8px 18px rgba(43,62,102,.10);
}

.ega-product-card__body{
  display:grid;
  gap:10px;
  padding:16px 16px 10px;
}

.ega-product-card__title{
  margin:0;
  font-size:20px;
  line-height:1.2;
  color:var(--ega-ink);
}

.ega-product-card__price{
  margin:0;
  color:var(--ega-primary);
  font-weight:800;
  font-size:20px;
}

.ega-product-card__price del{
  opacity:.55;
  margin-right:6px;
}

.ega-product-card__price ins{
  text-decoration:none;
}

.ega-product-card__footer{
  margin-top:auto;
  padding:0 16px 16px;
}

.ega-product-card__footer .button,
.ega-product-card__footer .added_to_cart{
  width:100%;
  justify-content:center;
  text-align:center;
}

.ega-product-card__footer .added_to_cart{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  margin-top:8px;
  text-decoration:none;
  font-weight:700;
  color:var(--ega-primary);
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-shop ul.products li.product > .price,
body.tax-product_cat ul.products li.product > .price,
body.tax-product_tag ul.products li.product > .price,
body.woocommerce-shop ul.products li.product > .button,
body.tax-product_cat ul.products li.product > .button,
body.tax-product_tag ul.products li.product > .button{
  display:none !important;
}

/* =========================================================
   Single product
   ========================================================= */

.ega-single-product-wrap{
  width:100%;
}

.ega-single-product{
  display:grid;
  gap:18px;
}

.ega-single-product__main{
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(360px, .95fr);
  gap:18px;
  align-items:start;
}

.ega-single-product__gallery,
.ega-single-product__summary,
.ega-single-product__extra{
  background:var(--ega-woo-card);
  border:1px solid rgba(91,141,239,.08);
  box-shadow:var(--ega-woo-shadow);
  border-radius:20px;
  padding:18px;
}

.ega-single-product__gallery .woocommerce-product-gallery{
  width:100% !important;
}

.ega-single-product__gallery .woocommerce-product-gallery__wrapper{
  border-radius:16px;
  overflow:hidden;
}

.ega-single-product__gallery img{
  display:block;
  width:100%;
  height:auto;
  border-radius:16px;
}

.ega-single-product__summary .product_title{
  margin:0 0 10px;
  font-size:clamp(34px, 4vw, 56px);
  line-height:0.98;
  color:var(--ega-ink);
}

.ega-single-product__summary .price{
  color:var(--ega-primary);
  font-size:28px;
  font-weight:800;
  margin:0 0 16px;
}

.ega-single-product__summary .woocommerce-product-details__short-description{
  color:var(--ega-muted);
  line-height:1.75;
  margin-bottom:16px;
}

.ega-single-product__summary form.cart{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}

.ega-single-product__summary .quantity{
  margin:0 !important;
}

.ega-single-product__summary .qty{
  width:88px;
  min-width:88px;
  text-align:center;
}

.ega-single-product__summary .single_add_to_cart_button{
  min-width:200px;
}

.ega-single-product__summary .product_meta{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(43,62,102,.08);
  color:var(--ega-muted);
  font-size:13px;
}

.ega-single-product__extra .woocommerce-tabs{
  margin:0;
}

.ega-single-product__extra .woocommerce-tabs ul.tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 18px !important;
  padding:0 !important;
}

.ega-single-product__extra .woocommerce-tabs ul.tabs::before,
.ega-single-product__extra .woocommerce-tabs ul.tabs::after{
  display:none !important;
}

.ega-single-product__extra .woocommerce-tabs ul.tabs li{
  margin:0 !important;
  padding:0 !important;
  border:none !important;
  background:none !important;
}

.ega-single-product__extra .woocommerce-tabs ul.tabs li::before,
.ega-single-product__extra .woocommerce-tabs ul.tabs li::after{
  display:none !important;
}

.ega-single-product__extra .woocommerce-tabs ul.tabs li a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 14px;
  border-radius:999px;
  text-decoration:none;
  background:#fff;
  border:1px solid rgba(91,141,239,.10);
  font-weight:700;
  color:var(--ega-ink);
}

.ega-single-product__extra .woocommerce-tabs ul.tabs li.active a,
.ega-single-product__extra .woocommerce-tabs ul.tabs li a:hover{
  background:linear-gradient(
    135deg,
    color-mix(in srgb, var(--ega-rainbow-5) 12%, #fff),
    color-mix(in srgb, var(--ega-rainbow-2) 12%, #fff)
  );
  border-color:rgba(91,141,239,.16);
}

/* =========================================================
   Cart
   ========================================================= */

body.woocommerce-cart .woocommerce{
  display:grid;
  gap:18px;
}

body.woocommerce-cart form.woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals{
  background:var(--ega-woo-card);
  border:1px solid rgba(91,141,239,.08);
  border-radius:20px;
  box-shadow:var(--ega-woo-shadow);
}

body.woocommerce-cart form.woocommerce-cart-form{
  width:100%;
  margin:0;
  padding:18px;
  overflow-x:auto;
}

body.woocommerce-cart table.shop_table{
  width:100%;
  min-width:760px;
  border-collapse:separate;
  border-spacing:0;
  border:none;
  background:transparent;
}

body.woocommerce-cart table.shop_table th{
  font-size:14px;
  font-weight:800;
  color:var(--ega-ink);
  padding:12px 10px 16px;
  border-bottom:1px solid var(--ega-woo-line);
}

body.woocommerce-cart table.shop_table td{
  padding:16px 10px;
  vertical-align:middle;
  border-top:1px solid var(--ega-woo-line);
}

body.woocommerce-cart td.product-thumbnail{
  width:88px;
}

body.woocommerce-cart td.product-thumbnail img{
  width:72px;
  min-width:72px;
  border-radius:14px;
  display:block;
}

body.woocommerce-cart td.product-name a{
  font-weight:700;
  text-decoration:none;
  line-height:1.35;
}

body.woocommerce-cart td.product-quantity input.qty{
  width:100px;
  text-align:center;
}

body.woocommerce-cart .actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding-top:14px;
}

body.woocommerce-cart .coupon{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

body.woocommerce-cart .coupon #coupon_code{
  width:240px !important;
  min-width:240px;
}

body.woocommerce-cart .cart-collaterals{
  width:100%;
  max-width:560px;
  margin-left:auto;
  padding:18px;
}

body.woocommerce-cart .cart-collaterals .cart_totals{
  width:100% !important;
  float:none !important;
}

body.woocommerce-cart .cart_totals h2{
  margin:0 0 14px;
  font-size:24px;
  line-height:1.1;
}

body.woocommerce-cart .cart_totals table{
  border:none;
}

body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td{
  padding:12px 0;
  border-top:1px solid var(--ega-woo-line);
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button{
  width:100%;
  text-align:center;
  justify-content:center;
}

/* =========================================================
   Checkout
   ========================================================= */

body.woocommerce-checkout .woocommerce-checkout{
  display:grid;
  grid-template-columns:minmax(0, 1.08fr) minmax(340px, .92fr);
  gap:18px;
  align-items:start;
}

body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-form-login,
body.woocommerce-checkout .woocommerce-form-coupon{
  background:var(--ega-woo-card);
  border:1px solid rgba(91,141,239,.08);
  border-radius:20px;
  box-shadow:var(--ega-woo-shadow);
  padding:18px;
}

body.woocommerce-checkout .col2-set,
body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2{
  width:100% !important;
  float:none !important;
}

body.woocommerce-checkout h3{
  margin:0 0 16px;
  font-size:22px;
  line-height:1.15;
}

body.woocommerce-checkout .form-row{
  margin-bottom:12px;
}

body.woocommerce-checkout #order_review table{
  border:none;
}

body.woocommerce-checkout #order_review .shop_table th,
body.woocommerce-checkout #order_review .shop_table td{
  padding:12px 0;
  border-top:1px solid var(--ega-woo-line);
}

body.woocommerce-checkout #payment{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

body.woocommerce-checkout #payment ul.payment_methods{
  padding:10px 0 12px !important;
  border-bottom:1px solid var(--ega-woo-line) !important;
}

body.woocommerce-checkout #payment .place-order{
  padding:14px 0 0 !important;
}

body.woocommerce-checkout #place_order{
  width:100%;
  justify-content:center;
  text-align:center;
}

/* =========================================================
   My account
   ========================================================= */

body.woocommerce-account .woocommerce{
  display:grid;
  grid-template-columns:260px minmax(0, 1fr);
  gap:18px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content{
  background:var(--ega-woo-card);
  border:1px solid rgba(91,141,239,.08);
  border-radius:20px;
  box-shadow:var(--ega-woo-shadow);
  padding:18px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 12px;
  border-radius:12px;
  text-decoration:none;
  background:#fff;
  border:1px solid rgba(91,141,239,.10);
  color:var(--ega-ink);
  font-weight:700;
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover{
  background:linear-gradient(
    135deg,
    color-mix(in srgb, var(--ega-rainbow-5) 12%, #fff),
    color-mix(in srgb, var(--ega-rainbow-2) 12%, #fff)
  );
  border-color:rgba(91,141,239,.16);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px){
  body.woocommerce-shop ul.products,
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .ega-single-product__main,
  body.woocommerce-checkout .woocommerce-checkout,
  body.woocommerce-account .woocommerce{
    grid-template-columns:1fr;
  }
}

@media (max-width: 700px){
  body.woocommerce-shop ul.products,
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products{
    grid-template-columns:1fr;
  }

  .ega-shophead,
  .ega-shopbar,
  .ega-shoppager,
  .ega-shop-empty,
  .ega-single-product__gallery,
  .ega-single-product__summary,
  .ega-single-product__extra,
  body.woocommerce-cart form.woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals,
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout .woocommerce-form-login,
  body.woocommerce-checkout .woocommerce-form-coupon,
  body.woocommerce-account .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-MyAccount-content{
    padding:14px;
    border-radius:16px;
  }

  .ega-shopbar{
    align-items:stretch;
  }

  .ega-shopbar__orderby,
  .ega-shopbar__orderby .woocommerce-ordering,
  .ega-shopbar__orderby .orderby{
    width:100%;
    min-width:0;
  }

  .ega-single-product__summary form.cart{
    align-items:stretch;
  }

  .ega-single-product__summary .qty,
  .ega-single-product__summary .single_add_to_cart_button{
    width:100%;
    min-width:0;
  }

  body.woocommerce-cart .coupon,
  body.woocommerce-cart .coupon #coupon_code{
    width:100% !important;
    min-width:0;
  }

  body.woocommerce-cart .actions > .button,
  body.woocommerce-cart .actions > button{
    width:100%;
  }
}