/*
Theme Name: DAB Digital
Author: DAB Digital
Description: Independent digital product storefront for WooCommerce with Gutenberg support.
Version: 1.0.17
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: dab-digital
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root{--ink:#000;--paper:#fff;--accent:#ffd600;--muted:#555;--soft:#f5f5f5;--line:#e4e4e4}*{box-sizing:border-box}body{margin:0;background:#fff;color:#111;font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}img{max-width:100%;height:auto}a{color:inherit}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #9a6800;outline-offset:4px}h1,h2,h3{line-height:1.15;letter-spacing:-.025em;margin:0 0 16px}h1{font-size:clamp(2rem,4vw,3rem)}h2{font-size:clamp(1.5rem,3vw,2rem)}p{margin:0 0 1em}.wrap{width:min(1100px,calc(100% - 40px));margin-inline:auto}.site-header,.site-footer{background:#000;color:#fff}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:16px;flex-wrap:wrap}.brand img,.custom-logo{display:block;width:64px;height:64px;object-fit:contain;border-radius:50%}.nav-list{display:flex;flex-wrap:wrap;align-items:center;gap:12px 25px;list-style:none;margin:0;padding:0}.nav-list a{text-decoration:none;font-weight:600}.nav-list a:hover,.site-footer a:hover{color:var(--accent)}.nav-list .sub-menu{list-style:none;padding-left:12px}.skip-link{position:absolute;left:8px;top:-100px;background:var(--accent);color:#000;padding:12px;z-index:100}.skip-link:focus{top:8px}.hero{padding:clamp(40px,7vw,80px) 0}.home-hero{text-align:center}.home-hero p{max-width:600px;margin:auto;color:#ddd;font-size:18px}.section{padding:clamp(36px,6vw,70px) 0}.section-title{text-align:center;margin-bottom:32px}.product-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:28px}.product-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 5px 20px #00000008}.product-card:hover{box-shadow:0 12px 30px #00000014}.product-image{display:block;background:var(--soft);aspect-ratio:1;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:contain;display:block}.product-info{padding:24px;display:flex;flex-direction:column;flex:1}.product-info h3{font-size:22px}.product-info h3 a{text-decoration:none}.product-desc{color:var(--muted);font-size:15px}.product-price{font-size:22px;font-weight:750;margin:8px 0 18px;color:#111}.product-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:auto}.dab-btn,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce .button.alt,.woocommerce button.button.alt{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border:2px solid var(--accent);border-radius:9px;background:var(--accent);color:#000;text-decoration:none;font-family:inherit;font-size:15px;line-height:1.3;font-weight:700;cursor:pointer;text-align:center}.dab-btn:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce button.button.alt:hover{background:#e7bf00;color:#000;border-color:#e7bf00}.dab-btn.secondary{background:#fff;border-color:#000;color:#000}.dab-btn.secondary:hover{background:#000;color:#fff}.product-buttons .dab-btn{flex:1 1 130px}.pagination{margin-top:40px;text-align:center}.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid #ddd;border-radius:8px;text-decoration:none;margin:3px}.pagination .current{background:#000;color:#fff}.filter-form{display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin-bottom:30px;padding:18px;background:var(--soft);border-radius:12px}.filter-form label{display:block;font-weight:650;font-size:14px}.filter-form select{display:block;min-height:44px;max-width:100%;padding:8px;border:1px solid #aaa;border-radius:6px;background:#fff;color:#111;font:inherit}.hero-inner{display:grid;gap:32px;align-items:center}.hero-image{background:#171717;border:1px solid #333;border-radius:16px;overflow:hidden}.hero-image img{display:block;width:100%;max-height:600px;object-fit:contain}.hero .price,.final-cta .price{font-size:32px;color:var(--accent);font-weight:750;margin:18px 0}.hero .subtitle{color:#ddd;font-size:18px}.guarantee{font-size:14px;margin-top:16px;color:#ddd}.sales-section{max-width:900px;margin:auto}.sales-section h2{text-align:center;margin-bottom:30px}.sales-section .rich{overflow-wrap:anywhere}.sales-section.alt{max-width:none;background:var(--soft)}.sales-section.alt>.wrap{max-width:900px}.final-cta{text-align:center;padding:64px 0}.final-cta p{max-width:650px;margin-inline:auto}.site-footer{text-align:center;padding:35px 0;border-top:1px solid #333}.site-footer img{width:48px;border-radius:50%;display:block;margin:0 auto 12px}.site-footer p{margin:8px 0}.content{padding:45px 0;overflow-wrap:anywhere}.content input:not([type=checkbox]):not([type=radio]),.content textarea,.content select{max-width:100%}.woocommerce .quantity input{color:#111;background:#fff}.hero .stock{color:#fff}.hero form.cart{margin:20px 0}.hero .woocommerce-variation-price{color:#fff}.hero .variations td,.hero .variations th{padding:5px}.hero .reset_variations{color:#fff}.hero .woocommerce-error,.hero .woocommerce-message,.hero .woocommerce-info{color:#111}.hero .single_add_to_cart_button{margin-top:5px}.hero .quantity{display:inline-block;margin-right:8px}.notice-wrap{padding-top:16px}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.screen-reader-text:focus{clip:auto;width:auto;height:auto;position:fixed;top:8px;left:8px;background:#fff;color:#000;z-index:1000;padding:12px}.wp-block-image img{height:auto}.alignwide{max-width:1100px}.alignfull{max-width:none}.wp-block-table{overflow-x:auto}.woocommerce table.shop_table{overflow-wrap:anywhere}.woocommerce a.remove{color:#a00!important}.woocommerce-store-notice{z-index:9999}.rich ul,.rich ol{padding-inline-start:24px}.rich h3{margin-top:24px}.rich blockquote{margin:20px 0;padding:20px;border-left:4px solid var(--accent);background:#fff}.rich details{border-bottom:1px solid #ddd;padding:15px 0}.rich summary{cursor:pointer;font-weight:700}@media(min-width:701px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-inner{grid-template-columns:1fr 1fr}}@media(max-width:450px){.header-inner{gap:12px}.nav-list{gap:8px 14px;font-size:14px}.wrap{width:calc(100% - 28px)}.product-info{padding:18px}.filter-form{display:grid}.filter-form select{width:100%}}@media(prefers-reduced-motion:no-preference){.product-card,.dab-btn{transition:box-shadow .2s,background .2s}}

.site-footer .nav-list{justify-content:center;margin:14px 0}.hero .woocommerce-Price-amount{color:var(--accent)}.hero a:not(.dab-btn):not(.button){color:inherit}.sales-section .wp-block-columns{gap:24px}.sales-section .wp-block-column{min-width:0}.sales-section .wp-block-quote{border-left:4px solid var(--accent);padding:20px}.hero .quantity input{min-height:45px}.woocommerce .woocommerce-breadcrumb{margin-bottom:16px}.product-info .price del,.product-price del{font-weight:400;font-size:.8em}.wc-block-components-button:not(.is-link){background:#ffd600;color:#000;border-radius:9px}.wc-block-components-button:not(.is-link):hover{background:#e7bf00;color:#000}.wp-block-button__link{min-height:44px}.hero .price a{color:inherit}

/* Clean white storefront background; retain the branded header and footer. */
body.home{background:#fff;color:#111}.home #main-content{background:#fff}.home .product-card,.home .product-image,.home .filter-form{background:#fff}.home .filter-form{border:1px solid var(--line)}

/* Restore original black header and introductory banner. */
.site-header,.home .home-hero{background:#000;color:#fff}.site-header .nav-list a{color:#fff}.site-header .nav-list a:hover{color:var(--accent)}

/* Lock branded dark surfaces to pure black, including legacy CSS overrides. */
body header.site-header, body footer.site-footer, body .home-hero {background: #000000 !important; color: #ffffff !important;}
body footer.site-footer .wrap, body footer.site-footer nav, body footer.site-footer .nav-list {background: #000000 !important; color: #ffffff !important;}
body footer.site-footer a, body footer.site-footer p, body header.site-header .nav-list a {color: #ffffff !important;}
body footer.site-footer a:hover, body header.site-header .nav-list a:hover {color: #FFD600 !important;}
body footer.site-footer {border-top-color: #000000;}

/* Isolated brand chrome: avoid collisions with previous themes and plugins. */
body #dab-digital-header, body #dab-digital-footer { display:block!important; position:relative!important; inset:auto!important; width:100%!important; max-width:none!important; height:auto!important; max-height:none!important; overflow:visible!important; visibility:visible!important; opacity:1!important; transform:none!important; margin:0!important; background:#000!important; color:#fff!important; border:0!important; box-shadow:none!important; }
body #dab-digital-header {padding:0!important; z-index:10;}
body #dab-digital-header .dab-header-inner {display:flex!important; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; width:min(1100px,calc(100% - 40px)); margin:0 auto!important; padding:16px 0!important; min-height:96px; height:auto!important; overflow:visible!important; background:#000!important;}
body #dab-digital-header .dab-brand {display:block!important; position:static!important; flex:0 0 64px; width:64px; height:64px; margin:0!important; padding:0!important; visibility:visible!important; opacity:1!important;}
body #dab-digital-header .dab-logo {display:block!important; width:64px!important; height:64px!important; max-width:none!important; max-height:none!important; object-fit:contain; visibility:visible!important; opacity:1!important;}
body #dab-digital-header .dab-primary-nav {display:block!important; position:static!important; height:auto!important; max-height:none!important; overflow:visible!important; visibility:visible!important; opacity:1!important; transform:none!important; background:#000!important;}
body #dab-digital-header .dab-nav-list, body #dab-digital-footer .dab-nav-list {display:flex!important; flex-wrap:wrap; align-items:center; gap:12px 25px; list-style:none!important; margin:0!important; padding:0!important; background:#000!important; height:auto!important; visibility:visible!important;}
body #dab-digital-header .dab-nav-list li, body #dab-digital-footer .dab-nav-list li {display:block!important; background:transparent!important; visibility:visible!important;}
body #dab-digital-header a, body #dab-digital-footer a {color:#fff!important; text-decoration:none; font-weight:600; visibility:visible!important;}
body #dab-digital-header a:hover, body #dab-digital-footer a:hover {color:#ffd600!important;}
body #dab-digital-footer {padding:35px 0!important; text-align:center;}
body #dab-digital-footer .dab-footer-inner {width:min(1100px,calc(100% - 40px)); margin:0 auto!important; background:#000!important; color:#fff!important;}
body #dab-digital-footer img {display:block; width:48px; height:48px; object-fit:contain; margin:0 auto 12px;}
body #dab-digital-footer p, body #dab-digital-footer nav {background:#000!important; color:#fff!important; margin:8px 0;}
body #dab-digital-footer .dab-nav-list {justify-content:center;}
@media(max-width:600px){body #dab-digital-header .dab-header-inner {gap:12px; width:calc(100% - 28px);} body #dab-digital-header .dab-primary-nav {flex:1 1 100%;} body #dab-digital-header .dab-nav-list {gap:10px 16px; font-size:14px;}}

/* Larger header logo on tablet and desktop only. */
@media (min-width:768px) {
 body #dab-digital-header .dab-brand {flex:0 0 100px; width:100px; height:100px;}
 body #dab-digital-header .dab-logo {width:100px!important; height:100px!important;}
}

/* Centered brand, homepage introduction, then navigation. */
body #dab-digital-header .dab-header-inner {flex-direction:column; flex-wrap:nowrap; align-items:center; justify-content:center; text-align:center; gap:18px; padding:20px 0 24px!important;}
body #dab-digital-header .dab-brand {flex:none;}
body #dab-digital-header .dab-header-intro {width:100%; color:#fff; background:#000;}
body #dab-digital-header .dab-header-intro h1 {color:#fff; margin:0 0 12px;}
body #dab-digital-header .dab-header-intro p {color:#ddd; font-size:18px; max-width:600px; margin:0 auto;}
body #dab-digital-header .dab-primary-nav {flex:none; width:100%;}
body #dab-digital-header .dab-nav-list {justify-content:center;}
@media(max-width:600px){body #dab-digital-header .dab-header-inner {gap:12px; padding:16px 0 20px!important;} body #dab-digital-header .dab-header-intro p {font-size:16px;}}

/* Compact product sales pages only. Preserve the approved storefront. */
body.single-product #main-content .hero {padding:clamp(22px,3.5vw,44px) 0;}
body.single-product #main-content .sales-section {padding:clamp(20px,2.5vw,32px) 0;}
body.single-product #main-content .sales-section > .wrap {width:min(900px,calc(100% - 40px));}
body.single-product #main-content .sales-section h2 {margin:0 0 16px;}
body.single-product #main-content .sales-section h2:not(:first-child) {margin-top:22px;}
body.single-product #main-content .sales-section .rich p {margin:0 0 10px;}
body.single-product #main-content .sales-section .rich ul,
body.single-product #main-content .sales-section .rich ol {margin:8px 0 14px;}
body.single-product #main-content .sales-section .rich > :last-child {margin-bottom:0;}
body.single-product #main-content .final-cta {padding:30px 0;}
body.single-product #main-content .notice-wrap:empty {display:none;}
body.single-product #main-content .notice-wrap {padding-top:0;}
@media(max-width:450px){body.single-product #main-content .sales-section > .wrap {width:calc(100% - 28px);}}

/* Product header: centered logo and navigation, independent of legacy flex rules. */
body.single-product #dab-digital-header .dab-header-inner {display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;text-align:center!important;}
body.single-product #dab-digital-header .dab-brand {flex:none!important;align-self:center!important;margin-inline:auto!important;}
body.single-product #dab-digital-header .dab-logo {margin-inline:auto!important;}
body.single-product #dab-digital-header .dab-primary-nav {flex:none!important;width:100%!important;}
body.single-product #dab-digital-header .dab-nav-list {justify-content:center!important;}

#products { scroll-margin-top: 32px; }

/* Storefront card refinement: match the approved reference, preserve original image proportions. */
#products .product-card {background:#fff; border:1px solid #ddd; border-radius:14px; box-shadow:0 5px 20px rgba(0,0,0,.045);}
#products .product-image {aspect-ratio: 1 / 1; display:flex; align-items:center; justify-content:center; padding:12px; background:#fff;}
#products .product-image img {display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; image-rendering:auto;}
#products .product-info {padding:24px;}
#products .product-info h3 {font-size:22px; margin:0 0 12px; color:#000;}
#products .product-desc {font-size:15px; line-height:1.65; color:#444; margin:0 0 14px;}
#products .product-price {font-size:22px; color:#000; margin:8px 0 18px;}
#products .product-buttons {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;}
#products .product-buttons .dab-btn {min-height:48px; padding:10px 8px; font-size:15px; border-radius:9px;}
body.single-product #main-content .hero-image img {width:auto; height:auto; max-width:100%; max-height:600px; margin:auto; object-fit:contain; image-rendering:auto;}
@media(max-width:380px){#products .product-buttons {grid-template-columns:1fr;}}

/* Full-size product artwork: retain natural aspect ratio and avoid enlargement. */
body .product-card .product-image img.dab-product-full-image, body.single-product #main-content .hero-image img.dab-product-full-image {width:auto; height:auto; max-width:100%; object-fit:contain; image-rendering:auto; filter:none; transform:none;}

/* Shared sales content: no product-specific layout classes or inline styles. */
body.single-product #main-content .sales-section {max-width:none;background:#fff;color:#111;}
body.single-product #main-content .sales-section.alt {background:#f5f5f5;}
body.single-product #main-content .sales-section .rich {font:inherit;color:#111;}
body.single-product #main-content .sales-section .rich img {max-width:100%;height:auto;}
body.single-product #main-content .hero a.dab-btn, body.single-product #main-content .final-cta a.dab-btn {color:#000;}


/* One product-page palette. Dark preserves the existing black hero and CTA;
   light changes those surfaces to white. Sales content stays white for readability. */
.dab-product-design {--dab-product-bg:#000;--dab-product-fg:#fff;--dab-product-muted:#ddd;--dab-product-price:#ffd600;--dab-product-image:#171717;--dab-product-border:#333;}
.dab-product-design.dab-product-light {--dab-product-bg:#fff;--dab-product-fg:#111;--dab-product-muted:#444;--dab-product-price:#111;--dab-product-image:#f5f5f5;--dab-product-border:#ddd;}
body.single-product #main-content.dab-product-design .hero,
body.single-product #main-content.dab-product-design .final-cta {background:var(--dab-product-bg);color:var(--dab-product-fg);}
body.single-product #main-content.dab-product-design .hero h1,
body.single-product #main-content.dab-product-design .final-cta h2,
body.single-product #main-content.dab-product-design .hero .stock,
body.single-product #main-content.dab-product-design .hero .woocommerce-variation-price,
body.single-product #main-content.dab-product-design .hero .reset_variations {color:var(--dab-product-fg);}
body.single-product #main-content.dab-product-design .hero .subtitle,
body.single-product #main-content.dab-product-design .guarantee {color:var(--dab-product-muted);}
body.single-product #main-content.dab-product-design .hero .price,
body.single-product #main-content.dab-product-design .hero .woocommerce-Price-amount,
body.single-product #main-content.dab-product-design .final-cta .price {color:var(--dab-product-price);}
body.single-product #main-content.dab-product-design .hero-image {background:var(--dab-product-image);border-color:var(--dab-product-border);}
