/* ==========================================================
   PORTAL 22 × WOOCOMMERCE — v15.3
   Cobertura global: tienda, categorías, etiquetas, búsqueda,
   producto, carrito, checkout, cuenta, pedidos y descargas.
   ========================================================== */

:root{
  --p22-woo-ink:#2b1d36;
  --p22-woo-ink-2:#443150;
  --p22-woo-purple:#6b4f88;
  --p22-woo-purple-dark:#24172f;
  --p22-woo-purple-deep:#1b1124;
  --p22-woo-lav:#b9a7d6;
  --p22-woo-lav-soft:#eee7f7;
  --p22-woo-gold:#d2ae5c;
  --p22-woo-gold-soft:#efd99a;
  --p22-woo-cream:#fbf7ef;
  --p22-woo-cream-2:#f6f0e8;
  --p22-woo-white:#fff;
  --p22-woo-muted:#7d7081;
  --p22-woo-line:rgba(55,36,66,.12);
  --p22-woo-shadow:0 18px 55px rgba(44,28,52,.09);
  --p22-woo-shadow-lg:0 28px 80px rgba(34,20,42,.13);
  --p22-woo-radius:22px;
  --p22-woo-radius-sm:14px;
}

body.p22-woocommerce{
  background:var(--p22-woo-cream)!important;
  color:var(--p22-woo-ink);
}

body.p22-woocommerce #content,
body.p22-woocommerce .site-main,
body.p22-woocommerce main{
  min-width:0;
}

/* Evitar sidebar clásico de Hello/Woo en las vistas comerciales */
body.p22-woocommerce #secondary,
body.p22-woocommerce aside.widget-area{
  display:none!important;
}
body.p22-woocommerce #primary,
body.p22-woocommerce .content-area{
  width:100%!important;
  max-width:none!important;
  float:none!important;
}

/* Contenedores generales */
body.p22-woocommerce .woocommerce,
body.p22-woocommerce .wp-block-woocommerce-cart,
body.p22-woocommerce .wp-block-woocommerce-checkout{
  width:min(1180px,calc(100% - 40px));
  margin-left:auto;
  margin-right:auto;
}

body.p22-woocommerce.woocommerce-shop .site-main,
body.p22-woocommerce.post-type-archive-product .site-main,
body.p22-woocommerce.tax-product_cat .site-main,
body.p22-woocommerce.tax-product_tag .site-main,
body.p22-woocommerce.single-product .site-main,
body.p22-woocommerce.woocommerce-account .site-main,
body.p22-woocommerce.woocommerce-cart .site-main,
body.p22-woocommerce.woocommerce-checkout .site-main{
  padding:54px 0 88px;
}

/* Tipografía */
body.p22-woocommerce .woocommerce h1,
body.p22-woocommerce .woocommerce h2,
body.p22-woocommerce .woocommerce h3,
body.p22-woocommerce .woocommerce h4,
body.p22-woocommerce .wc-block-components-title,
body.p22-woocommerce .wp-block-woocommerce-cart h2,
body.p22-woocommerce .wp-block-woocommerce-checkout h2{
  color:var(--p22-woo-ink);
  font-family:"Fraunces",Georgia,serif;
  font-weight:500;
  letter-spacing:-.025em;
}

body.p22-woocommerce .woocommerce p,
body.p22-woocommerce .woocommerce li,
body.p22-woocommerce .woocommerce label,
body.p22-woocommerce .woocommerce input,
body.p22-woocommerce .woocommerce select,
body.p22-woocommerce .woocommerce textarea,
body.p22-woocommerce .wc-block-components-text-input input,
body.p22-woocommerce .wc-block-components-combobox-control input,
body.p22-woocommerce .wc-block-components-formatted-money-amount,
body.p22-woocommerce .wc-block-components-product-name{
  font-family:"Lato",Arial,sans-serif;
}

body.p22-woocommerce a{
  color:var(--p22-woo-purple);
}

/* Migas */
body.p22-woocommerce .woocommerce-breadcrumb{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto 28px!important;
  color:#8a7d8e!important;
  font-size:12px!important;
  letter-spacing:.035em;
}
body.p22-woocommerce .woocommerce-breadcrumb a{
  color:var(--p22-woo-purple)!important;
  text-decoration:none!important;
}

