/*
Theme Name: Diamond Multimedia 2
Description: Streamlined storefront theme for diamondmm.com (WooCommerce).
Version: 1.2
Text Domain: diamondmm
*/
:root{--ink:#2a0f14;--blue:#d62828;--blue-d:#a61c1c;--tape:#ffb020;--bg:#fbf7f6;--card:#fff;--line:#e6d8d6;--mute:#6b5557;--r:10px}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:400 17px/1.6 "Figtree",system-ui,sans-serif}
h1,h2,h3{font-family:"Bricolage Grotesque","Figtree",sans-serif;line-height:1.1;margin:0 0 .5em;letter-spacing:-.02em}
h1{font-size:clamp(2.4rem,5.5vw,4.2rem);font-weight:800}
h2{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700}
h3{font-size:1.05rem;font-weight:600;letter-spacing:0}
a{color:inherit}img{max-width:100%;height:auto;display:block}
:focus-visible{outline:3px solid var(--tape);outline-offset:2px}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}
.section{padding:64px 0}
.btn{display:inline-block;padding:.8em 1.4em;border-radius:var(--r);background:var(--blue);color:#fff;font-weight:700;text-decoration:none;border:2px solid var(--blue);cursor:pointer}
.btn:hover{background:var(--blue-d);border-color:var(--blue-d)}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--ink)}
.btn.ghost:hover{background:var(--ink);color:#fff}
.sec-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:24px}
.sec-head a{font-weight:600;color:var(--blue)}

