/*
Theme Name: ADVDistro Kadence Child
Theme URI: https://www.advdistro.co.za
Description: ADV Distro 2026 rebuild child theme (Kadence). Ported from the ADVapes rebuild, adapted for ADV Distro.
Author: ADVapes
Template: kadence
Version: 1.0.0
*/

/* ============================================================ */
/*  ADD CUSTOM CSS BELOW THIS LINE                              */
/*  Anything here loads LAST, so it wins over theme defaults.   */
/* ============================================================ */

/* ============================================= */
/* Footer bottom bar: white strip like live site  */
/* one row: (c) | 4.9 reviews | payment icons     */
/* ============================================= */
html #colophon .site-bottom-footer-wrap,
html[data-adv-theme="dark"] #colophon .site-bottom-footer-wrap,
html[data-adv-theme="light"] #colophon .site-bottom-footer-wrap{background:#ffffff !important;border-top:1px solid #e8e8ec !important}
#colophon .site-bottom-footer-wrap .site-bottom-footer-inner-wrap{padding:12px 0 !important}
#colophon .site-bottom-footer-wrap .site-container{max-width:1620px !important;width:100% !important;padding-left:24px !important;padding-right:24px !important}
#colophon .site-bottom-footer-wrap .site-footer-bottom-section-1, #colophon .site-bottom-footer-wrap .footer-widget-area, #colophon .site-bottom-footer-wrap .footer-widget-area-inner, #colophon .site-bottom-footer-wrap .footer-html, #colophon .site-bottom-footer-wrap .site-bottom-footer-inner-wrap{width:100% !important;max-width:100% !important;grid-template-columns:1fr !important;display:block !important}
#colophon .site-bottom-footer-wrap, #colophon .site-bottom-footer-wrap span, #colophon .site-bottom-footer-wrap strong, #colophon .site-bottom-footer-wrap div, #colophon .site-bottom-footer-wrap a, #colophon .site-bottom-footer-wrap b{color:#16161b !important}
#colophon .site-bottom-footer-wrap a:hover{color:#e72424 !important}
#colophon .site-bottom-footer-wrap .advk-stars{color:#f5a623 !important}
#colophon .site-bottom-footer-wrap .footer-html-inner{display:flex !important;align-items:center !important;flex-wrap:wrap !important;gap:8px 10px !important;justify-content:center !important}
#colophon .site-bottom-footer-wrap .footer-html-inner br{display:none !important}
#colophon .site-bottom-footer-wrap .advk-fbottom{width:auto !important;max-width:none !important;flex:1 1 auto !important;display:flex !important;align-items:center !important;flex-wrap:wrap !important;gap:8px 10px !important;margin:0 !important;padding:0 !important}
#colophon .site-bottom-footer-wrap .advk-fbottom > span:first-of-type{color:#e72424 !important;font-weight:600 !important}
#colophon .site-bottom-footer-wrap .advk-pay{order:3 !important;margin:0 !important;padding:0 !important;display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:4px !important;justify-content:flex-end !important}
#colophon .site-bottom-footer-wrap .advk-pay img{height:17px !important;width:auto !important;margin:0 !important;padding:2px 4px !important}
@media(min-width:768px){
#colophon .site-bottom-footer-wrap .footer-html-inner{justify-content:flex-start !important}
#colophon .site-bottom-footer-wrap .advk-fbottom > span:first-of-type{margin-right:auto !important}
#colophon .site-bottom-footer-wrap .advk-pay{margin-left:auto !important;max-width:55% !important;width:auto !important;flex:0 1 auto !important}
}
@media(max-width:767px){
#colophon .site-bottom-footer-wrap .footer-html-inner{flex-direction:column !important;text-align:center !important;gap:8px !important}
#colophon .site-bottom-footer-wrap .advk-pay{justify-content:center !important}
#colophon .site-bottom-footer-wrap .advk-fbottom{flex-direction:column !important;justify-content:center !important;text-align:center !important}
}