/* Botones */
body.p22-woocommerce .woocommerce a.button,
body.p22-woocommerce .woocommerce button.button,
body.p22-woocommerce .woocommerce input.button,
body.p22-woocommerce .woocommerce #respond input#submit,
body.p22-woocommerce .wp-element-button,
body.p22-woocommerce .wc-block-components-button:not(.is-link),
body.p22-woocommerce button.wc-block-cart-item__remove-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 24px;
  border:0!important;
  border-radius:999px!important;
  color:#24172f!important;
  background:linear-gradient(135deg,var(--p22-woo-gold-soft),var(--p22-woo-gold))!important;
  box-shadow:0 10px 28px rgba(82,57,97,.14);
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.055em;
  text-decoration:none!important;
  text-transform:uppercase;
  transition:transform .25s ease,box-shadow .25s ease,filter .25s ease;
}
body.p22-woocommerce .woocommerce a.button:hover,
body.p22-woocommerce .woocommerce button.button:hover,
body.p22-woocommerce .woocommerce input.button:hover,
body.p22-woocommerce .wp-element-button:hover,
body.p22-woocommerce .wc-block-components-button:not(.is-link):hover{
  transform:translateY(-2px);
  box-shadow:0 15px 34px rgba(82,57,97,.2);
  filter:saturate(1.04);
}

/* Notices */
body.p22-woocommerce .woocommerce-message,
body.p22-woocommerce .woocommerce-info,
body.p22-woocommerce .woocommerce-error,
body.p22-woocommerce .wc-block-components-notice-banner{
  padding:18px 22px!important;
  border:1px solid var(--p22-woo-line)!important;
  border-left:3px solid var(--p22-woo-gold)!important;
  border-radius:16px!important;
  color:var(--p22-woo-ink)!important;
  background:#fff!important;
  box-shadow:var(--p22-woo-shadow);
}

/* ==========================================================
   TIENDA / CATEGORÍAS / TAGS / BÚSQUEDA DE PRODUCTOS
   ========================================================== */
body.p22-woocommerce .woocommerce-products-header{
  position:relative;
  overflow:hidden;
  width:min(1180px,calc(100% - 40px));
  margin:0 auto 38px;
  padding:46px 48px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:28px;
  color:#fff;
  background:
    radial-gradient(circle at 80% 20%,rgba(210,174,92,.14),transparent 28%),
    radial-gradient(circle at 15% 10%,rgba(185,167,214,.14),transparent 30%),
    linear-gradient(145deg,var(--p22-woo-purple-dark),var(--p22-woo-purple-deep));
  box-shadow:var(--p22-woo-shadow-lg);
}
body.p22-woocommerce .woocommerce-products-header::after{
  content:"✦";
  position:absolute;
  right:36px;
  top:20px;
  color:rgba(239,217,154,.42);
  font-size:54px;
}
body.p22-woocommerce .woocommerce-products-header__title{
  margin:0 0 12px!important;
  color:#fff!important;
  font-size:clamp(40px,6vw,70px)!important;
  line-height:1!important;
}
body.p22-woocommerce .term-description,
body.p22-woocommerce .woocommerce-products-header .page-description{
  max-width:720px;
  color:rgba(255,255,255,.74)!important;
  font-size:16px;
  line-height:1.7;
}
body.p22-woocommerce .term-description p:last-child{margin-bottom:0;}

body.p22-woocommerce .woocommerce-result-count{
  margin:12px 0 26px!important;
  color:var(--p22-woo-muted);
  font-size:13px;
}
body.p22-woocommerce .woocommerce-ordering{
  margin:0 0 24px!important;
}
body.p22-woocommerce .woocommerce-ordering select{
  min-height:44px;
  padding:0 42px 0 15px;
  border:1px solid var(--p22-woo-line);
  border-radius:999px;
  color:var(--p22-woo-ink);
  background:#fff;
  box-shadow:0 8px 24px rgba(44,28,52,.05);
}

