.pack-columns, .card-pack-short { display: none; }
.pack-count-cell { display: contents; }
.cart-pack-size { white-space: nowrap; }
.tier-total { display: grid; justify-items: inherit; gap: 2px; }
.edition-group > summary {
  display: flex; align-items: baseline; justify-content: space-between;
  list-style: none; cursor: pointer;
}
.edition-group > summary::-webkit-details-marker { display: none; }
.edition-group > summary::after {
  content: ''; flex: none; width: 7px; height: 7px; margin-inline: 12px 3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.edition-group[open] > summary::after { transform: rotate(225deg); }

@media (max-width: 767px) {
  .crumbs { margin-bottom: 12px; }
  .crumbs ol { row-gap: 2px; }
  .wrap.inner > .page-title { margin-bottom: 18px; }
  .home-brands .brand-rounds {
    justify-content: start; gap: clamp(10px, 3vw, 20px);
    padding: 2px 0 4px; scroll-snap-type: x proximity;
  }
  .home-brands .brand-rounds a { gap: 6px; scroll-snap-align: start; }
  .home-brands .round-photo { width: 56px; height: 56px; }
  .discovery-home > .home-brands { margin-top: 14px; }
  .home-collection-banner { min-height: 178px; }
  .collection-banner-copy { padding: clamp(14px,4vw,24px); }
  .collection-banner-copy nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .collection-banner-copy nav a { min-height: 44px; }
  .discovery-home > section:not(.home-brands):not(.home-collection-banner),
  .discovery-home > .browse-pair { margin-top: 24px; }
  .edition-feature .edition-tile { min-height: 104px; padding: 10px 16px; }
  .edition-feature .edition-tile img { height: 84px; }
  .edition-features .tab-strip, .home-shelf .tab-strip { margin-bottom: 9px; }

  .catalog-view > .catalog-intro { min-height: 94px; margin-bottom: 12px; }
  .catalog-intro .collection-still { min-height: 62px; }
  .catalog-intro .collection-still img { height: 66px; }
  .edition-navigation {
    display: block; overflow: hidden; margin-bottom: 12px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
  }
  .edition-navigation section { background: none; border: 0; border-radius: 0; padding: 0; }
  .edition-navigation section + section { border-top: 1px solid var(--line); }
  .edition-group { padding-inline: 14px; }
  .edition-group > summary { min-height: 44px; align-items: center; }
  .edition-group > summary h2 { margin: 0; font: 700 1rem/1.25 var(--sans); }
  .edition-group > :last-child:not(summary) { margin-bottom: 12px; }
  .edition-group .facet-chips a, .edition-group .original-series a { min-height: 40px; display: inline-flex; align-items: center; }
  .edition-group .flavor-directory summary { padding-block: 10px; }
  .catalog-view .catalog-filters.auto-filter {
    display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    margin: 12px 0 18px; padding: 8px; gap: 0 8px;
  }
  .auto-filter .filter-fields { display: contents; }
  .auto-filter .filter-toggle { grid-area: 1/1; }
  .catalog-filters.auto-filter label.sort-by { grid-area: 1/2; width: 100%; min-width: 0; max-width: none; }
  .auto-filter .filter-inputs {
    grid-column: 1/-1; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,140px),1fr));
    width: 100%; gap: 8px; margin: 8px 0 0;
  }
  .auto-filter .filter-inputs > :is(select,input) { width: 100%; min-width: 0; max-width: none; }
  .auto-filter .sort-by select { width: 100%; text-overflow: ellipsis; }
  .catalog-view .grid-heading { align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .catalog-view .product-grid, .home-shelf .product-grid, .edition-feature { gap: 9px; }
  .product-card .tile-img { margin: 0; aspect-ratio: 1.32; padding: 8px; }
  .product-card .card-meta { margin-top: 8px; gap: 3px; }
  .product-card h3 { margin-block: 6px 4px; font-size: clamp(1rem,4.4vw,1.25rem); line-height: 1.13; }
  .product-card .card-flavor { font-size: .79rem; line-height: 1.35; }
  .product-card .card-strength { gap: 4px; }
  .product-card .card-strength a { padding: 5px 7px; }
  .product-card .card-order { display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; padding-top: 8px; }
  .card-order .card-price { grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; text-align: left; }
  .card-price strong { order: -1; font-size: 1.06rem; }
  .card-price small { flex-basis: 100%; font-size: .78rem; }
  .card-order label { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
  .card-pack-label { display: none; }
  .card-pack-short { display: inline; font-weight: 650; font-size: .8rem; color: var(--muted); }
  .card-order label select { width: auto; min-width: 4rem; max-width: 68%; margin: 0; }
  .product-card .card-order .button { min-height: 44px; }
  .pdp-sections .specs { column-gap: 10px; }
  .sticky-purchase .button { max-width: 62%; white-space: normal; text-align: center; }
  .footer .foot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; align-items: start; }
  .footer .foot-grid > div:first-child { grid-column: 1/-1; }
  .footer .foot-grid > div > a:not(.wordmark), .footer .legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer .foot-grid > div > a:not(.wordmark) { display: flex; }
  .footer .legal { gap: 4px 16px; }
}

