/* Indulgence Classic Child: WooCommerce and WordPress page styling in the demo's visual language.
   Targets native WooCommerce markup only. Scoped under body.ic-chrome so it never affects the site when the Indulgence chrome is switched off.
   Layout selectors for the single product use :has() so they keep working if the parent theme wraps the gallery and summary. */

/* Page titles */
body.ic-chrome :is(.entry-title,.page-title,.woocommerce-products-header__title,.product_title){font-weight:300;text-transform:uppercase;letter-spacing:.08em;font-size:clamp(1.8rem,4vw,3rem);line-height:1.15;margin:0 0 1rem}
body.ic-chrome .product_title{font-size:clamp(1.5rem,3vw,2.2rem);letter-spacing:.06em}
body.ic-chrome .woocommerce-breadcrumb{font-size:.66rem;text-transform:uppercase;letter-spacing:.15em;color:var(--ic-mute);margin:0 0 1.2rem;padding:0}
body.ic-chrome .woocommerce-breadcrumb a{color:inherit}
body.ic-chrome .ic-pn{font-size:.66rem;text-transform:uppercase;letter-spacing:.15em;margin:0 0 1rem;text-align:right}
body.ic-chrome .ic-pn a{text-decoration:none}body.ic-chrome .ic-pn a:hover{text-decoration:underline}

/* Buttons. 1.3.0: card buttons (.ic-pc__btn) are styled in ic-cards.css and excluded here. Note for maintainers: an :is() list takes the specificity of its MOST specific argument, and '.woocommerce #respond input#submit' contains two IDs, so this whole rule outranks any selector with fewer IDs; also '.woocommerce a.button' matches on WooCommerce pages because <body> carries the class .woocommerce. */
body.ic-chrome :is(.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,.single_add_to_cart_button,.wp-element-button,.wc-block-components-button:not(.is-link)):not(.ic-pc__btn){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.95rem 1.8rem;border:1px solid var(--ic-ink);border-radius:0;background:var(--ic-ink);color:#fff;font:400 .72rem var(--ic-f);text-transform:uppercase;letter-spacing:.16em;text-decoration:none;cursor:pointer;transition:background .25s,color .25s;box-shadow:none}
body.ic-chrome :is(.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.single_add_to_cart_button,.wp-element-button,.wc-block-components-button:not(.is-link)):not(.ic-pc__btn):hover{background:transparent;color:var(--ic-ink)}
body.ic-chrome :is(.woocommerce button.button:disabled,.woocommerce button.button.disabled,.single_add_to_cart_button.disabled){opacity:.4;cursor:not-allowed}

/* Form controls in WooCommerce pages */
body.ic-chrome .woocommerce :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=search],select,.select2-selection){font:300 1rem var(--ic-f);border:0;border-bottom:1px solid var(--ic-ink);border-radius:0;background:transparent;min-height:44px;padding:.5rem 0;box-shadow:none;color:var(--ic-ink)}
body.ic-chrome .woocommerce textarea{font:300 1rem var(--ic-f);border:1px solid var(--ic-ink);border-radius:0;background:transparent;padding:.6rem;box-shadow:none}
body.ic-chrome .woocommerce form .form-row label{font-size:.62rem;text-transform:uppercase;letter-spacing:.18em}