body.p22-woocommerce ul.products{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px!important;
  width:min(1180px,calc(100% - 40px));
  margin:30px auto!important;
  padding:0!important;
}
body.p22-woocommerce ul.products::before,
body.p22-woocommerce ul.products::after{display:none!important;}
body.p22-woocommerce ul.products li.product{
  float:none!important;
  width:auto!important;
  margin:0!important;
  padding:14px 14px 22px!important;
  border:1px solid var(--p22-woo-line);
  border-radius:var(--p22-woo-radius);
  background:#fff;
  box-shadow:var(--p22-woo-shadow);
  overflow:hidden;
  transition:transform .28s ease,box-shadow .28s ease;
}
body.p22-woocommerce ul.products li.product:hover{
  transform:translateY(-5px);
  box-shadow:0 24px 65px rgba(44,28,52,.14);
}
body.p22-woocommerce ul.products li.product a img{
  width:100%!important;
  aspect-ratio:4/3;
  object-fit:cover;
  margin:0 0 20px!important;
  border-radius:16px;
  background:var(--p22-woo-cream-2);
}
body.p22-woocommerce ul.products li.product .onsale,
body.p22-woocommerce span.onsale{
  top:25px!important;
  left:25px!important;
  right:auto!important;
  min-width:auto!important;
  min-height:auto!important;
  padding:8px 12px!important;
  border-radius:999px!important;
  color:#24172f!important;
  background:var(--p22-woo-gold-soft)!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1!important;
}
body.p22-woocommerce ul.products li.product .woocommerce-loop-product__title{
  padding:0!important;
  margin:0 5px 10px;
  color:var(--p22-woo-ink);
  font-family:"Fraunces",Georgia,serif;
  font-size:24px!important;
  font-weight:500;
  line-height:1.12;
}
body.p22-woocommerce ul.products li.product .price{
  margin:0 5px 18px!important;
  color:var(--p22-woo-purple)!important;
  font-size:19px!important;
  font-weight:700!important;
}
body.p22-woocommerce ul.products li.product .button{margin:0 5px!important;}

/* Categorías de productos como tarjetas cuando Woo las lista */
body.p22-woocommerce ul.products li.product-category h2{
  margin:0 5px!important;
  color:var(--p22-woo-ink)!important;
  font-family:"Fraunces",Georgia,serif;
  font-size:23px!important;
}
body.p22-woocommerce ul.products li.product-category mark{
  color:var(--p22-woo-muted);
  background:transparent;
}

/* Paginación */
body.p22-woocommerce nav.woocommerce-pagination{
  margin:42px auto 0;
}
body.p22-woocommerce nav.woocommerce-pagination ul{
  border:0!important;
  display:flex!important;
  justify-content:center;
  gap:8px;
}
body.p22-woocommerce nav.woocommerce-pagination ul li{
  border:0!important;
}
body.p22-woocommerce nav.woocommerce-pagination ul li a,
body.p22-woocommerce nav.woocommerce-pagination ul li span{
  display:grid!important;
  place-items:center;
  width:42px;
  height:42px;
  padding:0!important;
  border:1px solid var(--p22-woo-line)!important;
  border-radius:50%;
  color:var(--p22-woo-ink)!important;
  background:#fff!important;
}
body.p22-woocommerce nav.woocommerce-pagination ul li span.current{
  color:#24172f!important;
  background:var(--p22-woo-gold-soft)!important;
}

/* ==========================================================
   PRODUCTO INDIVIDUAL
   ========================================================== */
body.p22-woocommerce.single-product div.product{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
}
body.p22-woocommerce.single-product div.product::after{
  content:"";
  display:block;
  clear:both;
}
body.p22-woocommerce.single-product div.product .woocommerce-product-gallery,
body.p22-woocommerce.single-product div.product .summary{
  margin-bottom:64px;
}
body.p22-woocommerce.single-product div.product .woocommerce-product-gallery{
  width:52%!important;
}
body.p22-woocommerce.single-product div.product .summary{
  width:43%!important;
  padding:34px 34px 36px;
  border:1px solid var(--p22-woo-line);
  border-radius:26px;
  background:#fff;
  box-shadow:var(--p22-woo-shadow);
}
body.p22-woocommerce.single-product .woocommerce-product-gallery__wrapper img{
  border-radius:22px;
  box-shadow:0 22px 60px rgba(44,28,52,.12);
}
body.p22-woocommerce.single-product .flex-control-thumbs{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:12px!important;
}
body.p22-woocommerce.single-product .flex-control-thumbs li{
  width:auto!important;
  float:none!important;
}
body.p22-woocommerce.single-product .flex-control-thumbs img{
  border-radius:12px!important;
}
body.p22-woocommerce.single-product div.product .product_title{
  margin:8px 0 18px;
  color:var(--p22-woo-ink);
  font-family:"Fraunces",Georgia,serif;
  font-size:clamp(38px,5vw,58px);
  font-weight:500;
  line-height:1.02;
}
body.p22-woocommerce.single-product .product_meta{
  padding-top:18px;
  border-top:1px solid var(--p22-woo-line);
  color:var(--p22-woo-muted);
  font-size:12px;
  line-height:1.8;
}
body.p22-woocommerce.single-product .product_meta a{font-weight:700;text-decoration:none;}
body.p22-woocommerce.single-product div.product p.price,
body.p22-woocommerce.single-product div.product span.price{
  color:var(--p22-woo-purple)!important;
  font-size:30px!important;
  font-weight:700;
}
body.p22-woocommerce.single-product .woocommerce-product-details__short-description{
  color:#615566;
  font-size:16px;
  line-height:1.8;
}
body.p22-woocommerce.single-product form.cart{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin:26px 0 24px!important;
}
body.p22-woocommerce .quantity .qty{
  width:76px!important;
  min-height:48px;
  padding:0 8px;
  border:1px solid var(--p22-woo-line);
  border-radius:999px;
  color:var(--p22-woo-ink);
  background:#fff;
}

