/* Bento refinement: scoped to keep the two alternative directions intact. */
.theme-bento .site-header {
  position: sticky; top: 12px; z-index: 8;
  width: calc(100% - 80px); max-width: 1240px; margin: 16px auto 0;
  padding: 14px 24px; min-height: 78px; background: #fff;
  border: 1px solid #ece5e5; border-radius: 22px;
  box-shadow: 0 5px 22px #32121208;
}
.theme-bento .demo-controls { z-index: 10; }
.theme-bento main { padding-top: 24px; }
.theme-bento :is(main, section, input, select, button, a) { scroll-margin-top: 112px; }
.theme-bento .order-summary { top: 112px; }
.theme-bento .category-nav {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px; padding: 0; margin-bottom: 16px; min-height: 0;
}
.theme-bento .category-nav button {
  position: relative; height: 100px; padding: 12px 14px 12px 18px; gap: 8px;
  overflow: hidden; border-radius: 18px; border: 1px solid #e8e0e0;
  text-align: left; background: #fff; color: var(--ink);
}
.theme-bento .category-nav button[aria-pressed=true] { background: #f4e9e9; border-color: var(--brand); }
.theme-bento .category-nav button:hover { border-color: var(--brand); }
.theme-bento .category-nav .category-copy { display: grid; gap: 6px; color: inherit; position: relative; z-index: 1; }
.theme-bento .category-copy strong { font-size: 15px; font-weight: 600; white-space: nowrap; }
.theme-bento .category-copy small { font-size: 11px; color: var(--muted); font-weight: 400; }
.theme-bento .category-nav button[aria-pressed=true] .category-copy { color: var(--brand); }
.theme-bento .category-nav img { width: 96px; height: 78px; object-fit: contain; mix-blend-mode: multiply; border-radius: 12px; }
.theme-bento .category-nav button:first-child img { object-fit: cover; }
.theme-bento .search-line { position: static; width: auto; margin: 0 0 16px; }
.theme-bento .search-line .search-field { max-width: 490px; }
.theme-bento .search-field input { height: 44px; }
.theme-bento .products { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.theme-bento .product { padding: 10px; border-radius: 20px; }
.theme-bento .product-photo { height: 112px; border-radius: 13px; }
.theme-bento .product-photo img { padding: 6px; }
.theme-bento .product-identity { min-height: 50px; padding: 10px 2px 6px; }
.theme-bento .product-identity .small-label { display: none; }
.theme-bento .product h3 { font-size: 14px; line-height: 1.35; }
.theme-bento .purchase { padding: 0 2px 2px; }
.theme-bento .unit-row :is(select,.unit-label) { min-height: 36px; font-size: 11px; }
.theme-bento .product-price { margin-top: 7px; }
.theme-bento .product-price strong { font-size: 22px; }
.theme-bento .product-price .price-unknown { font-size: 14px; line-height: 33px; }
.theme-bento .package-note { min-height: 32px; margin-top: 3px; font-size: 10px; line-height: 1.5; }
.theme-bento .purchase-controls { flex-direction: column; margin-top: 8px; gap: 7px; }
.theme-bento .purchase-controls .btn { flex: auto; min-height: 44px; padding: 8px; font-size: 12px; }
.theme-bento .quantity-stepper { display: flex; align-items: center; width: 100%; min-width: 0; height: 44px; border: 1px solid #b3a4a4; border-radius: 11px; background: #fff; }
.theme-bento .quantity-stepper>button { min-width: 44px; width: 44px; height: 42px; flex-shrink: 0; padding: 0; color: var(--brand); font-size: 22px; border-radius: 10px; }
.theme-bento .quantity-stepper>button:hover:not(:disabled) { background: var(--soft); }
.theme-bento .quantity-stepper .quantity { min-width: 0; max-width: none; flex: 1; width: auto; min-height: 42px; border: 0; border-radius: 4px; padding: 0; gap: 2px; justify-content: center; }
.theme-bento .quantity-stepper input { min-height: 42px; width: 44px; max-width: 100%; font-size: 14px; padding: 4px 0; }
.theme-bento .quantity-stepper .quantity span { font-size: 10px; }
.theme-bento .cart-row { grid-template-columns: 64px minmax(0,1fr) 154px 90px; gap: 14px; }
.theme-bento .cart-row .quantity-stepper { width: 154px; }
.theme-bento .bento-about { margin-top: 48px; padding: 34px; border-radius: 24px; background: #fff; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; }
.theme-bento .bento-about h2 { font-size: 29px; letter-spacing: -.9px; line-height: 1.2; margin-bottom: 18px; }
.theme-bento .bento-about p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 510px; }
.theme-bento .about-details { display: grid; gap: 18px; }
.theme-bento .about-details h3 { font-size: 15px; margin-bottom: 6px; }
.theme-bento .about-details .text-link { justify-self: start; }
.theme-bento .bento-footer { margin: 0 40px 24px; padding: 32px 34px 0; background: #fff; border-radius: 24px; }
.theme-bento .footer-grid { display: grid; grid-template-columns: 1.05fr 1.1fr 1.1fr .85fr; gap: 32px; padding-bottom: 30px; }
.theme-bento .footer-grid h3 { font-size: 13px; margin-bottom: 16px; }
.theme-bento .footer-grid span { display: block; font-size: 11px; color: var(--muted); margin-top: 8px; }
.theme-bento .footer-grid a { display: flex; align-items: center; min-height: 36px; font-size: 12px; width: fit-content; }
.theme-bento .footer-grid a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.theme-bento .footer-grid p { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.theme-bento .footer-brand img { width: 182px; height: auto; }
.theme-bento .footer-brand>a { margin-top: 12px; color: var(--brand); }
.theme-bento .footer-bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 11px; color: var(--muted); }
@media(max-width:1199px) {
 .theme-bento .products { grid-template-columns: repeat(4,minmax(0,1fr)); }
 .theme-bento .category-nav img { width: 72px; height: 68px; }
 .theme-bento .category-copy strong { font-size: 14px; }
 .theme-bento .footer-grid { grid-template-columns: 1fr 1fr; }
 .theme-bento .cart-row { grid-template-columns: 52px minmax(0,1fr); }
 .theme-bento .cart-row .quantity-stepper { grid-column: 2; }
 .theme-bento .cart-row .row-total { grid-column: 2; text-align: left; }
}
@media(max-width:900px) {
 .theme-bento .site-header { width: calc(100% - 48px); padding: 12px 18px; gap: 10px; }
 .theme-bento :is(main, section, input, select, button, a) { scroll-margin-top: 150px; }
 .theme-bento .order-summary { top: 150px; }
 .theme-bento .category-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .theme-bento .category-nav img { width: 96px; height: 72px; }
 .theme-bento .category-nav button { height: 90px; }
 .theme-bento .products { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .theme-bento .bento-about { gap: 30px; padding: 26px; }
 .theme-bento .bento-about h2 { font-size: 25px; }
 .theme-bento .bento-footer { margin-right: 24px; margin-left: 24px; padding: 26px 26px 0; }
}
@media(max-width:640px) {
 .theme-bento .site-header { width: calc(100% - 24px); top: 6px; margin-top: 12px; padding: 10px 12px 5px; gap: 6px; border-radius: 18px; }
 .theme-bento .brand img { width: 128px; }
 .theme-bento .header-account { gap: 8px; }
 .theme-bento .main-nav { padding-top: 3px; gap: 8px; }
 .theme-bento main { padding: 20px 14px 32px; }
 .theme-bento .category-nav { gap: 8px; margin-bottom: 12px; }
 .theme-bento .category-nav button { padding: 10px; height: 84px; border-radius: 15px; gap: 4px; }
 .theme-bento .category-copy strong { font-size: 12px; }
 .theme-bento .category-copy small { font-size: 10px; }
 .theme-bento .category-nav img { width: 60px; height: 60px; }
 .theme-bento .search-line { margin-bottom: 12px; }
 .theme-bento .products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .theme-bento .product { padding: 8px; border-radius: 17px; }
 .theme-bento .product-photo { height: 96px; }
 .theme-bento .product h3 { font-size: 13px; }
 .theme-bento .product-identity { min-height: 51px; }
 .theme-bento .purchase { padding: 0; }
 .theme-bento .unit-row :is(select,.unit-label) { min-height: 44px; font-size: 10px; }
 .theme-bento .quantity-stepper input { width: 36px; }
 .theme-bento .quantity-stepper .quantity span { font-size: 9px; }
 .theme-bento .cart-row { grid-template-columns: 40px minmax(0,1fr) auto; gap: 10px; }
 .theme-bento .cart-row>img { width: 40px; }
 .theme-bento .cart-row .quantity-stepper { grid-column: 2; grid-row: 2; width: 142px; }
 .theme-bento .cart-row .row-total { grid-column: 3; grid-row: 2; font-size: 12px; }
 .theme-bento .cart-row .quantity-stepper .quantity { width: auto; max-width: none; }
 .theme-bento .order-summary { position: static; }
 .theme-bento .bento-about { grid-template-columns: 1fr; margin-top: 32px; padding: 24px; gap: 26px; }
 .theme-bento .bento-about h2 { font-size: 25px; }
 .theme-bento .bento-footer { margin: 0 14px 14px; padding: 24px 24px 0; }
 .theme-bento .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 20px; }
 .theme-bento .footer-grid h3 { margin-bottom: 8px; }
 .theme-bento .footer-grid a { min-height: 44px; }
 .theme-bento .footer-bottom { flex-direction: column; gap: 4px; }
 .theme-bento .footer-bottom a { min-height: 44px; display: flex; align-items: center; }
}
@media(max-width:359px) {
 .theme-bento .category-nav img { width: 44px; }
 .theme-bento .brand img { width: 110px; }
 .theme-bento .product-price .price-unknown { font-size: 12px; }
 .theme-bento .quantity-stepper .quantity { flex-direction: column; gap: 0; }
 .theme-bento .quantity-stepper input { min-height: 26px; height: 26px; padding: 0; }
 .theme-bento .cart-row .row-total { grid-column: 2; grid-row: 3; }
}
/* Full catalogue: twelve categories, progressive product list. */
.theme-bento .category-nav { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.theme-bento .category-nav button { padding: 12px; }
.theme-bento .category-nav img { width: 66px; height: 72px; flex-shrink: 0; }
.theme-bento .category-nav button:first-child img { object-fit: contain; }
.theme-bento .category-copy { min-width: 0; }
.theme-bento .category-copy strong { font-size: 13px; white-space: normal; line-height: 1.3; }
.theme-bento .category-copy small { font-size: 10px; line-height: 1.4; }
.theme-bento .all-products { min-height: 44px; padding: 9px 16px; border: 1px solid #d8cbcb; border-radius: 12px; background: #fff; white-space: nowrap; font-size: 12px; }
.theme-bento .all-products[aria-pressed=true] { background: var(--soft); border-color: var(--brand); color: var(--brand); }
.theme-bento .search-line { justify-content: flex-start; gap: 12px; }
.theme-bento .search-line>span { margin-left: auto; }
.theme-bento .selected-category { margin: 24px 0 16px; font-size: 18px; }
.theme-bento .catalog-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; }
.theme-bento .catalog-more .btn { min-width: 220px; }
.theme-bento .catalog-more p { font-size: 12px; color: var(--muted); }
.theme-bento .orders-empty { padding: 22px 0; }
.theme-bento .orders-empty p { color: var(--muted); margin: 12px 0 20px; }
.theme-bento .product h3 { overflow-wrap: anywhere; }
.theme-bento .product-photo { position: relative; }
.theme-bento .preview-toolbar { display: flex; }
@media(max-width:1150px) { .theme-bento .category-nav { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width:900px) { .theme-bento .category-nav { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:640px) {
 .theme-bento .category-nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
 .theme-bento .category-nav button { padding: 10px; }
 .theme-bento .category-nav img { width: 58px; height: 60px; }
 .theme-bento .category-copy strong { font-size: 12px; }
 .theme-bento .search-line { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
 .theme-bento .search-line .search-field { grid-column: 1/-1; grid-row: 2; }
 .theme-bento .selected-category { margin-top: 18px; }
}
@media(max-width:359px) { .theme-bento .category-nav img { width: 44px; } }
.theme-bento .catalog-content { scroll-margin-top: 150px; }