/* Notices */
body.ic-chrome :is(.woocommerce-message,.woocommerce-info,.woocommerce-error){background:#fff;color:var(--ic-ink);border:1px solid var(--ic-line);border-top:2px solid var(--ic-ink);border-radius:0;padding:1rem 1.2rem;margin:0 0 1.5rem;list-style:none}
body.ic-chrome :is(.woocommerce-message,.woocommerce-info,.woocommerce-error)::before{display:none}
body.ic-chrome .woocommerce-error{border-top-color:#8a2b2b}
body.ic-chrome .woocommerce-message a.button{margin-right:1rem}

/* Product grids: shop, categories, related, upsells */
body.ic-chrome ul.products{display:grid;grid-template-columns:repeat(2,1fr);gap:1.8rem 10px;list-style:none;margin:0 0 2rem;padding:0}
@media(min-width:800px){body.ic-chrome ul.products{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1100px){body.ic-chrome ul.products{grid-template-columns:repeat(4,1fr)}}
body.ic-chrome ul.products::before,body.ic-chrome ul.products::after{display:none}
body.ic-chrome ul.products li.product{width:auto;float:none;margin:0;padding:0;text-align:left;position:relative}
body.ic-chrome ul.products li.product a{text-decoration:none;color:inherit}
body.ic-chrome ul.products li.product img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:top;display:block;margin:0 0 .8rem;transition:transform 1.4s ease}
body.ic-chrome ul.products li.product :is(.woocommerce-loop-product__title,h2,h3){font-size:.78rem;font-weight:300;text-transform:uppercase;letter-spacing:.1em;margin:0 0 .15rem;padding:0}
body.ic-chrome ul.products li.product .price{font-size:.8rem;color:var(--ic-mute);display:block}
body.ic-chrome ul.products li.product .price ins{text-decoration:none;color:var(--ic-ink)}
body.ic-chrome ul.products li.product .onsale,body.ic-chrome span.onsale{position:absolute;top:.6rem;left:.6rem;right:auto;min-width:0;min-height:0;line-height:1;padding:.4rem .6rem;border-radius:0;background:var(--ic-ink);color:#fff;font-size:.6rem;text-transform:uppercase;letter-spacing:.14em;font-weight:400;z-index:2}
/* 1.3.0: applies only to stock (non-.ic-pc) cards; the Indulgence card handles its own button through Customizer > Product cards. */
body.ic-chrome:not(.ic-cards-cta) ul.products li.product:not(.ic-pc) :is(a.button,.button,.add_to_cart_button){display:none}
body.ic-chrome.ic-cards-cta ul.products li.product .button{margin-top:.8rem}
body.ic-chrome .related>h2,body.ic-chrome .upsells>h2,body.ic-chrome .up-sells>h2,body.ic-chrome .cross-sells>h2{font-size:1rem;text-transform:uppercase;letter-spacing:.12em;margin:3rem 0 1.5rem}
@media(prefers-reduced-motion:reduce){body.ic-chrome ul.products li.product img{transition:none}}

/* Sorting control */
body.ic-chrome .woocommerce-ordering{margin:0;float:none}
body.ic-chrome .woocommerce-ordering select{min-width:12rem}

/* Sidebar hidden to match the demo (optional, Customizer) */
body.ic-no-sidebar :is(#secondary,.widget-area,.woostify-sidebar){display:none}
body.ic-no-sidebar :is(#primary,.content-area){width:100%!important;max-width:100%!important;flex:0 0 100%!important;float:none!important}

/* Single product layout */
body.ic-chrome.single-product :has(>.woocommerce-product-gallery):has(>.summary){display:grid;grid-template-columns:minmax(0,1fr);gap:1.5rem}
@media(min-width:800px){body.ic-chrome.single-product :has(>.woocommerce-product-gallery):has(>.summary){grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:3rem;align-items:start}}
body.ic-chrome.single-product :has(>.woocommerce-product-gallery):has(>.summary)>*:not(.woocommerce-product-gallery):not(.summary){grid-column:1/-1}
body.ic-chrome.single-product .woocommerce-product-gallery{float:none!important;width:100%!important;margin:0!important;position:relative}
body.ic-chrome.single-product .summary{float:none!important;width:100%!important;margin:0!important}
@media(min-width:800px){body.ic-chrome.single-product .summary{position:sticky;top:calc(var(--ic-toph) + 1rem)}}
@media(max-width:799px){body.ic-chrome.single-product .woocommerce-product-gallery{width:calc(100% + 2.2rem)!important;margin-left:-1.1rem!important;margin-right:-1.1rem!important}}
body.ic-chrome .woocommerce-product-gallery__image img:not(.zoomImg){width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:top;display:block}
body.ic-chrome .woocommerce-product-gallery__trigger{background:var(--ic-bg);border-radius:0;top:.8rem;right:.8rem}
body.ic-chrome .ic-gallery-video video{width:100%;aspect-ratio:4/5;object-fit:cover;background:#000;display:block}
body.ic-chrome .flex-control-thumbs{display:flex;flex-wrap:wrap;gap:.6rem;list-style:none;margin:.6rem 0 0;padding:0}
body.ic-chrome .flex-control-thumbs li{width:72px!important;float:none!important;margin:0!important}
body.ic-chrome .flex-control-thumbs img{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:top;opacity:.6;cursor:pointer;display:block;transition:opacity .25s}
body.ic-chrome .flex-control-thumbs img:hover,body.ic-chrome .flex-control-thumbs img.flex-active{opacity:1}
body.ic-chrome .flex-control-thumbs img.flex-active{box-shadow:0 2px 0 var(--ic-ink)}
body.ic-chrome .summary :is(p.price,span.price){font-size:1rem;color:var(--ic-ink);margin:0 0 1rem}
body.ic-chrome .summary .price ins{text-decoration:none}
body.ic-chrome .summary .woocommerce-product-details__short-description{color:var(--ic-mute);margin-bottom:1.4rem}
body.ic-chrome .summary .product_meta{margin-top:1.6rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;color:var(--ic-mute);display:grid;gap:.3rem}
body.ic-chrome .summary .product_meta a{color:inherit}
body.ic-chrome .summary .stock{font-size:.8rem;margin:0 0 1rem}
body.ic-chrome .summary .stock.out-of-stock{color:#8a2b2b}

/* Add to cart row, quantity stepper */
body.ic-chrome .summary form.cart{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end;margin:0 0 1rem}
body.ic-chrome .summary form.variations_form{display:block}
body.ic-chrome .summary .woocommerce-variation-add-to-cart,body.ic-chrome .summary form.cart:not(.variations_form){display:flex;flex-wrap:wrap;gap:1rem;align-items:center}
body.ic-chrome .quantity{display:inline-flex;align-items:center;border:1px solid var(--ic-ink)}
body.ic-chrome .quantity .qty{width:52px;border:0!important;text-align:center;min-height:44px;padding:0;-moz-appearance:textfield;appearance:textfield;background:transparent}
body.ic-chrome .quantity .qty::-webkit-outer-spin-button,body.ic-chrome .quantity .qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
body.ic-chrome .ic-qty-btn{width:44px;height:44px;border:0;background:transparent;font:300 1.2rem var(--ic-f);cursor:pointer;color:var(--ic-ink)}
body.ic-chrome .ic-qty-btn:hover{background:var(--ic-grey)}

/* Variation chips (progressive enhancement over WooCommerce's own select) */
body.ic-chrome .variations{display:block;border:0;margin:0 0 1.2rem;width:100%}
body.ic-chrome .variations tbody,body.ic-chrome .variations tr,body.ic-chrome .variations th,body.ic-chrome .variations td{display:block;padding:0;border:0}
body.ic-chrome .variations th.label,body.ic-chrome .variations .label label{font-size:.66rem;text-transform:uppercase;letter-spacing:.18em;font-weight:400;margin:0 0 .5rem}
body.ic-chrome .variations select.ic-hidden-select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
body.ic-chrome .ic-sizes{display:flex;flex-wrap:wrap;gap:.5rem;margin:.1rem 0}
body.ic-chrome .ic-sizes button{min-width:48px;min-height:44px;padding:.4rem .9rem;border:1px solid var(--ic-line);background:transparent;color:var(--ic-ink);font:300 .85rem var(--ic-f);letter-spacing:.06em;cursor:pointer;border-radius:0}
body.ic-chrome .ic-sizes button:hover{border-color:var(--ic-ink)}
body.ic-chrome .ic-sizes button[aria-pressed=true]{background:var(--ic-ink);border-color:var(--ic-ink);color:#fff}
body.ic-chrome .ic-sizes button[disabled]{opacity:.4;text-decoration:line-through;cursor:not-allowed}
body.ic-chrome .reset_variations{font-size:.7rem;margin-left:1rem;color:var(--ic-mute)}
body.ic-chrome .single_variation_wrap .woocommerce-variation-price{margin:.8rem 0}

/* Tabs */
body.ic-chrome .woocommerce-tabs{margin:3rem 0 2rem}
body.ic-chrome .woocommerce-tabs ul.tabs{display:flex;gap:1.6rem;list-style:none;margin:0 0 1.5rem;padding:0;border-bottom:1px solid var(--ic-line);overflow:visible}
body.ic-chrome .woocommerce-tabs ul.tabs::before,body.ic-chrome .woocommerce-tabs ul.tabs::after{display:none}
body.ic-chrome .woocommerce-tabs ul.tabs li{background:none;border:0;margin:0;padding:0;border-radius:0}
body.ic-chrome .woocommerce-tabs ul.tabs li::before,body.ic-chrome .woocommerce-tabs ul.tabs li::after{display:none}
body.ic-chrome .woocommerce-tabs ul.tabs li a{display:block;padding:.8rem 0;font-size:.72rem;text-transform:uppercase;letter-spacing:.16em;color:var(--ic-mute);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px}
body.ic-chrome .woocommerce-tabs ul.tabs li.active a{color:var(--ic-ink);border-bottom-color:var(--ic-ink)}
body.ic-chrome .woocommerce-tabs .panel{max-width:760px}
body.ic-chrome .woocommerce-tabs .panel>h2{display:none}

/* Cart, checkout, account (classic shortcode pages): tokens and typography only, no layout changes */
body.ic-chrome table.shop_table{border:0;border-collapse:collapse;width:100%}
body.ic-chrome table.shop_table :is(th,td){border:0;border-bottom:1px solid var(--ic-line);padding:1rem .6rem;background:transparent}
body.ic-chrome table.shop_table th{font-size:.66rem;text-transform:uppercase;letter-spacing:.16em;font-weight:400;text-align:left}
body.ic-chrome .cart_totals h2,body.ic-chrome .woocommerce-checkout h3,body.ic-chrome #order_review_heading{font-size:1rem;text-transform:uppercase;letter-spacing:.12em;font-weight:300}
body.ic-chrome .woocommerce-cart-form .product-name a{text-decoration:none}
body.ic-chrome .woocommerce-checkout #payment{background:#fff;border-radius:0}
body.ic-chrome .woocommerce-checkout #payment div.payment_box{background:var(--ic-grey);color:var(--ic-ink)}
body.ic-chrome .woocommerce-checkout #payment div.payment_box::before{display:none}
body.ic-chrome .woocommerce-MyAccount-navigation ul{list-style:none;margin:0 0 2rem;padding:0;display:grid;gap:.4rem}
body.ic-chrome .woocommerce-MyAccount-navigation a{text-decoration:none;font-size:.78rem;text-transform:uppercase;letter-spacing:.12em}
body.ic-chrome .woocommerce-MyAccount-navigation .is-active a{text-decoration:underline;text-underline-offset:5px}
/* Cart and checkout blocks */
body.ic-chrome :is(.wc-block-cart,.wc-block-checkout){font-family:var(--ic-f)}
body.ic-chrome :is(.wc-block-components-text-input input,.wc-block-components-select select){border-radius:0}