/* Tabs */
body.p22-woocommerce.single-product .woocommerce-tabs{
  clear:both;
  margin:20px 0 70px;
  padding:34px;
  border:1px solid var(--p22-woo-line);
  border-radius:26px;
  background:#fff;
  box-shadow:var(--p22-woo-shadow);
}
body.p22-woocommerce.single-product .woocommerce-tabs ul.tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 28px!important;
  padding:0!important;
}
body.p22-woocommerce.single-product .woocommerce-tabs ul.tabs::before{display:none!important;}
body.p22-woocommerce.single-product .woocommerce-tabs ul.tabs li{
  margin:0!important;
  padding:0!important;
  border:1px solid var(--p22-woo-line)!important;
  border-radius:999px!important;
  background:var(--p22-woo-cream)!important;
}
body.p22-woocommerce.single-product .woocommerce-tabs ul.tabs li::before,
body.p22-woocommerce.single-product .woocommerce-tabs ul.tabs li::after{display:none!important;}
body.p22-woocommerce.single-product .woocommerce-tabs ul.tabs li a{
  padding:11px 17px!important;
  color:var(--p22-woo-ink)!important;
  font-size:12px!important;
}
body.p22-woocommerce.single-product .woocommerce-tabs ul.tabs li.active{
  background:var(--p22-woo-lav-soft)!important;
}
body.p22-woocommerce.single-product .woocommerce-tabs .panel{
  color:#5f5264;
  line-height:1.8;
}

/* Relacionados / upsells */
body.p22-woocommerce.single-product .related,
body.p22-woocommerce.single-product .upsells{
  clear:both;
  width:100%;
  margin:58px 0 20px;
}
body.p22-woocommerce.single-product .related>h2,
body.p22-woocommerce.single-product .upsells>h2{
  margin-bottom:28px!important;
  text-align:center;
  font-size:clamp(32px,4vw,46px)!important;
}

/* ==========================================================
   CARRITO CLÁSICO
   ========================================================== */
