/* DPC shop (Bob 2026-11-02): product page layout B (dpc-mockups.pages.dev/product-b) and the shop page search.
   Builds on woocommerce.css (--w-* variables). Template: woocommerce/content-single-product.php; PHP: inc/shop.php. */

/* ===================== product page B ===================== */
html body.dpc-product-b .dpc-woo-single{padding-top:0;--pb-line:#d4d4d4;--pb-muted:#6b7077;--pb-sage:#dce9e3;--pb-shadow:0 8px 24px rgba(47,51,56,.08)}
html body.dpc-product-b .dpc-woo-single div.product.dpc-pb{display:block}
html body.dpc-product-b .dpc-pb img{max-width:100%;height:auto;display:block}
html body.dpc-product-b .dpc-pb .dpc-hand{font-family:var(--w-hand);font-size:1.7rem;line-height:1;color:var(--w-teal-deep);display:block;margin-bottom:6px}
html body.dpc-product-b .dpc-pb h1,html body.dpc-product-b .dpc-pb h2,html body.dpc-product-b .dpc-pb h3{font-family:var(--w-display);font-weight:700;line-height:1.15;margin:0;color:var(--w-ink);text-wrap:balance}

/* breadcrumbs */
html body.dpc-product-b .dpc-pb-crumbs{font-size:14px;color:var(--pb-muted);padding:24px 0 18px}
html body.dpc-product-b .dpc-pb-crumbs a{color:var(--w-teal-deep);text-decoration:none}
html body.dpc-product-b .dpc-pb-crumbs span{margin:0 8px;color:var(--pb-line)}
html body.dpc-product-b .dpc-pb-crumbs b{font-weight:600;color:var(--w-ink)}

/* image + buy box */
html body.dpc-product-b .dpc-pb-split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:48px;align-items:start;padding-top:4px}
html body.dpc-product-b .dpc-pb-main{background:#fff;padding:10px;box-shadow:0 12px 32px rgba(47,51,56,.12)}
html body.dpc-product-b .dpc-pb-main img{width:100%;touch-action:pan-y}
html body.dpc-product-b .dpc-pb-buy{float:none!important;width:auto!important;margin:0!important}
html body.dpc-product-b .dpc-pb-buy h1.product_title{font-size:clamp(28px,3.2vw,40px)!important;line-height:1.15!important;margin:0 0 10px!important}
html body.dpc-product-b .dpc-pb-theme{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 0;font-size:15px}
html body.dpc-product-b .dpc-pb-theme b{font-weight:600}
html body.dpc-product-b .dpc-swatches{display:inline-flex;gap:5px;vertical-align:middle}
html body.dpc-product-b .dpc-swatches i{width:20px;height:20px;border-radius:50%;display:block;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
html body.dpc-product-b .dpc-swatches.big i{width:28px;height:28px}
html body.dpc-product-b .dpc-pb-blurb{color:#4a4f55;margin:12px 0 0;font-size:16px;line-height:1.55}
html body.dpc-product-b .dpc-pb-buy .price{font:700 28px/1.2 var(--w-display)!important;color:var(--w-ink)!important;margin:14px 0 22px!important}
html body.dpc-product-b .dpc-pb-acts form.cart{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:0!important}
html body.dpc-product-b .dpc-pb-acts form.cart .quantity{display:none!important}
html body.dpc-store.dpc-product-b .dpc-woo .dpc-pb-acts .single_add_to_cart_button{min-height:52px;padding:14px 34px!important}
html body.dpc-product-b .dpc-pb-trust{list-style:none;margin:20px 0 0;padding:18px 0 0;border-top:1px solid var(--pb-line);display:grid;gap:11px;font-size:15px}
html body.dpc-product-b .dpc-pb-trust li{display:flex;gap:12px;align-items:center;margin:0}
html body.dpc-product-b .dpc-pb-trust svg{width:22px;height:22px;color:var(--w-teal);flex:none}

/* accordion */
html body.dpc-product-b .dpc-pb-acc{margin-top:22px}
html body.dpc-product-b .dpc-pb-acc details{border-top:1px solid var(--pb-line)}
html body.dpc-product-b .dpc-pb-acc details:last-of-type{border-bottom:1px solid var(--pb-line)}
html body.dpc-product-b .dpc-pb-acc summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:54px;padding:16px 0;font:700 19px/1.2 var(--w-display);color:var(--w-ink)}
html body.dpc-product-b .dpc-pb-acc summary::-webkit-details-marker{display:none}
html body.dpc-product-b .dpc-pb-acc summary::after{content:"+";font:400 22px var(--w-body);color:var(--w-teal)}
html body.dpc-product-b .dpc-pb-acc details[open] summary::after{content:"\2013"}
html body.dpc-product-b .dpc-pb-acc .in{padding:0 0 18px;color:#4a4f55;font-size:15.5px;line-height:1.55}
html body.dpc-product-b .dpc-pb-acc .in ul{margin:0;padding-left:20px}
html body.dpc-product-b .dpc-pb-acc .in li{margin:4px 0}

/* pinned buy bar (desktop and iPad landscape) */
html body.dpc-product-b .dpc-pb-pin{position:fixed;top:0;left:0;right:0;z-index:50;background:#fff;box-shadow:0 6px 20px rgba(47,51,56,.1);display:none;margin:0;padding:0 max(20px,calc(50vw - 550px))}
html body.admin-bar.dpc-product-b .dpc-pb-pin{top:32px}
html body.dpc-product-b .dpc-pb-pin.on{display:block}
html body.dpc-product-b .dpc-pb-pin-in{display:flex;align-items:center;gap:16px;min-height:64px}
html body.dpc-product-b .dpc-pb-pin img{width:44px;height:44px;object-fit:cover}
html body.dpc-product-b .dpc-pb-pin b{font:400 16px var(--w-display);flex:1}
html body.dpc-product-b .dpc-pb-pin .price,html body.dpc-product-b .dpc-pb-pin .price *{font:700 18px var(--w-display)!important;color:var(--w-ink)!important;margin:0!important}
html body.dpc-store.dpc-product-b .dpc-woo .dpc-pb-pin .button{padding:10px 20px!important;font-size:13px!important}

/* the whole listing as a strip */
html body.dpc-product-b .dpc-pb-book{padding:56px 0 8px}
html body.dpc-product-b .dpc-pb-bookhead{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:18px}
html body.dpc-product-b .dpc-pb-bookhead .dpc-hand{margin:0;font-size:1.8rem}
html body.dpc-product-b .dpc-pb-arrows{display:flex;gap:8px}
html body.dpc-product-b .dpc-pb-arrows button{width:42px;height:42px;padding:0;border:1.5px solid var(--w-ink);background:#fff;color:var(--w-ink);cursor:pointer;font-size:18px;border-radius:3px}
html body.dpc-product-b .dpc-pb-strip{display:flex;gap:22px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 calc(50% - 50vw);padding:12px calc(50vw - 50%) 30px}
html body.dpc-product-b .dpc-pb-strip::-webkit-scrollbar{display:none}
html body.dpc-product-b .dpc-pb-strip figure{flex:0 0 min(560px,82vw);margin:0;scroll-snap-align:start;background:#fff;padding:10px 10px 14px;box-shadow:0 10px 28px rgba(47,51,56,.1)}
html body.dpc-product-b .dpc-pb-strip img{width:100%}
html body.dpc-product-b .dpc-pb-strip figcaption{font-family:var(--w-hand);font-size:1.25rem;color:var(--pb-muted);margin-top:8px;text-align:center}

/* description */
html body.dpc-product-b .dpc-pb-desc{padding-top:56px}
html body.dpc-product-b .dpc-pb-desc h2{font-size:34px;margin-bottom:30px}
html body.dpc-product-b .dpc-pb-desc .entry-content{font-size:16px;line-height:1.6}
html body.dpc-product-b .dpc-pb-desc .entry-content>*{max-width:none;margin-left:0;margin-right:0}
html body.dpc-product-b .dpc-pb-desc .entry-content p{margin:0 0 1em}
html body.dpc-product-b .dpc-pb-desc .entry-content a{color:var(--w-teal-deep);font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* How It Works */
html body.dpc-product-b .dpc-pb-band{background:var(--pb-sage);margin:56px calc(50% - 50vw) 0;padding:56px calc(50vw - 50%) 60px}
html body.dpc-product-b .dpc-pb-head{text-align:center;margin-bottom:30px}
html body.dpc-product-b .dpc-pb-head h2{font-size:34px}
html body.dpc-product-b .dpc-pb-head p{color:var(--pb-muted);max-width:56ch;margin:10px auto 0;font-size:16px}
html body.dpc-product-b .dpc-pb-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:22px;counter-reset:s}
html body.dpc-product-b .dpc-pb-steps li{background:#fff;padding:28px 24px 26px;box-shadow:var(--pb-shadow);counter-increment:s;text-align:center;margin:0}
html body.dpc-product-b .dpc-pb-steps li::before{content:counter(s);display:flex;align-items:center;justify-content:center;width:56px;height:56px;margin:0 auto 14px;border:2px solid var(--w-teal);border-radius:50%;font-family:var(--w-hand);font-size:2rem;line-height:1;color:var(--w-teal-deep)}
html body.dpc-product-b .dpc-pb-steps h3{font-size:20px}
html body.dpc-product-b .dpc-pb-steps p{margin:8px 0 0;color:var(--pb-muted);font-size:15px}
html body.dpc-product-b .dpc-pb-stillq{text-align:center;margin:28px 0 0;font-size:16px}
html body.dpc-product-b .dpc-pb-stillq a{color:var(--w-teal-deep);font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* everything in the theme */
html body.dpc-product-b .dpc-pb-related{padding-top:56px}
html body.dpc-product-b .dpc-pb-themeband{display:flex;align-items:center;justify-content:center;gap:14px;margin:-12px 0 28px;flex-wrap:wrap}
html body.dpc-product-b .dpc-pb-themeband .dpc-hand{font-size:1.5rem;margin:0}
html body.dpc-product-b .dpc-pb-related ul.products{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
html body.dpc-product-b .dpc-pb-related ul.products li.product{padding:12px!important}
html body.dpc-product-b .dpc-pb-related ul.products li.product img{margin:0 0 12px!important}
html body.dpc-product-b .dpc-pb-related ul.products li.product h2.woocommerce-loop-product__title{font-family:var(--w-body)!important;font-size:16px!important;font-weight:600!important;line-height:1.35!important;margin:0 6px 6px!important}
html body.dpc-product-b .dpc-pb-related ul.products li.product .price{font-size:15px!important}
html body.dpc-product-b .dpc-pb-center{text-align:center;margin-top:30px}

/* pinned bar for iPad portrait and phones */
html body.dpc-product-b .dpc-pb-buybar{position:fixed;left:0;right:0;bottom:0;z-index:20;background:#fff;box-shadow:0 -8px 24px rgba(47,51,56,.12);padding:12px 20px;display:flex;align-items:center;gap:14px;transform:translateY(110%);transition:transform .25s}
html body.dpc-product-b .dpc-pb-buybar.on{transform:none}
html body.dpc-product-b .dpc-pb-buybar img{width:46px;height:46px;object-fit:cover}
html body.dpc-product-b .dpc-pb-buybar .t{flex:1;min-width:0}
html body.dpc-product-b .dpc-pb-buybar .t b{display:block;font:400 15px var(--w-display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.dpc-product-b .dpc-pb-buybar .t span{font-size:14px;color:var(--pb-muted)}
html body.dpc-store.dpc-product-b .dpc-woo .dpc-pb-buybar .button{min-height:46px;padding:12px 24px!important;font-size:14px!important}
@media(min-width:901px){html body.dpc-product-b .dpc-pb-buybar{display:none}}

/* iPad landscape: two balanced columns */
@media(min-width:901px) and (max-width:1200px){
  html body.dpc-product-b .dpc-pb-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}
  html body.dpc-product-b .dpc-pb-buy h1.product_title{font-size:32px!important}
}
/* iPad portrait and phones: stack */
@media(max-width:900px){
  html body.dpc-product-b .dpc-pb-split{grid-template-columns:1fr;gap:28px}
  html body.dpc-product-b .dpc-pb-gallery,html body.dpc-product-b .dpc-pb-buy{max-width:640px;margin:0 auto!important;width:100%!important}
  html body.dpc-product-b .dpc-pb-pin{display:none!important}
  html body.dpc-product-b .dpc-pb-steps{gap:14px}
  html body.dpc-product-b .dpc-pb-steps li{padding:20px 16px}
  html body.dpc-product-b .dpc-pb-related ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
  html body.dpc-product-b{padding-bottom:78px}
}
@media(max-width:640px){
  html body.dpc-product-b .dpc-pb-steps{grid-template-columns:1fr}
  html body.dpc-product-b .dpc-pb-related ul.products{grid-template-columns:1fr 1fr;gap:14px}
  html body.dpc-product-b .dpc-pb-desc h2,html body.dpc-product-b .dpc-pb-head h2{font-size:28px}
}

/* ===================== shop page search ===================== */
html body.dpc-shop-search .dpc-ss{margin:0 0 8px}
html body.dpc-shop-search .dpc-ss-bar{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:0 0 18px}
html body.dpc-shop-search #dpc-ss-q{flex:1 1 360px;min-width:0;font:400 18px var(--w-body);padding:15px 18px;border:1px solid var(--w-line);border-radius:4px;background:#fff;color:var(--w-ink);box-shadow:var(--w-shadow)}
html body.dpc-shop-search #dpc-ss-q:focus{outline:2px solid var(--w-teal);outline-offset:1px}
html body.dpc-shop-search .dpc-ss-sort{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--w-ink)}
html body.dpc-shop-search .dpc-ss select,html body.dpc-shop-search #dpc-ss-theme-btn{font:400 16px var(--w-body);padding:10px 36px 10px 14px;border:1px solid var(--w-line);border-radius:4px;background-color:#fff;color:var(--w-ink);min-height:46px}
html body.dpc-shop-search .dpc-ss-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 20px}
html body.dpc-shop-search .dpc-ss-types{display:flex;gap:8px;flex-wrap:wrap}
html body.dpc-shop-search .dpc-ss-types button{font:600 15px var(--w-body);min-height:46px;padding:10px 18px;border:1px solid var(--w-line);border-radius:4px;background:#fff;color:var(--w-ink);cursor:pointer}
html body.dpc-shop-search .dpc-ss-types button small{font-weight:400;color:#6b7077;margin-left:6px}
html body.dpc-shop-search .dpc-ss-types button[aria-pressed="true"]{background:var(--w-teal);border-color:var(--w-teal);color:#fff}
html body.dpc-shop-search .dpc-ss-types button[aria-pressed="true"] small{color:#fff}
html body.dpc-shop-search .dpc-ss-theme{position:relative}
html body.dpc-shop-search #dpc-ss-theme-btn{cursor:pointer;display:flex;align-items:center;gap:10px;position:relative;text-align:left}
html body.dpc-shop-search #dpc-ss-theme-btn::after{content:"";position:absolute;right:14px;top:50%;width:7px;height:7px;border:solid var(--w-ink);border-width:0 2px 2px 0;transform:translateY(-70%) rotate(45deg)}
html body.dpc-shop-search #dpc-ss-theme-list{position:absolute;z-index:30;top:calc(100% + 6px);left:0;width:320px;max-height:380px;overflow:auto;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--w-line);border-radius:4px;box-shadow:0 12px 32px rgba(47,51,56,.14)}
html body.dpc-shop-search #dpc-ss-theme-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;cursor:pointer;font-size:16px;border-radius:3px;margin:0}
html body.dpc-shop-search #dpc-ss-theme-list li:hover,html body.dpc-shop-search #dpc-ss-theme-list li[aria-selected="true"]{background:var(--w-sky-soft)}
html body.dpc-shop-search .dpc-swatches{display:inline-flex;gap:4px}
html body.dpc-shop-search .dpc-swatches i{width:16px;height:16px;border-radius:50%;display:block;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
html body.dpc-shop-search .dpc-ss-clear{font:600 15px var(--w-body);background:none;border:0;color:var(--w-teal-deep);text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:10px 4px}
html body.dpc-shop-search .dpc-ss-count{font-size:15px;color:#6b7077;margin:0 0 22px}
html body.dpc-shop-search .dpc-ss-empty{grid-column:1/-1;text-align:center;padding:40px 0;font-size:18px;box-shadow:none!important;background:none!important}
html body.dpc-shop-search .dpc-ss-pages{text-align:center;margin:44px 0 0}
html body.dpc-shop-search .dpc-ss-pages ul{display:inline-flex;gap:8px;list-style:none;margin:0;padding:0;flex-wrap:wrap;justify-content:center}
html body.dpc-shop-search .dpc-ss-pages button{min-width:44px;min-height:44px;padding:10px 14px;border:1px solid var(--w-teal);border-radius:4px;font:600 16px var(--w-body);color:var(--w-ink);background:#fff;cursor:pointer}
html body.dpc-shop-search .dpc-ss-pages button[aria-current="page"]{background:var(--w-teal);color:#fff}
/* when the search is running, it replaces the server-rendered list */
html body.dpc-shop-search.dpc-ss-on .dpc-woo-archive>.woocommerce-result-count,
html body.dpc-shop-search.dpc-ss-on .dpc-woo-archive>.woocommerce-ordering,
html body.dpc-shop-search.dpc-ss-on .dpc-woo-archive>ul.products:not(.dpc-ss-results),
html body.dpc-shop-search.dpc-ss-on .dpc-woo-archive>.woocommerce-pagination:not(.dpc-ss-pages){display:none!important}
@media(max-width:900px){html body.dpc-shop-search .dpc-ss-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  html body.dpc-shop-search .dpc-ss-results{gap:14px}
  html body.dpc-shop-search .dpc-ss-filters>*{flex:1 1 100%}
  html body.dpc-shop-search .dpc-ss-theme #dpc-ss-theme-btn,html body.dpc-shop-search .dpc-ss-sel select{width:100%}
  html body.dpc-shop-search #dpc-ss-theme-list{width:100%}
}
