/* TOPDON approved storefront look, layered on native WooCommerce markup.
   No changes to WooCommerce validation, checkout fields, shipping or payment flows. */
.topdon-wc-page{color:var(--ink,#f4f4f5);min-height:72vh;padding:42px 20px 100px;background:#0a0a0b}
.topdon-wc-page .lp-container{width:100%;max-width:1240px;margin:0 auto}
.topdon-wc-page .lp-store-title{font-size:clamp(28px,3.3vw,40px);line-height:1.12;letter-spacing:-.04em;margin:0 0 30px;font-weight:750}
.topdon-wc-page .woocommerce,.topdon-wc-page .woocommerce-page{color:#f4f4f5;width:100%;max-width:none;margin:0;padding:0}
.topdon-wc-page a{color:inherit}
.topdon-wc-page .woocommerce a:hover{color:#ff525e}
.topdon-wc-page .woocommerce-breadcrumb{font-size:13px;color:#a9a9b2;margin:0 0 28px}
.topdon-wc-page .woocommerce-breadcrumb a{color:#d2d2d8}
.topdon-wc-page .woocommerce-notices-wrapper > *,.topdon-wc-page .wc-block-components-notice-banner{margin-bottom:22px!important}
.topdon-wc-page .woocommerce-message,.topdon-wc-page .woocommerce-info,.topdon-wc-page .woocommerce-error{background:#161619;color:#eaeaf0;border:1px solid #34343b;border-top:3px solid var(--red,#10acf9);border-radius:12px;padding:18px 20px 18px 48px}
.topdon-wc-page .woocommerce-message::before,.topdon-wc-page .woocommerce-info::before{color:#ff3b47}
.topdon-wc-page .woocommerce-message .button{margin-top:0}
/* Buttons keep native WooCommerce submit, Ajax and validation behaviors. */
.topdon-wc-page .woocommerce a.button,.topdon-wc-page .woocommerce button.button,.topdon-wc-page .woocommerce input.button,.topdon-wc-page .woocommerce #respond input#submit,
.topdon-wc-page .wp-block-button__link,.topdon-wc-page .wc-block-components-button{background:#10acf9;color:#fff;border:0;border-radius:999px;min-height:44px;padding:12px 21px;font:650 14px/1.2 var(--sans);text-decoration:none;box-shadow:none;transition:background .2s,transform .2s;cursor:pointer}
.topdon-wc-page .woocommerce a.button:hover,.topdon-wc-page .woocommerce button.button:hover,.topdon-wc-page .woocommerce input.button:hover,.topdon-wc-page .wc-block-components-button:hover{background:#10acf9;color:#fff}
.topdon-wc-page .woocommerce button.button:disabled,.topdon-wc-page .wc-block-components-button:disabled{opacity:.55;cursor:not-allowed}
/* Native individual Woo product, visually matching approved two-column mock. */
.topdon-wc-single .woocommerce div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px 44px;align-items:start}
.topdon-wc-single .woocommerce div.product > .woocommerce-product-gallery{float:none;width:100%;margin:0;max-width:100%;background:#f1f1f2;border-radius:24px;overflow:hidden;padding:20px;position:relative}
.topdon-wc-single .woocommerce div.product .woocommerce-product-gallery__image > a > img{
  display:block;width:100%;height:auto;max-height:550px;object-fit:contain;
  mix-blend-mode:normal;filter:none;
}
/* TOPDON 1.5.3: dejar que PhotoSwipe muestre el original ampliado al hacer clic.
   Nunca estilizar la imagen auxiliar .zoomImg como si fuera la foto principal. */
.topdon-wc-single .woocommerce div.product .woocommerce-product-gallery__image > a{display:block;cursor:zoom-in}
.topdon-wc-single .woocommerce div.product .woocommerce-product-gallery .zoomImg{display:none!important}
.topdon-wc-single .woocommerce div.product .woocommerce-product-gallery__trigger{z-index:15}

.topdon-wc-single .woocommerce div.product .flex-control-thumbs{display:flex;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.topdon-wc-single .woocommerce div.product .flex-control-thumbs li{float:none;flex:0 0 70px;width:70px;background:#fff;border-radius:10px;overflow:hidden}
.topdon-wc-single .woocommerce div.product .onsale,.topdon-wc-archive .woocommerce span.onsale{position:absolute;top:16px;left:16px;background:#10acf9;color:#fff;min-width:0;min-height:0;line-height:1.2;border-radius:7px;margin:0;padding:7px 10px;font-weight:650;z-index:2}
.topdon-wc-single .woocommerce div.product .summary{float:none;width:100%;margin:0;min-width:0;padding:5px 0 0}
.topdon-wc-single .product_title{font-size:clamp(30px,4vw,52px);line-height:1.08;letter-spacing:-.045em;margin-bottom:20px}
.topdon-wc-single .summary > .price,.topdon-wc-single .summary p.price{font:700 29px/1.2 var(--mono);color:#fff;margin:0 0 26px}
.topdon-wc-single .summary .price del{display:inline-block;font-size:15px;color:#898991;opacity:1;margin-right:10px}
.topdon-wc-single .summary .price ins{text-decoration:none;color:#fff}
.topdon-wc-single .woocommerce-product-details__short-description{color:#c3c3cc;font-size:15px;line-height:1.75;margin-bottom:24px}
.topdon-wc-single .woocommerce-product-details__short-description ul{padding-left:22px}
.topdon-wc-single .woocommerce div.product form.cart{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:22px 0}
.topdon-wc-single .woocommerce div.product form.cart .variations{width:100%;margin:0}
.topdon-wc-single .woocommerce div.product form.cart .variations th,.topdon-wc-single .woocommerce div.product form.cart .variations td{padding:8px;border:0;color:#fff}
.topdon-wc-single .woocommerce div.product form.cart .quantity{margin:0}
.topdon-wc-page .woocommerce .quantity input.qty{border:1px solid #494950;border-radius:11px;background:#1e1e22;color:#fff;width:76px;height:45px;font:600 15px var(--mono);padding:6px}
.topdon-wc-single .summary .product_meta{margin-top:28px;padding-top:22px;border-top:1px solid #34343b;color:#bcbcc6;font-size:13px;line-height:2}
.topdon-wc-single .summary .product_meta a{color:#f4f4f5}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs,.topdon-wc-single .woocommerce div.product .related,.topdon-wc-single .woocommerce div.product .up-sells{grid-column:1/-1;clear:both;margin-top:16px;width:100%}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs{border-top:1px solid #34343b;padding-top:28px}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin-bottom:25px;border:0}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs ul.tabs::before,.topdon-wc-single .woocommerce div.product .woocommerce-tabs ul.tabs li::before,.topdon-wc-single .woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs ul.tabs li{border:1px solid #3b3b42;background:#1d1d21;border-radius:999px;padding:0;margin:0 8px 8px 0}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:11px 19px;color:#d0d0d8}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:#10acf9;border-color:#10acf9}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:#fff}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .panel h2,.topdon-wc-single .woocommerce div.product .related h2{font-size:clamp(23px,2.7vw,34px);margin-bottom:20px}
.topdon-wc-page #reviews #comments ol.commentlist li .comment-text{background:#151517;border:1px solid #38383f;border-radius:14px}
.topdon-wc-page #reviews #comments ol.commentlist li .comment-text p{color:#c9c9d1}
.topdon-wc-page .woocommerce #review_form #respond input:not([type=checkbox]),.topdon-wc-page .woocommerce #review_form #respond textarea{background:#1e1e22;color:#fff;border:1px solid #47474f;border-radius:10px;padding:12px}
/* Woo native shop/archive; product cards share approved catalog proportions. */
.topdon-wc-archive .woocommerce ul.products,.topdon-wc-single .woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 18px;margin:24px 0;padding:0;clear:both}
.topdon-wc-archive .woocommerce ul.products li.product,.topdon-wc-single .woocommerce ul.products li.product{float:none;width:auto;margin:0;min-width:0;display:flex;flex-direction:column;gap:10px}
.topdon-wc-archive .woocommerce ul.products li.product > a img,.topdon-wc-single .woocommerce ul.products li.product > a img{width:100%;aspect-ratio:1;object-fit:contain;padding:11%;background:#1b1b1e;border-radius:18px;margin-bottom:10px}
.topdon-wc-archive .woocommerce ul.products li.product h2,.topdon-wc-single .woocommerce ul.products li.product h2{color:#f4f4f5;font-size:16px;line-height:1.3;padding:0;font-weight:650}
.topdon-wc-archive .woocommerce ul.products li.product .price,.topdon-wc-single .woocommerce ul.products li.product .price{color:#f4f4f5;font:650 17px var(--mono);margin-top:auto}
.topdon-wc-page .woocommerce ul.products li.product .price del{color:#85858d;opacity:1;margin-right:7px}
.topdon-wc-page .woocommerce ul.products li.product .price ins{color:#fff;text-decoration:none}
.topdon-wc-page .woocommerce-ordering select{background:#1d1d21;border:1px solid #45454d;border-radius:999px;color:#fff;padding:10px 15px}
.topdon-wc-page .woocommerce-result-count{color:#b4b4be}
.topdon-wc-page .woocommerce nav.woocommerce-pagination ul{border:0;display:flex;gap:8px}
.topdon-wc-page .woocommerce nav.woocommerce-pagination ul li{border:0}
.topdon-wc-page .woocommerce nav.woocommerce-pagination ul li span,.topdon-wc-page .woocommerce nav.woocommerce-pagination ul li a{border-radius:9px;background:#1e1e22;color:#fff;padding:12px 16px}
/* Checkout and Cart are WooCommerce-owned. These rules affect appearance only. */
.topdon-wc-cart .woocommerce-cart-form,.topdon-wc-cart .cart-collaterals,.topdon-wc-checkout form.checkout.woocommerce-checkout{margin:0}
.topdon-wc-cart .woocommerce:has(> form.woocommerce-cart-form){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.75fr);gap:26px;align-items:start}
.topdon-wc-cart .woocommerce > .woocommerce-notices-wrapper,.topdon-wc-cart .woocommerce > .woocommerce-message,.topdon-wc-cart .woocommerce > .woocommerce-info{grid-column:1/-1}
.topdon-wc-cart .woocommerce-cart-form,.topdon-wc-cart .cart-collaterals{background:#151517;border:1px solid #35353b;border-radius:18px;padding:24px;min-width:0}
.topdon-wc-cart .woocommerce .cart-collaterals .cart_totals{float:none;width:100%;margin:0}
.topdon-wc-cart .woocommerce .cart-collaterals .cart_totals h2,.topdon-wc-checkout .woocommerce #order_review_heading{font-size:21px;margin:0 0 20px}
.topdon-wc-checkout form.checkout.woocommerce-checkout{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,.75fr);gap:26px;align-items:start}
.topdon-wc-checkout form.checkout #customer_details{float:none;width:auto;background:#151517;border:1px solid #35353b;border-radius:18px;padding:26px;min-width:0}
.topdon-wc-checkout form.checkout #customer_details .col-1,.topdon-wc-checkout form.checkout #customer_details .col-2{float:none;width:100%}
.topdon-wc-checkout form.checkout #customer_details h3{font-size:21px;margin-bottom:18px}
.topdon-wc-checkout form.checkout #order_review_heading{grid-column:2;grid-row:1;padding:25px 26px 0;background:#151517;border:1px solid #35353b;border-bottom:0;border-radius:18px 18px 0 0;margin:0}
.topdon-wc-checkout form.checkout #order_review{grid-column:2;grid-row:2;padding:0 26px 26px;background:#151517;border:1px solid #35353b;border-top:0;border-radius:0 0 18px 18px;min-width:0}
.topdon-wc-checkout form.checkout #customer_details{grid-row:1/span 3;grid-column:1}
.topdon-wc-checkout .woocommerce-form-coupon-toggle,.topdon-wc-checkout .woocommerce-form-login-toggle,.topdon-wc-checkout .checkout_coupon{grid-column:1/-1}
.topdon-wc-page .woocommerce table.shop_table{background:#151517;border:1px solid #38383e;border-radius:12px;color:#eaeaf0;overflow:hidden;border-collapse:separate}
.topdon-wc-page .woocommerce table.shop_table th,.topdon-wc-page .woocommerce table.shop_table td{border:0;border-bottom:1px solid #33333a;color:#dcdce3;padding:14px 10px;vertical-align:middle}
.topdon-wc-page .woocommerce table.shop_table tr:last-child th,.topdon-wc-page .woocommerce table.shop_table tr:last-child td{border-bottom:0}
.topdon-wc-page .woocommerce table.shop_table td.product-thumbnail img{width:76px;height:76px;object-fit:contain;background:#f1f1f2;border-radius:11px}
.topdon-wc-page .woocommerce a.remove{color:#ff5965!important}
.topdon-wc-page .woocommerce a.remove:hover{background:#10acf9;color:#fff!important}
.topdon-wc-page .woocommerce .coupon input#coupon_code{height:44px;border-radius:10px;background:#202024;color:#fff;border:1px solid #45454a;min-width:110px;padding:0 12px}
.topdon-wc-page .woocommerce .shop_table .actions{gap:12px;justify-content:flex-end}
.topdon-wc-page .woocommerce .shop_table .actions .coupon{display:flex;gap:8px;flex-wrap:wrap}
.topdon-wc-page .woocommerce form .form-row label{font-size:13px;color:#d7d7df;font-weight:600}
.topdon-wc-page .woocommerce form .form-row input.input-text,.topdon-wc-page .woocommerce form .form-row textarea,
.topdon-wc-page .woocommerce form .form-row select,.topdon-wc-page .woocommerce .select2-container--default .select2-selection--single{
 background:#1e1e22;border:1px solid #45454d;color:#fff;border-radius:10px;min-height:46px;padding:10px 12px;box-sizing:border-box}
.topdon-wc-page .woocommerce form .form-row textarea{min-height:110px}
.topdon-wc-page .woocommerce .select2-container--default .select2-selection--single{padding-top:9px}
.topdon-wc-page .woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered{color:#fff}
.topdon-wc-page .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow{top:9px}
.topdon-wc-page .woocommerce .woocommerce-checkout-payment,.topdon-wc-page .woocommerce #payment{background:#1f1f22;border:1px solid #3c3c42;border-radius:14px;color:#fff}
.topdon-wc-page .woocommerce #payment div.payment_box{background:#303034;color:#eee}
.topdon-wc-page .woocommerce #payment div.payment_box::before{border-bottom-color:#303034}
.topdon-wc-page .woocommerce #payment ul.payment_methods{border-bottom:1px solid #47474f}
.topdon-wc-page .woocommerce #payment div.form-row{padding:18px}
.topdon-wc-page .woocommerce .woocommerce-privacy-policy-text,.topdon-wc-page .woocommerce .woocommerce-terms-and-conditions-wrapper{font-size:12px;color:#bdbdc8}
/* WC Cart & Checkout Blocks. Blocks continue to own data, dynamic fields and payment gateways. */
.topdon-wc-cart .wp-block-woocommerce-cart,.topdon-wc-checkout .wp-block-woocommerce-checkout{margin:0;max-width:none}
.topdon-wc-page .wp-block-woocommerce-cart .wc-block-cart,.topdon-wc-page .wp-block-woocommerce-checkout .wc-block-checkout{color:#f4f4f5}
.topdon-wc-page .wc-block-components-main,.topdon-wc-page .wc-block-components-sidebar{background:#151517;border:1px solid #36363e;border-radius:18px;padding:24px;min-width:0}
.topdon-wc-page .wc-block-components-order-summary,.topdon-wc-page .wc-block-components-totals-wrapper{border-color:#414148}
.topdon-wc-page .wc-block-components-product-name,.topdon-wc-page .wc-block-components-formatted-money-amount{color:#f4f4f5}
.topdon-wc-page .wc-block-components-text-input input,.topdon-wc-page .wc-block-components-combobox-control input,.topdon-wc-page .wc-block-components-textarea,.topdon-wc-page .wc-block-components-select select{background:#1e1e22;color:#fff;border:1px solid #45454d;border-radius:10px}
.topdon-wc-page .wc-block-components-text-input label,.topdon-wc-page .wc-block-components-checkbox__label,.topdon-wc-page .wc-block-components-radio-control__label{color:#d7d7df}
.topdon-wc-page .wc-block-components-radio-control,.topdon-wc-page .wc-block-components-checkout-step,.topdon-wc-page .wc-block-components-totals-coupon{border-color:#414148}
.topdon-wc-page .wc-block-components-button{width:auto}
.topdon-wc-page .wc-block-components-notice-banner{background:#19191c;color:#f4f4f5}
.topdon-wc-page .wc-block-components-order-summary .wc-block-components-order-summary-item__image img,.topdon-wc-page .wc-block-cart-items__row img{object-fit:contain;background:#f1f1f2;border-radius:10px}
.topdon-wc-page .wc-block-components-sidebar .wc-block-components-totals-wrapper:last-child{border-bottom:none}
.topdon-wc-page .woocommerce-thankyou-order-received{background:#153a2b;border:1px solid #1c6d4b;padding:16px;border-radius:12px}
/* Woo account */
.topdon-wc-page .woocommerce-MyAccount-navigation ul{list-style:none;padding:0;display:grid;gap:8px}
.topdon-wc-page .woocommerce-MyAccount-navigation a{display:block;background:#1c1c20;border-radius:11px;padding:11px 16px}
.topdon-wc-page .woocommerce-MyAccount-content{background:#151517;border:1px solid #35353b;border-radius:18px;padding:24px}
.topdon-search-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.topdon-search-result,.topdon-post{background:#151517;border:1px solid #35353b;border-radius:15px;padding:14px;display:grid;gap:12px}
.topdon-search-result-media{width:100%;aspect-ratio:4/3;background:#f1f1f2;border-radius:12px;display:grid;place-items:center}
.topdon-search-result-media img{max-width:90%;max-height:90%;object-fit:contain}
/* eliminate search / layout overflow */
.topdon-wc-page input,.topdon-wc-page textarea,.topdon-wc-page select{max-width:100%}
@media(max-width:1000px){
 .topdon-wc-archive .woocommerce ul.products,.topdon-wc-single .woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
 .topdon-search-results{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:860px){
 .topdon-wc-single .woocommerce div.product{grid-template-columns:minmax(0,1fr)}
 .topdon-wc-cart .woocommerce:has(> form.woocommerce-cart-form),.topdon-wc-checkout form.checkout.woocommerce-checkout{display:block}
 .topdon-wc-cart .woocommerce-cart-form,.topdon-wc-cart .cart-collaterals,.topdon-wc-checkout form.checkout #customer_details{margin-bottom:20px}
 .topdon-wc-checkout form.checkout #order_review_heading,.topdon-wc-checkout form.checkout #order_review{grid-column:auto;grid-row:auto}
 .topdon-wc-page .wc-block-components-main,.topdon-wc-page .wc-block-components-sidebar{padding:18px}
}
@media(max-width:600px){
 .topdon-wc-page{padding:28px 16px 95px}
 .topdon-wc-single .product_title{font-size:32px}
 .topdon-wc-archive .woocommerce ul.products,.topdon-wc-single .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
 .topdon-wc-archive .woocommerce ul.products li.product h2{font-size:14px}
 .topdon-wc-page .woocommerce table.shop_table{display:block;overflow-x:auto}
 .topdon-wc-page .woocommerce .shop_table .actions{flex-wrap:wrap}
 .topdon-wc-checkout form.checkout #customer_details,.topdon-wc-checkout form.checkout #order_review,.topdon-wc-cart .woocommerce-cart-form,.topdon-wc-cart .cart-collaterals{padding:18px}
 .topdon-search-results{grid-template-columns:1fr}
 .topdon-wc-single .woocommerce div.product > .woocommerce-product-gallery{padding:12px;border-radius:19px}
}


/* ===========================================================
   TOPDON 1.2 — Fidelity + WooCommerce native markup compatibility.
   Presentation only: no checkout form, cart quantity or order hooks.
   =========================================================== */
/* The front page keeps its approved header unchanged. Interior header now
   preserves the same visible logo/search/cart layout and dimensions. */
.topdon-interior-header .hd{
  display:grid;
  grid-template-columns:max-content minmax(0,1fr) max-content;
  column-gap:28px;
  row-gap:12px;
  align-items:center;
  min-height:77px;
}
.topdon-interior-header .logo{display:flex;flex-shrink:0;width:max-content;white-space:nowrap;align-items:center}
.topdon-interior-header .logo .wm{font-size:26px;line-height:1;white-space:nowrap}
.topdon-interior-header form.search{margin:0;min-width:0;width:100%;max-width:620px;justify-self:center}
.topdon-interior-header form.search input[type="search"]{display:block;min-width:0;width:100%;height:48px;margin:0}
.topdon-interior-header .actions{display:flex;align-items:center;gap:4px;justify-self:end;white-space:nowrap;min-width:max-content}
.topdon-interior-header .ib{flex:0 0 44px}
@media(max-width:900px){
  .topdon-interior-header .hd{grid-template-columns:max-content max-content;justify-content:space-between}
  .topdon-interior-header form.search{grid-column:1/-1;grid-row:2;max-width:none}
}
@media(max-width:520px){.topdon-interior-header .logo .wm{font-size:22px}}

/* WooCommerce templates render product content without the .woocommerce
   wrapper on some installs. The theme now supplies one and styles it. */
.topdon-wc-page .topdon-woocommerce-inner{width:100%;max-width:none;margin:0;padding:0}
.topdon-wc-page .woocommerce{max-width:none;margin:0;padding:0}
.topdon-wc-single .woocommerce div.product .woocommerce-product-gallery,
.topdon-wc-single .woocommerce div.product .summary{min-width:0}
.topdon-wc-single .woocommerce div.product > .woocommerce-product-gallery{
  box-sizing:border-box;min-height:460px;
}
.topdon-wc-single .woocommerce div.product .woocommerce-product-gallery__wrapper{max-width:100%}
.topdon-wc-single .woocommerce div.product .summary .woocommerce-product-details__short-description p{margin:0 0 15px}
.topdon-wc-single .woocommerce div.product .summary .price del{color:#9999a2}
.topdon-wc-single .woocommerce div.product .summary .stock{font-size:13px;color:#d1d1d8}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .panel{max-width:100%;margin:0 0 30px}

/* Prevent global .actions (header flex row) from turning the native cart
   table action cell into a flex container; preserve coupon/update controls. */
.topdon-wc-cart .woocommerce table.shop_table td.actions{
  display:table-cell!important;
  vertical-align:middle;
  text-align:right;
  padding:18px 14px;
}
.topdon-wc-cart .woocommerce table.shop_table td.actions .coupon{
  display:flex;float:left;align-items:center;gap:8px;max-width:100%;
}
.topdon-wc-cart .woocommerce table.shop_table td.actions .coupon label{display:none}
.topdon-wc-cart .woocommerce table.shop_table td.actions button[name="update_cart"]{
  float:right;margin-left:10px;
}
.topdon-wc-cart .woocommerce table.shop_table td.actions::after{content:"";display:block;clear:both}
.topdon-wc-cart .woocommerce table.shop_table{width:100%;margin:0;border:0;border-collapse:collapse}
.topdon-wc-cart .woocommerce table.shop_table th,
.topdon-wc-cart .woocommerce table.shop_table td{border-bottom:1px solid #35353b;padding:16px 10px;color:#f0f0f2}
.topdon-wc-cart .woocommerce table.shop_table thead th{color:#b9b9c1;font:600 12px var(--mono)}
.topdon-wc-cart .woocommerce table.shop_table td.product-thumbnail img{
  width:80px;height:80px;object-fit:contain;border-radius:12px;
  background:#f1f1f2;padding:6px;
}
.topdon-wc-cart .woocommerce table.shop_table td.product-name a{font-weight:650;color:#f4f4f5}
.topdon-wc-cart .woocommerce table.shop_table td.product-remove a.remove{color:#ef3340!important;background:transparent!important}
.topdon-wc-cart .woocommerce table.shop_table td.product-remove a.remove:hover{color:#fff!important;background:#10acf9!important}
.topdon-wc-cart .woocommerce .cart-collaterals .cart_totals table{border:0;width:100%}
.topdon-wc-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout{padding:14px 0 0}
.topdon-wc-cart .woocommerce .cart-collaterals .cart_totals .checkout-button{width:100%;text-align:center}
.topdon-wc-cart .woocommerce .cart-collaterals .shipping-calculator-button{font-size:13px;color:#f4f4f5}
/* Preserve WooCommerce Blocks’ own row and checkout layout. */
.topdon-wc-cart .wc-block-cart,.topdon-wc-checkout .wc-block-checkout{width:100%;max-width:none}
.topdon-wc-cart .wc-block-cart__main,.topdon-wc-checkout .wc-block-checkout__main{min-width:0}
.topdon-wc-cart .wc-block-cart .wc-block-components-product-name{font-weight:650}
.topdon-wc-cart .wc-block-cart .wc-block-components-quantity-selector{border:1px solid #505059;border-radius:999px}
.topdon-wc-cart .wc-block-cart .wc-block-components-quantity-selector input{color:#fff!important;background:transparent!important}
.topdon-wc-cart .wc-block-cart .wc-block-components-quantity-selector button{color:#fff!important}
@media(max-width:860px){
  .topdon-wc-single .woocommerce div.product > .woocommerce-product-gallery{min-height:340px}
  .topdon-wc-cart .woocommerce table.shop_table td.product-thumbnail img{width:64px;height:64px}
}
@media(max-width:600px){
  .topdon-wc-cart .woocommerce table.shop_table td.actions{text-align:left;display:block!important}
  .topdon-wc-cart .woocommerce table.shop_table td.actions .coupon{float:none;flex-wrap:wrap;margin-bottom:12px}
  .topdon-wc-cart .woocommerce table.shop_table td.actions button[name="update_cart"]{float:none;margin:0;width:100%}
  .topdon-wc-cart .woocommerce table.shop_table td.actions .coupon input#coupon_code{flex:1;min-width:0}
  .topdon-wc-single .woocommerce div.product > .woocommerce-product-gallery{min-height:290px}
}

/* The classic Woo cart is a stacked product-card layout on narrow screens,
   matching TOPDON's responsive cards without changing Woo data or controls. */
@media(max-width:700px){
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form table.shop_table,
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody{
    display:block!important;width:100%;overflow:visible;border:0;
  }
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form table.shop_table thead{display:none}
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form table.shop_table tr.cart_item{
    display:grid;grid-template-columns:24px 74px minmax(0,1fr);
    column-gap:10px;row-gap:6px;align-items:start;padding:14px 0;
    border-bottom:1px solid #3a3a41;
  }
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form table.shop_table tr.cart_item td{
    display:block!important;float:none!important;width:auto!important;
    min-width:0!important;text-align:left!important;border:0!important;
    padding:3px!important;overflow-wrap:anywhere;
  }
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form table.shop_table tr.cart_item td::before{display:none!important}
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form td.product-remove{grid-column:1;grid-row:1/5}
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form td.product-thumbnail{grid-column:2;grid-row:1/5}
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form td.product-thumbnail img{
    max-width:74px;width:100%;height:auto;aspect-ratio:1;object-fit:contain;
  }
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form td.product-name{grid-column:3;grid-row:1;font-size:14px;line-height:1.4}
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form td.product-price{grid-column:3;grid-row:2;font-size:13px;color:#bcbcc5!important}
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form td.product-quantity{grid-column:3;grid-row:3}
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form td.product-subtotal{grid-column:3;grid-row:4;font-weight:650}
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form table.shop_table tr:last-child{display:block!important}
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form table.shop_table td.actions{display:block!important;width:100%;padding:14px 0!important}
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form table.shop_table td.actions .coupon{display:flex;gap:8px;flex-wrap:wrap;float:none;margin-bottom:12px}
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form table.shop_table td.actions button[name="update_cart"]{display:block;width:100%;float:none;margin:0}
  .topdon-wc-cart .woocommerce form.woocommerce-cart-form table.shop_table td.actions .coupon input#coupon_code{width:auto;flex:1;min-width:0}
}

/* The original approved view renders tab controls horizontally. */
.topdon-wc-single .woocommerce div.product .woocommerce-tabs ul.tabs{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;list-style:none;
}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs ul.tabs li{display:inline-flex;list-style:none;margin:0}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs ul.tabs li a{width:auto}
/* Native billing/shipping inputs scale to their WooCommerce-assigned rows. */
.topdon-wc-checkout .woocommerce form .form-row .woocommerce-input-wrapper{display:block;width:100%}
.topdon-wc-checkout .woocommerce form .form-row .woocommerce-input-wrapper > input.input-text,
.topdon-wc-checkout .woocommerce form .form-row .woocommerce-input-wrapper > select{
  display:block;width:100%;max-width:100%;
}

/* TOPDON 1.4.3 — Confirmación de carrito: recuadro oscuro con borde sutil.
   Solo se ajusta el mensaje de éxito; errores y avisos informativos no cambian. */
.topdon-wc-page .woocommerce-message {
  box-sizing: border-box;
  display: flow-root;
  position: relative;
  width: 100%;
  min-height: 0;
  margin: 0 0 18px !important;
  padding: 14px 18px 14px 46px !important;
  background: #161619 !important;
  color: #dedee4 !important;
  border: 1px solid #34343b !important;
  border-top: 1px solid #34343b !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  outline: 0 !important;
  font-size: 14px;
  line-height: 1.55;
}
.topdon-wc-page .woocommerce-message::before {
  content: "\2713" !important;
  position: absolute;
  top: 14px !important;
  left: 18px !important;
  color: #57ba76 !important;
  font-family: inherit !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.topdon-wc-page .woocommerce-message a.button,
.topdon-wc-page .woocommerce-message a.button:hover {
  min-height: 0;
  margin: 0 0 0 12px;
  padding: 0 0 2px;
  background: none;
  color: #f4f4f5;
  border: 0;
  border-bottom: 1px solid #5c5c65;
  border-radius: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
}
.topdon-wc-page .woocommerce-message a.button:hover {
  color: #ff4b55;
  border-bottom-color: #ff4b55;
}
@media (max-width: 600px) {
  .topdon-wc-page .woocommerce-message a.button {
    float: none;
    display: inline-block;
    margin: 4px 0 0;
  }
}

/* 1.4.7: Price clarity on the individual product page only. */
.topdon-wc-single .woocommerce div.product .summary > p.price,
.topdon-wc-single .woocommerce div.product .summary > span.price,
.topdon-wc-single .woocommerce div.product .summary .woocommerce-variation-price .price{
 color:#fff!important;font-family:var(--mono)!important;font-size:clamp(32px,3.3vw,42px)!important;
 font-weight:750!important;line-height:1.2!important;letter-spacing:-.02em;
}
.topdon-wc-single .woocommerce div.product .summary p.price > .woocommerce-Price-amount,
.topdon-wc-single .woocommerce div.product .summary p.price > ins,
.topdon-wc-single .woocommerce div.product .summary p.price > ins .woocommerce-Price-amount,
.topdon-wc-single .woocommerce div.product .summary .woocommerce-variation-price .price ins,
.topdon-wc-single .woocommerce div.product .summary .woocommerce-variation-price .price > .woocommerce-Price-amount{
 color:#fff!important;
}
.topdon-wc-single .woocommerce div.product .summary p.price del,
.topdon-wc-single .woocommerce div.product .summary p.price del .woocommerce-Price-amount,
.topdon-wc-single .woocommerce div.product .summary .woocommerce-variation-price .price del,
.topdon-wc-single .woocommerce div.product .summary .woocommerce-variation-price .price del .woocommerce-Price-amount{
 color:#92929c!important;font-size:17px!important;font-weight:500!important;
}


/* TOPDON 1.1.1: lectura legible de descripciones largas WooCommerce.
   El reset global h1-h4/p{margin:0} del tema no debe afectar el contenido editorial.
   Deliberadamente no altera carrito, galería, resumen, YITH ni checkout. */
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description,
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description .topdon-product-description {
  line-height: 1.75;
  overflow-wrap: break-word;
}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description .topdon-product-description {
  display: flow-root;
  max-width: 1120px;
  color: #e2e5ed;
}
/* Restaurar separación entre párrafos, incluso cuando existe el reset global. */
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description p {
  margin: 0 0 19px !important;
  line-height: 1.75;
}
/* Subtítulos dentro de la descripción: jerarquía visual constante. */
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description h3 {
  display: block;
  margin: 29px 0 11px !important;
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.015em;
  color: #f7f9fc;
}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description h4 {
  margin: 24px 0 10px !important;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 650;
  color: #f3f7fc;
}
/* Los encabezados que ya tienen margin-bottom de WooCommerce mantienen prioridad. */
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description .topdon-product-description > h3:first-child {
  margin-top: 0 !important;
}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description ul,
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description ol {
  margin: 10px 0 23px !important;
  padding-left: 25px !important;
  list-style-position: outside;
}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description ul {list-style-type: disc;}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description ol {list-style-type: decimal;}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description li {
  margin: 0 0 9px;
  padding-left: 2px;
  line-height: 1.65;
}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 15px 0 23px;
}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description a:not(.button) {
  color: #46c1ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description table {
  width: 100%;
  margin: 15px 0 24px;
  border-collapse: collapse;
}
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description th,
.topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description td {
  border: 1px solid #3b4656;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
@media(max-width: 767px) {
  .topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description p {
    margin-bottom: 17px !important;
  }
  .topdon-wc-single .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description h3 {
    margin: 25px 0 10px !important;
  }
}