body.p22-woocommerce-cart .woocommerce{
  padding-top:10px;
}
body.p22-woocommerce-cart .woocommerce-cart-form,
body.p22-woocommerce-cart .cart-collaterals .cart_totals{
  border:1px solid var(--p22-woo-line);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--p22-woo-shadow);
  overflow:hidden;
}
body.p22-woocommerce-cart table.shop_table{
  border:0!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
body.p22-woocommerce-cart table.shop_table th{
  padding:18px!important;
  color:var(--p22-woo-muted);
  background:#faf7fb;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
body.p22-woocommerce-cart table.shop_table td{
  padding:18px!important;
  border-color:var(--p22-woo-line)!important;
}
body.p22-woocommerce-cart .product-thumbnail img{
  width:78px!important;
  border-radius:12px;
}
body.p22-woocommerce-cart .product-name a{
  color:var(--p22-woo-ink)!important;
  font-family:"Fraunces",Georgia,serif;
  font-size:18px;
  text-decoration:none!important;
}
body.p22-woocommerce-cart .cart-collaterals{
  margin-top:30px;
}
body.p22-woocommerce-cart .cart-collaterals .cart_totals{
  width:min(500px,100%)!important;
  padding:28px;
}
body.p22-woocommerce-cart .cart-collaterals .cart_totals h2{
  margin-top:0;
  font-size:32px;
}
body.p22-woocommerce-cart .coupon{
  display:flex;
  gap:8px;
}
body.p22-woocommerce-cart .coupon .input-text{
  min-width:190px;
  min-height:48px;
  border:1px solid var(--p22-woo-line)!important;
  border-radius:999px!important;
  padding:0 16px!important;
}

/* ==========================================================
   CART BLOCK
   ========================================================== */
body.p22-woocommerce-cart .wp-block-woocommerce-cart{
  padding:12px 0 70px;
}
body.p22-woocommerce-cart .wc-block-cart-items,
body.p22-woocommerce-cart .wc-block-cart__totals-title,
body.p22-woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
body.p22-woocommerce-cart .wc-block-components-sidebar{
  border-color:var(--p22-woo-line)!important;
}
body.p22-woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
body.p22-woocommerce-cart .wc-block-components-sidebar{
  padding:24px!important;
  border:1px solid var(--p22-woo-line)!important;
  border-radius:22px;
  background:#fff;
  box-shadow:var(--p22-woo-shadow);
}
body.p22-woocommerce-cart .wc-block-cart-item__image img{
  border-radius:12px;
}

/* ==========================================================
   CHECKOUT CLÁSICO
   ========================================================== */
body.p22-woocommerce-checkout form.checkout{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);
  gap:28px 36px;
  align-items:start;
}
body.p22-woocommerce-checkout #customer_details,
body.p22-woocommerce-checkout #order_review_heading,
body.p22-woocommerce-checkout #order_review{
  min-width:0;
}
body.p22-woocommerce-checkout #customer_details{
  grid-column:1;
  grid-row:1 / span 2;
  padding:30px;
  border:1px solid var(--p22-woo-line);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--p22-woo-shadow);
}
body.p22-woocommerce-checkout #order_review_heading{
  grid-column:2;
  margin:0!important;
  padding:0 4px;
  font-size:30px;
}
body.p22-woocommerce-checkout #order_review{
  grid-column:2;
  padding:26px;
  border:1px solid var(--p22-woo-line);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--p22-woo-shadow);
}
body.p22-woocommerce-checkout .woocommerce-billing-fields>h3,
body.p22-woocommerce-checkout .woocommerce-additional-fields>h3{
  margin-top:0;
  font-size:32px;
}
body.p22-woocommerce .form-row input.input-text,
body.p22-woocommerce .form-row textarea,
body.p22-woocommerce .select2-container .select2-selection--single{
  min-height:50px;
  border:1px solid var(--p22-woo-line)!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.p22-woocommerce .form-row input.input-text,
body.p22-woocommerce .form-row textarea{
  padding:12px 14px!important;
}
body.p22-woocommerce .select2-container .select2-selection--single .select2-selection__rendered{
  line-height:48px!important;
}
body.p22-woocommerce-checkout #payment{
  border-radius:18px!important;
  background:var(--p22-woo-cream)!important;
}
body.p22-woocommerce-checkout #payment div.payment_box{
  border-radius:12px!important;
  color:#5d5062!important;
  background:#fff!important;
}
body.p22-woocommerce-checkout #place_order{
  width:100%;
  min-height:54px;
}

/* ==========================================================
   CHECKOUT BLOCK
   ========================================================== */
body.p22-woocommerce-checkout .wp-block-woocommerce-checkout{
  padding:12px 0 70px;
}
body.p22-woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
body.p22-woocommerce-checkout .wc-block-components-sidebar{
  padding:24px!important;
  border:1px solid var(--p22-woo-line)!important;
  border-radius:22px;
  background:#fff;
  box-shadow:var(--p22-woo-shadow);
}
body.p22-woocommerce-checkout .wc-block-components-checkout-step{
  margin-bottom:22px!important;
  padding-bottom:22px!important;
  border-bottom:1px solid var(--p22-woo-line);
}
body.p22-woocommerce-checkout .wc-block-components-text-input input,
body.p22-woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input{
  border-color:var(--p22-woo-line)!important;
  border-radius:13px!important;
  background:#fff!important;
}
body.p22-woocommerce-checkout .wc-block-components-checkout-place-order-button{
  width:100%!important;
}

/* ==========================================================
   MI CUENTA / PEDIDOS / DESCARGAS
   ========================================================== */
body.p22-woocommerce.woocommerce-account .woocommerce{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:30px;
  align-items:start;
}
body.p22-woocommerce.woocommerce-account .woocommerce::before,
body.p22-woocommerce.woocommerce-account .woocommerce::after{display:none!important;}
body.p22-woocommerce.woocommerce-account .woocommerce-MyAccount-navigation{
  float:none!important;
  width:100%!important;
  padding:16px;
  border:1px solid var(--p22-woo-line);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--p22-woo-shadow);
}
body.p22-woocommerce.woocommerce-account .woocommerce-MyAccount-navigation ul{
  margin:0;
  padding:0;
  list-style:none;
}
body.p22-woocommerce.woocommerce-account .woocommerce-MyAccount-navigation li a{
  display:block;
  padding:12px 14px;
  border-radius:12px;
  color:var(--p22-woo-ink)!important;
  text-decoration:none!important;
  transition:.2s ease;
}
body.p22-woocommerce.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.p22-woocommerce.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{
  color:var(--p22-woo-purple-dark)!important;
  background:var(--p22-woo-lav-soft);
}
body.p22-woocommerce.woocommerce-account .woocommerce-MyAccount-content{
  float:none!important;
  width:100%!important;
  min-height:320px;
  padding:30px;
  border:1px solid var(--p22-woo-line);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--p22-woo-shadow);
}
body.p22-woocommerce.woocommerce-account table.shop_table{
  border-color:var(--p22-woo-line)!important;
  border-radius:14px!important;
  overflow:hidden;
}
body.p22-woocommerce.woocommerce-account form.login,
body.p22-woocommerce.woocommerce-account form.register{
  border-color:var(--p22-woo-line)!important;
  border-radius:20px!important;
  background:#fff;
  box-shadow:var(--p22-woo-shadow);
}

