/* Scoped wholesale archive design. No Elementor homepage or WP admin changes. */
body.post-type-archive-product .site-content,body.tax-product_cat .site-content,body.tax-product_tag .site-content,
body.woocommerce-shop .site-content {max-width:1440px!important;width:min(95%,1440px)!important;margin-inline:auto!important;}
body.tax-product_cat .content-area,body.post-type-archive-product .content-area,body.woocommerce-shop .content-area {width:100%!important;float:none!important;max-width:none!important;}
.woocommerce ul.products {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(15px,2vw,30px)!important;align-items:start;clear:both;}
.woocommerce ul.products::before,.woocommerce ul.products::after {display:none!important;}
.woocommerce ul.products li.product {float:none!important;width:auto!important;max-width:none!important;margin:0!important;min-width:0;padding:0 0 12px!important;background:#fff;}
.woocommerce ul.products li.product a img {width:100%!important;aspect-ratio:3/4;object-fit:cover!important;display:block;margin:0 0 12px!important;background:#f1eeeb;border-radius:3px;}
.woocommerce ul.products li.product .woocommerce-loop-product__title {font-family:inherit!important;font-size:clamp(14px,1.2vw,17px)!important;font-weight:600!important;line-height:1.35!important;color:#1c1c1c!important;padding:4px 0!important;}
.woocommerce ul.products li.product .button {margin-top:9px!important;border:1px solid #1a1b1d!important;background:#1a1b1d!important;color:#fff!important;border-radius:2px!important;padding:11px 14px!important;font-size:12px!important;font-weight:600!important;letter-spacing:.02em!important;text-decoration:none!important;}
.woocommerce ul.products li.product .button:hover {background:#fff!important;color:#1a1b1d!important;}
.woocommerce .woocommerce-result-count {color:#626262;font-size:13px;}
.woocommerce .woocommerce-ordering select {padding:9px 12px;border:1px solid #d6d6d6;border-radius:2px;background:#fff;}
.woocommerce nav.woocommerce-pagination ul {border:0;display:flex;justify-content:center;gap:7px;}
.woocommerce nav.woocommerce-pagination ul li {border:0;}
.woocommerce nav.woocommerce-pagination a,.woocommerce nav.woocommerce-pagination span {padding:10px 14px!important;border:1px solid #e5e5e5!important;}
.dlw-pack {background:#f8f5f1;border:1px solid #e9e2d9;border-radius:4px;padding:24px;margin:26px 0;max-width:640px;}
.dlw-pack h3 {font-size:23px;margin:0 0 5px;}.dlw-small{font-size:12px;color:#777;line-height:1.55;}
.dlw-sizes{display:grid;grid-template-columns:repeat(auto-fit,minmax(62px,1fr));gap:8px;margin:16px 0;}
.dlw-sizes>div {border:1px solid #dbd3ca;background:white;display:flex;flex-direction:column;text-align:center;padding:9px 5px;gap:3px;}
.dlw-sizes strong {font-size:20px}.dlw-sizes small {font-size:11px;color:#767676}
.dlw-enquiry {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px;}
.dlw-enquiry label {display:flex;flex-direction:column;gap:6px;font-size:13px;}
.dlw-enquiry input {width:100%;max-width:100%;min-height:43px;padding:9px;border:1px solid #c9c4bd;border-radius:2px;background:white;}
.dlw-enquiry button {background:#17191c;color:white;border:0;border-radius:2px;padding:13px 17px;font-weight:600;cursor:pointer;}
.dlw-enquiry button,.dlw-enquiry>.dlw-small {grid-column:1/-1;}
.dlw-honey {display:none!important;}.dlw-notice {color:#216c37;font-weight:600;}.dlw-error{color:#aa2424;font-weight:600;}
@media(max-width:980px){.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:700px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important;}.dlw-enquiry {grid-template-columns:1fr;}.woocommerce ul.products li.product .button {font-size:11px!important;padding:9px!important;}}

/* V1.1: Rebel Drapes parent is a category navigation page. */
.dlw-brand-categories{width:min(100%,1280px);margin:24px auto 60px;padding:12px clamp(12px,2vw,28px);box-sizing:border-box;}
.dlw-brand-categories .dlw-eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:700;color:#987451;margin:0 0 12px;}
.dlw-brand-categories h2{font-size:clamp(28px,3.4vw,46px);color:#16191c;margin:0 0 8px;line-height:1.12;}
.dlw-brand-intro{font-size:15px;color:#676767;margin-bottom:28px;}
.dlw-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2vw,26px);}
.dlw-category-card{display:block;text-decoration:none!important;color:#1b1b1b!important;background:#f5f2ed;overflow:hidden;}
.dlw-category-photo{aspect-ratio:4 / 5;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e8e1d8,#cbb9aa);overflow:hidden;}
.dlw-category-photo img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease;}
.dlw-category-photo span{font:400 clamp(64px,8vw,115px)/1 Georgia,serif;color:rgba(255,255,255,.65);}
.dlw-category-card:hover .dlw-category-photo img{transform:scale(1.035);}
.dlw-category-info{padding:17px 17px 20px;background:#fff;border:1px solid #eee6de;border-top:0;}
.dlw-category-info h3{font-size:19px;line-height:1.3;color:#16191c;margin:0 0 8px;}
.dlw-category-info span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:#8d5f3c;}
body.tax-product_cat:has(.dlw-child-categories) .woocommerce-result-count,body.tax-product_cat:has(.dlw-child-categories) .woocommerce-ordering,body.tax-product_cat:has(.dlw-child-categories) nav.woocommerce-pagination{display:none!important;}
@media(max-width:850px){.dlw-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:520px){.dlw-brand-categories{padding:8px 14px}.dlw-category-grid{gap:12px}.dlw-category-info{padding:12px}.dlw-category-info h3{font-size:15px}.dlw-category-info span{font-size:10px}}

/* V1.2 - single-product metadata and premium photo gallery. */
body.single-product .product_meta {display:none!important;} /* Backstop for themes placing the default meta elsewhere. */
body.single-product .dlw-sku-only{padding:12px 0;margin:12px 0 20px;border-top:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8;color:#343434;font-size:13px;letter-spacing:.02em;overflow-wrap:anywhere;}
body.single-product .dlw-sku-only span{color:#777;font-weight:500;margin-right:8px;}
body.single-product .dlw-sku-only strong{font-weight:600;}
body.single-product .woocommerce-product-gallery{position:relative;overflow:visible!important;margin-bottom:25px;}
body.single-product .woocommerce-product-gallery .flex-viewport{border-radius:5px;background:#f5f4f1;}
body.single-product .woocommerce-product-gallery__wrapper{margin:0!important;}
body.single-product .woocommerce-product-gallery__image{background:#f6f4f1;text-align:center;}
body.single-product .woocommerce-product-gallery__image img{display:block!important;width:100%!important;height:auto!important;max-height:min(77vh,760px)!important;object-fit:contain!important;object-position:center!important;margin:auto!important;}
body.single-product .woocommerce-product-gallery__trigger{z-index:4!important;background:#fff!important;box-shadow:0 2px 12px #0002;}
body.single-product .flex-control-thumbs{display:flex!important;gap:9px!important;flex-wrap:wrap!important;margin:12px 0 0!important;padding:0!important;list-style:none!important;}
body.single-product .flex-control-thumbs li{width:calc((100% - 36px)/5)!important;float:none!important;margin:0!important;list-style:none!important;}
body.single-product .flex-control-thumbs img{aspect-ratio:3/4!important;width:100%!important;height:auto!important;object-fit:cover!important;background:#f1efeb;border:2px solid transparent!important;border-radius:3px;opacity:.70!important;cursor:pointer;transition:opacity .2s,border-color .2s;}
body.single-product .flex-control-thumbs img.flex-active,body.single-product .flex-control-thumbs img:hover{opacity:1!important;border-color:#191919!important;}
body.single-product .dlw-gallery-btn{position:absolute;top:38%;z-index:5;transform:translateY(-50%);width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #ddd;background:#fff;color:#171717;font-size:24px;line-height:1;box-shadow:0 3px 14px #0002;cursor:pointer;transition:transform .2s,background .2s;}
body.single-product .dlw-gallery-btn:hover{background:#161616;color:#fff;}
body.single-product .dlw-gallery-btn:focus-visible{outline:3px solid #333;outline-offset:2px;}
body.single-product .dlw-gallery-prev{left:12px;}
body.single-product .dlw-gallery-next{right:12px;}
body.single-product .dlw-gallery-btn[hidden]{display:none!important;}
body.single-product .dlw-gallery-hint{display:block;color:#777;font-size:12px;margin:8px 0 4px;}
@media(max-width:650px){body.single-product .dlw-gallery-btn{width:36px;height:36px;font-size:21px;}body.single-product .flex-control-thumbs{gap:6px!important;}body.single-product .flex-control-thumbs li{width:calc((100% - 24px)/5)!important;}body.single-product .woocommerce-product-gallery__image img{max-height:65vh!important;}}

/* V1.5: Additional Information size-pack line */
.woocommerce table.shop_attributes th {vertical-align:top;}
.woocommerce table.shop_attributes tr:has(th) td strong {font-weight:650;}

/* V1.6 — Continuous product loading. The paging nav remains a non-JS/error fallback. */
.dlw-infinite-sentinel{height:2px;clear:both;}
.dlw-infinite-status{text-align:center;color:#555;font-size:13px;padding:16px 12px 22px;min-height:44px;}
.dlw-infinite-fallback{display:inline-block;padding:10px 18px;border:1px solid #bbb;color:#222;text-decoration:none;}
.woocommerce nav.woocommerce-pagination[hidden]{display:none!important;}
