/* WooCommerce en el tema oscuro del QKC */
.woocommerce,.woocommerce-page{color:var(--text)}
.woo-body{padding-top:32px}
.woocommerce-breadcrumb{color:var(--muted);font-size:.86rem;margin:0 0 18px}
.woocommerce-breadcrumb a{color:var(--muted)}
.woocommerce-products-header__title,.product_title{font-family:var(--display);font-size:clamp(2.6rem,5.5vw,4.4rem);font-weight:800;line-height:.95;margin:0 0 18px}
.woocommerce-result-count{color:var(--muted);font-size:.9rem}
.woocommerce .woocommerce-ordering select,.woocommerce select,.woocommerce input[type=text],.woocommerce input[type=email],.woocommerce input[type=tel],.woocommerce input[type=number],.woocommerce input[type=password],.woocommerce input[type=search],.woocommerce textarea,.woocommerce-page select{background:var(--ink);color:var(--text);border:1px solid var(--line);border-radius:var(--r-s);min-height:46px;padding:8px 12px;font:inherit;color-scheme:dark}
.woocommerce textarea{min-height:110px}
.woocommerce input:focus,.woocommerce select:focus,.woocommerce textarea:focus{border-color:var(--signal);outline:none;box-shadow:0 0 0 3px rgba(94,157,255,.28)}
.woocommerce label{color:var(--text);font-weight:600;font-size:.9rem}
.woocommerce .required{color:var(--danger)}

/* Botones */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:var(--r-s);border:1px solid var(--line);background:var(--panel);color:var(--text);font:600 .95rem/1.1 var(--body);text-decoration:none;cursor:pointer}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce .button:hover{border-color:var(--signal);background:var(--panel-2);color:var(--text)}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.woocommerce .checkout-button,.woocommerce #place_order,.woocommerce .single_add_to_cart_button{background:var(--red);border-color:var(--red);color:#fff}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce .checkout-button:hover,.woocommerce #place_order:hover,.woocommerce .single_add_to_cart_button:hover{background:#DD3A33;border-color:#DD3A33;color:#fff}
.woocommerce button.button:disabled,.woocommerce button.button.disabled{opacity:.5}

/* Avisos */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews,p.no-comments{background:var(--panel);color:var(--text);border:1px solid var(--line);border-left:4px solid var(--signal);border-radius:var(--r-s);padding:14px 18px;margin:0 0 20px;list-style:none}
.woocommerce-message{border-left-color:var(--green)}
.woocommerce-error{border-left-color:var(--danger)}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{display:none}
.woocommerce-message .button,.woocommerce-info .button{float:right;margin-left:12px}

/* Listado de productos */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:28px 20px;margin:24px 0;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product,.woocommerce ul.products[class*=columns-] li.product,.woocommerce-page ul.products[class*=columns-] li.product{float:none;width:auto;margin:0;padding:0;clear:none;display:flex;flex-direction:column;gap:10px}
.woocommerce ul.products li.product a img,.woocommerce ul.products li.product .qkc-art{height:auto;aspect-ratio:5/4;border-radius:var(--r-m);border:1px solid var(--line);background-color:var(--panel);background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px),radial-gradient(circle at 50% 55%,rgba(28,66,124,.6),transparent 65%);background-size:24px 24px,24px 24px,100% 100%;object-fit:cover;margin:0 0 6px;width:100%}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--display);font-size:1.55rem;font-weight:750;color:var(--text);padding:0;line-height:1}
.woocommerce ul.products li.product a{text-decoration:none;color:inherit}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--text);font-family:var(--display);font-size:1.7rem;font-weight:800}
.woocommerce ul.products li.product .price del,.woocommerce div.product p.price del{color:var(--muted);font-size:.7em;opacity:1}
.woocommerce ul.products li.product .price ins{text-decoration:none}
.woocommerce span.onsale{background:var(--red);color:#fff;border-radius:999px;min-height:0;min-width:0;padding:4px 10px;line-height:1.4;font-size:.8rem}
.woocommerce nav.woocommerce-pagination ul{border:0}
.woocommerce nav.woocommerce-pagination ul li{border:0}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:6px;margin:0 3px}