/* Gracias / pedido recibido */
body.p22-woocommerce .woocommerce-order{
  padding:30px;
  border:1px solid var(--p22-woo-line);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--p22-woo-shadow);
}
body.p22-woocommerce ul.woocommerce-order-overview{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  padding:18px!important;
  border-radius:16px;
  background:var(--p22-woo-lav-soft);
}

/* ==========================================================
   VACÍOS / ESTADOS
   ========================================================== */
body.p22-woocommerce .cart-empty,
body.p22-woocommerce .woocommerce-info.wc-empty-cart-message{
  text-align:center;
}
body.p22-woocommerce .return-to-shop{
  text-align:center;
  margin-top:22px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media(max-width:1024px){
  body.p22-woocommerce ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.p22-woocommerce.single-product div.product .woocommerce-product-gallery,
  body.p22-woocommerce.single-product div.product .summary{
    width:48%!important;
  }
  body.p22-woocommerce-checkout form.checkout{
    grid-template-columns:1fr;
  }
  body.p22-woocommerce-checkout #customer_details,
  body.p22-woocommerce-checkout #order_review_heading,
  body.p22-woocommerce-checkout #order_review{
    grid-column:1;
    grid-row:auto;
  }
}

@media(max-width:767px){
  body.p22-woocommerce .woocommerce,
  body.p22-woocommerce .wp-block-woocommerce-cart,
  body.p22-woocommerce .wp-block-woocommerce-checkout,
  body.p22-woocommerce .woocommerce-breadcrumb,
  body.p22-woocommerce .woocommerce-products-header,
  body.p22-woocommerce ul.products,
  body.p22-woocommerce.single-product div.product{
    width:min(100% - 28px,1180px);
  }
  body.p22-woocommerce.woocommerce-shop .site-main,
  body.p22-woocommerce.post-type-archive-product .site-main,
  body.p22-woocommerce.tax-product_cat .site-main,
  body.p22-woocommerce.tax-product_tag .site-main,
  body.p22-woocommerce.single-product .site-main,
  body.p22-woocommerce.woocommerce-account .site-main,
  body.p22-woocommerce.woocommerce-cart .site-main,
  body.p22-woocommerce.woocommerce-checkout .site-main{
    padding:32px 0 62px;
  }
  body.p22-woocommerce .woocommerce-products-header{
    margin-bottom:26px;
    padding:34px 24px;
    border-radius:22px;
  }
  body.p22-woocommerce .woocommerce-products-header::after{
    right:18px;
    top:10px;
    font-size:34px;
  }
  body.p22-woocommerce ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px!important;
  }
  body.p22-woocommerce ul.products li.product{
    padding:9px 9px 16px!important;
    border-radius:16px;
  }
  body.p22-woocommerce ul.products li.product a img{
    margin-bottom:13px!important;
    border-radius:12px;
  }
  body.p22-woocommerce ul.products li.product .woocommerce-loop-product__title{
    margin-left:3px;
    margin-right:3px;
    font-size:18px!important;
  }
  body.p22-woocommerce ul.products li.product .price{
    margin-left:3px!important;
    font-size:16px!important;
  }
  body.p22-woocommerce ul.products li.product .button{
    min-height:42px;
    width:calc(100% - 6px);
    margin:0 3px!important;
    padding:0 10px!important;
    font-size:9px!important;
  }
  body.p22-woocommerce.single-product div.product .woocommerce-product-gallery,
  body.p22-woocommerce.single-product div.product .summary{
    float:none!important;
    width:100%!important;
  }
  body.p22-woocommerce.single-product div.product .summary{
    margin-top:22px;
    padding:24px 20px 26px;
    border-radius:20px;
  }
  body.p22-woocommerce.single-product div.product .product_title{
    font-size:38px;
  }
  body.p22-woocommerce.single-product .woocommerce-tabs{
    padding:22px 18px;
    border-radius:20px;
  }
  body.p22-woocommerce-cart table.shop_table_responsive tr td{
    padding:14px!important;
  }
  body.p22-woocommerce-cart .coupon{
    flex-direction:column;
  }
  body.p22-woocommerce-cart .coupon .input-text{
    width:100%!important;
  }
  body.p22-woocommerce-checkout #customer_details,
  body.p22-woocommerce-checkout #order_review,
  body.p22-woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
  body.p22-woocommerce-checkout .wc-block-components-sidebar,
  body.p22-woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
  body.p22-woocommerce-cart .wc-block-components-sidebar{
    padding:20px!important;
    border-radius:18px;
  }
  body.p22-woocommerce.woocommerce-account .woocommerce{
    display:block;
  }
  body.p22-woocommerce.woocommerce-account .woocommerce-MyAccount-navigation{
    margin-bottom:18px;
  }
  body.p22-woocommerce.woocommerce-account .woocommerce-MyAccount-content{
    padding:22px 18px;
  }
}

