/* Japanese confectionery retail: owned photography, quiet type, milk-tea accents. */
:root {
  --retail-surface: #f8f5f1;
  --retail-space: clamp(3rem, 6vw, 5.5rem);
}
.store-brand-row { padding-block: 22px; }
.store-search { background: white; border-bottom: 1px solid #a99a8d; border-radius: 0; }
.store-brand-row .brand { font-weight: 400; font-size: 20px; }
.site-nav { justify-content: center; gap: 36px; }
.store-category-menu { justify-content: center; }
.store-menu-row { border-top: 0; }
.store-category-nav { padding-bottom: 12px; }
.confectionery-intro { display: grid; grid-template-columns: 57% minmax(0, 1fr); margin-top: 32px; }
.confectionery-intro-photo { position: relative; min-width: 0; background: var(--retail-surface); }
.confectionery-intro-photo > img { display: block; width: 100%; height: 100%; aspect-ratio: 1.32; object-fit: cover; object-position: center; }
.confectionery-photo-note { position: absolute; bottom: 0; right: 0; background: white; padding: 10px 20px; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.confectionery-intro-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 4vw, 64px); background: var(--retail-surface); }
.confectionery-intro-note { margin: 0 0 22px; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.confectionery-intro-copy h1 { font-size: clamp(27px, 2.75vw, 42px); line-height: 1.65; letter-spacing: .045em; font-weight: 400; margin: 0 0 24px; text-wrap: balance; }
.confectionery-intro-copy > p:not(.confectionery-intro-note) { font-size: 14px; line-height: 2; margin: 0 0 28px; color: var(--muted); }
.confectionery-intro-copy .button { min-height: 48px; padding: 12px 22px; border-radius: 2px; font-size: 14px; gap: 24px; }
.intro-journal-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; margin-top: 12px; text-underline-offset: 5px; }
.gift-budget { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.gift-budget > div:first-child { display: flex; align-items: baseline; gap: 16px; }
.gift-budget span { font-size: 15px; }
.gift-budget small { font-size: 12px; color: var(--muted); }
.gift-budget-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.gift-budget-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; color: var(--ink); text-decoration: none; background: var(--retail-surface); font-size: 13px; }
.gift-budget-links a:hover { background: var(--accent); }
.home-brand-section { padding-top: var(--retail-space); }
.store-section-heading { margin-bottom: 28px; }
.store-section-heading h2 { font-size: clamp(22px, 2.3vw, 28px); letter-spacing: .065em; line-height: 1.6; }
.store-section-heading > a { text-decoration: none; gap: 10px; }
.store-section-heading > a:hover { text-decoration: underline; text-underline-offset: 5px; }
.store-section-heading > a .store-icon { width: 18px; height: 18px; }
.home-brand-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.home-brand-grid li { min-width: 0; }
.home-brand-grid a { color: var(--ink); display: block; text-decoration: none; }
.home-brand-image { display: block; aspect-ratio: 1; overflow: hidden; background: var(--retail-surface); }
.home-brand-image img { display: block; height: 100%; width: 100%; object-fit: contain; }
.home-brand-name { display: block; font-size: 12px; line-height: 1.7; margin-top: 12px; text-wrap: pretty; }
.home-brand-grid a:hover .home-brand-name { text-decoration: underline; text-underline-offset: 4px; }
.store-category-section { margin-top: var(--retail-space); margin-bottom: 0; }
.store-category-image { border: 0; border-radius: 0; }
.store-category-tiles { gap: 24px; }
.home-catalog { padding-top: var(--retail-space); padding-bottom: 24px; }
.woocommerce ul.products { row-gap: 40px; }
.woocommerce ul.products li.product { display: flex; flex-direction: column; }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { display: block; flex: 1; }
.woocommerce ul.products li.product a img { border-radius: 0; }
.catalog-product-brand { display: block; font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 13px; letter-spacing: .02em; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 6px 0 10px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.woocommerce ul.products li.product .price { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.woocommerce ul.products li.product .button { align-self: stretch; text-align: center; border-radius: 2px; background: white; border-color: #b2a293; color: var(--ink); margin-top: auto; }
.woocommerce ul.products li.product .button:hover { background: var(--accent); border-color: var(--accent); }
.catalog-see-all { margin: 36px 0 0; text-align: center; }
.home-ranking { margin-block: 40px var(--retail-space); }
.store-topics { background: var(--retail-surface); }
.store-topic-card, .journey-feature-photo img { border-radius: 0; }
.store-topic-copy h3 { font-weight: 400; font-size: 24px; }
.journey-section { padding-block: var(--retail-space); }
.journey-feature-copy h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; letter-spacing: .05em; }
.site-footer { background: var(--retail-surface); border-top: 1px solid var(--line); }
.catalog-main { min-width: 0; }
.catalog-main .woocommerce-products-header__title { font-size: 30px; letter-spacing: .04em; }
.catalog-filter-sidebar { border-right: 1px solid var(--line); padding-right: 24px; }
.catalog-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; }
.catalog-filter-sidebar .brand-checkbox-list { max-height: 288px; }
.catalog-filter-sidebar legend { font-size: 14px; }
.brand-finder { margin-top: 24px; }
.brand-finder > label { display: block; margin-bottom: 8px; }
.brand-finder > input { width: min(100%, 480px); min-height: 48px; border: 1px solid #a99a8d; padding: 12px 14px; font: inherit; border-radius: 2px; }
.brand-finder-status { font-size: 13px; color: var(--muted); min-height: 24px; }
.brand-finder .seo-directory-card { box-shadow: none; border-radius: 0; border-color: var(--line); background: white; padding: 24px; }
.brand-finder .seo-directory-card h2 { font-weight: 400; overflow-wrap: anywhere; }
.brand-finder [hidden] { display: none !important; }
.store-mobile-shortcuts { display: none; }
button:active, .button:active { transform: translateY(1px); }

@media (min-width: 761px) and (max-width: 1050px) {
  .home-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .confectionery-intro { grid-template-columns: 52% minmax(0, 1fr); }
  .confectionery-intro-copy { padding: 28px; }
  .confectionery-intro-copy h1 { font-size: 28px; }
  .intro-desktop-break { display: none; }
  .gift-budget { justify-content: flex-start; gap: 12px; }
  .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .catalog-filter-sidebar { padding-right: 16px; }
}
@media (max-width: 760px) {
  .store-brand-row { padding-block: 14px; }
  .store-brand-row .brand { font-size: 16px; }
  .site-nav, .store-category-menu { justify-content: flex-start; }
  .store-category-nav { padding-bottom: 8px; }
  .confectionery-intro { display: block; margin-top: 16px; }
  .confectionery-intro-photo > img { aspect-ratio: 1.45; height: auto; }
  .confectionery-photo-note { padding: 7px 12px; font-size: 11px; }
  .confectionery-intro-copy { padding: 26px 24px 22px; }
  .confectionery-intro-note { margin-bottom: 10px; font-size: 12px; }
  .confectionery-intro-copy h1 { font-size: clamp(25px, 6.7vw, 34px); margin-bottom: 12px; line-height: 1.55; }
  .confectionery-intro-copy > p:not(.confectionery-intro-note) { margin-bottom: 18px; line-height: 1.9; font-size: 13px; }
  .intro-desktop-break { display: none; }
  .intro-journal-link { margin-top: 5px; }
  .gift-budget { padding-block: 20px; gap: 12px; }
  .gift-budget > div:first-child { flex-wrap: wrap; gap: 4px 12px; }
  .gift-budget-links { gap: 8px; width: 100%; }
  .gift-budget-links a { font-size: 12px; padding: 9px 10px; flex: 1; justify-content: center; white-space: nowrap; }
  .home-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  .home-brand-name { font-size: 11px; margin-top: 8px; overflow-wrap: anywhere; }
  .store-section-heading { align-items: flex-start; gap: 14px; margin-bottom: 22px; }
  .store-section-heading > a { font-size: 12px; white-space: nowrap; }
  .store-section-heading > a .store-icon { display: none; }
  .store-section-heading p { font-size: 13px; }
  .home-brand-section .store-section-heading { display: block; }
  .home-brand-section .store-section-heading > a { margin-top: 4px; }
  .home-catalog .store-section-heading { display: block; }
  .home-catalog .store-section-heading > a { margin-top: 4px; }
  .store-category-tiles { gap: 22px 16px; }
  .woocommerce ul.products { gap: 28px 16px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px; line-height: 1.7; }
  .woocommerce ul.products li.product .price { font-size: 14px; }
  .catalog-product-brand { font-size: 10px; overflow-wrap: anywhere; }
  .woocommerce ul.products li.product .button { font-size: 12px; padding: 9px 8px; }
  .catalog-layout { display: block; }
  .catalog-filter-sidebar { border-right: 0; padding-right: 0; }
  .catalog-main .woocommerce-products-header__title { font-size: 26px; }
  .store-topic-copy h3 { font-size: 19px; }
  body:not(.woocommerce-checkout) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .store-mobile-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; inset: auto 0 0; z-index: 30; border-top: 1px solid var(--line); background: white; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); }
  .store-mobile-shortcuts a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; color: var(--muted); text-decoration: none; font-size: 11px; }
  .store-mobile-shortcuts .store-icon { width: 21px; height: 21px; }
  .store-mobile-shortcuts a[aria-current="page"] { color: var(--ink); background: var(--retail-surface); }
  .brand-finder .seo-directory { grid-template-columns: 1fr; }
  .woocommerce div.product form.cart .variations { table-layout: fixed; width: 100%; }
  .woocommerce div.product form.cart .variations tr,
  .woocommerce div.product form.cart .variations td,
  .woocommerce div.product form.cart .variations th { display: block; width: 100%; padding: 0; }
  .woocommerce div.product form.cart .variations select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
}
@media (max-width: 360px) {
  .store-brand-row .brand { font-size: 14px; }
  .gift-budget-links { flex-direction: column; }
  .home-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  button:active, .button:active { transform: none; }
}

/* Keep both purchase actions beside the quantity without changing variation fields. */
.woocommerce div.product form.cart:not(.variations_form),
.woocommerce div.product .woocommerce-variation-add-to-cart {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.woocommerce div.product form.cart > p { flex-basis: 100%; }
.woocommerce div.product form.cart div.quantity { margin: 0; float: none; }
.woocommerce div.product form.cart .button { float: none; min-height: 48px; margin: 0; }
.woocommerce div.product form.cart .fl-direct-purchase {
  background: #DCCBB9; color: #403931; border: 1px solid #DCCBB9;
}
.woocommerce div.product form.cart .fl-direct-purchase:hover { background: #cdb69e; border-color: #cdb69e; color: #403931; }
.woocommerce div.product form.cart .button:focus-visible { outline: 2px solid #685645; outline-offset: 3px; }
@media (max-width: 600px) {
  .woocommerce div.product form.cart div.quantity { flex-basis: 100%; }
  .woocommerce div.product form.cart .single_add_to_cart_button { flex: 1 1 120px; padding-left: 12px; padding-right: 12px; }
}