/* Shop bar: no load glitch (fades in once settled) */
.advk-shopbar{opacity:0;transition:opacity .18s ease;animation:advkSbSafety .3s ease 2.2s forwards;}
@keyframes advkSbSafety{to{opacity:1;visibility:visible;}}
.advk-shopbar.advk-ready{opacity:1 !important;visibility:visible !important;animation:none !important;}
@media(min-width:1024px){.advk-shopbar{min-height:54px;}}
@media(max-width:1023px){.advk-shopbar{min-height:46px;}}


/* ============================================= */
/* Final contrast polish (go-live audit)          */
/* ============================================= */
:is(#advk,body) #colophon .site-bottom-footer-wrap :is(a,span,strong,b,p,div){color:#16161b !important}
:is(#advk,body) #colophon .site-bottom-footer-wrap a:hover{color:#e72424 !important}
:is(#advk,body) #colophon .site-bottom-footer-wrap .advk-fbottom > span:first-of-type{color:#c31d1d !important;font-weight:600 !important}
:is(#advk,body) #colophon .site-bottom-footer-wrap .advk-stars{color:#c47d00 !important}
html:not([data-adv-theme="light"]) :is(#advk,body) :is(.price,.price bdi,.woocommerce-Price-amount,.woocommerce-Price-amount bdi,.an-ck-amt,.advk-eyebrow,p.stock.out-of-stock,.product_meta a,a.shipping-calculator-button,.woocommerce-terms-and-conditions-link,.an-gl-meta strong){color:#ff5252 !important}
html:not([data-adv-theme="light"]) :is(#advk,body) del :is(.woocommerce-Price-amount,.woocommerce-Price-amount bdi){color:#9a9aa2 !important}
html:not([data-adv-theme="light"]) :is(#advk,body) .advk-gstars{color:#ffb238 !important}
html[data-adv-theme="light"] :is(#advk,body) :is(.advk-gstars,.advk-review__stars){color:#c47d00 !important}
.advk-ct-btn{font-size:19px !important;font-weight:700 !important}
.advk-ct-btn[href*="wa.me"], .advk-ct-btn[href*="whatsapp"]{background:#1da851 !important}

/* ---- CLS fix: reserve hero + brand-strip space on phones (mobile PSI layout-shift) ---- */
@media(max-width:767px){
.advk-fast{min-height:310px}
.advk-brandsmq, .advk-brands{min-height:150px}
}

.advk-pdp-share{display:flex;gap:9px;align-items:center;margin:12px 0 0}
.advk-pdp-share a{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;border:1px solid #ffffff4d;color:#e6e6e6;font-size:12px;text-decoration:none}


/* ADVK: B2BKing bulk order form — dark theme (Distro) */
.b2bking_bulkorder_form_container{background:#141416!important;color:#e8e8ea!important;border:1px solid #2a2a2e!important;border-radius:12px;overflow:hidden}
.b2bking_bulkorder_form_container_top{background:#1c1c20!important;color:#fff!important;border-bottom:1px solid #2a2a2e!important}
.b2bking_bulkorder_form_container_content{background:#141416!important;color:#e8e8ea!important}
.b2bking_bulkorder_form_container_content_header{background:#1a1a1e!important;color:#b9b9c0!important;border-bottom:1px solid #2a2a2e!important}
.b2bking_bulkorder_form_container_content_line{border-bottom:1px solid #232327!important}
.b2bking_bulkorder_form_container_content_line:nth-child(even){background:#171719!important}
.b2bking_bulkorder_container_final,.b2bking_bulkorder_container_final label,.b2bking_bulkorder_container_final span{color:#e8e8ea}
.b2bking_bulkorder_container_final .woocommerce-Price-amount{color:#ffffff!important}
.b2bking_bulkorder_container_final input[type=text],.b2bking_bulkorder_container_final input[type=number],.b2bking_bulkorder_container_final input[type=search],.b2bking_bulkorder_container_final select,.b2bking_bulkorder_sortby select{background:#0e0e10!important;color:#f0f0f2!important;border:1px solid #34343a!important}
.b2bking_bulkorder_container_final input::placeholder{color:#8a8a90!important}
.b2bking_bulkorder_form_container_bottom{background:#1a1a1e!important;border-top:1px solid #2a2a2e!important}
.b2bking_bulkorder_form_container_bottom_total{color:#ffffff!important}
.b2bking_bulkorder_form_container_bottom_add_button{background:#E32219!important;border-color:#E32219!important;color:#fff!important}
.b2bking_bulkorder_form_container_add_button:hover{background:#c51c14!important}
.b2bking_bulkorder_form_container_newline_button,.b2bking_bulkorder_form_container_bottom_save_button{background:#26262b!important;color:#e8e8ea!important;border:1px solid #34343a!important}


/* ADVK: Distro wholesale registration card (.advd-b2b-reg) — from live */
.advd-b2b-reg{max-width:760px;margin:24px auto;background:#fff;border-radius:14px;padding:32px;box-shadow:0 6px 24px rgba(0,0,0,.35)}
.advd-b2b-reg h1,.advd-b2b-reg h2,.advd-b2b-reg h3,.advd-b2b-reg h4,.advd-b2b-reg legend,.advd-b2b-reg label,.advd-b2b-reg p,.advd-b2b-reg li,.advd-b2b-reg span,.advd-b2b-reg strong,.advd-b2b-reg a:not(.button){color:#1c1c1c!important;text-shadow:none!important}
.advd-b2b-reg input[type=text],.advd-b2b-reg input[type=email],.advd-b2b-reg input[type=password],.advd-b2b-reg input[type=tel],.advd-b2b-reg input[type=number],.advd-b2b-reg select,.advd-b2b-reg textarea{width:100%!important;padding:12px 14px!important;border:1px solid #cfcfcf!important;border-radius:8px!important;background:#fafafa!important;color:#111!important;box-shadow:none!important}
.advd-b2b-reg input::placeholder,.advd-b2b-reg textarea::placeholder{color:#8a8a8a!important;opacity:1}
.advd-b2b-reg input:focus,.advd-b2b-reg select:focus,.advd-b2b-reg textarea:focus{border-color:#d32f2f!important;background:#fff!important;outline:none!important}
.advd-b2b-reg select{-webkit-appearance:auto;appearance:auto}
.advd-b2b-reg input[type=checkbox],.advd-b2b-reg input[type=radio]{width:auto!important;accent-color:#d32f2f}
.advd-b2b-reg button,.advd-b2b-reg button *,.advd-b2b-reg input[type=submit],.advd-b2b-reg .button,.advd-b2b-reg .button *{color:#fff!important}
.advd-b2b-reg button[type=submit],.advd-b2b-reg input[type=submit],.advd-b2b-reg .button{width:100%!important;padding:14px 22px!important;background:#d32f2f!important;border:none!important;border-radius:8px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.05em!important;cursor:pointer!important}
.advd-b2b-reg button[type=submit]:hover,.advd-b2b-reg input[type=submit]:hover,.advd-b2b-reg .button:hover{background:#b71c1c!important}
.advd-b2b-reg svg{color:#555;fill:currentColor}
.advd-b2b-reg button svg{color:#fff;fill:currentColor}
body .advd-b2b-reg .b2bking_custom_registration_container label,body .advd-b2b-reg form label,body .advd-b2b-reg form p,html body .advd-b2b-reg label{color:#1c1c1c!important;opacity:1!important;visibility:visible!important}
body .advd-b2b-reg input[type=text],body .advd-b2b-reg input[type=email],body .advd-b2b-reg input[type=password],body .advd-b2b-reg input[type=tel],body .advd-b2b-reg input[type=number],body .advd-b2b-reg select,body .advd-b2b-reg textarea{color:#111!important;background:#fafafa!important;-webkit-text-fill-color:#111!important}
body .advd-b2b-reg select option{color:#111!important;background:#fff!important}
html body .advd-b2b-reg input:focus,html body .advd-b2b-reg select:focus{border-color:#d32f2f!important;outline:none!important}
.advd-b2b-reg .b2bking_custom_registration_container{display:block!important}
@media(max-width:600px){.advd-b2b-reg{margin:12px auto;padding:20px}}


/* ===== ADVK ADV DISTRO COLOUR SYSTEM v1 =====
   Uses the SAME two tokens established for the ADVapes live site, since Distro
   is the trade arm of the same brand:
   #ED1C24 "brand red"     -> every solid fill (buttons, badges, ticker).
   #F2555B "red on dark"   -> every red TEXT on the dark page background.
                              5.51:1 on #111317 (AA).
   Replaces the drifting set: #FF5252, #E21B23, #C9182B, #D62738, #C31D1D,
   #E72424, #E2211F, #FF6B6B.
   ALSO FIXES: .advk-pillar body copy was #2D3748 on #101013 = 1.58:1, i.e.
   effectively invisible. Now #C7C7CD (~11:1).
*/
:root,body{--adv-brand:#ED1C24;--adv-red-text:#F2555B;--adv-red-dark:#C9181F}

/* --- FIX: near-invisible "Why Choose ADV Distro" pillar copy --- */
:is(#advk,body) :is(#advk,.advk-pillar,.advk-pillar p,.advk-pillar div,
.advk-pillars .advk-pillar){color:#C7C7CD!important}
:is(#advk,body) :is(#advk,.advk-pillar h3,.advk-pillar h4,.advk-pillar strong,
.advk-pillar b){color:#FFFFFF!important}

/* --- red text on the dark background --- */
:is(#advk,body) :is(#advk,.price,span.price,.price bdi,.price ins,.price ins bdi,
ul.products li.product .price,.woocommerce-Price-amount,.woocommerce-Price-currencySymbol,
.advk-ico,.advk-mq-eyebrow,.advk-reviews,.advk-stars){color:#F2555B!important}

/* --- struck-through "was" price stays neutral grey --- */
:is(#advk,body) :is(#advk,.price del,.price del bdi,.price del .woocommerce-Price-amount,
.price del .woocommerce-Price-currencySymbol){color:#9A9AA2!important}

/* --- solid fills that carry white text --- */
:is(#advk,body) :is(#advk,ul.products li.product .button,a.button.add_to_cart_button,
.added_to_cart,.single_add_to_cart_button,.checkout-button,#place_order,
.advk-btn--primary,span.onsale,.header-cart-total,.advk-filter-toggle,.advk-sb-go,
span.page-numbers.current,.advk-ticker,.wp-element-button,button.button.alt){background-color:#C9181F!important;border-color:#ED1C24!important;color:#fff!important}

/* --- hover --- */
:is(#advk,body) :is(#advk,ul.products li.product .button:hover,a.button.add_to_cart_button:hover,
.single_add_to_cart_button:hover,.checkout-button:hover,#place_order:hover,
.advk-btn--primary:hover,button.button.alt:hover){background-color:#C9181F!important;border-color:#C9181F!important;color:#fff!important}

/* --- the white B2B registration card must NOT inherit the dark-theme text rules --- */
:is(#advk,body) :is(#advk,.advd-b2b-reg,.advd-b2b-reg p,.advd-b2b-reg li,
.advd-b2b-reg label,.advd-b2b-reg span){color:#1C1C1C!important}

html:root:root:root,body[class][class][class]{--adv-red:#F2555B;--adv-action:#C9181F;--adv-brand:#ED1C24;--advk-red:#ED1C24}

/* ===== ADVK ADV DISTRO COLOUR SYSTEM v1 =====
   Uses the SAME two tokens established for the ADVapes live site, since Distro
   is the trade arm of the same brand:
   #ED1C24 "brand red"     -> every solid fill (buttons, badges, ticker).
   #F2555B "red on dark"   -> every red TEXT on the dark page background.
                              5.51:1 on #111317 (AA).
   Replaces the drifting set: #FF5252, #E21B23, #C9182B, #D62738, #C31D1D,
   #E72424, #E2211F, #FF6B6B.
   ALSO FIXES: .advk-pillar body copy was #2D3748 on #101013 = 1.58:1, i.e.
   effectively invisible. Now #C7C7CD (~11:1).
*/
:root,body{--adv-brand:#ED1C24;--adv-red-text:#F2555B;--adv-red-dark:#C9181F}

/* --- FIX: near-invisible "Why Choose ADV Distro" pillar copy --- */
:is(#advk,html) :is(#advk,body) :is(#advk,.advk-pillar,.advk-pillar p,.advk-pillar div,
.advk-pillars .advk-pillar){color:#C7C7CD!important}
:is(#advk,html) :is(#advk,body) :is(#advk,.advk-pillar h3,.advk-pillar h4,.advk-pillar strong,
.advk-pillar b){color:#FFFFFF!important}

/* --- red text on the dark background --- */
:is(#advk,html) :is(#advk,body) :is(#advk,.price,span.price,.price bdi,.price ins,.price ins bdi,
ul.products li.product .price,.woocommerce-Price-amount,.woocommerce-Price-currencySymbol,
.advk-ico,.advk-mq-eyebrow,.advk-reviews,.advk-stars){color:#F2555B!important}

/* --- struck-through "was" price stays neutral grey --- */
:is(#advk,html) :is(#advk,body) :is(#advk,.price del,.price del bdi,.price del .woocommerce-Price-amount,
.price del .woocommerce-Price-currencySymbol){color:#9A9AA2!important}

/* --- solid fills that carry white text --- */
:is(#advk,html) :is(#advk,body) :is(#advk,ul.products li.product .button,a.button.add_to_cart_button,
.added_to_cart,.single_add_to_cart_button,.checkout-button,#place_order,
.advk-btn--primary,span.onsale,.header-cart-total,.advk-filter-toggle,.advk-sb-go,
span.page-numbers.current,.advk-ticker,.wp-element-button,button.button.alt){background-color:#C9181F!important;border-color:#ED1C24!important;color:#fff!important}

/* --- hover --- */
:is(#advk,html) :is(#advk,body) :is(#advk,ul.products li.product .button:hover,a.button.add_to_cart_button:hover,
.single_add_to_cart_button:hover,.checkout-button:hover,#place_order:hover,
.advk-btn--primary:hover,button.button.alt:hover){background-color:#C9181F!important;border-color:#C9181F!important;color:#fff!important}

/* --- the white B2B registration card must NOT inherit the dark-theme text rules --- */
:is(#advk,html) :is(#advk,body) :is(#advk,.advd-b2b-reg,.advd-b2b-reg p,.advd-b2b-reg li,
.advd-b2b-reg label,.advd-b2b-reg span){color:#1C1C1C!important}

:is(#advk,html) :is(#advk,body) :is(#advk,.advk-inf-note,.advk-inf-end){color:#C7C7CD!important}

:is(#advk,html) :is(#advk,body) :is(#advk,.advk-ticker,.advk-review__av,.adv-view-toggle button.active){background-color:#C9181F!important;color:#fff!important}

:is(#advk,html) :is(#advk,body) :is(#advk,.advk-fbottom span){color:#F2555B!important}

:is(#advk,html) :is(#advk,body) :is(#advk,.advk-fbtn){background-color:#C9181F!important;color:#fff!important}

:is(#advk,html) :is(#advk,body) :is(#advk,[class*=bulkorder_form_container_content]){color:#C7C7CD!important}

:is(#advk,html) :is(#advk,body) :is(#advk,.entry-content a:not(.button):not(.advk-btn)){color:#F2555B!important}

:is(#advk,html) :is(#advk,body) :is(#advk,[class*=category-link]){color:#F2555B!important}

:is(#advk,html):is(#advk,html) :is(#advk,body) :is(#advk,.an-pay-txt,.an-pay-txt *){color:#C7C7CD!important}

:is(#advk,html):is(#advk,html) :is(#advk,body) :is(#advk,.advk-pdp-share,.advk-pdp-share span){color:#C7C7CD!important}

:is(#advk,html) :is(#advk,body) :is(#advk,.woocommerce-product-attributes) :is(#advk,th,td):is(#advk,th,td){background:#17181C!important}

:is(#advk,html):is(#advk,html) :is(#advk,body) :is(#advk,.advd-b2b-reg) :is(#advk,a,a *){color:#C9181F!important}

:is(#advk,html) :is(#advk,body) :is(#advk,ul.tabs) :is(#advk,li):is(#advk,li){background:#1A1B20!important;border-color:#2A2B31!important}

:is(#advk,html) :is(#advk,body) :is(#advk,ul.tabs) :is(#advk,li) :is(#advk,a){color:#E6E6EA!important}

:is(#advk,html) :is(#advk,body) :is(#advk,ul.tabs) :is(#advk,li.active):is(#advk,li.active){background:#C9181F!important}

:is(#advk,html) :is(#advk,body) :is(#advk,ul.tabs) :is(#advk,li.active) :is(#advk,a):is(#advk,a){color:#FFFFFF!important}

:is(#advk,html):is(#advk,html) :is(#advk,body) :is(#advk,.wp-block-button__link){color:#FFFFFF!important}

:is(#advk,html) :is(#advk,body.error404) :is(#advk,.page-content):is(#advk,.page-content){background:transparent!important}

:is(#advk,html):is(#advk,html) :is(#advk,body) :is(#advk,.advk-nores-btn){background:#C9181F!important;color:#FFFFFF!important}

:is(#advk,body.error404) :is(#advk,.entry-content-wrap) :is(#advk,.page-header,.search-form){display:none!important}

/* ============ AUDIT FIXES 2026-08-22 (post-migration clean-up) ============ */
/* A. Phone product grids were 3 columns of ~80-108px because three nested
      sections each added padding. Trim that padding and use 2 columns. */
@media (max-width:600px){
  :is(#advk,html) :is(#advk,.advk-sec){padding-left:12px!important;padding-right:12px!important}
  :is(#advk,html) :is(#advk,.advk-box){padding-left:10px!important;padding-right:10px!important}
  /* (column count left as designed - 3 across on phones - only the padding was trimmed) */
}

/* B. Checkout: the terms & conditions line did not wrap, pushing the page sideways. */
:is(#advk,html) :is(#advk,.woocommerce-terms-and-conditions-checkbox-text){display:inline!important;white-space:normal!important;max-width:100%!important;overflow-wrap:anywhere!important}
:is(#advk,html) :is(#advk,.woocommerce-terms-and-conditions-wrapper,.woocommerce-terms-and-conditions-wrapper .form-row,.woocommerce-privacy-policy-text){min-width:0!important;max-width:100%!important}

/* C. Mega-menu panels: never taller than the screen (JS also sets this inline). */
@media (min-width:1025px){
  :is(#advk,html) :is(#advk,.sub-menu.advk-megadone){max-height:calc(100vh - 220px)!important;overflow-y:auto!important}
}

/* D. Two products per row on phones (22 Aug 2026 decision). */
@media (max-width:767px){
  :is(#advk,html) :is(#advk,ul.products.grid-cols,.woocommerce ul.products,ul.products){grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:12px!important}
}