@media(max-width:420px){
  body.p22-woocommerce ul.products{
    grid-template-columns:1fr 1fr;
  }
  body.p22-woocommerce ul.products li.product .woocommerce-loop-product__title{
    font-size:16px!important;
  }
  body.p22-woocommerce ul.products li.product .price{
    font-size:15px!important;
  }
}


/* PORTAL22 WOO V15.4 — LAYOUT EDITORIAL
   Corrige el ancho excesivo y sustituye el sidebar editorial del blog
   por una navegación comercial específica de WooCommerce.
   ================================================================ */

body.p22-woocommerce .p22-sidebar,
body.p22-woocommerce .widget-area,
body.p22-woocommerce #secondary{
  display:none!important;
}

body.p22-woocommerce-cart .woocommerce,
body.p22-woocommerce-cart .wp-block-woocommerce-cart{
  width:min(1040px,calc(100% - 40px));
}

body.p22-woocommerce-checkout .woocommerce,
body.p22-woocommerce-checkout .wp-block-woocommerce-checkout{
  width:min(1100px,calc(100% - 40px));
}

body.p22-woocommerce.single-product div.product{
  width:min(1120px,calc(100% - 40px));
}

body.p22-woocommerce .p22-woo-shop-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:42px;
  align-items:start;
  width:min(1180px,calc(100% - 40px));
  margin:0 auto 74px;
}

body.p22-woocommerce .p22-woo-shop-main{
  min-width:0;
}

body.p22-woocommerce .p22-woo-shop-main ul.products{
  width:100%;
  margin:26px 0 34px!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
}

body.p22-woocommerce .p22-woo-shop-main .woocommerce-result-count{
  float:left;
  margin:10px 0 24px!important;
}

body.p22-woocommerce .p22-woo-shop-main .woocommerce-ordering{
  float:right;
  margin:0 0 24px!important;
}

body.p22-woocommerce .p22-woo-shop-main::after{
  content:"";
  display:block;
  clear:both;
}

body.p22-woocommerce .p22-woo-shop-sidebar{
  position:sticky;
  top:106px;
  display:grid;
  gap:18px;
  min-width:0;
}

body.admin-bar.p22-woocommerce .p22-woo-shop-sidebar{
  top:138px;
}

body.p22-woocommerce .p22-woo-sidebox{
  padding:24px;
  border:1px solid var(--p22-woo-line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 40px rgba(44,28,52,.07);
}

body.p22-woocommerce .p22-woo-sidebox--intro{
  color:#fff;
  border-color:rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 88% 12%,rgba(210,174,92,.14),transparent 30%),
    linear-gradient(145deg,var(--p22-woo-purple-dark),var(--p22-woo-purple-deep));
}

body.p22-woocommerce .p22-woo-sidebox__eyebrow{
  display:block;
  margin-bottom:9px;
  color:var(--p22-woo-gold);
  font-size:9px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}

body.p22-woocommerce .p22-woo-sidebox h2{
  margin:0 0 10px!important;
  color:var(--p22-woo-ink)!important;
  font-family:"Fraunces",Georgia,serif;
  font-size:25px!important;
  font-weight:500;
  line-height:1.08;
}

body.p22-woocommerce .p22-woo-sidebox p{
  margin:0;
  color:var(--p22-woo-muted);
  font-size:13px;
  line-height:1.65;
}