/* header */
.topbar{background:var(--ink);color:#ecd9dc;font-size:.88rem}
.topbar .wrap{display:flex;justify-content:space-between;gap:12px;padding-top:7px;padding-bottom:7px;flex-wrap:wrap}
.topbar a{text-decoration:none}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-header .wrap{display:flex;align-items:center;gap:24px;min-height:72px}
.logo img{height:38px;width:auto}
.nav-toggle{display:none;margin-left:auto;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:#fff;border:1px solid var(--line);border-radius:99px;color:var(--ink);cursor:pointer}
.nav-toggle:hover{border-color:var(--blue);color:var(--blue)}
.primary-nav{flex:1}
.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:26px}
.primary-nav a{text-decoration:none;font-weight:600;padding:6px 0;border-bottom:3px solid transparent}
.primary-nav a:hover,.primary-nav .current-menu-item a{border-color:var(--tape)}
.hdr-tools{display:flex;align-items:center;gap:8px}
.hdr-search{margin-right:6px}
.hdr-search{display:flex}
.hdr-search input{border:1px solid var(--line);border-radius:var(--r) 0 0 var(--r);padding:.5em .8em;font:inherit;width:190px;min-width:0}
.hdr-search button{display:flex;align-items:center;justify-content:center;border:0;background:var(--ink);color:#fff;width:46px;padding:0;border-radius:0 var(--r) var(--r) 0;cursor:pointer}
.hdr-search button:hover{background:var(--blue)}
/* header icon buttons: Account + Cart share one style (round, thin border, icon only) */
.icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:99px;background:#fff;color:var(--ink);text-decoration:none;flex:none}
.icon-btn:hover{border-color:var(--blue);color:var(--blue)}
.ico{display:block}
.cart-count{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;display:flex;align-items:center;justify-content:center;background:var(--tape);color:var(--ink);border-radius:99px;font:700 .75rem/1 "Figtree",sans-serif;box-shadow:0 0 0 2px #fff}
.cart-count[data-count="0"]{display:none}

/* hero */
.hero{background:linear-gradient(180deg,#fff,var(--bg));padding:56px 0 40px}
.hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center}
.hero p.lead{font-size:1.2rem;color:var(--mute);max-width:34em}
.hero .cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.hero-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:18px;padding:32px}
.hero-card img{margin:0 auto;max-height:340px;width:auto}
.hero-card .tag{position:absolute;top:-14px;left:24px;background:var(--tape);color:var(--ink);font-weight:800;padding:.35em .9em;border-radius:6px;transform:rotate(-2deg)}
.hero-card .price{position:absolute;right:20px;bottom:18px;font:800 1.6rem "Bricolage Grotesque",sans-serif}

/* trust */
.trust{border-block:1px solid var(--line);background:#fff}
.trust ul{list-style:none;margin:0;padding:20px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.trust strong{display:block}.trust span{color:var(--mute);font-size:.92rem}.trust a{color:inherit;text-decoration:none}.trust a:hover{color:var(--blue);text-decoration:underline}

/* categories */
.cats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.cat{background:var(--ink);color:#fff;border-radius:var(--r);padding:22px 18px;text-decoration:none;min-height:130px;display:flex;flex-direction:column;justify-content:flex-end}
.cat:hover{background:var(--blue)}
.cat small{opacity:.8}

/* products */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px;display:flex;flex-direction:column}
.card .im{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.card .im img{max-height:100%;object-fit:contain}
.card h3 a{text-decoration:none}
.card .price{font-weight:800;font-size:1.15rem;margin:6px 0 14px}
.card .btn{margin-top:auto;text-align:center;padding:.6em 1em}

/* support + guides */
.support{background:var(--ink);color:#fff}
.support .wrap{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.support p{color:#e3cfd2}
.support form{display:flex;gap:8px}
.support input{flex:1;border:0;border-radius:var(--r);padding:.8em 1em;font:inherit;min-width:0}
.support .btn{background:var(--tape);color:var(--ink);border-color:var(--tape)}
.guides{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.guide{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;text-decoration:none}
.guide img{aspect-ratio:3/2;object-fit:cover;width:100%}
.guide div{padding:16px}.guide time{color:var(--mute);font-size:.85rem}
.sold{display:flex;gap:32px;flex-wrap:wrap;align-items:center;color:var(--mute)}
.sold b{color:var(--ink);font-size:1.2rem}

/* footer */
.site-footer{background:#1d0a0e;color:#d4bcc0;padding:48px 0 24px;font-size:.95rem}
.site-footer .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px}
.site-footer h3{color:#fff}
.site-footer ul{list-style:none;margin:0;padding:0}.site-footer li{margin:.3em 0}
.site-footer a{text-decoration:none}.site-footer a:hover{color:#fff;text-decoration:underline}
.legal{border-top:1px solid #42222a;margin-top:32px;padding-top:16px;font-size:.85rem}

@media(max-width:980px){
 .grid{grid-template-columns:repeat(2,1fr)}.trust ul{grid-template-columns:repeat(2,1fr)}
 .hero .wrap,.support .wrap,.guides,.site-footer .cols{grid-template-columns:1fr}
 .nav-toggle{display:inline-flex}
 .primary-nav{display:none;flex-basis:100%;order:5}.primary-nav.open{display:block}
 .primary-nav ul{flex-direction:column;gap:6px;padding-bottom:12px}
 .site-header .wrap{flex-wrap:wrap}.hdr-search input{width:130px}
}
@media(max-width:620px){.cats{grid-template-columns:1fr}}


/* ===== WooCommerce: product + shop pages ===== */
.shop-wrap{padding-top:28px;padding-bottom:64px}
.woocommerce-breadcrumb{font-size:.9rem;color:var(--mute);margin:0 0 20px}
.woocommerce-breadcrumb a{color:var(--mute)}
.woocommerce-products-header__title,.page-title{font-size:clamp(1.8rem,3vw,2.4rem);margin-bottom:.6em}
.woocommerce-result-count{color:var(--mute);margin:0 0 16px}
.woocommerce-ordering select{padding:.5em .8em;border:1px solid var(--line);border-radius:8px;font:inherit}
.woocommerce-message,.woocommerce-info{background:#fff;border:1px solid var(--line);border-left:5px solid var(--blue);border-radius:8px;padding:14px 18px;margin:0 0 20px;list-style:none}
.woocommerce-message a.button{float:right;margin-left:16px}

/* single product layout */
body.single-product div.product{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:48px;align-items:start}
body.single-product div.product div.images,body.single-product div.product div.summary{float:none!important;width:auto!important;margin:0!important}
body.single-product div.product .woocommerce-tabs,body.single-product div.product .related,body.single-product div.product .up-sells{grid-column:1/-1}
.woocommerce-product-gallery{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
.woocommerce-product-gallery__image img{max-height:560px;width:auto!important;margin:0 auto;object-fit:contain}
.flex-control-thumbs{display:grid!important;grid-template-columns:repeat(5,1fr);gap:10px;list-style:none;padding:0;margin:14px 0 0!important}
.flex-control-thumbs li{float:none!important;width:auto!important}
.flex-control-thumbs img{border:1px solid var(--line);border-radius:8px;opacity:.65;cursor:pointer;aspect-ratio:1;object-fit:cover}
.flex-control-thumbs img.flex-active,.flex-control-thumbs img:hover{opacity:1;border-color:var(--blue)}

/* summary */
:is(.summary,.entry-summary) .product_title{font-size:clamp(1.5rem,2.4vw,2.1rem);font-weight:800;line-height:1.15;margin:0 0 .4em}
:is(.summary,.entry-summary) .price{display:block;font:800 2rem "Bricolage Grotesque",sans-serif;color:var(--blue)!important;margin:0 0 18px}
:is(.summary,.entry-summary) .price ins{text-decoration:none}.summary .price del{color:var(--mute);font-size:1.1rem;font-weight:600}
.woocommerce-product-details__short-description ul{list-style:none;padding:0;margin:0 0 8px}
.woocommerce-product-details__short-description li{position:relative;padding-left:1.7em;margin:.55em 0}
.woocommerce-product-details__short-description li::before{content:"\2713";position:absolute;left:0;color:var(--blue);font-weight:800}
:is(.summary,.entry-summary) form.cart{display:flex;gap:12px;align-items:stretch;margin:26px 0 14px}
:is(.summary,.entry-summary) .quantity input.qty{height:60px;width:80px;border:2px solid var(--line);border-radius:10px;font:700 1.15rem "Figtree",sans-serif;text-align:center;background:#fff}
.woocommerce :is(.summary,.entry-summary) button.single_add_to_cart_button.button.alt,.woocommerce :is(.summary,.entry-summary) button.single_add_to_cart_button{flex:1;min-height:60px;padding:0 2em;font:800 1.2rem "Figtree",sans-serif;background:var(--blue)!important;color:#fff!important;border:0;border-radius:10px;cursor:pointer;letter-spacing:.01em}
.woocommerce :is(.summary,.entry-summary) button.single_add_to_cart_button:hover{background:var(--blue-d)!important}
.assure{list-style:none;margin:0 0 20px;padding:14px 0;border-block:1px solid var(--line);display:flex;flex-wrap:wrap;gap:8px 22px;font-size:.92rem;color:var(--mute)}
.assure li::before{content:"\2713";color:var(--blue);font-weight:800;margin-right:.45em}
.product_meta{font-size:.9rem;color:var(--mute);margin-top:18px}
.product_meta>span{display:block;margin:.25em 0}
.product_meta a{color:var(--ink)}

/* tabs */
.woocommerce-tabs{margin-top:24px}
.woocommerce-tabs ul.tabs{display:flex;gap:24px;list-style:none;margin:0 0 20px;padding:0;border-bottom:1px solid var(--line)}
.woocommerce-tabs ul.tabs::before,.woocommerce-tabs ul.tabs li::before,.woocommerce-tabs ul.tabs li::after{display:none!important}
.woocommerce-tabs ul.tabs li{background:none!important;border:0!important;margin:0!important;padding:0!important}
.woocommerce-tabs ul.tabs li a{display:block;padding:10px 0;font-weight:700;text-decoration:none;color:var(--mute);border-bottom:3px solid transparent}
.woocommerce-tabs ul.tabs li.active a{color:var(--ink);border-color:var(--blue)}

/* product grids (shop, category, related) */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;list-style:none;margin:0;padding:0}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px;display:flex;flex-direction:column}
.woocommerce ul.products li.product a img{aspect-ratio:1;object-fit:contain;margin:0 0 12px;width:100%}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1rem;font-weight:600;padding:0;margin:0 0 6px}
.woocommerce ul.products li.product .price{display:block;font-weight:800;color:var(--ink);margin:0 0 14px}
.woocommerce ul.products li.product a.button{margin-top:auto;text-align:center;background:var(--blue)!important;color:#fff!important;border-radius:10px;padding:.7em 1em;font-weight:700}
.woocommerce ul.products li.product a.button:hover{background:var(--blue-d)!important}
.related>h2,.up-sells>h2{font-size:1.5rem;margin:32px 0 16px}

@media(max-width:900px){
 body.single-product div.product{grid-template-columns:1fr;gap:28px}
 .woocommerce ul.products{grid-template-columns:repeat(2,1fr)}
 .summary form.cart{flex-wrap:wrap}
}
@media(max-width:520px){.woocommerce ul.products{grid-template-columns:1fr}}

/* Hide wishlist buttons/hearts (any plugin). Scoped to #main so it can never match <body> or page wrappers. */
#main [class*="wishlist" i],#main [class*="tinv" i],#main [class*="yith-wcwl" i],#main [class*="woosw" i],#main a[href*="add_to_wishlist" i]{display:none!important}

/* No blank gaps in the short description */
.woocommerce-product-details__short-description>br,.woocommerce-product-details__short-description p:empty{display:none}
.woocommerce-product-details__short-description>*:last-child{margin-bottom:0}

/* Love / Share / Pin buttons (scoped to #main so page wrappers are never hidden) */
#main [class*="nectar-love" i],#main [class*="nectar-social" i],#main [class*="nectar-sharing" i],#main [class*="social-share" i],#main [class*="share-buttons" i],#main .sharedaddy,#main .woocommerce-share{display:none!important}

/* ===== Product page polish ===== */
/* Sticky gallery is off. To turn it on, add: body.single-product div.product div.images.woocommerce-product-gallery{position:sticky!important;top:110px} */
.assure{flex-wrap:nowrap;gap:8px 18px;font-size:.88rem}.assure li{white-space:nowrap}
.woocommerce-Tabs-panel:not(#tab-reviews)>h2:first-child{display:none}
@media(max-width:900px){body.single-product div.product div.images.woocommerce-product-gallery{position:static!important}}
@media(max-width:520px){.assure{flex-wrap:wrap}}

/* ===== Buttons everywhere in WooCommerce (classic + blocks) ===== */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,.wc-block-components-button:not(.is-link){background:var(--blue)!important;color:#fff!important;border:0;border-radius:10px;padding:.8em 1.4em;font-weight:700;cursor:pointer;text-decoration:none}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.wc-block-components-button:not(.is-link):hover{background:var(--blue-d)!important}
.woocommerce button.button:disabled,.woocommerce button.button.disabled{opacity:.5}

/* ===== Form fields ===== */
.woocommerce form .form-row label{font-weight:600;margin-bottom:4px;display:block}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.woocommerce-cart .coupon input.input-text{border:1px solid var(--line);border-radius:8px;padding:.7em .8em;font:inherit;background:#fff;width:100%}
.select2-container--default .select2-selection--single{height:auto;border:1px solid var(--line);border-radius:8px;padding:.45em .5em}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:100%}
.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row textarea:focus{outline:3px solid var(--tape);outline-offset:1px}

/* ===== Cart ===== */
.woocommerce-cart .woocommerce{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:32px;align-items:start}
.woocommerce-cart .woocommerce-notices-wrapper{grid-column:1/-1}
.woocommerce table.shop_table{width:100%;background:#fff;border:1px solid var(--line)!important;border-radius:12px;border-collapse:separate;border-spacing:0;overflow:hidden}
.woocommerce table.shop_table th{background:#f5ecea;font-weight:700;padding:14px 16px;text-align:left}
.woocommerce table.shop_table td{padding:14px 16px;border-top:1px solid var(--line)!important}
.woocommerce-cart table.cart img{width:72px;height:auto;border-radius:8px}
.woocommerce-cart table.cart td.product-name a{font-weight:600;text-decoration:none}
.woocommerce a.remove{display:inline-block;width:28px;height:28px;line-height:26px;text-align:center;border-radius:50%;color:var(--blue)!important;background:#fff!important;border:1px solid var(--line);font-weight:700;text-decoration:none}
.woocommerce a.remove:hover{background:var(--blue)!important;color:#fff!important}
.woocommerce-cart table.cart td.actions{background:#faf3f1}
.woocommerce-cart .coupon{display:flex;gap:10px;float:left}
.woocommerce-cart .coupon input.input-text{width:200px}
.woocommerce-cart .cart-collaterals .cart_totals{float:none!important;width:auto!important;background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}
.woocommerce-cart .cart-collaterals h2{font-size:1.25rem;margin:0 0 12px}
.woocommerce-cart .cart_totals table.shop_table{border:0!important;border-radius:0}
.woocommerce-cart .cart_totals table.shop_table th,.woocommerce-cart .cart_totals table.shop_table td{background:none;padding:10px 0}
.woocommerce .wc-proceed-to-checkout a.checkout-button{display:block;text-align:center;font-size:1.15rem;padding:1em 1.4em;margin-top:8px}

/* ===== Checkout ===== */
form.woocommerce-checkout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:0 40px;align-items:start}
form.woocommerce-checkout #customer_details{grid-column:1;grid-row:1/span 2}
form.woocommerce-checkout #order_review_heading{grid-column:2;grid-row:1;margin:0 0 12px;font-size:1.25rem}
form.woocommerce-checkout #order_review{grid-column:2;grid-row:2;background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}
.woocommerce-checkout .col2-set .col-1,.woocommerce-checkout .col2-set .col-2{float:none!important;width:100%!important}
.woocommerce-checkout h3{font-size:1.25rem;margin:0 0 14px}
.woocommerce-checkout #order_review table.shop_table{border:0!important;border-radius:0}
.woocommerce-checkout #order_review table.shop_table th,.woocommerce-checkout #order_review table.shop_table td{background:none;padding:10px 0}
.woocommerce-checkout #payment{background:transparent!important;border-radius:0}
.woocommerce-checkout #payment ul.payment_methods{list-style:none;margin:0 0 16px;padding:0;border-bottom:1px solid var(--line)}
.woocommerce-checkout #payment div.payment_box{background:#f5ecea;border-radius:8px;color:var(--ink)}
.woocommerce-checkout #payment div.payment_box::before{display:none}
.woocommerce-checkout #place_order{width:100%;font-size:1.2rem;padding:1em;float:none}
.woocommerce-info{margin-bottom:20px}

/* ===== My account ===== */
.woocommerce-account.logged-in .woocommerce{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;align-items:start}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.woocommerce-MyAccount-navigation li a{display:block;padding:12px 16px;text-decoration:none;font-weight:600;border-bottom:1px solid var(--line)}
.woocommerce-MyAccount-navigation li:last-child a{border-bottom:0}
.woocommerce-MyAccount-navigation li.is-active a{background:var(--blue);color:#fff}
.woocommerce-MyAccount-content{float:none!important;width:auto!important}
.woocommerce-account .woocommerce-MyAccount-navigation{float:none!important;width:auto!important}
.woocommerce form.login,.woocommerce form.register{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px}
.woocommerce #customer_login{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.woocommerce #customer_login .u-column1,.woocommerce #customer_login .u-column2{float:none;width:auto}

@media(max-width:900px){
 .woocommerce-cart .woocommerce,form.woocommerce-checkout,.woocommerce-account.logged-in .woocommerce,.woocommerce #customer_login{grid-template-columns:1fr}
 form.woocommerce-checkout #customer_details,form.woocommerce-checkout #order_review_heading,form.woocommerce-checkout #order_review{grid-column:1;grid-row:auto}
}

/* ===== Support and Downloads page ===== */
.sup-hero{background:linear-gradient(180deg,#fff,var(--bg));padding:56px 0 36px;border-bottom:1px solid var(--line)}
.sup-hero h1{font-size:clamp(2rem,4vw,3rem)}
.sup-hero .lead{color:var(--mute);font-size:1.15rem;margin:0 0 24px;max-width:36em}
.sup-search{display:flex;max-width:640px}
.sup-search input{flex:1;min-width:0;border:2px solid var(--ink);border-right:0;border-radius:var(--r) 0 0 var(--r);padding:.85em 1em;font:inherit;background:#fff}
.sup-search .btn{border-radius:0 var(--r) var(--r) 0}
.dl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.dl-card{display:flex;flex-direction:column;gap:4px;background:var(--ink);color:#fff;border-radius:14px;padding:28px;text-decoration:none}
.dl-card strong{font:800 clamp(1.6rem,3vw,2.1rem) "Bricolage Grotesque",sans-serif;line-height:1.1}
.dl-card span{font-size:1.15rem;opacity:.9}
.dl-card em{font-style:normal;font-weight:700;margin-top:18px;color:var(--tape)}
/* download cards: no hover colour change */
.help-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.help-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px}
.help-card h3{margin:0 0 6px;color:var(--mute);font-size:.9rem;text-transform:uppercase;letter-spacing:.06em}
.help-card a{color:var(--blue);font-weight:700;font-size:1.2rem;text-decoration:none}
.quick{display:flex;flex-wrap:wrap;gap:10px}
.quick a{padding:.6em 1.1em;border:2px solid var(--ink);border-radius:99px;font-weight:600;text-decoration:none}
.quick a:hover{background:var(--ink);color:#fff}
@media(max-width:780px){.help-grid{grid-template-columns:1fr}}

/* ===== Notices: remove WooCommerce's overlapping icon, tidy layout ===== */
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{display:none!important;content:none!important}
.woocommerce-message,.woocommerce-info,.woocommerce-error{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px 18px!important}
.woocommerce-error{background:#fff;border:1px solid var(--line);border-left:5px solid var(--blue);border-radius:8px;list-style:none;margin:0 0 20px}
.woocommerce-message a.button,.woocommerce-info a.button{order:2;float:none!important;margin:0 0 0 auto!important}
.woocommerce-message:focus,.woocommerce-info:focus,.woocommerce-error:focus{outline:0}

/* =====================================================================
   Hero image link (home page)
   ===================================================================== */
.hero-img-link{display:block;border-radius:12px}
.hero-img-link img{transition:transform .2s}
.hero-img-link:hover img{transform:scale(1.03)}

/* =====================================================================
   Other products we sell (bottom of product pages)
   ===================================================================== */
.other-products{margin-top:40px}
.other-products>h2{margin:0 0 16px}

/* =====================================================================
   MOBILE FRIENDLY
   ===================================================================== */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-wrap:break-word}
img,iframe,video{max-width:100%}
table{max-width:100%}
.dl-grid{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}
/* 16px inputs stop iPhones from zooming the page when a field is tapped */
input[type=search],input[type=text],input[type=email],input[type=tel],input[type=number],input[type=password],select,textarea{font-size:16px}

@media(max-width:980px){
 /* header: logo + cart + menu on one row, search under it, menu opens below */
 .site-header{position:static}
 .site-header .wrap{gap:10px 12px;min-height:0;padding-top:10px;padding-bottom:10px}
 .hdr-tools{display:contents}
 .logo{order:1;margin-right:auto}
 .account-link,.cart-link{order:2}
 .nav-toggle{order:3;margin-left:0;min-height:44px}
 .hdr-search{order:4;flex-basis:100%}
 .hdr-search input{flex:1;width:auto}
 .hdr-search button{min-height:44px;width:52px}
 .hdr-search input{min-height:44px}
 .primary-nav{order:5;flex-basis:100%}
 .primary-nav a{display:block;padding:12px 4px;border-bottom:1px solid var(--line)}
 .primary-nav ul{gap:0}
 .hero{padding:36px 0 28px}
 .hero .wrap{gap:32px}
 .section{padding:44px 0}
}

@media(max-width:620px){
 body{font-size:16px}
 .wrap{padding:0 16px}
 h1{font-size:clamp(1.9rem,8.5vw,2.4rem)}
 .topbar{font-size:.8rem}
 .topbar .wrap{justify-content:center;text-align:center}
 .topbar .wrap>span:last-child{display:none}
 .logo img{height:32px}
 .hero p.lead{font-size:1.05rem}
 .hero .cta .btn{width:100%;text-align:center}
 .hero-card{padding:24px 16px 16px}
 .hero-card img{max-height:240px}
 .hero-card .price{position:static;display:block;text-align:center;margin-top:10px}
 .trust ul{grid-template-columns:1fr 1fr;gap:14px;font-size:.92rem}
 .cat{min-height:96px}
 .sec-head{flex-direction:column;align-items:flex-start;gap:4px}
 .grid{gap:12px}
 .card{padding:12px}
 .card h3{font-size:.95rem}
 .btn{padding:.85em 1.2em}
 .site-footer{padding:36px 0 20px}
 .sold{gap:16px}
 .sup-hero{padding:36px 0 26px}
 .sup-search{flex-direction:column;gap:10px}
 .sup-search input{border-right:2px solid var(--ink);border-radius:var(--r)}
 .sup-search .btn{border-radius:var(--r)}
 .dl-card{padding:22px}
 .support form{flex-direction:column}
}

@media(max-width:520px){
 /* WooCommerce */
 .shop-wrap{padding-top:18px;padding-bottom:40px}
 body.single-product div.product{gap:22px}
 .woocommerce-product-gallery{padding:10px}
 .flex-control-thumbs{grid-template-columns:repeat(4,1fr)}
 :is(.summary,.entry-summary) form.cart{flex-direction:row;flex-wrap:wrap}
 :is(.summary,.entry-summary) .quantity input.qty{height:56px}
 .woocommerce :is(.summary,.entry-summary) button.single_add_to_cart_button{flex:1 1 100%;min-height:56px}
 .woocommerce-tabs ul.tabs{gap:18px;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
 .woocommerce ul.products{gap:14px}
 .woocommerce-cart .coupon{float:none;flex-direction:column;width:100%;margin-bottom:10px}
 .woocommerce-cart .coupon input.input-text{width:100%}
 .woocommerce-cart table.cart td.actions .button{width:100%}
 .woocommerce-message a.button,.woocommerce-info a.button{margin-left:0!important}
 .woocommerce-checkout #place_order{font-size:1.1rem}
 .woocommerce form.login,.woocommerce form.register{padding:18px}
}

/* =====================================================================
   KNOWLEDGE BASE GUIDE (page-vc500-guide-test.php)
   ===================================================================== */
.kb-wrap{padding-top:24px;padding-bottom:72px}
.kb-crumbs{font-size:.9rem;color:var(--mute);margin-bottom:22px}
.kb-crumbs a{color:var(--mute)}.kb-crumbs span{margin:0 .35em}
.kb-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:48px;align-items:start}
.kb-article{max-width:780px;min-width:0}
.kb-article h1{font-size:clamp(1.8rem,4.2vw,2.8rem);margin-bottom:.6em}
.kb-article a{color:var(--blue)}
.kb-intro{font-size:1.08rem}

/* table of contents */
.kb-side{position:sticky;top:96px;align-self:start}
.kb-toc{background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px 16px 12px}
.kb-toc summary{cursor:pointer;font-weight:800;padding:10px 0;list-style:none;display:flex;flex-direction:column}
.kb-toc summary::-webkit-details-marker{display:none}
.kb-toc summary small{font-weight:600;color:var(--mute)}
.kb-toc ol{list-style:none;margin:0;padding:0}
.kb-toc li{margin:0}
.kb-toc a{display:block;padding:8px 10px;margin:0 -10px;border-radius:8px;text-decoration:none;color:var(--ink);font-size:.95rem;line-height:1.35;border-left:3px solid transparent}
.kb-toc a:hover{background:#f5ecea}
.kb-toc a.on{background:#f5ecea;border-left-color:var(--blue);font-weight:700}
.kb-toc em{font-style:normal;color:var(--mute);font-size:.85em}

/* video */
.kb-video{position:relative;aspect-ratio:16/9;margin:24px 0 8px;border-radius:14px;overflow:hidden;background:#000;border:1px solid var(--line)}
.kb-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* sections */
.kb-sec{margin-top:44px;scroll-margin-top:96px}
.kb-sec>h2{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px 12px;font-size:clamp(1.35rem,2.6vw,1.8rem);line-height:1.2;padding-top:20px;border-top:2px solid var(--line);margin-bottom:.7em}
.kb-n{flex:none;display:inline-flex;align-items:center;justify-content:center;width:2em;height:2em;border-radius:50%;background:var(--blue);color:#fff;font:800 .8em "Bricolage Grotesque",sans-serif;line-height:1}
.kb-sec h3{font-size:1.2rem;margin:1.6em 0 .6em}
.kb-sec h3.kb-group{font-size:1.35rem;margin:2em 0 .8em;padding:.4em .8em;background:var(--ink);color:#fff;border-radius:8px}
.kb-ts{display:inline-block;font:700 .78em "Figtree",sans-serif;color:var(--ink)!important;background:var(--tape);border-radius:99px;padding:.1em .65em;text-decoration:none;white-space:nowrap;vertical-align:middle;letter-spacing:0}
.kb-ts:hover{background:#ffc54d}

/* numbered steps */
.kb-steps{list-style:none;counter-reset:s;margin:0 0 1em;padding:0}
.kb-steps>li{counter-increment:s;position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px 14px 58px;margin:0 0 10px;min-height:56px}
.kb-steps>li::before{content:counter(s);position:absolute;left:14px;top:14px;width:30px;height:30px;border-radius:50%;background:var(--ink);color:#fff;font:700 .95rem "Figtree",sans-serif;display:flex;align-items:center;justify-content:center}
.kb-need{list-style:none;margin:0 0 1em;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kb-need li{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.kb-need strong{display:block}

/* screenshots */
.kb-fig{margin:12px 0 2px}
.kb-fig a{display:block;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.kb-fig img{width:100%;height:auto}

/* callouts */
.kb-callout{border-radius:12px;padding:14px 18px;margin:18px 0;border:1px solid var(--line);border-left:6px solid var(--tape);background:#fff8e8}
.kb-callout p{margin:0}.kb-callout ul{margin:.6em 0 0;padding-left:1.2em}
.kb-callout li{margin:.5em 0}
.kb-update{background:#f2f7fc;border-left-color:#3b78b8}
.kb-tip{background:#f3f8f2;border-left-color:#3c8d40}
.kb-decision{background:#fff;border-left-color:var(--ink)}
.kb-decision a{text-decoration:none;color:var(--ink)}
.kb-decision a:hover{text-decoration:underline}

/* Mac-only section is visually marked */
.kb-mac{background:#fff;border:1px dashed var(--line);border-radius:14px;padding:0 20px 8px}
.kb-mac>h2{border-top:0}

/* FAQ */
.kb-faq{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 18px;margin:0 0 12px}
.kb-faq h4{margin:0 0 .5em;font:700 1.05rem "Figtree",sans-serif}
.kb-faq p{margin:0}
.kb-faq ul{margin:0;padding-left:1.2em}
.kb-faq li{margin:.7em 0}

.kb-updated{margin:40px 0 16px;color:var(--mute);font-size:.9rem}
.kb-pn{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kb-pn a{display:block;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:12px;text-decoration:none;font-weight:700;color:var(--ink)}
.kb-pn a:hover{border-color:var(--blue);color:var(--blue)}

@media(max-width:980px){
 .kb-layout{grid-template-columns:1fr;gap:20px}
 .kb-side{position:static}
 .kb-toc summary::after{content:"Tap to show or hide";font-size:.8rem;color:var(--mute);font-weight:600}
 .kb-sec{scroll-margin-top:16px}
}
@media(max-width:620px){
 .kb-wrap{padding-top:16px}
 .kb-need{grid-template-columns:1fr}
 .kb-steps>li{padding:12px 12px 12px 52px}
 .kb-steps>li::before{left:12px;top:12px}
 .kb-mac{padding:0 12px 6px}
 .kb-pn{grid-template-columns:1fr}
 .kb-ts{font-size:.72em}
}
@media print{
 .topbar,.site-header,.site-footer,.kb-side,.kb-video,.kb-pn{display:none!important}
 .kb-layout{display:block}
 .kb-steps>li,.kb-faq{break-inside:avoid}
}

/* Guide page: header scrolls away normally (not stuck to the top) */
body.kb-guide .site-header{position:static}
body.kb-guide .kb-side{top:24px}
body.kb-guide .kb-sec{scroll-margin-top:24px}

/* Checkout: hide "Returning customer? Click here to login" (backup to the PHP removal) */
.woocommerce-form-login-toggle{display:none!important}

/* =====================================================================
   Fix: grid columns must never grow wider than the screen
   (large product images were stretching the cards off the right edge)
   ===================================================================== */
.grid>*,.cats>*,.guides>*,.woocommerce ul.products>li,.hero .wrap>*,.support .wrap>*{min-width:0}
.card .im{width:100%;overflow:hidden}
.card .im img{width:100%;height:100%;max-width:100%;object-fit:contain}
.card h3{overflow-wrap:anywhere}
.grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.woocommerce ul.products{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:980px){
 .grid,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
 .trust ul{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hero .wrap,.support .wrap,.guides,.site-footer .cols{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:620px){
 .cats{grid-template-columns:minmax(0,1fr)}
 .card .btn{padding:.7em .5em;font-size:.95rem}
}
@media(max-width:380px){
 .grid,.woocommerce ul.products{grid-template-columns:minmax(0,1fr)}
}

/* =====================================================================
   Sticky footer: on short pages (e.g. a category with one row of products)
   the footer sits at the bottom of the screen with no blank space under it
   ===================================================================== */
body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body>*{flex-shrink:0}
body .wrap{width:100%}
.site-footer{margin-top:auto}
body.admin-bar{min-height:calc(100vh - 32px);min-height:calc(100dvh - 32px)}
@media(max-width:782px){body.admin-bar{min-height:calc(100vh - 46px);min-height:calc(100dvh - 46px)}}

/* =====================================================================
   Knowledge Base home / category / search results
   ===================================================================== */
.kb-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr));gap:20px}
.kb-cat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;display:flex;flex-direction:column;min-width:0}
.kb-cat-head{display:flex;align-items:center;gap:16px;text-decoration:none;margin-bottom:14px}
.kb-cat-head img{width:64px;height:64px;object-fit:contain;border-radius:10px;border:1px solid var(--line);background:#fff;flex:none}
.kb-cat-head h2{font-size:1.5rem;margin:0}
.kb-cat-head small{color:var(--mute);font-size:.92rem}
.kb-cat-head:hover h2{color:var(--blue)}
.kb-cat ul{list-style:none;margin:0 0 16px;padding:0;border-top:1px solid var(--line)}
.kb-cat li{border-bottom:1px solid var(--line)}
.kb-cat li a{display:block;padding:11px 2px;text-decoration:none;font-weight:600}
.kb-cat li a:hover{color:var(--blue)}
.kb-more{margin-top:auto;font-weight:700;color:var(--blue);text-decoration:none}
.kb-more:hover{text-decoration:underline}
.kb-cat-title{display:flex;align-items:center;gap:20px}
.kb-cat-title img{width:84px;height:84px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#fff;flex:none}
.kb-cat-title .lead{margin:0}
.sup-hero .kb-crumbs{margin-bottom:18px}
.kb-list{display:grid;gap:14px;max-width:860px}
.kb-item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 22px;display:flex;flex-direction:column;gap:6px}
.kb-item h2{font-size:1.3rem;margin:0}
.kb-item h2 a{text-decoration:none}.kb-item h2 a:hover{color:var(--blue)}
.kb-item small{color:var(--mute)}
.kb-item p{margin:.2em 0 .4em;color:var(--mute)}
.kb-back{margin-top:24px}.kb-back a{font-weight:700;color:var(--blue);text-decoration:none}
@media(max-width:620px){.kb-cat-title{gap:14px}.kb-cat-title img{width:60px;height:60px}.kb-item{padding:16px}}

/* =====================================================================
   Cart
   ===================================================================== */
.woocommerce-cart table.cart td.product-thumbnail{width:96px;min-width:80px}
.woocommerce-cart table.cart td.product-thumbnail img{width:80px;max-width:none;height:auto;aspect-ratio:1;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:8px}
.woocommerce-cart table.cart td.product-remove{width:52px}
.woocommerce-cart .coupon input.input-text{width:220px!important;flex:none}
.woocommerce-cart .coupon .button{flex:none}
.woocommerce-cart .actions>.button{float:right}
.cart-assure{margin:16px 0 8px;border-block:0;padding:0;flex-wrap:wrap}
.cart-continue{display:inline-block;margin-top:6px;font-weight:700;color:var(--blue);text-decoration:none}
.cart-continue:hover{text-decoration:underline}
@media(max-width:768px){
 .woocommerce-cart table.cart td.product-thumbnail{display:none!important}
 .woocommerce-cart .coupon input.input-text{width:100%!important;flex:1}
 .woocommerce-cart .actions>.button{float:none;width:100%;margin-top:10px}
}

/* =====================================================================
   Checkout
   ===================================================================== */
/* no big gap above the order box */
form.woocommerce-checkout{grid-template-rows:auto 1fr}
/* "Have a coupon?" bar: text and link side by side */
.woocommerce-form-coupon-toggle .woocommerce-info{justify-content:flex-start;gap:8px}
/* billing + shipping fields: city/state/zip and phone/email share rows instead of one very long column */
.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.woocommerce-billing-fields__field-wrapper .form-row,.woocommerce-shipping-fields__field-wrapper .form-row{float:none!important;width:auto!important;margin:0 0 16px;padding:0;grid-column:span 1}
.woocommerce-billing-fields__field-wrapper .form-row-wide,.woocommerce-shipping-fields__field-wrapper .form-row-wide{grid-column:1/-1}
#billing_state_field,#billing_postcode_field,#billing_phone_field,#billing_email_field,
#shipping_state_field,#shipping_postcode_field{grid-column:span 1!important}
@media(max-width:520px){
 .woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper{grid-template-columns:minmax(0,1fr)}
 #billing_state_field,#billing_postcode_field,#billing_phone_field,#billing_email_field,#shipping_state_field,#shipping_postcode_field{grid-column:1/-1!important}
}

/* =====================================================================
   Fix: product page photo on mobile (too big, page wouldn't scroll)
   ===================================================================== */
body.single-product div.product>*{min-width:0}
.woocommerce-product-gallery,.woocommerce-product-gallery__wrapper,.woocommerce-product-gallery .flex-viewport{max-width:100%;min-width:0}
.woocommerce-product-gallery{touch-action:pan-y pinch-zoom}
.woocommerce-product-gallery .flex-viewport{touch-action:pan-y pinch-zoom}
@media(max-width:900px){
 body.single-product div.product{grid-template-columns:minmax(0,1fr)}
 .woocommerce-cart .woocommerce,form.woocommerce-checkout,.woocommerce-account.logged-in .woocommerce,.woocommerce #customer_login{grid-template-columns:minmax(0,1fr)}
 .woocommerce-product-gallery{width:100%!important}
 .woocommerce-product-gallery__image img,.woocommerce-product-gallery__image a img{width:100%!important;max-width:100%!important;height:auto!important;max-height:min(420px,70vh);object-fit:contain}
}

/* =====================================================================
   CHECKOUT (clean two-column layout)
   white form + payment on the left, gray order summary on the right
   ===================================================================== */
.co-links{display:none}
body.woocommerce-checkout:not(.woocommerce-order-received){
 --co-gray:#f5f5f5;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .topbar,
body.woocommerce-checkout:not(.woocommerce-order-received) .primary-nav,
body.woocommerce-checkout:not(.woocommerce-order-received) .hdr-search,
body.woocommerce-checkout:not(.woocommerce-order-received) .nav-toggle,
body.woocommerce-checkout:not(.woocommerce-order-received) .page-title{display:none!important}
body.woocommerce-checkout:not(.woocommerce-order-received) .site-header{position:static}
body.woocommerce-checkout:not(.woocommerce-order-received) .site-header .wrap{max-width:1100px}
body.woocommerce-checkout:not(.woocommerce-order-received) .logo{margin-right:auto}
body.woocommerce-checkout:not(.woocommerce-order-received) main#main~*{}
body.woocommerce-checkout:not(.woocommerce-order-received) .section{padding:0;overflow-x:clip}
body.woocommerce-checkout:not(.woocommerce-order-received) .section>.wrap{max-width:1100px}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-notices-wrapper,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-form-coupon-toggle{margin-top:20px}

/* the two columns; the gray panel runs to the right edge of the screen */
body.woocommerce-checkout:not(.woocommerce-order-received) form.woocommerce-checkout{display:block}
.co-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);position:relative;isolation:isolate;min-height:60vh}
.co-grid::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:50vw;background:var(--co-gray,#f5f5f5);border-left:1px solid var(--line);z-index:-1}
.co-left{padding:32px 48px 48px 0;min-width:0}
.co-right{padding:32px 0 32px 48px;min-width:0;align-self:start;position:sticky;top:24px}
.co-left .col2-set{display:block}
body.woocommerce-checkout .co-left .col2-set .col-1,body.woocommerce-checkout .co-left .col2-set .col-2{float:none!important;width:100%!important}
.co-h{font-size:1.25rem;margin:28px 0 12px}
.woocommerce-checkout .co-left h3{font-size:1.25rem;margin:0 0 14px}
.co-left .co-h{margin-top:28px}
#order_review_heading{display:none!important}

/* inputs */
.co-left .woocommerce form .form-row input.input-text,.co-left form .form-row input.input-text,.co-left form .form-row textarea,.co-left form .form-row select{border-radius:8px;padding:.85em .9em;background:#fff}

/* order summary (right) */
body.woocommerce-checkout .co-right #order_review{background:none;border:0;padding:0}
body.woocommerce-checkout .co-right table.shop_table{background:none;border:0!important;border-radius:0}
body.woocommerce-checkout .co-right table.shop_table thead{display:none}
body.woocommerce-checkout .co-right table.shop_table th,body.woocommerce-checkout .co-right table.shop_table td{background:none;border:0!important;padding:8px 0;vertical-align:middle}
/* product prices sit top-right, level with the first line of the product name (like plugable.com) */
body.woocommerce-checkout .co-right tr.cart_item td.product-total{text-align:left;white-space:nowrap;vertical-align:top;line-height:1.35}
body.woocommerce-checkout .co-right tfoot th{font-weight:400;text-align:left}
body.woocommerce-checkout .co-right tfoot td{text-align:left;font-weight:400}
/* one number column: shrinks to the widest amount and is left-aligned, so every amount starts at the same spot */
body.woocommerce-checkout .co-right table.shop_table :is(td.product-total,tfoot td){width:1%;white-space:nowrap;padding-left:12px!important}
/* checkout summary: product totals, Subtotal and Total use equal-width digits, so the numbers line up exactly in one column */
body.woocommerce-checkout .co-right :is(td.product-total,tfoot td){font-variant-numeric:tabular-nums}
body.woocommerce-checkout .co-right tr.order-total th,body.woocommerce-checkout .co-right tr.order-total td{font-size:1.3rem;font-weight:700;padding-top:16px;border-top:1px solid var(--line)!important}
.co-item{display:flex;align-items:flex-start;gap:14px}
.co-thumb{position:relative;flex:none;width:64px;height:64px;border:1px solid var(--line);border-radius:10px;background:#fff}
.co-thumb img{width:100%;height:100%;object-fit:contain;border-radius:10px}
.co-qty{position:absolute;top:-8px;right:-8px;min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:rgba(40,40,40,.88);color:#fff;font:600 .78rem/22px "Figtree",sans-serif;text-align:center}
.co-name{font-weight:600;line-height:1.35}

/* payment (left) */
body.woocommerce-checkout .co-left #payment{margin-top:0}
body.woocommerce-checkout .co-left #payment ul.payment_methods{border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:0 0 20px;padding:0;background:#fff}
body.woocommerce-checkout .co-left #payment ul.payment_methods>li{margin:0;padding:14px 16px;border-bottom:1px solid var(--line)}
body.woocommerce-checkout .co-left #payment ul.payment_methods>li:last-child{border-bottom:0}
body.woocommerce-checkout .co-left #payment ul.payment_methods>li:has(>input:checked){background:#f2f7fc}
body.woocommerce-checkout .co-left #payment div.payment_box{margin:12px 0 0;background:#fff;border:1px solid var(--line)}
body.woocommerce-checkout .co-left #place_order{width:100%;font-size:1.15rem;padding:1em;border-radius:10px}

/* minimal footer on checkout: just the policy links */
body.woocommerce-checkout:not(.woocommerce-order-received) .site-footer{background:#fff;color:var(--mute);padding:22px 0;border-top:1px solid var(--line)}
body.woocommerce-checkout:not(.woocommerce-order-received) .site-footer .cols{display:none}
body.woocommerce-checkout:not(.woocommerce-order-received) .site-footer .wrap{max-width:1100px}
body.woocommerce-checkout:not(.woocommerce-order-received) .co-links{display:flex;flex-wrap:wrap;gap:8px 20px}
body.woocommerce-checkout:not(.woocommerce-order-received) .co-links a{color:var(--blue);text-decoration:underline}
body.woocommerce-checkout:not(.woocommerce-order-received) .legal{border:0;margin:8px 0 0;padding:0}

/* phones and tablets: order summary first (gray box), then the form */
@media(max-width:900px){
 .co-grid{grid-template-columns:minmax(0,1fr)}
 .co-grid::before{display:none}
 .co-right{order:-1;position:static;background:var(--co-gray,#f5f5f5);margin:0 -16px;padding:20px 16px;border-bottom:1px solid var(--line)}
 .co-left{padding:24px 0 36px}
 body.woocommerce-checkout:not(.woocommerce-order-received) .section>.wrap{padding:0 16px}
}

/* Checkout: discount code box above the subtotal */
body.woocommerce-checkout .co-right tr.co-coupon-row td{padding:14px 0 10px}
.co-coupon{display:flex;gap:10px}
.co-coupon input{flex:1;min-width:0;height:50px;border:1px solid var(--line);border-radius:8px;padding:0 .9em;font:inherit;background:#fff}
.co-coupon input:focus{outline:3px solid var(--tape);outline-offset:1px}
.co-coupon .co-apply{flex:none;height:50px;padding:0 1.3em;border:0;border-radius:8px;background:#e8e8e8;color:#555;font:700 1rem "Figtree",sans-serif;cursor:pointer}
.co-coupon .co-apply:hover{background:#dcdcdc}
.co-coupon .co-apply:disabled{opacity:.6;cursor:default}

/* ===== Cart page (single column) ===== */
body.woocommerce-cart .page-title{display:none}
body.woocommerce-cart .woocommerce{display:block}
.cart-page{max-width:980px}
.cart-title{font-size:clamp(2rem,4vw,2.8rem);margin:0 0 .3em}
.cart-page a.cart-continue{display:inline-block;margin:0 0 28px;font-weight:600;color:var(--blue);text-decoration:none}
.cart-page a.cart-continue:hover{text-decoration:underline}
.cart-head{display:flex;justify-content:space-between;padding:14px 12px;border-bottom:1px solid var(--line);font-weight:700}
.ci-thumb img{width:100px;height:auto;aspect-ratio:1;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:8px}
.ci-name{font-size:clamp(1.2rem,2.2vw,1.6rem);font-weight:600;margin:0 0 6px;letter-spacing:-.01em}
.ci-name a{text-decoration:none}
.ci-name a:hover{color:var(--blue)}
.ci-sku,.ci-unit{color:var(--mute);font-size:1rem;line-height:1.5}
.ci-total{font:700 1.15rem "Figtree",sans-serif;white-space:nowrap}
.ci-qty{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.ci-qty .quantity{display:flex;align-items:stretch;height:52px}
.ci-qty .quantity input.qty{width:76px;border:2px solid var(--line);border-inline:0;border-radius:0;text-align:center;font:700 1.1rem "Figtree",sans-serif;background:#fff;-moz-appearance:textfield;appearance:textfield}
.ci-qty .quantity input.qty::-webkit-outer-spin-button,.ci-qty .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ci-qty .qty-btn{width:56px;border:0;background:var(--blue);color:#fff;font:700 1.5rem/1 "Figtree",sans-serif;cursor:pointer}
.ci-qty .qty-btn:hover{background:var(--blue-d)}
.ci-qty .qty-minus{border-radius:var(--r) 0 0 var(--r)}
.ci-qty .qty-plus{border-radius:0 var(--r) var(--r) 0}
.ci-remove{color:var(--blue);font-weight:600;text-decoration:none}
.ci-remove:hover{text-decoration:underline}
.ci-remove span{margin-right:.35em;font-size:.9em}
.cart-update{position:absolute!important;left:-9999px;opacity:0}
.cart-summary{margin-top:40px}
.cs-sub{font-size:clamp(1.6rem,3vw,2.2rem);margin:0 0 .4em}
.cs-amount{font:600 1.35rem "Figtree",sans-serif;margin-bottom:18px}
.cs-line{display:flex;justify-content:space-between;max-width:420px;margin:0 0 8px;color:var(--mute)}
.cs-note{margin:18px 0 20px;font-size:1.05rem}
.cart-summary .wc-proceed-to-checkout{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:0}
.cart-summary a.checkout-button{float:none;width:auto;display:inline-block;padding:.85em 2.2em;margin:0;background:var(--blue);color:#fff;border-radius:99px;font:700 1.15rem "Figtree",sans-serif;text-decoration:none}
.cart-summary a.checkout-button:hover{background:var(--blue-d)}
/* express checkout buttons (PayPal / Google Pay / Apple Pay) stacked full width under Checkout */
.cart-summary .wc-proceed-to-checkout>*:not(.checkout-button){width:100%;max-width:100%;margin:0}
.cart-summary .wc-proceed-to-checkout [id^="ppc-button"],.cart-summary .wc-proceed-to-checkout .ppc-button-wrapper{width:100%}
.cart-summary .wc-proceed-to-checkout [id^="ppc-button"]>*{margin-bottom:12px}
@media (max-width:640px){ .cart-summary a.checkout-button{width:100%;text-align:center} }
/* cart: hide PayPal "Pay in 4" messaging and the Pay Later button (backup for the plugin settings) */
.cart-summary .ppcp-messages,.cart-summary [id^="ppcp-messages"],.cart-summary [data-pp-message],.cart-summary [data-funding-source="paylater"]{display:none!important}
.cart-summary .cs-amount{margin-bottom:22px}

/* cart: the (hidden) update button stays out of sight */
.cart-update{display:none!important}

/* checkout: remove PayPal "Pay in 4" message */
body.woocommerce-checkout .ppcp-messages,body.woocommerce-checkout [id^="ppcp-messages"],body.woocommerce-checkout [data-pp-message],body.woocommerce-checkout .ppcp-paylater-message-block{display:none!important}

/* checkout: email on its own row, so first name and last name sit side by side */
#billing_email_field{grid-column:1/-1!important}
@media(max-width:520px){#billing_first_name_field,#billing_last_name_field{grid-column:1/-1!important}}

/* checkout: discount code focus ring drawn inside the box so the summary edge can't clip it */
.co-coupon input:focus{outline:0;border-color:var(--tape);box-shadow:inset 0 0 0 2px var(--tape)}

/* ---- close the gaps left by PayPal's hidden "Pay in 4" message blocks ---- */
/* cart: only our own sections render in the cart layout, so nothing a plugin injects can leave a blank band */
.cart-items>*:not(.cart-item){display:none!important}
.cart-page>*:not(.cart-title):not(.cart-continue):not(.woocommerce-cart-form):not(.cart-summary){display:none!important}
.woocommerce-cart-form>*:not(.cart-head):not(.cart-items):not(.cart-update):not(input){display:none!important}
.cart-summary{margin-top:28px}
.cart-item:last-child{border-bottom:1px solid var(--line)}
/* both pages: any PayPal messaging element, however it is named, takes no space */
[id*="ppcp-message"],[class*="ppcp-message"],[class*="paylater-message"],[class*="paypal-message"],paypal-message,[data-pp-message]{display:none!important;margin:0!important;padding:0!important;min-height:0!important;height:0!important}

/* ---- PayPal buttons: no gold focus box after clicking (the theme's keyboard-focus ring was landing on PayPal's button container) ---- */
[id*="ppc-button"],[id*="ppc-button"] *,.paypal-buttons,.paypal-buttons *,.ppc-button-wrapper,.ppc-button-wrapper *,[class*="ppcp-"] iframe{outline:0!important;box-shadow:none}
[id*="ppc-button"]:focus,[id*="ppc-button"]:focus-visible,[id*="ppc-button"]:focus-within,.paypal-buttons:focus,.paypal-buttons:focus-visible{outline:0!important;border-color:transparent!important}

/* ---- checkout: tighten the space between the payment methods and the PayPal buttons ---- */
.woocommerce-checkout #payment div.form-row,.woocommerce-checkout #payment .place-order{padding:0!important;margin:0!important}
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper{margin:0!important;padding:0!important}
.woocommerce-checkout #payment .woocommerce-privacy-policy-text:empty,.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper:empty{display:none}
.woocommerce-checkout #payment ul.payment_methods{margin-bottom:14px}
.woocommerce-checkout #payment .ppc-button-wrapper,.woocommerce-checkout #payment [id*="ppc-button"]{margin-top:0;padding-top:0}
/* same as the cart: no separate Pay Later button */
.woocommerce-checkout [data-funding-source="paylater"]{display:none!important}

/* ---- checkout: same tight spacing above the Debit/Credit Card and Google Pay buttons as above PayPal ---- */
.woocommerce-checkout #payment .place-order div,
.woocommerce-checkout #payment>div:not(.payment_box):not(.form-row),
.woocommerce-checkout #payment :is([id*="ppc-button"],[id*="card-button"],[id*="googlepay"],[id*="applepay"],[class*="ppcp-button"],[class*="card-button"],[class*="googlepay"],[class*="applepay"]):not(.payment_box):not(li):not(ul){margin-top:0!important;padding-top:0!important;min-height:0}
.woocommerce-checkout #payment .place-order{display:block;gap:0;row-gap:0}
.woocommerce-checkout #payment .place-order>*+*{margin-top:12px}
.woocommerce-checkout #payment .place-order>*:first-child{margin-top:0}

/* ---- checkout: PayPal plugin reserves a 45px-tall box for every payment button (Apple Pay, Google Pay, card...),
   even when the button never draws (e.g. Apple Pay in Firefox/Windows). Collapse any such box that has no button in it. ---- */
body.woocommerce-checkout .ppcp-button-apm:not(:has(button,iframe,apple-pay-button,a,svg,img,div)),
body.woocommerce-checkout #ppc-button-applepay-container:not(:has(button,iframe,apple-pay-button,a,svg,img,div)),
body.woocommerce-checkout #ppc-button-googlepay-container:not(:has(button,iframe,apple-pay-button,a,svg,img,div)){display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important}

/* checkout: a little breathing room between the payment list and the buttons */
.woocommerce-checkout #payment ul.payment_methods{margin-bottom:26px!important}

/* checkout: payment-method icons (e.g. the G Pay badge) sit on the same line as the label instead of dropping below it */
.woocommerce-checkout #payment ul.payment_methods li>label{display:inline-flex!important;align-items:center;flex-wrap:wrap;gap:6px 12px;vertical-align:middle;width:auto!important}
.woocommerce-checkout #payment ul.payment_methods li>input[type="radio"]{vertical-align:middle;margin-right:.35em}
.woocommerce-checkout #payment ul.payment_methods li>label img,
.woocommerce-checkout #payment ul.payment_methods li>label svg{display:inline-block!important;margin:0!important;max-height:26px;width:auto;vertical-align:middle}
.woocommerce-checkout #payment ul.payment_methods li>img{display:inline-block;max-height:26px;width:auto}

/* ---- cart: while Google Pay is still loading, show a soft placeholder where the button will appear (no jump when it arrives) ---- */
@keyframes dmm-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
body.woocommerce-cart:not(.dmm-gp-done) .cart-summary #ppc-button-googlepay-container:not(:has(button,iframe,a,svg,img,div)){
 display:block!important;min-height:54px;margin-top:4px!important;border-radius:4px;
 background:linear-gradient(90deg,#efe6e4 25%,#f8f1ef 50%,#efe6e4 75%);background-size:200% 100%;animation:dmm-shimmer 1.4s linear infinite}
@media (prefers-reduced-motion:reduce){body.woocommerce-cart .cart-summary #ppc-button-googlepay-container{animation:none!important}}

/* checkout: hide WooCommerce's "(optional)" on the Phone label (the hint now sits inside the box) */
#billing_phone_field label .optional{display:none}

/* ===== Header: Account / Log in link ===== */
/* (Account button now uses .icon-btn above) */
body.woocommerce-checkout:not(.woocommerce-order-received) .account-link{display:none!important}

/* ===== Cart page: no notice boxes ("added to your cart", "Cart updated"); the cart content moves up to fill the space.
   Real errors (e.g. out of stock) are still shown. ===== */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info{display:none!important}
body.woocommerce-cart .woocommerce-notices-wrapper:not(:has(.woocommerce-error)){display:none!important;margin:0;padding:0}

/* ===== My account: Login and Register side by side =====
   WooCommerce adds two invisible clearfix elements to this container; inside a grid they took up the first and last
   cells, which pushed Login to the right and Register onto a second row. */
.woocommerce #customer_login::before,.woocommerce #customer_login::after{content:none!important;display:none!important}
.woocommerce #customer_login{align-items:start}
.woocommerce #customer_login h2{margin-top:0}

/* ===== My account (logged out): single centered login card, like a modern store sign-in page ===== */
body.woocommerce-account:not(.logged-in) .page-title{display:none}
body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper{max-width:560px;margin:0 auto 16px}
.auth-card{max-width:560px;margin:clamp(12px,4vw,48px) auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:clamp(22px,4vw,40px);box-shadow:0 6px 24px rgba(40,10,10,.06)}
.auth-card [hidden]{display:none!important}
.auth-title{text-align:center;font-size:clamp(1.8rem,3.5vw,2.4rem);margin:0 0 24px}
.auth-card form.login,.auth-card form.register{background:none;border:0;border-radius:0;padding:0;margin:0}
.auth-card .form-row{margin:0 0 18px;padding:0}
.auth-card label{display:block;font-weight:600;margin-bottom:6px}
.auth-card .required{color:#b00020;text-decoration:none}
.auth-card input.input-text{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;padding:.85em .9em;font:inherit;background:#fff}
.auth-card .password-input{display:block;position:relative}
.auth-card .password-input input{padding-right:3em}
.auth-card .show-password-input{position:absolute;right:.8em;top:50%;transform:translateY(-50%);background:none;border:0;cursor:pointer}
.auth-forgot{font-weight:500;margin-left:.4em;color:var(--blue)}
.auth-remember{margin-bottom:20px}
.auth-remember label{display:inline-flex;align-items:center;gap:.5em;font-weight:500;margin:0}
.auth-card .auth-submit{display:block;width:100%;padding:.95em 1.4em;border-radius:99px;font-size:1.1rem;font-weight:700;cursor:pointer}
.auth-switch{text-align:center;margin:22px 0 0;font-weight:600}
.auth-switch a{color:var(--blue)}
.auth-note{color:var(--mute);margin:0 0 18px}

/* My account card: the old two-column Login/Register grid keyed on #customer_login was squeezing the form into half the card. The card now has its own id, so it uses the full width. */
.auth-card{width:100%;box-sizing:border-box}
.auth-card form{width:100%;max-width:none}
.auth-card label.auth-label-row{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.auth-card .auth-forgot{margin:0;font-size:.95rem;font-weight:500}
.auth-card input.input-text:focus{outline:3px solid var(--tape);outline-offset:1px}

/* Cart page: less empty space above "Shopping Cart" (everything moves up) */
body.woocommerce-cart .section{padding-top:14px}
body.woocommerce-cart .cart-title{margin-top:0}

/* ===== Cart rows: photo | name | price | quantity + Remove  (same columns in the header, like plugable.com/cart) ===== */
.cart-head,.cart-item{display:grid;grid-template-columns:100px minmax(0,1fr) 110px 196px;column-gap:24px;align-items:start}
.cart-head{padding:14px 12px;border-bottom:1px solid var(--line);font-weight:700}
.cart-head span:first-child{grid-column:1 / 3}
.cart-head span:last-child{grid-column:3 / 5}
.cart-item{padding:20px 12px;border-bottom:1px solid var(--line)}
.cart-item .ci-side{display:contents}
.cart-item .ci-thumb{grid-column:1;grid-row:1}
.cart-item .ci-info{grid-column:2;grid-row:1;min-width:0}
.cart-item .ci-total{grid-column:3;grid-row:1;margin:0;font:700 1.3rem/52px "Figtree",sans-serif;white-space:nowrap}
.cart-item .ci-qty{grid-column:4;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:0}
.cart-item .ci-qty>*:not(.quantity):not(.ci-remove){display:none}
@media (max-width:760px){
 .cart-head{grid-template-columns:minmax(0,1fr) auto}
 .cart-head span:first-child{grid-column:1}
 .cart-head span:last-child{grid-column:2}
 .cart-item{grid-template-columns:80px minmax(0,1fr);row-gap:12px}
 .cart-item .ci-thumb img{width:80px}
 .cart-item .ci-total{grid-column:1 / -1;grid-row:2;line-height:1.2}
 .cart-item .ci-qty{grid-column:1 / -1;grid-row:3;flex-direction:row;align-items:center;gap:18px}
}
.ci-qty .quantity label,.ci-qty .quantity .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ===== Cart: tighter vertical spacing, same layout, so the express buttons fit on screen ===== */
body.woocommerce-cart .section{padding-top:8px;padding-bottom:36px}
.cart-title{font-size:clamp(1.7rem,2.6vw,2.1rem);margin:0 0 2px}
.cart-page a.cart-continue{margin:0 0 6px}
.cart-head{padding:8px 12px}
.cart-item{padding:12px 12px}
.cart-item .ci-thumb img,.ci-thumb img{width:84px}
.cart-item,.cart-head{grid-template-columns:84px minmax(0,1fr) 110px 196px}
.ci-name{font-size:clamp(1.05rem,1.7vw,1.25rem);line-height:1.25;margin:0 0 3px}
.ci-sku,.ci-unit{font-size:.92rem;line-height:1.4}
.cart-item .ci-total{font-size:1.2rem;line-height:44px}
.cart-item .ci-qty{gap:8px}
.ci-qty .quantity{height:44px}
.ci-qty .qty-btn{width:48px;font-size:1.3rem}
.ci-qty .quantity input.qty{width:64px;font-size:1.05rem}
.cart-summary{margin-top:14px}
.cs-sub{font-size:1.4rem;margin:0 0 2px}
.cs-amount{font-size:1.15rem;margin-bottom:12px}
.cart-summary .wc-proceed-to-checkout{gap:10px}
.cart-summary a.checkout-button{padding:.65em 1.8em;font-size:1.05rem}
.cart-summary .wc-proceed-to-checkout [id^="ppc-button"]>*{margin-bottom:8px}
@media (max-width:760px){
 .cart-item{grid-template-columns:72px minmax(0,1fr)}
 .cart-item .ci-thumb img{width:72px}
 .cart-item .ci-total{line-height:1.2}
}
/* a little breathing room back in */
body.woocommerce-cart .section{padding-top:16px}
.cart-page a.cart-continue{margin-bottom:10px}
.cart-summary{margin-top:20px}
.cart-summary .wc-proceed-to-checkout{gap:14px}


/* =====================================================================
   Cart: Subtotal lines up with the product Totals column
   ===================================================================== */
.cart-summary{padding:0 12px}
.cart-summary .cs-line{display:grid;grid-template-columns:84px minmax(0,1fr) 110px 196px;column-gap:24px;align-items:baseline;max-width:none;margin:0 0 6px;color:var(--ink)}
.cart-summary .cs-line>:first-child{grid-column:1 / 3}
.cart-summary .cs-line>:nth-child(2){grid-column:3;white-space:nowrap}
.cart-summary .cs-subtotal{margin-bottom:16px}
.cart-summary .cs-sub{font-size:1.4rem;margin:0}
.cart-summary .cs-amount{font:700 1.2rem "Figtree",sans-serif;margin:0}
.cart-summary .cs-amount small{font-size:.8rem;font-weight:600;color:var(--mute)}
@media (max-width:760px){
 .cart-summary .cs-line{grid-template-columns:minmax(0,1fr) auto}
 .cart-summary .cs-line>:first-child{grid-column:1}
 .cart-summary .cs-line>:nth-child(2){grid-column:2}
}

/* =====================================================================
   Cart: PayPal + Venmo + Google Pay on ONE row, equal width and height
   (PayPal draws PayPal and Venmo side by side inside one box, so that box gets 2/3 and Google Pay 1/3)
   ===================================================================== */
.cart-summary .wc-proceed-to-checkout{--express-h:42px;--express-gap:20px;display:grid;grid-template-columns:calc((100% - 2 * var(--express-gap)) * 2 / 3 + var(--express-gap)) minmax(0,1fr);column-gap:var(--express-gap);row-gap:14px;align-items:start;width:100%;max-width:none}
.cart-summary .wc-proceed-to-checkout>a.checkout-button{grid-row:1;grid-column:1 / -1;justify-self:start}
/* the script in functions.php tags the PayPal box (.dmm-x-pp) and the Google Pay box (.dmm-x-gp) and flattens any plugin wrappers around them (.dmm-contents) */
.cart-summary .wc-proceed-to-checkout .dmm-contents{display:contents!important}
.cart-summary .wc-proceed-to-checkout .dmm-x-pp{grid-row:2;grid-column:1;min-width:0;width:100%;max-width:none;margin:0!important}
.cart-summary .wc-proceed-to-checkout .dmm-x-gp{grid-row:2;grid-column:2;min-width:0;width:100%;max-width:none;align-self:start;margin:0!important}
.cart-summary .wc-proceed-to-checkout>[id*="applepay"]{grid-row:3;grid-column:1 / -1}
/* no extra bottom margin under the PayPal buttons (the grid gap handles spacing) */
.cart-summary .wc-proceed-to-checkout [id^="ppc-button"]>*{margin-bottom:0}
.cart-summary .wc-proceed-to-checkout [id*="googlepay"]{height:var(--express-h);min-height:var(--express-h);margin:0!important}
.cart-summary .wc-proceed-to-checkout [id*="googlepay"] :is(button,.gpay-button,.gpay-card-info-container,.gpay-card-info-container-fill,iframe){width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;border-radius:4px}
body.woocommerce-cart:not(.dmm-gp-done) .cart-summary #ppc-button-googlepay-container:not(:has(button,iframe,a,svg,img,div)){min-height:var(--express-h);margin:0!important}
@media (max-width:640px){
 .cart-summary .wc-proceed-to-checkout{grid-template-columns:minmax(0,1fr)}
 .cart-summary .wc-proceed-to-checkout .dmm-x-pp,.cart-summary .wc-proceed-to-checkout .dmm-x-gp{grid-column:1;grid-row:auto}
}

/* =====================================================================
   Cart: Google Pay stays hidden (soft placeholder) until it has finished loading, so its oversized "G" never flashes
   ===================================================================== */
.cart-summary .wc-proceed-to-checkout .dmm-x-gp{overflow:hidden;border-radius:4px;height:var(--express-h)}
.cart-summary .wc-proceed-to-checkout .dmm-x-gp:not(.dmm-gp-ready){background:linear-gradient(90deg,#efe6e4 25%,#f8f1ef 50%,#efe6e4 75%);background-size:200% 100%;animation:dmm-shimmer 1.4s linear infinite}
.cart-summary .wc-proceed-to-checkout .dmm-x-gp:not(.dmm-gp-ready)>*{visibility:hidden}
/* if Google Pay is not available in this browser, PayPal + Venmo use the full row */
.cart-summary .wc-proceed-to-checkout.dmm-gp-none{grid-template-columns:minmax(0,1fr)}
.cart-summary .wc-proceed-to-checkout.dmm-gp-none .dmm-x-gp{display:none}
@media (prefers-reduced-motion:reduce){.cart-summary .wc-proceed-to-checkout .dmm-x-gp{animation:none!important}}

/* PayPal draws PayPal + Venmo in one box with a small fixed gap; when both are showing, trim a strip out of the middle so that gap equals --express-gap too */
.cart-summary .wc-proceed-to-checkout.dmm-pp-two .dmm-x-pp .paypal-buttons{
 -webkit-mask-image:linear-gradient(to right,#000 calc(50% - var(--express-gap) / 2),transparent calc(50% - var(--express-gap) / 2),transparent calc(50% + var(--express-gap) / 2),#000 calc(50% + var(--express-gap) / 2));
 mask-image:linear-gradient(to right,#000 calc(50% - var(--express-gap) / 2),transparent calc(50% - var(--express-gap) / 2),transparent calc(50% + var(--express-gap) / 2),#000 calc(50% + var(--express-gap) / 2))}

/* checkout Total: small "USD" before the amount, like plugable.com */
body.woocommerce-checkout .co-right tr.order-total td::before{content:"USD";display:inline-block;width:0;direction:rtl;white-space:nowrap;position:relative;left:-.7em;font-size:.72rem;font-weight:400;color:var(--mute);letter-spacing:.02em}

/* Total amount is full size again. On wide screens the order summary runs a little past the page edge, which moves the whole number column further right (change 34px to move it more or less) */
@media (min-width:1180px){
 body.woocommerce-checkout .co-right table.shop_table{width:calc(100% + 34px);max-width:none}
}

/* clear gap between each product name and its price: the name column always stops 44px short of the amounts */
body.woocommerce-checkout .co-right table.shop_table tr.cart_item td.product-name{padding-right:44px!important}

/* =====================================================================
   MY ACCOUNT (logged in): sidebar menu + content, dashboard cards
   ===================================================================== */
body.woocommerce-account.logged-in .page-title{font-size:clamp(1.8rem,3vw,2.4rem);margin:0 0 .5em}
.woocommerce-account.logged-in .woocommerce{grid-template-columns:260px minmax(0,1fr);gap:0 32px;align-items:start}
/* the (empty) notices block used to take the first grid cell and push the menu to the right */
.woocommerce-account.logged-in .woocommerce>.woocommerce-notices-wrapper{grid-column:1 / -1;grid-row:1}
.woocommerce-account.logged-in .woocommerce>.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation{grid-column:1;grid-row:2;position:sticky;top:20px}
.woocommerce-account.logged-in .woocommerce-MyAccount-content{grid-column:2;grid-row:2;min-width:0;background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px}
.woocommerce-account.logged-in .woocommerce-MyAccount-content:has(.acct-dash){background:none;border:0;padding:0}

.woocommerce-MyAccount-navigation ul{padding:8px}
.woocommerce-MyAccount-navigation li{margin:0}
.woocommerce-MyAccount-navigation li a{display:flex;align-items:center;gap:12px;padding:12px 14px;border:0;border-radius:10px;margin:2px 0;color:var(--ink)}
.woocommerce-MyAccount-navigation li a::before{content:"";flex:none;width:20px;height:20px;background:currentColor;-webkit-mask:var(--ic) center / contain no-repeat;mask:var(--ic) center / contain no-repeat}
.woocommerce-MyAccount-navigation li:last-child a{border-bottom:0}
.woocommerce-MyAccount-navigation li:not(.is-active) a:hover{background:#f5ecea}
.woocommerce-MyAccount-navigation li.is-active a{background:var(--blue);color:#fff}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout{margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a{color:var(--mute)}
.woocommerce-MyAccount-navigation-link--dashboard a{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='7' rx='1.5'/><rect x='14' y='3' width='7' height='7' rx='1.5'/><rect x='3' y='14' width='7' height='7' rx='1.5'/><rect x='14' y='14' width='7' height='7' rx='1.5'/></svg>")}
.woocommerce-MyAccount-navigation-link--orders a{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 8l-9-5-9 5v8l9 5 9-5z'/><path d='M3 8l9 5 9-5M12 13v8'/></svg>")}
.woocommerce-MyAccount-navigation-link--downloads a{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v12M7 10l5 5 5-5M4 20h16'/></svg>")}
.woocommerce-MyAccount-navigation-link--edit-address a{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z'/><circle cx='12' cy='10' r='2.5'/></svg>")}
.woocommerce-MyAccount-navigation-link--payment-methods a{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='2.5' y='5' width='19' height='14' rx='2.5'/><path d='M2.5 10h19'/></svg>")}
.woocommerce-MyAccount-navigation-link--edit-account a{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/></svg>")}
.woocommerce-MyAccount-navigation-link--customer-logout a{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/></svg>")}

/* dashboard */
.acct-welcome{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px 28px;margin-bottom:20px}
.acct-welcome h2{margin:0 0 6px;font-size:clamp(1.5rem,2.6vw,2rem)}
.acct-welcome p{margin:0;color:var(--mute)}
.acct-notyou{white-space:nowrap}
.acct-welcome a{color:var(--blue);font-weight:600}
.acct-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.acct-tile{display:flex;align-items:flex-start;gap:16px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.acct-tile:hover{border-color:var(--blue);box-shadow:0 6px 18px rgba(40,10,10,.08);transform:translateY(-1px)}
.acct-tile-ico{flex:none;display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;background:#fdeceb;color:var(--blue)}
.acct-tile-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.acct-tile-txt strong{font-size:1.05rem}
.acct-tile-txt span{color:var(--mute);font-size:.93rem;line-height:1.4}
.acct-help{margin:22px 4px 0;color:var(--mute);font-size:.95rem}
.acct-help a{color:var(--blue);font-weight:600;text-decoration:none}

@media (max-width:900px){
 .woocommerce-account.logged-in .woocommerce{grid-template-columns:minmax(0,1fr);gap:18px}
 .woocommerce-account.logged-in .woocommerce-MyAccount-navigation,.woocommerce-account.logged-in .woocommerce-MyAccount-content{grid-column:1;grid-row:auto;position:static}
 .woocommerce-MyAccount-navigation ul{display:flex;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:6px}
 .woocommerce-MyAccount-navigation li{flex:none}
 .woocommerce-MyAccount-navigation li a{white-space:nowrap;padding:10px 14px}
 .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout{margin:0;padding:0;border:0}
 .woocommerce-account.logged-in .woocommerce-MyAccount-content{padding:20px 16px}
}


/* =====================================================================
   Mobile cart fix: the "Total" header was squeezed into a narrow column and printed one letter per line.
   Mobile rows are now: photo + name, then quantity (left) and line total (right) under the matching header.
   ===================================================================== */
@media (max-width:760px){
 .cart-head{grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
 .cart-head span:first-child{grid-column:1}
 .cart-head span:last-child{grid-column:2;text-align:right}
 .cart-item{grid-template-columns:72px minmax(0,1fr) auto;column-gap:14px;row-gap:10px}
 .cart-item .ci-thumb{grid-column:1;grid-row:1}
 .cart-item .ci-info{grid-column:2 / -1;grid-row:1}
 .cart-item .ci-qty{grid-column:1 / 3;grid-row:2;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 14px}
 .cart-item .ci-total{grid-column:3;grid-row:2;line-height:44px;text-align:right}
 .ci-qty .qty-btn{width:40px}
 .ci-qty .quantity input.qty{width:52px}
}

/* =====================================================================
   Product page: SKU + lifetime rating under the price
   ===================================================================== */
.dmm-skurow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;margin:-8px 0 18px;color:var(--mute);font-size:.98rem}
.dmm-rating{display:inline-flex;align-items:center;gap:7px;color:inherit;text-decoration:none}
.dmm-rating:hover .dmm-rating-count{text-decoration:underline}
.dmm-rating-label{font-weight:600}
.dmm-stars{position:relative;display:inline-flex;line-height:0}
.dmm-stars-bg,.dmm-stars-fg{display:flex}
.dmm-stars svg{flex:none;display:block}
.dmm-stars-bg svg{fill:#e6d8d6}
.dmm-stars-fg{position:absolute;left:0;top:0;overflow:hidden;white-space:nowrap}
.dmm-stars-fg svg{fill:#f5a300}
.dmm-rating-num{color:var(--ink);font-weight:700}
.dmm-rating-count{color:var(--blue)}

/* =====================================================================
   Product page: trust icons under the pictures (all products)
   ===================================================================== */
body.single-product div.product{grid-template-rows:auto 1fr}
body.single-product div.product div.images{grid-column:1;grid-row:1}
body.single-product div.product .dmm-assure{grid-column:1;grid-row:2;align-self:start;margin-top:-28px}
body.single-product div.product div.summary{grid-column:2;grid-row:1 / span 2}
.dmm-assure{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;justify-content:center;gap:18px 0}
.dmm-assure li{flex:0 0 25%;max-width:25%;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:0 6px;color:var(--ink);font-weight:600;font-size:.88rem;line-height:1.3}
.dmm-assure svg{display:block}
@media(max-width:900px){
 body.single-product div.product{grid-template-rows:none}
 body.single-product div.product .dmm-assure{margin-top:-12px}
 body.single-product div.product div.summary{grid-column:1;grid-row:3}
}
@media(max-width:520px){
 .dmm-assure li{flex-basis:50%;max-width:50%}
}

/* Other products we sell: the page loads a pool of products and shows 4 (shuffled on every visit).
   If you change the number to show in functions.php, change 5 here to (number + 1). */
.other-products ul.products>li:nth-child(n+5){display:none}

/* =====================================================================
   Empty cart page
   ===================================================================== */
.cart-empty-page{max-width:1100px;margin:0 auto}
.ce-hero{background:#fff;border:1px solid var(--line);border-radius:16px;padding:56px 24px 40px;text-align:center;margin:8px 0 48px}
.ce-icon{width:84px;height:84px;margin:0 auto 20px;border-radius:50%;background:#fbe9e7;color:var(--blue);display:flex;align-items:center;justify-content:center}
.ce-icon svg{width:40px;height:40px}
.ce-hero h1{font-size:clamp(1.9rem,4vw,2.6rem);margin:0 0 .3em}
.ce-hero p{max-width:520px;margin:0 auto 26px;color:var(--mute)}
.ce-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.ce-perks{list-style:none;margin:30px 0 0;padding:20px 0 0;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;justify-content:center;gap:8px 28px;color:var(--mute);font-size:.95rem}
.ce-perks li::before{content:"\2713";color:var(--blue);font-weight:800;margin-right:.45em}
.ce-picks h2{font-size:1.5rem;margin:0 0 16px}
@media(max-width:520px){
 .ce-hero{padding:36px 18px 28px}
 .ce-actions .btn{width:100%;text-align:center}
}


/* Homepage trust band: four evenly spaced, centered items with thin dividers */
.trust ul{gap:0;padding:22px 0}
.trust li{text-align:center;padding:4px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.trust li+li{border-left:1px solid var(--line)}
.trust li strong{line-height:1.3}
.trust li>span{line-height:1.4}
.trust-rating{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 8px}
.trust-rating .dmm-stars svg{width:16px;height:16px}
@media(max-width:980px){
 .trust ul{row-gap:18px}
 .trust li:nth-child(odd){border-left:0}
}


/* Homepage hero: "Buy VC500" button centered under the text (to go back to left-aligned, delete this block) */
.hero .cta{justify-content:center}


/* =====================================================================
   Photo viewer on product pages (large photo, thumbnail row, click to enlarge)
   ===================================================================== */
.dmm-gallery{min-width:0}
.dmm-stage{position:relative;aspect-ratio:1/1;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.dmm-stage-link{display:flex;width:100%;height:100%;align-items:center;justify-content:center;cursor:zoom-in}
.dmm-stage img{width:100%;height:100%;object-fit:contain;display:block;max-width:100%}
.dmm-thumbs{display:flex;gap:10px;margin:14px 0 0;padding:3px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.dmm-thumb{flex:0 0 74px;width:74px;height:74px;padding:3px;background:#fff;border:2px solid var(--line);border-radius:10px;cursor:pointer;opacity:.7;scroll-snap-align:start;transition:opacity .15s,border-color .15s}
.dmm-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.dmm-thumb:hover{opacity:1}
.dmm-thumb.is-active{opacity:1;border-color:var(--ink)}
@media(max-width:520px){.dmm-thumb{flex-basis:62px;width:62px;height:62px}}

/* enlarged view */
html.dmm-lb-open{overflow:hidden}
.dmm-lb{position:fixed;inset:0;z-index:100000;background:rgba(20,8,10,.94);display:flex;align-items:center;justify-content:center;padding:56px 16px 48px}
.dmm-lb[hidden]{display:none}
.dmm-lb-img{max-width:min(96vw,1400px);max-height:100%;width:auto;height:auto;object-fit:contain;background:#fff;border-radius:8px}
.dmm-lb-close,.dmm-lb-nav{position:absolute;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;padding:0}
.dmm-lb-close:hover,.dmm-lb-nav:hover{background:rgba(255,255,255,.28)}
.dmm-lb-close{top:12px;right:14px;width:44px;height:44px;font-size:2rem}
.dmm-lb-nav{top:50%;transform:translateY(-50%);width:50px;height:50px;font-size:2.2rem;padding-bottom:5px}
.dmm-lb-prev{left:14px}.dmm-lb-next{right:14px}
.dmm-lb-count{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#e3cfd2;font-size:.9rem}
@media(max-width:520px){.dmm-lb{padding:56px 0 44px}.dmm-lb-img{border-radius:0;max-width:100vw}.dmm-lb-nav{width:40px;height:40px;font-size:1.8rem}}

/* no hover-zoom layer from WooCommerce or a gallery plugin */
.zoomImg,.woocommerce-product-gallery__trigger{display:none!important}


/* =====================================================================
   Product page: breadcrumbs sit closer to the header, with space between them and the photo.
   The space is added above the product block itself, so it works whatever markup draws the breadcrumbs.
   ===================================================================== */
.shop-wrap{padding-top:20px}
body.single-product div.product{margin-top:26px}
/* shop + category pages: space between the breadcrumbs and the page title */
.woocommerce-products-header{margin-top:18px}
@media(max-width:620px){
 .shop-wrap{padding-top:12px}
 body.single-product div.product{margin-top:16px}
 .woocommerce-products-header{margin-top:12px}
}

/* Breadcrumbs (Home / Products / ...): no underline on the earlier steps; they turn red on hover instead */
.woocommerce-breadcrumb a,#breadcrumbs a,.yoast-breadcrumbs a,.rank-math-breadcrumb a,.breadcrumbs a,.breadcrumb a,
nav[aria-label="Breadcrumb"] a,nav[aria-label="Breadcrumbs"] a,nav.kb-crumbs a{text-decoration:none}
.woocommerce-breadcrumb a:hover,#breadcrumbs a:hover,.yoast-breadcrumbs a:hover,.rank-math-breadcrumb a:hover,.breadcrumbs a:hover,.breadcrumb a:hover,
nav[aria-label="Breadcrumb"] a:hover,nav[aria-label="Breadcrumbs"] a:hover,nav.kb-crumbs a:hover{color:var(--blue);text-decoration:none}

/* Quantity boxes: hide the little up/down arrows (customers can still type a number) */
.quantity input.qty,input.qty[type="number"]{-moz-appearance:textfield;appearance:textfield}
.quantity input.qty::-webkit-outer-spin-button,.quantity input.qty::-webkit-inner-spin-button,
input.qty[type="number"]::-webkit-outer-spin-button,input.qty[type="number"]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* Product page (desktop): the big photo box is a bit shorter (6:5 instead of square) so the four trust icons under the thumbnails fit on screen.
   Layout and positions are unchanged. For a taller photo use 1/1 (square); for shorter use 4/3. */
@media(min-width:901px){
 .dmm-stage{aspect-ratio:6/5}
 .dmm-assure svg{width:40px;height:40px}
}
