/* Catalog density is independent from filters, theme and cart contents. */
.browse-section { padding: 0; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.browse-section > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:52px; padding:10px 0; font-size:14px; cursor:pointer; list-style:none; }
.browse-section > summary::-webkit-details-marker { display:none; }
.browse-section > summary .icon { width:16px; height:16px; transition:transform .15s; }
.browse-section[open] > summary .icon { transform:rotate(180deg); }
.browse-section .browse-tabs { margin-top:6px; }
.browse-section .browse-panel { margin-bottom:20px; }
.saved-products-nav { flex-wrap:nowrap; gap:6px; min-width:0; max-width:100%; overflow-x:auto; margin-bottom:6px; padding:2px 2px 7px; }
.saved-products-nav button { flex:none; white-space:nowrap; padding:8px 10px; }
.saved-products-nav span { min-width:1ch; margin-left:3px; }
.saved-products-nav :is(.saved-label-full,.saved-label-short) { min-width:0; margin:0; }
.saved-products-nav .saved-label-short { display:none; }
.catalog-main { min-width:0; }
.catalog-view-toolbar { display:flex; align-items:center; font-size:14px; }
.catalog-view-toolbar > span { color:var(--muted); }
.catalog-density { display:inline-flex; border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.catalog-density button { display:inline-flex; align-items:center; justify-content:center; width:44px; min-height:44px; padding:7px; background:transparent; font-size:14px; }
.catalog-density button + button { border-left:1px solid var(--line); }
.catalog-density button[aria-pressed=true] { background:var(--forest); color:#fff; }
.catalog-density button:focus-visible { outline-offset:-4px; }
.catalog-density svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.4; }
.product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:14px; }
.product-card { min-width:0; container-type:inline-size; }
.product-image-link { height:210px; padding:30px 14px 8px; }
.product-image-brand { left:12px; top:10px; max-width:calc(100% - 64px); line-height:1.3; letter-spacing:.02em; overflow-wrap:anywhere; }
.product-body { padding:14px; gap:8px; }
.product-name { min-height:0; font-size:16px; line-height:1.45; overflow-wrap:anywhere; }
.product-attributes { display:flex; align-items:baseline; gap:5px; min-width:0; font-size:14px; line-height:1.5; }
.product-attributes :is(.product-kind,.product-meta) { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:0; font-size:14px; line-height:1.5; }
.product-kind { flex:1; }
.product-attributes .product-meta { flex:0 1 auto; max-width:50%; min-width:4ch; }
.card-volume { flex-direction:row; align-items:center; gap:8px; min-height:44px; margin:0; font-size:14px; }
.card-volume > span { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
.card-volume-single { border:0; padding:0; min-height:0; font-size:14px; font-weight:500; background:transparent; }
.card-volume select { min-width:0; height:44px; padding:6px 9px; font-size:16px; }
.product-footer { margin-top:auto; padding-top:4px; }
.product-purchase-row { display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:8px; min-height:44px; }
.product-purchase-row .product-price { min-width:0; font-size:22px; line-height:1.25; letter-spacing:-.03em; }
.product-purchase-row .quantity-slot { flex:0 0 120px; width:120px; height:44px; }
.product-purchase-row .order-button { min-height:0; padding:0 6px; }
.product-purchase-row .quantity-control button { flex:0 0 34px; }
.product-grid[data-density=compact] { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.product-grid[data-density=compact] .product-image-link { height:165px; }
.product-grid[data-density=compact] .product-body { padding:12px; gap:7px; }
.product-grid[data-density=compact] .product-name { font-size:14px; line-height:1.45; min-height:4.35em; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.product-grid[data-density=compact] .product-price { font-size:18px; }
.product-grid[data-density=compact] .product-purchase-row .quantity-slot { flex-basis:100px; width:100px; }
.product-grid[data-density=compact] .quantity-control button { flex-basis:30px; }
.product-grid[data-density=compact] .quantity-control input { width:32px; }
.detail-art-wrap .detail-zoom-icon { position:absolute; right:12px; bottom:12px; display:grid; place-items:center; width:44px; height:44px; border:1px solid #87917e; border-radius:50%; background:#fffefa; color:#354632; }
.detail-zoom-icon svg { width:24px; height:24px; }
.detail-links .detail-favorite { justify-content:flex-start; gap:6px; width:auto; padding:8px 0; }
.detail-favorite span { min-width:0; }
[data-gender=men] .catalog-density button[aria-pressed=true] { background:#c9d3dc; color:#151a1e; }
[data-gender=men] .detail-zoom-icon { background:#1d2329; border-color:#8c9eac; color:#edf1f4; }
@media(min-width:1280px) {
  .product-grid[data-density=compact] { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:960px) {
  .product-grid[data-density=compact] { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:680px) {
  .intro-copy,.audience-note { display:none; }
  .intro { padding:20px 0; gap:18px; }
  .intro .eyebrow { margin-bottom:8px; }
  .browse-section { margin-bottom:12px; }
  .browse-section > summary { min-height:48px; }
  .saved-products-nav { margin-bottom:0; scrollbar-width:thin; }
  .saved-products-nav button { padding:8px; }
  .saved-products-nav .saved-label-full { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  .saved-products-nav .saved-label-short { display:inline; }
  .catalog-toolbar { position:static; padding:10px 0; gap:8px; }
  .result-heading h2 { font-size:27px; }
  .catalog-actions { flex-wrap:nowrap; }
  .catalog-actions .sort-label { flex:1; min-width:0; }
  .catalog-actions .sort-label select { width:100%; }
  .catalog-view-toolbar { flex:none; }
  .product-grid { grid-template-columns:minmax(0,1fr); }
  .product-grid[data-density=compact] { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 10px; }
  .product-grid[data-density=compact] .product-image-link { height:135px; padding:30px 8px 5px; }
  .product-grid[data-density=compact] .product-body { padding:10px 8px; gap:6px; }
  .product-grid[data-density=compact] .product-purchase-row { gap:4px; }
  .product-grid[data-density=compact] .product-price { font-size:14px; font-weight:650; }
  .product-grid[data-density=compact] .product-purchase-row .quantity-slot { flex-basis:78px; width:78px; }
  .product-grid[data-density=compact] .quantity-control button { flex-basis:25px; font-size:20px; }
  .product-grid[data-density=compact] .quantity-control input { width:26px; font-size:16px; }
  .product-grid[data-density=compact] .order-button { white-space:normal; line-height:1.25; padding:0 4px; }
  .product-grid[data-density=compact] .card-volume select { padding-inline:5px; }
  .product-image-brand { left:8px; max-width:calc(100% - 58px); }
}
@media(max-width:359px) {
  .catalog-view-toolbar > span { display:none; }
  .catalog-view-toolbar { justify-content:flex-end; }
  .catalog-actions { display:grid; grid-template-columns:1fr 90px; gap:8px; }
  .catalog-actions .sort-label { grid-row:2; grid-column:1 / -1; text-align:left; }
  .catalog-actions .sort-label select { min-height:44px; }
  .catalog-actions .catalog-view-toolbar { grid-row:1; grid-column:2; }
  .product-grid[data-density=compact] { grid-template-columns:minmax(0,1fr); }
  .product-grid[data-density=compact] .product-card { display:grid; grid-template-columns:90px minmax(0,1fr); }
  .product-grid[data-density=compact] .product-image-link { height:100%; min-height:190px; padding:52px 5px 12px; }
  .product-grid[data-density=compact] .product-image-brand { max-width:78px; font-size:14px; }
  .product-grid[data-density=compact] .favorite-button { right:auto; left:4px; top:auto; bottom:4px; }
  .product-grid[data-density=compact] .product-price { font-size:16px; }
  .product-grid[data-density=compact] .product-purchase-row .quantity-slot { flex-basis:84px; width:84px; }
  .product-grid[data-density=compact] .quantity-control button { flex-basis:27px; }
}