body.p22-woocommerce .p22-woo-sidebox--intro h2,
body.p22-woocommerce .p22-woo-sidebox--intro p{
  color:#fff!important;
}

body.p22-woocommerce .p22-woo-sidebox--intro p{
  color:rgba(255,255,255,.70)!important;
}

body.p22-woocommerce .p22-woo-product-categories{
  display:grid;
  margin-top:14px;
}

body.p22-woocommerce .p22-woo-product-categories a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 2px;
  border-bottom:1px solid rgba(55,36,66,.09);
  color:var(--p22-woo-ink)!important;
  font-size:13px;
  font-weight:700;
  text-decoration:none!important;
  transition:color .2s ease,padding .2s ease;
}

body.p22-woocommerce .p22-woo-product-categories a:last-child{
  border-bottom:0;
}

body.p22-woocommerce .p22-woo-product-categories a:hover,
body.p22-woocommerce .p22-woo-product-categories a.is-current{
  padding-left:7px;
  color:var(--p22-woo-purple)!important;
}

body.p22-woocommerce .p22-woo-product-categories small{
  display:grid;
  place-items:center;
  min-width:26px;
  height:26px;
  padding:0 7px;
  border-radius:999px;
  color:var(--p22-woo-purple);
  background:var(--p22-woo-lav-soft);
  font-size:10px;
  font-weight:800;
}

body.p22-woocommerce .p22-woo-sidebox--cta{
  background:#faf7fb;
}

body.p22-woocommerce .p22-woo-sidebar-button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  margin-top:17px;
  padding:0 16px;
  border-radius:999px;
  color:#24172f!important;
  background:linear-gradient(135deg,var(--p22-woo-gold-soft),var(--p22-woo-gold));
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  text-decoration:none!important;
  text-transform:uppercase;
}

body.p22-woocommerce .woocommerce-products-header,
body.p22-woocommerce .woocommerce-breadcrumb{
  width:min(1180px,calc(100% - 40px));
}

body.p22-woocommerce-cart .cart-collaterals{
  display:flex;
  justify-content:flex-end;
}

body.p22-woocommerce-cart .cart-collaterals .cart_totals{
  width:min(440px,100%)!important;
}

body.p22-woocommerce-checkout form.checkout{
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.82fr);
  gap:30px;
}

body.p22-woocommerce.single-product .woocommerce-breadcrumb{
  width:min(1120px,calc(100% - 40px));
}

body.p22-woocommerce.woocommerce-account .woocommerce{
  width:min(1080px,calc(100% - 40px));
}

@media(max-width:1024px){
  body.p22-woocommerce .p22-woo-shop-shell{
    grid-template-columns:minmax(0,1fr) 250px;
    gap:26px;
  }

  body.p22-woocommerce .p22-woo-shop-main ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.p22-woocommerce .p22-woo-sidebox{
    padding:20px;
  }
}

@media(max-width:820px){
  body.p22-woocommerce .p22-woo-shop-shell{
    grid-template-columns:1fr;
    width:min(100% - 28px,1180px);
    gap:30px;
    margin-bottom:54px;
  }

  body.p22-woocommerce .p22-woo-shop-sidebar{
    position:static;
    grid-template-columns:1fr 1fr;
    gap:14px;
  }

  body.p22-woocommerce .p22-woo-sidebox--intro{
    grid-column:1/-1;
  }

  body.p22-woocommerce .p22-woo-shop-main .woocommerce-result-count,
  body.p22-woocommerce .p22-woo-shop-main .woocommerce-ordering{
    float:none;
  }

  body.p22-woocommerce .p22-woo-shop-main .woocommerce-ordering{
    width:100%;
  }

  body.p22-woocommerce .p22-woo-shop-main .woocommerce-ordering select{
    width:100%;
  }
}

@media(max-width:600px){
  body.p22-woocommerce-cart .woocommerce,
  body.p22-woocommerce-cart .wp-block-woocommerce-cart,
  body.p22-woocommerce-checkout .woocommerce,
  body.p22-woocommerce-checkout .wp-block-woocommerce-checkout,
  body.p22-woocommerce.single-product div.product,
  body.p22-woocommerce.woocommerce-account .woocommerce{
    width:min(100% - 28px,1100px);
  }

  body.p22-woocommerce .p22-woo-shop-sidebar{
    grid-template-columns:1fr;
  }

  body.p22-woocommerce .p22-woo-sidebox--intro{
    grid-column:auto;
  }

  body.p22-woocommerce .p22-woo-shop-main ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px!important;
  }
}