/* Producto */
.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 48px}
.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:auto;margin:0}
.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related,.woocommerce div.product .upsells{grid-column:1/-1}
.woocommerce div.product div.images img{border-radius:var(--r-m)}
.qkc-art-big .qkc-art{height:auto;aspect-ratio:5/4;border-radius:var(--r-m);border:1px solid var(--line);background:radial-gradient(circle at 50% 55%,rgba(28,66,124,.6),transparent 65%),var(--panel)}
.woocommerce div.product .woocommerce-product-details__short-description{color:var(--muted);margin:12px 0 20px}
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:20px 0}
.woocommerce div.product form.cart .variations{margin-bottom:12px;width:100%}
.woocommerce div.product form.cart .variations td,.woocommerce div.product form.cart .variations th{padding:6px 12px 6px 0;color:var(--text)}
.woocommerce .quantity .qty{width:84px;text-align:center}
.woocommerce div.product .product_meta{color:var(--muted);font-size:.86rem;display:grid;gap:4px}
.woocommerce div.product .product_meta a{color:var(--muted)}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:24px 0 0;border-bottom:1px solid var(--line);display:flex;gap:4px}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:none;border:0;border-radius:0;margin:0;padding:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--muted);padding:12px 14px;font-weight:600}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--text);box-shadow:inset 0 -2px 0 var(--red)}
.woocommerce div.product .woocommerce-tabs .panel{background:none;border:0;padding:20px 0;color:var(--muted)}
.woocommerce div.product .woocommerce-tabs .panel h2{font-size:2rem;color:var(--text);margin-bottom:12px}
.woocommerce .related > h2,.woocommerce .upsells > h2,.cart-collaterals h2,.woocommerce-checkout h3,#order_review_heading{font-family:var(--display);font-size:2.2rem;font-weight:800}
.woocommerce .star-rating span,.woocommerce p.stars a{color:var(--yellow)}
.woocommerce table.shop_attributes th,.woocommerce table.shop_attributes td{border-color:var(--line);color:var(--text);background:none}

/* Carrito y pago */
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:var(--r-m);background:var(--panel);border-collapse:separate;overflow:hidden}
.woocommerce table.shop_table th{color:var(--muted);font-weight:500;font-size:.84rem;border-color:var(--line)}
.woocommerce table.shop_table td{border-top:1px solid var(--line);color:var(--text);padding:14px 12px}
.woocommerce table.shop_table td.product-name a{color:var(--text);text-decoration:none;font-weight:600}
.woocommerce table.shop_table dl.variation,.woocommerce-cart table.cart dl.variation{color:var(--muted);font-size:.86rem;margin:6px 0 0}
.woocommerce table.shop_table dl.variation dt,.woocommerce table.shop_table dl.variation dd{display:inline;margin:0}
.woocommerce table.shop_table dl.variation dd p{display:inline;margin:0}
.woocommerce table.shop_table dl.variation dd::after{content:"";display:block}
.woocommerce a.remove{color:var(--danger)!important;border:1px solid var(--line);width:28px;height:28px;line-height:26px;font-size:1.2rem}
.woocommerce a.remove:hover{background:var(--danger);color:#fff!important}
.woocommerce-cart table.cart img,.woocommerce-cart table.cart .qkc-art{width:64px;height:64px;border-radius:8px;background:var(--ink)}
.woocommerce-cart table.cart td.actions .coupon .input-text{width:180px;min-height:44px}
.woocommerce .cart-collaterals .cart_totals,.woocommerce-page .cart-collaterals .cart_totals{width:100%;max-width:460px;float:right}
.woocommerce .cart-collaterals .cart_totals table{border:0}
.woocommerce ul#shipping_method li{margin:0 0 6px}
.woocommerce .wc-proceed-to-checkout a.checkout-button{width:100%;min-height:52px;font-size:1.05rem}
.woocommerce form .form-row{padding:0;margin:0 0 16px}
.woocommerce form .form-row label{margin-bottom:6px;display:block}
.woocommerce form .form-row .input-text,.woocommerce form .form-row select{width:100%}
.woocommerce-checkout #customer_details{margin-bottom:28px}
.woocommerce-checkout .col2-set .col-1,.woocommerce-checkout .col2-set .col-2{float:none;width:auto}
.woocommerce-checkout .col2-set{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.woocommerce-checkout .col2-set::before,.woocommerce-checkout .col2-set::after{display:none}
.woocommerce-checkout #payment{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-m);color:var(--text)}
.woocommerce-checkout #payment ul.payment_methods{border-bottom:1px solid var(--line);padding:16px}
.woocommerce-checkout #payment ul.payment_methods li{color:var(--text);margin:0 0 8px}
.woocommerce-checkout #payment div.payment_box{background:var(--panel-2);color:var(--muted);border-radius:8px}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:var(--panel-2)}
.woocommerce-checkout #payment div.form-row{padding:16px}
.woocommerce-terms-and-conditions-wrapper,.woocommerce-privacy-policy-text{color:var(--muted);font-size:.86rem}
.select2-container--default .select2-selection--single{background:var(--ink);border:1px solid var(--line);border-radius:var(--r-s);height:46px}
.select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--text);line-height:44px;padding-left:12px}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:44px}
.select2-dropdown{background:var(--panel);border-color:var(--line);color:var(--text)}
.select2-container--default .select2-search--dropdown .select2-search__field{background:var(--ink);color:var(--text);border-color:var(--line)}
.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected]{background:var(--brand)}
.select2-container--default .select2-results__option[aria-selected=true]{background:var(--panel-2)}
.woocommerce-order-overview{color:var(--muted)}
.woocommerce ul.order_details{display:flex;flex-wrap:wrap;gap:12px;padding:0}
.woocommerce ul.order_details li{border:1px solid var(--line);border-radius:8px;padding:12px 16px;margin:0;color:var(--muted);float:none}
.woocommerce ul.order_details li strong{color:var(--text)}
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0;display:grid;gap:4px}
.woocommerce-MyAccount-navigation a{display:block;padding:10px 12px;border-radius:6px;color:var(--muted);text-decoration:none}
.woocommerce-MyAccount-navigation .is-active a,.woocommerce-MyAccount-navigation a:hover{background:var(--panel);color:var(--text)}
.woocommerce-account .woocommerce{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px}
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper{grid-column:1/-1}
.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content{float:none!important;width:auto!important}
.woocommerce-account:not(.logged-in) .woocommerce{display:block}

