/* v4.4.0-rc136 – mobile-first product-category archives.
   Category-only; desktop, shop, tags, brands, products and checkout unchanged. */
.wk-category-mobile-browse-v4136 { display:none; }

@media (max-width:640px) {
  /* Compact, consistent hero across ordinary categories and bespoke collections. */
  html body.tax-product_cat .wk-collection-chocolate {
    display:block!important;
    margin:0 0 .65rem!important;
    padding:1rem .95rem!important;
    border-radius:14px!important;
  }
  html body.tax-product_cat .wk-collection-chocolate__intro {max-width:100%!important;}
  html body.tax-product_cat .wk-collection-chocolate .wk-collection-kicker {margin:0 0 .35rem!important;font-size:.61rem!important;}
  html body.tax-product_cat .wk-collection-chocolate h1 {
    margin:0 0 .55rem!important;
    font-size:clamp(1.7rem,7.5vw,2.05rem)!important;
    line-height:1.05!important;
  }
  html body.tax-product_cat .wk-collection-chocolate h1 br {display:none!important;}
  html body.tax-product_cat .wk-collection-chocolate h1 em {display:block!important;margin-top:.12rem!important;font-size:.75em!important;line-height:1.13!important;}
  html body.tax-product_cat .wk-collection-chocolate__intro>p:not(.wk-collection-kicker):not(.wk-collection-chocolate__delivery) {
    margin:0 0 .3rem!important;
    font-size:.83rem!important;
    line-height:1.45!important;
  }
  /* Only clamp content after JS has made an accessible expand button. */
  html body.tax-product_cat .wk-rc136-clampable:not(.is-expanded) {
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
  }
  html body.tax-product_cat .wk-rc136-read-more {
    display:inline-flex!important;
    align-items:center!important;
    padding:.2rem 0!important;
    margin:.15rem 0!important;
    min-height:32px!important;
    border:0!important;
    background:transparent!important;
    color:#614322!important;
    font-size:.75rem!important;
    font-weight:700!important;
    text-decoration:underline!important;
    text-underline-offset:3px!important;
    cursor:pointer!important;
  }
  html body.tax-product_cat .wk-rc136-read-more:focus-visible {outline:2px solid #765937!important;outline-offset:3px!important;}
  html body.tax-product_cat .wk-collection-chocolate__features {display:none!important;}
  html body.tax-product_cat .wk-collection-chocolate__delivery {display:none!important;}
  html body.tax-product_cat .wk-collection-primary {
    display:none!important; /* Redundant scroll-to-products CTA on small screens. */
  }
  html body.tax-product_cat .wk-collection-selection {
    margin:.55rem 0 .45rem!important;
    padding:0!important;
    scroll-margin-top:85px;
  }
  html body.tax-product_cat .wk-collection-selection .wk-collection-kicker,
  html body.tax-product_cat .wk-collection-selection>p:last-child {display:none!important;}
  html body.tax-product_cat .wk-collection-selection h2 {
    margin:0!important;
    font-size:1.3rem!important;
    line-height:1.2!important;
  }
  /* The ordinary non-profiled category header gets the same treatment. */
  html body.tax-product_cat .wk-shop-archive-hero {
    margin:0 0 .55rem!important;
    padding:.95rem 0 .55rem!important;
  }
  html body.tax-product_cat .wk-shop-archive-hero .wk-eyebrow {font-size:.61rem!important;margin-bottom:.32rem!important;}
  html body.tax-product_cat .wk-shop-archive-hero h1 {font-size:clamp(1.7rem,7.5vw,2.05rem)!important;line-height:1.05!important;margin:0 0 .45rem!important;}
  html body.tax-product_cat .wk-shop-archive-description {font-size:.82rem!important;line-height:1.45!important;}
  html body.tax-product_cat .wk-shop-archive-description p {margin:0 0 .4rem!important;}
  html body.tax-product_cat .wk-shop-archive-trust {display:none!important;}
  /* One small row of category / Find a gift actions replaces two chip sections
     and the duplicate large search bar. Header search remains available. */
  html body.tax-product_cat .wk-category-context-nav-v4290 {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:.55rem!important;
    row-gap:.38rem!important;
    margin:0 0 .5rem!important;
    padding:.4rem 0 .5rem!important;
    border-top:0!important;
  }
  html body.tax-product_cat .wk-category-context-nav-v4290 .wk-category-breadcrumbs-v4290 {
    grid-column:1/-1!important;
    margin:0 0 .15rem!important;
    font-size:.67rem!important;
    white-space:normal!important;
  }
  html body.tax-product_cat .wk-category-mobile-browse-v4136 {display:block!important;grid-column:1;min-width:0;position:relative;}
  html body.tax-product_cat .wk-category-mobile-browse-v4136>summary {
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:.35rem!important;
    min-height:44px!important;
    padding:.52rem .72rem!important;
    background:#fffdf8!important;
    border:1px solid rgba(138,99,53,.25)!important;
    border-radius:10px!important;
    color:#443220!important;
    font-size:.77rem!important;
    font-weight:750!important;
    cursor:pointer!important;
    list-style:none!important;
  }
  html body.tax-product_cat .wk-category-mobile-browse-v4136>summary::-webkit-details-marker {display:none;}
  html body.tax-product_cat .wk-category-mobile-browse-v4136[open]>summary>span {transform:rotate(180deg);}
  html body.tax-product_cat .wk-category-mobile-browse-v4136__panel {
    position:absolute!important;
    top:calc(100% + 4px)!important;
    left:0!important;
    width:min(86vw,340px)!important;
    max-height:65vh!important;
    overflow:auto!important;
    padding:.65rem!important;
    background:#fffdf8!important;
    border:1px solid rgba(138,99,53,.25)!important;
    border-radius:12px!important;
    box-shadow:0 14px 35px rgba(38,25,13,.2)!important;
    z-index:30!important;
  }
  html body.tax-product_cat .wk-category-mobile-browse-v4136__panel nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;}
  html body.tax-product_cat .wk-category-mobile-browse-v4136__panel nav a {
    min-width:0;
    padding:.58rem .42rem!important;
    background:#f7f0e6;
    border:1px solid rgba(138,99,53,.16);
    border-radius:7px;
    color:#32291f;
    font-size:.72rem;
    line-height:1.25;
    text-decoration:none;
    overflow-wrap:anywhere;
  }
  html body.tax-product_cat .wk-category-mobile-browse-v4136__panel p {margin:.85rem 0 .4rem;font-size:.69rem;font-weight:700;}
  html body.tax-product_cat .wk-category-mobile-browse-v4136__panel a:focus-visible,
  html body.tax-product_cat .wk-category-mobile-browse-v4136>summary:focus-visible {outline:2px solid #75533f;outline-offset:2px;}
  html body.tax-product_cat .wk-category-context-nav-v4290>.wk-category-nav-group-v4290,
  html body.tax-product_cat .wk-category-context-nav-v4290>.wk-category-refinements-v4290 {display:none!important;}
  html body.tax-product_cat .wk-category-context-nav-v4290>.wk-category-primary-tools-v4312 {
    grid-column:2;
    margin:0!important;
    padding:0!important;
    width:100%!important;
    min-width:0!important;
    margin-bottom:0!important;
    grid-template-columns:minmax(0,1fr)!important;
  }
  html body.tax-product_cat .wk-category-context-nav-v4290 .wk-category-tools-v4290 {display:block!important;margin:0!important;padding:0!important;}
  html body.tax-product_cat .wk-category-context-nav-v4290 .wk-shop-mini-search {display:none!important;}
  html body.tax-product_cat .wk-category-context-nav-v4290 .wk-category-tool-links-v4290,
  html body.tax-product_cat .wk-category-context-nav-v4290 .wk-shop-filter-inline-v3484 {display:flex!important;width:100%!important;margin:0!important;padding:0!important;}
  html body.tax-product_cat .wk-category-context-nav-v4290 .wk-filter-toggle {
    display:flex!important;
    width:100%!important;
    min-height:44px!important;
    border-radius:10px!important;
    padding:.52rem .55rem!important;
    font-size:.75rem!important;
    white-space:nowrap!important;
  }
  html body.tax-product_cat .wk-category-context-nav-v4290 .wk-shop-filter-clear-v3483 {font-size:.68rem!important;}
  /* No duplicate rows before the catalogue toolbar. */
  html body.tax-product_cat .wk-catalog-toolbar-v431 {margin:.35rem 0 .55rem!important;padding-block:.3rem!important;}
  html body.tax-product_cat .wk-catalog-toolbar-v431__main {gap:.5rem!important;}
  /* The archive's density/centering rules otherwise force one column at 580px. */
  html body.tax-product_cat ul.products.wk-archive-products-v410--standard,
  html body.tax-product_cat .woocommerce ul.products.wk-archive-products-v410--standard,
  html body.tax-product_cat .wk-shop-archive-container>ul.products.wk-archive-products-v410--standard {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:.65rem!important;
    width:100%!important;
    max-width:100%!important;
    margin-inline:0!important;
  }
  html body.tax-product_cat ul.products.wk-archive-products-v410--standard>li.product,
  html body.tax-product_cat .woocommerce ul.products.wk-archive-products-v410--standard>li.product {
    grid-column:auto!important;
    min-width:0!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
  }
  html body.tax-product_cat.wk-archive-density-pair ul.products.wk-archive-products-v410,
  html body.tax-product_cat.wk-archive-density-trio ul.products.wk-archive-products-v410 {
    width:100%!important;max-width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:.65rem!important;
  }
  html body.tax-product_cat ul.products.wk-archive-products-v410>li.product {
    min-width:0!important;
    margin:0!important;
    overflow:hidden!important;
  }
  html body.tax-product_cat ul.products.wk-archive-products-v410>li.product .wk-product-card-media {height:clamp(128px,39vw,168px)!important;}
  html body.tax-product_cat ul.products.wk-archive-products-v410>li.product .woocommerce-loop-product__title {
    padding:.65rem .63rem .2rem!important;
    font-size:clamp(.88rem,3.8vw,1.03rem)!important;
    overflow-wrap:anywhere!important;
  }
  html body.tax-product_cat ul.products.wk-archive-products-v410>li.product .price {padding:.15rem .63rem .65rem!important;font-size:.9rem!important;}
  html body.tax-product_cat ul.products.wk-archive-products-v410>li.product .wk-loop-card-actions {margin:auto .55rem .6rem!important;}
}
@media (max-width:374px) {
  html body.tax-product_cat ul.products.wk-archive-products-v410--standard,
  html body.tax-product_cat .woocommerce ul.products.wk-archive-products-v410--standard,
  html body.tax-product_cat.wk-archive-density-pair ul.products.wk-archive-products-v410,
  html body.tax-product_cat.wk-archive-density-trio ul.products.wk-archive-products-v410 {
    grid-template-columns:minmax(0,1fr)!important;
    max-width:390px!important;
    margin-inline:auto!important;
  }
}

/* rc137 – product-card legibility polish after reviewing a live mobile screenshot.
   Scoped to TWO-COLUMN product-category archives only; <=374px remains 1-col.
   Links, button semantics, labels, prices, products and WooCommerce AJAX unchanged. */
@media (min-width:375px) and (max-width:640px) {
  html body.tax-product_cat .woocommerce ul.products.wk-archive-products-v410>li.product,
  html body.tax-product_cat .woocommerce-page ul.products.wk-archive-products-v410>li.product {
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
  }
  html body.tax-product_cat .woocommerce ul.products.wk-archive-products-v410>li.product .woocommerce-loop-product__title,
  html body.tax-product_cat .woocommerce-page ul.products.wk-archive-products-v410>li.product .woocommerce-loop-product__title {
    font-size:clamp(.84rem,3.55vw,.94rem)!important;
    line-height:1.25!important;
    letter-spacing:-.012em!important;
    padding:.56rem .58rem .12rem!important;
    box-sizing:border-box!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    height:calc(3.75em + .68rem)!important;
    min-height:calc(3.75em + .68rem)!important;
    max-height:calc(3.75em + .68rem)!important;
    -webkit-line-clamp:3!important;
    overflow:hidden!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    hyphens:auto!important;
  }
  html body.tax-product_cat .woocommerce ul.products.wk-archive-products-v410>li.product .price,
  html body.tax-product_cat .woocommerce-page ul.products.wk-archive-products-v410>li.product .price {
    padding:.12rem .58rem .46rem!important;
    font-size:.88rem!important;
    line-height:1.25!important;
  }
  html body.tax-product_cat .woocommerce ul.products.wk-archive-products-v410>li.product .wk-loop-card-actions,
  html body.tax-product_cat .woocommerce-page ul.products.wk-archive-products-v410>li.product .wk-loop-card-actions {
    width:auto!important;
    display:grid!important;
    gap:.18rem!important;
    margin:auto .52rem .52rem!important;
    padding:0!important;
  }
  html body.tax-product_cat .woocommerce ul.products.wk-archive-products-v410>li.product .wk-loop-card-actions .button,
  html body.tax-product_cat .woocommerce-page ul.products.wk-archive-products-v410>li.product .wk-loop-card-actions .button {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:42px!important;
    padding:.48rem .3rem!important;
    margin:0!important;
    box-sizing:border-box!important;
    font-size:.72rem!important;
    font-weight:800!important;
    letter-spacing:.012em!important;
    line-height:1.2!important;
    text-align:center!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
  }
  /* A quick-add card has a primary purchase action. Its second action is
     quieter, not another equally prominent gold button. Keep the view link. */
  html body.tax-product_cat .woocommerce ul.products.wk-archive-products-v410>li.product .wk-loop-card-actions--quick-add .wk-view-details-button,
  html body.tax-product_cat .woocommerce-page ul.products.wk-archive-products-v410>li.product .wk-loop-card-actions--quick-add .wk-view-details-button {
    min-height:36px!important;
    padding:.3rem .28rem!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:6px!important;
    color:#624727!important;
    font-weight:750!important;
    text-decoration:underline!important;
    text-underline-offset:2px!important;
  }
  html body.tax-product_cat .woocommerce ul.products.wk-archive-products-v410>li.product .wk-loop-card-actions .button:focus-visible,
  html body.tax-product_cat .woocommerce-page ul.products.wk-archive-products-v410>li.product .wk-loop-card-actions .button:focus-visible {
    outline:3px solid #224733!important;
    outline-offset:2px!important;
  }
}


/* rc138 — category disclosure must not sit behind the sticky Filter & Sort bar.
   Keep the native <details> menu closed/compact by default. When open, expand
   the category links in DOCUMENT FLOW so the catalogue toolbar moves down.
   This fixes stacking/overlap without hiding the sticky filter or relying on JS.
   Only affects product-category pages at mobile widths. */
@media (max-width:640px) {
  html body.tax-product_cat .wk-category-context-nav-v4290 .wk-category-mobile-browse-v4136[open] {
    align-self:start!important;
    z-index:2!important;
  }
  html body.tax-product_cat .wk-category-context-nav-v4290 .wk-category-primary-tools-v4312,
  html body.tax-product_cat .wk-category-context-nav-v4290 .wk-category-tools-v4290 {
    align-self:start!important;
  }
  html body.tax-product_cat .wk-category-mobile-browse-v4136[open] > .wk-category-mobile-browse-v4136__panel {
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    width:calc(200% + .55rem)!important;
    max-width:none!important;
    box-sizing:border-box!important;
    margin:.48rem 0 0!important;
    max-height:min(54vh,430px)!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    z-index:auto!important;
    box-shadow:0 9px 24px rgba(38,25,13,.1)!important;
  }
}