@media (max-width: 680px) {
  .product-view .buy-grid { row-gap: 12px; }
  .product-heading h1 { margin-block: 4px; font-size: clamp(1.85rem,7vw,2.4rem); }
  .product-view .detail-photo { background: var(--soft); border-radius: 12px; }
  .buy-grid > .detail-photo { padding: 4px; }
  .detail-photo img { width: clamp(145px,43vw,210px); }
  .buy-panel .flavor-options { scroll-snap-type: x proximity; padding-bottom: 3px; }
  .flavor-options a { scroll-snap-align: start; width: 76px; padding-block: 4px; }
  .flavor-options img { width: 39px; height: 39px; }
  .buy-panel .pick-title { margin-top: 8px; }
  .pack-form { --price-columns: minmax(0,1.3fr) minmax(0,1fr) minmax(0,.76fr); }
  .pack-form .pack-columns {
    display: grid; grid-template-columns: var(--price-columns); gap: 8px;
    padding: 9px 11px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0;
    background: var(--soft); color: var(--muted); font-size: .77rem; font-weight: 700;
  }
  .pack-columns > :not(:first-child) { text-align: right; }
  .pack-form .pack-options { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 0 0 10px 10px; }
  .pack-form .pack { margin: 0; }
  .pack-form .pack + .pack { border-top: 1px solid var(--line); }
  .pack-form .pack > span, .pack-form .pack input:checked + span {
    grid-template-columns: var(--price-columns); gap: 8px; min-height: 48px;
    padding: 6px 10px; border: 0; border-radius: 0; justify-items: stretch; text-align: left;
  }
  .pack-form .pack:last-child > span { border-radius: 0 0 9px 9px; }
  .pack-form .pack input:checked + span { box-shadow: inset 3px 0 0 var(--brand); }
  .pack-form .pack input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -2px; }
  .pack-form .pack-count-cell { display: flex; align-items: center; gap: 2px 5px; flex-wrap: wrap; }
  .pack-form .pack b { display: inline-flex; align-items: center; gap: 6px; }
  .pack-count-cell b::before {
    content: ''; width: 13px; height: 13px; border-radius: 50%;
    box-shadow: inset 0 0 0 1px #8493a1; background: #fff;
  }
  .pack input:checked + span b::before { box-shadow: inset 0 0 0 4px var(--brand); }
  .pack-count-cell small { font-size: .7rem; }
  .pack-count-cell em { position: static; font-size: .64rem; padding: 2px 5px; }
  .pack .tier-prices { display: contents; }
  .pack .tier-total { grid-column: 2; text-align: right; justify-items: end; gap: 0; }
  .pack .tier-prices > small { grid-column: 3; text-align: right; color: var(--ink); font-size: .85rem; }
  .pack .tier-prices .unit-suffix { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .pack-form .order-line { margin-block: 14px; align-items: center; }
  .pack-form .quantity-stepper :is(button,input) { min-width: 38px; }
  .pack-form .price-summary [data-pack-total] { display: block; font-size: 1.3rem; }
}

@media (max-width: 767px) {
  .commerce .woocommerce-cart-form table.shop_table {
    display: block; border: 0; margin-bottom: 1rem; background: transparent;
  }
  .commerce .woocommerce-cart-form .shop_table tbody { display: grid; gap: 12px; }
  .commerce .woocommerce-cart-form .shop_table tr.cart_item {
    display: grid; grid-template-columns: 46px minmax(0,1fr) 44px; align-items: start;
    padding: 12px; gap: 0 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  }
  .commerce .woocommerce-cart-form .shop_table tr.cart_item td { min-width: 0; padding: 8px 0; background: transparent; }
  .commerce .woocommerce-cart-form tr.cart_item .product-thumbnail { display: block; grid-area: 1/1; }
  .commerce .woocommerce-cart-form tr.cart_item .product-thumbnail img { width: 46px; height: 46px; object-fit: contain; }
  .commerce .woocommerce-cart-form tr.cart_item .product-name { grid-area: 1/2; overflow-wrap: anywhere; text-align: left !important; }
  .commerce .product-name > a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
  .commerce .woocommerce-cart-form tr.cart_item :is(.product-thumbnail,.product-name,.product-remove) { border: 0; }
  .commerce .woocommerce-cart-form tr.cart_item :is(.product-thumbnail,.product-name)::before { display: none; }
  .commerce .woocommerce-cart-form tr.cart_item td.product-remove { grid-area: 1/3; padding: 0; }
  .commerce .product-remove a.remove { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted) !important; border-radius: 8px; }
  .commerce .woocommerce-cart-form tr.cart_item :is(.product-price,.product-quantity,.product-subtotal) { grid-column: 1/-1; }
  .commerce .product-name dl.variation { font-size: .85rem; }
  .commerce .product-name dl.variation dt, .commerce .product-name dl.variation dd { display: inline; float: none; margin: 0; }
  .commerce .product-name dl.variation dd::after { content: ''; display: block; }
  .commerce .product-name dl.variation p { display: inline; }
  .commerce .woocommerce-cart-form .actions .coupon { display: flex; gap: 6px; }
  .commerce .woocommerce-cart-form .actions .coupon .input-text { width: auto; flex: 1; min-width: 0; margin: 0; font-size: 1rem; }
  .commerce .woocommerce-cart-form .actions .coupon .button { width: auto; flex: none; }
  .commerce .cart-collaterals .cart_totals, .commerce .checkout .form-row { width: 100%; float: none; }
  .commerce .woocommerce .wc-proceed-to-checkout a.checkout-button.button.alt,
  .commerce .woocommerce .checkout button#place_order {
    background: var(--purchase); color: #fff; border-color: var(--purchase); border-radius: 8px;
  }
  .commerce .woocommerce .wc-proceed-to-checkout a.checkout-button.button.alt:hover,
  .commerce .woocommerce .checkout button#place_order:enabled:hover { background: var(--purchase-hover); }
  .commerce .form-row :is(input.input-text,select,textarea) { max-width: 100%; min-height: 44px; font-size: 1rem; }
}
