/* A shared collection structure with a distinct merchandising layout for each category. */
.dh-collection-nav { display:flex; align-items:center; gap:24px; padding-block:22px 10px; }
.dh-collection-nav>span { flex:none; font-size:14px; font-weight:600; color:#193b64; }
.dh-collection-nav>div { display:flex; gap:8px; overflow-x:auto; min-width:0; padding:4px 2px 10px; scrollbar-width:thin; }
.dh-collection-nav a { display:flex; align-items:center; flex:none; padding:10px 16px; min-height:42px; border:1px solid #b8cce4; border-radius:24px; background:#ffffffb3; color:#285b8c; font-size:13px; white-space:nowrap; }
.dh-collection-nav a:hover { background:#193b64; border-color:#193b64; color:#fff; }
body.deep-theme #main-content .dh-storefront .dh-category-collection { padding-block:22px; }
.dh-category-collection { --collection-accent:#285b8c; --collection-tint:#eef4fd; }
.dh-collection-showcase { --collection-accent:#866128; --collection-tint:#fff7e8; }
.dh-collection-list { --collection-accent:#326857; --collection-tint:#edf6f1; }
.dh-collection-rail { --collection-accent:#71578c; --collection-tint:#f4effa; }
.dh-collection-editorial { --collection-accent:#2a6a7b; --collection-tint:#edf6f8; }
.dh-collection-mosaic { --collection-accent:#94583d; --collection-tint:#fff2eb; }
.dh-collection-shell { padding:28px; background:#ffffffb8; border:1px solid #d2dfed; border-radius:22px; }
body.deep-theme #main-content .dh-collection-header { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:0 0 24px; margin-bottom:24px; border-bottom:1px solid #dbe5ef; background:transparent; }
.dh-collection-intro { min-width:0; }
.dh-collection-eyebrow { display:block; margin-bottom:8px; color:var(--collection-accent); font-size:13px; font-weight:650; }
.dh-collection-header h2 { margin:0; color:#193b64; font-size:clamp(24px,2.5vw,32px); line-height:1.2; font-weight:650; letter-spacing:-.8px; }
.dh-collection-header p { max-width:600px; margin:10px 0 0; color:#5c7088; font-size:14px; line-height:1.6; }
.dh-collection-view { display:inline-flex; justify-content:center; align-items:center; flex:none; padding:11px 16px; min-height:44px; border:1px solid #b9cce0; border-radius:8px; color:#285b8c; background:#fff; font-size:13px; font-weight:600; }
.dh-collection-view:hover { color:#193b64; border-color:#285b8c; background:#f2f6fc; }
.dh-collection-content { min-width:0; }
body.deep-theme #main-content .dh-category-collection .dh-product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-flow:row; grid-auto-columns:auto; gap:16px; padding:0; overflow:visible; align-items:stretch; }
body.deep-theme #main-content .dh-category-collection .dh-product-card { grid-column:auto; grid-row:auto; display:flex; flex-direction:column; width:auto; min-width:0; border:1px solid #dbe4ee; border-radius:12px; transform:none; box-shadow:none; background:#fff; }
body.deep-theme #main-content .dh-category-collection .dh-product-card .dh-product-image { flex:none; width:100%; height:190px; min-height:0; margin:0; border-radius:12px 12px 0 0; background:var(--collection-tint); }
body.deep-theme #main-content .dh-category-collection .dh-product-card .dh-product-image img { padding:18px; }
body.deep-theme #main-content .dh-category-collection .dh-product-body { width:auto; min-width:0; padding:16px; }
.dh-category-collection .dh-product-body>small { display:none; }
body.deep-theme #main-content .dh-category-collection .dh-product-body h3 { font-size:14px; min-height:3em; line-height:1.5; margin:0 0 12px; }
.dh-category-collection .dh-product-price { padding-bottom:14px; }
.dh-category-collection .dh-product-price strong { font-size:21px; }
body.deep-theme .dh-category-collection .dh-product-actions>.deep-button { flex-basis:100%; font-size:12px; }
body.deep-theme .dh-category-collection .dh-product-actions>.ai-cart-qty-control { flex-basis:100%; }
.dh-collection-feature { display:flex; flex-direction:column; justify-content:space-between; gap:24px; min-width:0; padding:24px; border-radius:14px; background:var(--collection-tint); color:#193b64; }
.dh-collection-feature-copy { display:flex; flex-direction:column; gap:8px; }
.dh-collection-feature strong { font-size:27px; font-weight:600; line-height:1.2; }
.dh-collection-feature-copy>span { color:var(--collection-accent); font-size:13px; }
.dh-collection-feature img { width:100%; max-height:280px; min-height:0; object-fit:contain; mix-blend-mode:multiply; }
.dh-collection-feature-link { font-size:13px; font-weight:600; text-decoration:underline; text-underline-offset:5px; }
body.deep-theme #main-content .dh-collection-gallery .dh-product-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
body.deep-theme #main-content .dh-collection-gallery .dh-product-card .dh-product-image { height:170px; }
body.deep-theme #main-content .dh-collection-gallery .dh-product-body { padding:14px; }
.dh-collection-showcase .dh-collection-content { display:grid; grid-template-columns:220px minmax(0,1fr); gap:20px; align-items:start; }
.dh-collection-showcase .dh-collection-feature { position:sticky; top:210px; min-height:480px; }
body.deep-theme #main-content .dh-collection-showcase .dh-product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
body.deep-theme #main-content .dh-collection-list .dh-product-grid { grid-template-columns:1fr; gap:12px; }
body.deep-theme #main-content .dh-collection-list .dh-product-card { flex-direction:row; }
body.deep-theme #main-content .dh-collection-list .dh-product-card .dh-product-image { width:150px; height:auto; min-height:150px; border-radius:12px 0 0 12px; }
body.deep-theme #main-content .dh-collection-list .dh-product-body { display:grid; grid-template-columns:minmax(0,1fr) 150px 160px; align-items:center; gap:24px; flex:1; padding:20px 24px; }
body.deep-theme #main-content .dh-collection-list .dh-product-body h3 { min-height:0; margin:0; font-size:16px; }
.dh-collection-list .dh-product-options:empty { display:none; }
.dh-collection-list .dh-product-price { margin:0; padding:0; }
.dh-collection-list .dh-product-actions { margin:0; }
.dh-collection-list .product-wishlist-icon { top:10px; right:10px; width:32px; height:32px; padding:7px; }
body.deep-theme #main-content .dh-collection-list .dh-product-body { padding-right:56px; }
body.deep-theme #main-content .dh-collection-rail .dh-product-grid { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:250px; gap:16px; overflow-x:auto; padding:2px 2px 18px; scroll-snap-type:x mandatory; scrollbar-width:thin; scrollbar-color:#b9a7cf #eee8f5; }
.dh-collection-rail .dh-product-card { scroll-snap-align:start; }
.dh-collection-editorial .dh-collection-content { display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:20px; align-items:stretch; }
.dh-collection-editorial .dh-collection-feature { grid-column:2; grid-row:1; }
body.deep-theme #main-content .dh-collection-editorial .dh-product-grid { grid-column:1; grid-row:1; grid-template-columns:repeat(3,minmax(0,1fr)); }
.dh-collection-editorial .dh-collection-feature img { border-radius:50% 50% 12px 12px; }
body.deep-theme #main-content .dh-collection-mosaic .dh-product-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
body.deep-theme #main-content .dh-collection-mosaic .dh-product-card { grid-column:span 2; }
body.deep-theme #main-content .dh-collection-mosaic .dh-product-card:nth-child(-n+2) { grid-column:span 3; }
body.deep-theme #main-content .dh-collection-mosaic .dh-product-card:nth-child(-n+2) .dh-product-image { height:240px; }
.dh-collection-nav a:focus-visible,.dh-collection-feature:focus-visible,.dh-collection-view:focus-visible,.dh-category-collection [tabindex]:focus-visible { outline:3px solid #285b8c; outline-offset:4px; }
@media(max-width:1199px) and (min-width:768px) {
    body.deep-theme #main-content .dh-collection-gallery .dh-product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .dh-collection-showcase .dh-collection-content,.dh-collection-editorial .dh-collection-content { grid-template-columns:1fr; }
    .dh-collection-showcase .dh-collection-feature,.dh-collection-editorial .dh-collection-feature { display:none; }
    body.deep-theme #main-content .dh-collection-editorial .dh-product-grid { grid-column:auto; grid-row:auto; }
    body.deep-theme #main-content .dh-collection-list .dh-product-body { grid-template-columns:minmax(0,1fr) 130px; gap:14px; }
    .dh-collection-list .dh-product-actions { grid-column:2; grid-row:1/3; }
}
@media(max-width:767px) {
    .dh-collection-nav { display:block; padding-top:16px; }
    .dh-collection-nav>span { display:block; margin-bottom:10px; }
    .dh-collection-nav a { min-height:40px; font-size:12px; padding:9px 14px; }
    body.deep-theme #main-content .dh-storefront .dh-category-collection { padding-block:12px; }
    .dh-collection-shell { padding:16px 12px; border-radius:16px; }
    body.deep-theme #main-content .dh-collection-header { align-items:flex-start; flex-direction:column; gap:14px; padding-bottom:18px; margin-bottom:18px; }
    .dh-collection-eyebrow { font-size:12px; margin-bottom:7px; }
    .dh-collection-header h2 { font-size:24px; max-width:280px; letter-spacing:-.5px; }
    .dh-collection-header p { font-size:13px; line-height:1.6; margin-top:9px; }
    .dh-collection-view { min-height:40px; font-size:12px; padding:9px 13px; }
    .dh-collection-showcase .dh-collection-content,.dh-collection-editorial .dh-collection-content { display:block; }
    .dh-collection-feature { display:none; }
    body.deep-theme #main-content .dh-category-collection .dh-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-flow:row; grid-auto-columns:auto; gap:10px; }
    body.deep-theme #main-content .dh-category-collection .dh-product-card { grid-column:auto; grid-row:auto; }
    body.deep-theme #main-content .dh-category-collection .dh-product-card .dh-product-image { height:145px; }
    body.deep-theme #main-content .dh-category-collection .dh-product-card .dh-product-image img { padding:12px; }
    body.deep-theme #main-content .dh-category-collection .dh-product-body { padding:11px; }
    body.deep-theme #main-content .dh-category-collection .dh-product-body h3 { font-size:13px; }
    .dh-category-collection .dh-product-price strong { font-size:18px; }
    .dh-category-collection .dh-product-price del { font-size:10px; }
    body.deep-theme .dh-category-collection .dh-product-actions>.deep-button { font-size:11px; min-height:40px; padding:8px 4px; }
    .dh-category-collection .product-wishlist-icon { width:32px; height:32px; top:7px; right:7px; padding:7px; }
    .dh-category-collection .dh-product-image>span:not(.dh-product-placeholder) { left:7px; top:8px; font-size:9px; padding:4px; }
    body.deep-theme #main-content .dh-collection-list .dh-product-grid { grid-template-columns:1fr; }
    body.deep-theme #main-content .dh-collection-list .dh-product-card .dh-product-image { width:32%; height:auto; min-height:190px; }
    body.deep-theme #main-content .dh-collection-list .dh-product-body { display:flex; gap:0; padding:16px 12px; }
    body.deep-theme #main-content .dh-collection-list .dh-product-body h3 { font-size:14px; margin:0 20px 12px 0; }
    .dh-collection-list .dh-product-price { margin-top:auto; padding-bottom:12px; }
    .dh-collection-list .dh-product-actions { width:100%; }
    body.deep-theme #main-content .dh-collection-rail .dh-product-grid { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:78%; overflow-x:auto; padding-bottom:16px; }
    body.deep-theme #main-content .dh-collection-rail .dh-product-card .dh-product-image { height:190px; }
    body.deep-theme #main-content .dh-collection-mosaic .dh-product-card:first-child { grid-column:1/-1; }
    body.deep-theme #main-content .dh-collection-mosaic .dh-product-card:first-child .dh-product-image { height:200px; }
}

@media(min-width:1200px) { body.deep-theme #main-content .dh-collection-list .dh-product-body { padding-right:60px; } }
@media(max-width:767px) { body.deep-theme #main-content .dh-collection-list .dh-product-body h3 { margin-right:30px; } }

body.deep-theme #main-content .dh-category-collection .dh-product-image>.dh-product-placeholder[hidden] { display:none; }
body.deep-theme #main-content .dh-category-collection .dh-product-image>.dh-product-placeholder { background:transparent; color:#a6b8ca; }
.dh-category-collection .dh-product-placeholder svg { width:44px; height:44px; }
.dh-collection-list .dh-product-options { display:none; }
@media(min-width:1200px) {
    body.deep-theme #main-content .dh-collection-list .dh-product-body h3 { grid-column:1; grid-row:1; }
    .dh-collection-list .dh-product-price { grid-column:2; grid-row:1; }
    .dh-collection-list .dh-product-actions { grid-column:3; grid-row:1; }
}
@media(min-width:768px) and (max-width:1199px) {
    .dh-collection-list .dh-product-price { grid-column:1; grid-row:2; }
}
@media(max-width:767px) {
    body.deep-theme #main-content .dh-collection-list .dh-product-body { display:flex; flex-direction:column; align-items:stretch; gap:0; }
    body.deep-theme #main-content .dh-collection-list .dh-product-body h3 { margin-bottom:12px; }
    .dh-collection-list .dh-product-price { margin-top:auto; padding-bottom:12px; }
}

/* Electricals, paints and hardware use regular product rows. */
body.deep-theme #main-content :is(.dh-collection-gallery,.dh-collection-rail,.dh-collection-list) .dh-product-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-flow:row; grid-auto-columns:auto; overflow:visible; padding:0;
}
body.deep-theme #main-content .dh-collection-list .dh-product-card { flex-direction:column; }
body.deep-theme #main-content .dh-collection-list .dh-product-card .dh-product-image { width:100%; height:190px; min-height:0; border-radius:12px 12px 0 0; }
body.deep-theme #main-content .dh-collection-list .dh-product-body { display:flex; flex-direction:column; align-items:stretch; gap:0; padding:16px; }
body.deep-theme #main-content .dh-collection-list .dh-product-body h3 { min-height:3em; margin:0 0 12px; font-size:14px; }
.dh-collection-list .dh-product-price { margin-top:auto; padding-bottom:14px; }
.dh-collection-list .dh-product-actions { width:100%; }
@media(min-width:992px) {
    body.deep-theme #main-content :is(.dh-collection-gallery,.dh-collection-rail) .dh-product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
    body.deep-theme #main-content .dh-collection-list .dh-product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
    body.deep-theme #main-content .dh-collection-list .dh-product-card .dh-product-image { height:210px; }
}
@media(max-width:767px) {
    body.deep-theme #main-content .dh-collection-list .dh-product-card .dh-product-image,
    body.deep-theme #main-content .dh-collection-rail .dh-product-card .dh-product-image { height:145px; }
    body.deep-theme #main-content .dh-collection-list .dh-product-body { padding:11px; }
    body.deep-theme #main-content .dh-collection-list .dh-product-body h3 { font-size:13px; }
}
