.pbd-wsd-layout{box-sizing:border-box;width:100%;padding:0;font-family:var(--pbd-body-font,inherit);color:var(--pbd-text,#222);font-size:var(--pbd-body-size,15px)}
.pbd-wsd-layout *{box-sizing:border-box}
.pbd-wsd-grid{display:flex;flex-wrap:wrap;gap:var(--pbd-gap,24px);width:100%}
.pbd-wsd-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;background:var(--pbd-card-bg,#fff);border:1px solid var(--pbd-border,#e5e7eb);border-radius:var(--pbd-card-radius,10px);box-shadow:var(--pbd-shadow,0 6px 20px rgba(0,0,0,.08));transition:transform .22s ease,box-shadow .22s ease}
.pbd-wsd-card:hover{transform:translateY(-4px)}
.pbd-wsd-image-wrap{position:relative;background:var(--pbd-image-bg,#f7f7f7);overflow:hidden}
.pbd-wsd-image-link{display:block;width:100%;overflow:hidden;border-radius:var(--pbd-image-radius,8px);background:var(--pbd-image-bg,#f7f7f7)}
.pbd-wsd-image-link img{display:block;width:100%;height:100%;margin:0;transition:transform .3s ease}
.pbd-wsd-badge{position:absolute;z-index:2;top:12px;left:12px;display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:5px 10px;background:var(--pbd-accent,#d83b62);color:#fff;border-radius:999px;font-size:12px;font-weight:700;line-height:1;text-transform:uppercase;letter-spacing:.04em}
.pbd-wsd-content{display:flex;flex:1;flex-direction:column;align-items:inherit;padding:var(--pbd-padding,18px)}
.pbd-wsd-category{margin:0 0 7px;color:var(--pbd-muted,#6b7280);font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.pbd-wsd-title{margin:0 0 9px;font-family:var(--pbd-heading-font,inherit);font-size:var(--pbd-title-size,20px);font-weight:700;line-height:1.25;color:var(--pbd-text,#222)}
.pbd-wsd-title a{color:inherit;text-decoration:none}
.pbd-wsd-title a:hover{color:var(--pbd-accent,#d83b62)}
.pbd-wsd-price{margin:0 0 10px;color:var(--pbd-accent,#d83b62);font-size:var(--pbd-price-size,18px);font-weight:700;line-height:1.3}
.pbd-wsd-price del{opacity:.55;font-weight:500}.pbd-wsd-price ins{text-decoration:none}
.pbd-wsd-description{margin:0 0 12px;color:var(--pbd-muted,#6b7280);font-size:var(--pbd-body-size,15px);line-height:1.55}
.pbd-wsd-sku,.pbd-wsd-stock{margin:0 0 10px;color:var(--pbd-muted,#6b7280);font-size:13px;line-height:1.4}
.pbd-wsd-sku span{font-weight:700;color:var(--pbd-text,#222)}
.pbd-wsd-rating{margin:0 0 9px}.pbd-wsd-rating .star-rating{float:none;margin:0;display:inline-block}
.pbd-wsd-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:8px}
.pbd-wsd-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 17px;border:1px solid transparent;border-radius:var(--pbd-button-radius,6px);font-family:var(--pbd-button-custom-font,var(--pbd-button-font,inherit));font-size:var(--pbd-button-custom-size,var(--pbd-button-size,14px));font-weight:700;line-height:1.15;text-align:center;text-decoration:none!important;cursor:pointer;transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}
.pbd-wsd-button:hover{transform:translateY(-1px)}
.pbd-wsd-button-primary{background:var(--pbd-button-custom-bg,var(--pbd-button-bg,var(--pbd-primary,#111)));border-color:var(--pbd-button-custom-border,var(--pbd-button-border,var(--pbd-button-custom-bg,var(--pbd-button-bg,var(--pbd-primary,#111)))));color:var(--pbd-button-custom-color,var(--pbd-button-text-color,#fff))!important}
.pbd-wsd-button-primary:hover{background:var(--pbd-button-custom-bg,var(--pbd-button-bg,var(--pbd-primary-hover,#333)));border-color:var(--pbd-button-custom-border,var(--pbd-button-border,var(--pbd-button-custom-bg,var(--pbd-button-bg,var(--pbd-primary-hover,#333)))));color:var(--pbd-button-custom-color,var(--pbd-button-text-color,#fff))!important}
.pbd-wsd-button-secondary{background:var(--pbd-button-custom-bg,var(--pbd-button-bg,var(--pbd-secondary,#fff)));border-color:var(--pbd-button-custom-border,var(--pbd-button-border,var(--pbd-border,#e5e7eb)));color:var(--pbd-button-custom-color,var(--pbd-button-text-color,var(--pbd-text,#222)))!important}
.pbd-wsd-button-secondary:hover{background:var(--pbd-button-custom-bg,var(--pbd-button-bg,var(--pbd-secondary-hover,#f3f3f3)));border-color:var(--pbd-button-custom-border,var(--pbd-button-border,var(--pbd-border,#e5e7eb)));color:var(--pbd-button-custom-color,var(--pbd-button-text-color,var(--pbd-text,#222)))!important}
.pbd-wsd-button-outline{background:var(--pbd-button-custom-bg,var(--pbd-button-bg,transparent));border-color:var(--pbd-button-custom-border,var(--pbd-button-border,var(--pbd-primary,#111)));color:var(--pbd-button-custom-color,var(--pbd-button-text-color,var(--pbd-primary,#111)))!important}
.pbd-wsd-button-outline:hover{background:var(--pbd-button-custom-bg,var(--pbd-button-bg,var(--pbd-primary,#111)));border-color:var(--pbd-button-custom-border,var(--pbd-button-border,var(--pbd-primary,#111)));color:var(--pbd-button-custom-color,var(--pbd-button-text-color,#fff))!important}
.pbd-wsd-button-text{min-height:auto;padding:6px 0;border-width:var(--pbd-button-custom-border-width,0);border-style:solid;border-color:var(--pbd-button-custom-border,var(--pbd-button-border,transparent));border-radius:0;background:var(--pbd-button-custom-bg,var(--pbd-button-bg,transparent));color:var(--pbd-button-custom-color,var(--pbd-button-text-color,var(--pbd-primary,#111)))!important;text-decoration:underline!important;text-underline-offset:3px}
.pbd-wsd-button-text:hover{background:var(--pbd-button-custom-bg,var(--pbd-button-bg,transparent));border-color:var(--pbd-button-custom-border,var(--pbd-button-border,transparent));color:var(--pbd-button-custom-color,var(--pbd-button-text-color,var(--pbd-primary-hover,#333)))!important}
.pbd-wsd-button.loading{opacity:.65;pointer-events:none}.pbd-wsd-button.added:after{margin-left:7px;content:"✓"}
.pbd-wsd-empty,.pbd-wsd-message{padding:18px;border:1px dashed var(--pbd-border,#d1d5db);border-radius:8px;background:#fff;color:var(--pbd-muted,#6b7280);text-align:center}
.pbd-wsd-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:28px}
.pbd-wsd-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border:1px solid var(--pbd-border,#e5e7eb);border-radius:var(--pbd-button-radius,6px);background:var(--pbd-card-bg,#fff);color:var(--pbd-text,#222);text-decoration:none}
.pbd-wsd-pagination .current,.pbd-wsd-pagination .page-numbers:hover{background:var(--pbd-primary,#111);border-color:var(--pbd-primary,#111);color:#fff}
.pbd-woo-layout[data-layout-id]:empty{min-height:120px;position:relative}
.pbd-woo-layout[data-layout-id]:empty:before{content:"";position:absolute;top:45px;left:50%;width:28px;height:28px;margin-left:-14px;border:3px solid #ddd;border-top-color:#555;border-radius:50%;animation:pbdWsdSpin .8s linear infinite}
@keyframes pbdWsdSpin{to{transform:rotate(360deg)}}
@media(max-width:620px){.pbd-wsd-buttons{flex-direction:column}.pbd-wsd-button{width:100%}}
.pbd-wsd-section-header{margin:0 0 var(--pbd-section-spacing,28px)}
.pbd-wsd-section-eyebrow{margin:0 0 8px;color:var(--pbd-accent,#d83b62);font-family:var(--pbd-heading-font,inherit);font-size:13px;font-weight:700;line-height:1.3;letter-spacing:.08em;text-transform:uppercase}
.pbd-wsd-section-heading{margin:0;color:var(--pbd-text,#222);font-family:var(--pbd-heading-font,inherit);font-size:var(--pbd-section-heading-size,36px);font-weight:700;line-height:1.15}
.pbd-wsd-section-text{max-width:780px;margin:12px 0 0;color:var(--pbd-muted,#6b7280);font-size:var(--pbd-section-text-size,16px);line-height:1.65}
.pbd-wsd-section-header-center .pbd-wsd-section-text{margin-left:auto;margin-right:auto}
.pbd-wsd-section-header-right .pbd-wsd-section-text{margin-left:auto}
.pbd-wsd-sort-form{display:flex;justify-content:flex-end;margin:0 0 20px}
.pbd-wsd-sort-form label{display:flex;align-items:center;gap:10px;color:var(--pbd-muted,#6b7280);font-size:14px;font-weight:600}
.pbd-wsd-sort-select{min-width:190px;min-height:42px;margin:0;padding:8px 38px 8px 12px;border:1px solid var(--pbd-border,#e5e7eb);border-radius:var(--pbd-button-radius,6px);background-color:var(--pbd-card-bg,#fff);color:var(--pbd-text,#222);font:inherit}
.pbd-wsd-sort-select:focus{outline:2px solid var(--pbd-accent,#d83b62);outline-offset:2px}
.pbd-wsd-sort-submit{min-height:42px;margin-left:8px;padding:8px 14px;border:0;border-radius:var(--pbd-button-radius,6px);background:var(--pbd-primary,#111);color:#fff}
.pbd-wsd-category-count{margin:0 0 11px;color:var(--pbd-muted,#6b7280);font-size:13px;font-weight:600;line-height:1.4}
@media(max-width:620px){.pbd-wsd-section-heading{font-size:clamp(24px,var(--pbd-section-heading-size,36px),42px)}.pbd-wsd-sort-form{justify-content:stretch}.pbd-wsd-sort-form label{width:100%;flex-direction:column;align-items:stretch}.pbd-wsd-sort-select{width:100%}}

/*
 * Responsive child-category grid.
 * Only category-only WooCommerce lists are converted to a two-column grid.
 * Product lists remain untouched.
 */
@media (max-width:980px) {
  body.woocommerce-page ul.products.rosewood-subcategory-grid,
  body.post-type-archive-product ul.products.rosewood-subcategory-grid,
  body.tax-product_cat ul.products.rosewood-subcategory-grid,
  body.woocommerce-page ul.products.pbd-subcategory-grid,
  body.post-type-archive-product ul.products.pbd-subcategory-grid,
  body.tax-product_cat ul.products.pbd-subcategory-grid,
  body.woocommerce-page ul.products:has(> li.product-category):not(:has(> li.product:not(.product-category))),
  body.post-type-archive-product ul.products:has(> li.product-category):not(:has(> li.product:not(.product-category))),
  body.tax-product_cat ul.products:has(> li.product-category):not(:has(> li.product:not(.product-category))) {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-auto-flow:row !important;
    grid-auto-rows:auto !important;
    align-items:stretch !important;
    justify-items:stretch !important;
    justify-content:stretch !important;
  }

  body.woocommerce-page ul.products.rosewood-subcategory-grid > li.product-category,
  body.post-type-archive-product ul.products.rosewood-subcategory-grid > li.product-category,
  body.tax-product_cat ul.products.rosewood-subcategory-grid > li.product-category,
  body.woocommerce-page ul.products.pbd-subcategory-grid > li.product-category,
  body.post-type-archive-product ul.products.pbd-subcategory-grid > li.product-category,
  body.tax-product_cat ul.products.pbd-subcategory-grid > li.product-category,
  body.woocommerce-page ul.products:has(> li.product-category):not(:has(> li.product:not(.product-category))) > li.product-category,
  body.post-type-archive-product ul.products:has(> li.product-category):not(:has(> li.product:not(.product-category))) > li.product-category,
  body.tax-product_cat ul.products:has(> li.product-category):not(:has(> li.product:not(.product-category))) > li.product-category {
    box-sizing:border-box !important;
    float:none !important;
    clear:none !important;
    position:relative !important;
    inset:auto !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
    display:block !important;
    min-width:0 !important;
    flex:none !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    grid-column:auto !important;
    grid-row:auto !important;
    order:0 !important;
    justify-self:stretch !important;
    align-self:stretch !important;
  }

  body.woocommerce-page ul.products.rosewood-subcategory-grid > li.product-category:nth-of-type(odd),
  body.post-type-archive-product ul.products.rosewood-subcategory-grid > li.product-category:nth-of-type(odd),
  body.tax-product_cat ul.products.rosewood-subcategory-grid > li.product-category:nth-of-type(odd),
  body.woocommerce-page ul.products.pbd-subcategory-grid > li.product-category:nth-of-type(odd),
  body.post-type-archive-product ul.products.pbd-subcategory-grid > li.product-category:nth-of-type(odd),
  body.tax-product_cat ul.products.pbd-subcategory-grid > li.product-category:nth-of-type(odd),
  body.woocommerce-page ul.products:has(> li.product-category):not(:has(> li.product:not(.product-category))) > li.product-category:nth-of-type(odd),
  body.post-type-archive-product ul.products:has(> li.product-category):not(:has(> li.product:not(.product-category))) > li.product-category:nth-of-type(odd),
  body.tax-product_cat ul.products:has(> li.product-category):not(:has(> li.product:not(.product-category))) > li.product-category:nth-of-type(odd) {
    grid-column:1 !important;
  }

  body.woocommerce-page ul.products.rosewood-subcategory-grid > li.product-category:nth-of-type(even),
  body.post-type-archive-product ul.products.rosewood-subcategory-grid > li.product-category:nth-of-type(even),
  body.tax-product_cat ul.products.rosewood-subcategory-grid > li.product-category:nth-of-type(even),
  body.woocommerce-page ul.products.pbd-subcategory-grid > li.product-category:nth-of-type(even),
  body.post-type-archive-product ul.products.pbd-subcategory-grid > li.product-category:nth-of-type(even),
  body.tax-product_cat ul.products.pbd-subcategory-grid > li.product-category:nth-of-type(even),
  body.woocommerce-page ul.products:has(> li.product-category):not(:has(> li.product:not(.product-category))) > li.product-category:nth-of-type(even),
  body.post-type-archive-product ul.products:has(> li.product-category):not(:has(> li.product:not(.product-category))) > li.product-category:nth-of-type(even),
  body.tax-product_cat ul.products:has(> li.product-category):not(:has(> li.product:not(.product-category))) > li.product-category:nth-of-type(even) {
    grid-column:2 !important;
  }
}