/* Bloques de carrito y pago, por si se usan */
.wc-block-components-text-input input,.wc-block-components-textarea,.wc-blocks-components-select__select,.wc-block-components-combobox .wc-block-components-combobox-control input{background:var(--ink)!important;color:var(--text)!important;border-color:var(--line)!important}
.wc-block-components-text-input label,.wc-block-components-combobox label{color:var(--muted)!important}
.wc-block-components-button:not(.is-link){background:var(--red);color:#fff}
.wc-block-components-totals-wrapper,.wc-block-components-order-summary{border-color:var(--line)!important}

@media (max-width:920px){
  .woocommerce div.product{grid-template-columns:1fr}
  .woocommerce-checkout .col2-set{grid-template-columns:1fr}
  .woocommerce-account .woocommerce{grid-template-columns:1fr}
  .woocommerce .cart-collaterals .cart_totals{float:none;max-width:none}
}

/* Campos del checkout: más específicos que los estilos de WooCommerce */
.woocommerce form .form-row .input-text,.woocommerce form .form-row select,.woocommerce-page form .form-row .input-text,.woocommerce-page form .form-row select,.woocommerce form .form-row textarea{background:var(--ink);color:var(--text);border:1px solid var(--line);border-radius:var(--r-s);min-height:46px;padding:8px 12px;box-shadow:none}
.woocommerce form .form-row textarea{min-height:110px}
.woocommerce form .form-row .input-text:focus,.woocommerce form .form-row select:focus{border-color:var(--signal);box-shadow:0 0 0 3px rgba(94,157,255,.28)}
.woocommerce form .form-row.woocommerce-invalid .input-text,.woocommerce form .form-row.woocommerce-invalid select{border-color:var(--danger)}
.woocommerce form .form-row.woocommerce-validated .input-text{border-color:var(--line)}
.woocommerce-checkout .woocommerce-billing-fields h3,.woocommerce-checkout .woocommerce-additional-fields h3{margin:0 0 16px}
.woocommerce form .form-row ::placeholder{color:#5D6C98}

.woocommerce ul.products li.product .button{display:inline-flex;align-items:center;align-self:flex-start;margin-top:auto;padding:0 18px}
@media (max-width:560px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1.2rem}}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:none;border-bottom-color:transparent}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--text)}
