:root {
  --hamiko-primary: #176b57;
  --hamiko-primary-dark: #0e463c;
  --hamiko-primary-deep: #09352e;
  --hamiko-accent: #19afa8;
  --hamiko-cream: #f7f6f2;
  --hamiko-soft: #eef4f1;
  --hamiko-surface: #ffffff;
  --hamiko-text: #171b1a;
  --hamiko-muted: #68716e;
  --hamiko-border: #e3e9e6;
  --hamiko-danger: #b93838;
  --hamiko-warning: #a96f13;
  --hamiko-radius-sm: 12px;
  --hamiko-radius: 18px;
  --hamiko-radius-lg: 28px;
  --hamiko-shadow: 0 18px 50px rgba(14, 70, 60, 0.10);
  --hamiko-shadow-soft: 0 10px 34px rgba(14, 70, 60, 0.07);
  --hamiko-container: min(1280px, calc(100vw - 48px));
  --hamiko-transition: 180ms ease;
  --ss26-primary: var(--hamiko-primary);
  --ss26-secondary: var(--hamiko-accent);
  --ss26-accent: var(--hamiko-accent);
  --ss26-body-bg: var(--hamiko-surface);
  --ss26-surface: var(--hamiko-surface);
  --ss26-border-color: var(--hamiko-border);
  --bs-primary: var(--hamiko-primary);
  --bs-primary-rgb: 23, 107, 87;
}

html { scroll-behavior: smooth; }
body.hamiko-theme {
  background: var(--hamiko-surface);
  color: var(--hamiko-text);
  font-family: var(--ss26-font-family, IRANSansX, Vazirmatn, Tahoma, sans-serif);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
body.hamiko-menu-open { overflow: hidden; }
.hamiko-theme *, .hamiko-theme *::before, .hamiko-theme *::after { box-sizing: border-box; }
.hamiko-theme img { max-width: 100%; height: auto; }
.hamiko-theme a { color: inherit; text-decoration: none; }
.hamiko-theme button, .hamiko-theme input, .hamiko-theme textarea, .hamiko-theme select { font: inherit; }
.hamiko-site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.hamiko-main { flex: 1 0 auto; }
.hamiko-theme .container { width: var(--hamiko-container); max-width: none; margin-inline: auto; padding-inline: 0; }
.hamiko-icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: middle; }
.screen-reader-text, .hamiko-skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hamiko-skip-link:focus { position: fixed; z-index: 999999; inset: 12px auto auto 12px; background: #fff; color: var(--hamiko-primary-dark); padding: 12px 18px; border: 2px solid var(--hamiko-primary); border-radius: 10px; box-shadow: var(--hamiko-shadow); }

/* Header */
.hamiko-announcement { background: var(--hamiko-primary-dark); color: #fff; font-size: 0.78rem; }
.hamiko-announcement__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hamiko-announcement p, .hamiko-announcement span, .hamiko-announcement a { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.hamiko-announcement__links { display: flex; align-items: center; gap: 24px; color: rgba(255,255,255,.84); }
.hamiko-announcement a:hover { color: #fff; }
.hamiko-announcement .hamiko-icon { width: 16px; height: 16px; }
.hamiko-header { position: sticky; top: 0; z-index: 1040; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(227,233,230,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: box-shadow var(--hamiko-transition), transform var(--hamiko-transition); }
.admin-bar .hamiko-header { top: 32px; }
.hamiko-header.is-scrolled { box-shadow: 0 12px 35px rgba(14,70,60,.08); }
.hamiko-header__main { min-height: 88px; display: grid; grid-template-columns: auto minmax(320px, 1fr) auto; align-items: center; gap: 28px; }
.hamiko-brand { display: inline-flex; align-items: center; min-width: 155px; max-width: 210px; }
.hamiko-logo, .hamiko-footer-logo { display: block; width: auto; max-width: 100%; height: 54px; object-fit: contain; }
.hamiko-wordmark { font-size: 1.75rem; color: var(--hamiko-primary-dark); font-weight: 900; letter-spacing: -.04em; }
.hamiko-search { position: relative; display: flex; align-items: center; min-width: 0; }
.hamiko-search > .hamiko-icon, .hamiko-search form > .hamiko-icon { position: absolute; inset-inline-start: 18px; z-index: 2; color: var(--hamiko-muted); width: 21px; height: 21px; pointer-events: none; }
.hamiko-search input[type="search"] { width: 100%; height: 52px; padding: 0 52px 0 100px; border: 1px solid var(--hamiko-border); background: var(--hamiko-cream); border-radius: 16px; color: var(--hamiko-text); outline: 0; transition: border-color var(--hamiko-transition), background var(--hamiko-transition), box-shadow var(--hamiko-transition); }
.hamiko-search input[type="search"]::placeholder { color: #87918d; }
.hamiko-search input[type="search"]:focus { background: #fff; border-color: var(--hamiko-primary); box-shadow: 0 0 0 4px rgba(23,107,87,.10); }
.hamiko-search > button { position: absolute; inset-inline-end: 6px; height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--hamiko-primary); color: #fff; cursor: pointer; font-size: .88rem; font-weight: 800; }
.hamiko-search--mobile { display: none; }
.hamiko-header-actions { display: flex; align-items: center; gap: 9px; }
.hamiko-consult-link { display: flex; align-items: center; gap: 10px; min-width: 142px; color: var(--hamiko-primary-dark); padding-inline-end: 8px; }
.hamiko-consult-link > .hamiko-icon { width: 30px; height: 30px; color: var(--hamiko-accent); }
.hamiko-consult-link span { display: flex; flex-direction: column; line-height: 1.3; }
.hamiko-consult-link small { font-size: .68rem; color: var(--hamiko-muted); }
.hamiko-consult-link strong { font-size: .86rem; }
.hamiko-header-icon-link { position: relative; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hamiko-border); background: #fff; border-radius: 14px; color: var(--hamiko-primary-dark); transition: background var(--hamiko-transition), color var(--hamiko-transition), border-color var(--hamiko-transition), transform var(--hamiko-transition); }
.hamiko-header-icon-link:hover { background: var(--hamiko-primary); color: #fff; border-color: var(--hamiko-primary); transform: translateY(-2px); }
.hamiko-cart-count { position: absolute; inset-inline-start: -4px; top: -5px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 999px; color: #fff; background: var(--hamiko-accent); font-size: .68rem; font-weight: 800; line-height: 1; }
.hamiko-mobile-toggle { display: none; border: 0; background: transparent; color: var(--hamiko-primary-dark); padding: 8px; }
.hamiko-mobile-toggle .hamiko-icon { width: 27px; height: 27px; }
.hamiko-primary-nav { border-top: 1px solid rgba(227,233,230,.75); background: #fff; }
.hamiko-primary-nav__inner { min-height: 52px; display: flex; align-items: center; gap: 16px; }
.hamiko-menu { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; list-style: none; margin: 0; padding: 0; }
.hamiko-menu > li { position: relative; }
.hamiko-menu > li > a { display: flex; align-items: center; min-height: 52px; padding: 0 11px; color: #34413d; font-size: .88rem; font-weight: 700; white-space: nowrap; transition: color var(--hamiko-transition); }
.hamiko-menu > li > a:hover, .hamiko-menu > li.current-menu-item > a, .hamiko-menu > li.current-menu-ancestor > a { color: var(--hamiko-primary); }
.hamiko-menu .menu-item-has-children > a::after { content: ''; width: 7px; height: 7px; border-inline-end: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-inline-start: 8px; margin-top: -4px; }
.hamiko-menu .sub-menu { position: absolute; z-index: 30; top: calc(100% + 10px); inset-inline-start: 0; min-width: 230px; list-style: none; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--hamiko-border); border-radius: 16px; box-shadow: var(--hamiko-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--hamiko-transition), transform var(--hamiko-transition), visibility var(--hamiko-transition); }
.hamiko-menu li:hover > .sub-menu, .hamiko-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.hamiko-menu .sub-menu a { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: 10px; color: #42504c; font-size: .84rem; }
.hamiko-menu .sub-menu a:hover { color: var(--hamiko-primary); background: var(--hamiko-soft); }
.hamiko-menu .sub-menu .sub-menu { top: -10px; inset-inline-start: calc(100% + 6px); }
.hamiko-wholesale-link { min-height: 38px; padding: 0 14px; border-radius: 11px; display: inline-flex; align-items: center; gap: 8px; background: var(--hamiko-soft); color: var(--hamiko-primary-dark); font-size: .82rem; font-weight: 800; white-space: nowrap; transition: background var(--hamiko-transition), color var(--hamiko-transition); }
.hamiko-wholesale-link:hover { background: var(--hamiko-primary); color: #fff; }
.hamiko-mobile-nav-head, .hamiko-menu-backdrop { display: none; }

/* Shared */
.hamiko-section { padding: 105px 0; }
.hamiko-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.hamiko-section-head > div { max-width: 780px; }
.hamiko-section-head--center { justify-content: center; text-align: center; }
.hamiko-section-head h2, .hamiko-story__content h2, .hamiko-consult__content h2, .hamiko-faq__intro h2 { margin: 7px 0 8px; color: var(--hamiko-text); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.3; letter-spacing: -.045em; font-weight: 900; }
.hamiko-section-head p, .hamiko-story__content > p, .hamiko-consult__content > p, .hamiko-faq__intro > p { margin: 0; color: var(--hamiko-muted); font-size: 1.02rem; }
.hamiko-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--hamiko-primary); font-size: .8rem; font-weight: 900; letter-spacing: .01em; }
.hamiko-kicker::before { content: ''; width: 24px; height: 3px; border-radius: 99px; background: var(--hamiko-accent); }
.hamiko-kicker--light { color: #fff; }
.hamiko-kicker--light::before { background: rgba(255,255,255,.72); }
.hamiko-button { min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: .92rem; font-weight: 900; cursor: pointer; transition: transform var(--hamiko-transition), box-shadow var(--hamiko-transition), background var(--hamiko-transition), color var(--hamiko-transition), border-color var(--hamiko-transition); }
.hamiko-button:hover { transform: translateY(-2px); }
.hamiko-button--primary { color: #fff; background: var(--hamiko-primary); box-shadow: 0 10px 24px rgba(23,107,87,.20); }
.hamiko-button--primary:hover { color: #fff; background: var(--hamiko-primary-dark); box-shadow: 0 14px 30px rgba(23,107,87,.26); }
.hamiko-button--outline { color: var(--hamiko-primary-dark); background: transparent; border-color: rgba(23,107,87,.3); }
.hamiko-button--outline:hover { color: var(--hamiko-primary); border-color: var(--hamiko-primary); background: var(--hamiko-soft); }
.hamiko-button--light { color: var(--hamiko-primary-dark); background: #fff; }
.hamiko-button--light:hover { color: var(--hamiko-primary-dark); background: #e9fffa; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.hamiko-button--ghost-light { color: #fff; border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.05); }
.hamiko-button--ghost-light:hover { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.65); }
.hamiko-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--hamiko-primary); font-weight: 900; font-size: .9rem; white-space: nowrap; }
.hamiko-text-link .hamiko-icon { transition: transform var(--hamiko-transition); }
.hamiko-text-link:hover .hamiko-icon { transform: translateX(-4px); }

/* Hero */
.hamiko-hero { position: relative; overflow: hidden; padding: 76px 0 84px; background: linear-gradient(135deg, #fbfcfb 0%, var(--hamiko-cream) 65%, #edf5f2 100%); }
.hamiko-hero::before { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; inset: -240px auto auto -160px; background: radial-gradient(circle, rgba(25,175,168,.13), transparent 68%); }
.hamiko-hero__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr); gap: 70px; align-items: center; }
.hamiko-hero__content { position: relative; z-index: 2; max-width: 630px; }
.hamiko-hero h1 { margin: 12px 0 20px; color: var(--hamiko-text); font-size: clamp(3rem, 4.9vw, 4.35rem); line-height: 1.18; letter-spacing: -.065em; font-weight: 950; }
.hamiko-hero__content > p { margin: 0; max-width: 570px; color: var(--hamiko-muted); font-size: 1.08rem; line-height: 2; }
.hamiko-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hamiko-hero__benefits { display: flex; flex-wrap: wrap; gap: 17px 24px; list-style: none; padding: 0; margin: 28px 0 0; color: #45524e; font-size: .84rem; }
.hamiko-hero__benefits li { display: flex; align-items: center; gap: 7px; }
.hamiko-hero__benefits .hamiko-icon { width: 17px; height: 17px; color: var(--hamiko-primary); }
.hamiko-hero__visual { position: relative; min-height: 585px; }
.hamiko-hero-collage { position: absolute; inset: 0; }
.hamiko-hero-photo { position: absolute; margin: 0; overflow: hidden; border: 6px solid rgba(255,255,255,.95); background: var(--hamiko-soft); box-shadow: var(--hamiko-shadow); }
.hamiko-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hamiko-hero-photo--1 { width: 58%; height: 86%; inset: 0 0 auto auto; border-radius: 34px 34px 80px 34px; z-index: 2; }
.hamiko-hero-photo--2 { width: 42%; height: 55%; inset: auto auto 0 6%; border-radius: 70px 26px 26px 26px; z-index: 3; }
.hamiko-hero-photo--3 { width: 38%; height: 46%; inset: 5% 2% auto auto; transform: translateX(-88%); border-radius: 24px 60px 24px 24px; z-index: 1; opacity: .98; }
.hamiko-hero-stat { position: absolute; z-index: 5; inset: auto 1% 3% auto; width: 230px; min-height: 86px; padding: 15px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: var(--hamiko-shadow); backdrop-filter: blur(12px); }
.hamiko-hero-stat > .hamiko-icon { width: 44px; height: 44px; padding: 10px; border-radius: 13px; color: #fff; background: var(--hamiko-primary); }
.hamiko-hero-stat span { display: flex; flex-direction: column; line-height: 1.35; }
.hamiko-hero-stat strong { font-size: 1.25rem; color: var(--hamiko-primary-dark); }
.hamiko-hero-stat small { color: var(--hamiko-muted); font-size: .73rem; }
.hamiko-hero-label { position: absolute; z-index: 5; top: 9%; inset-inline-start: -2%; padding: 9px 14px; border-radius: 999px; color: #fff; background: var(--hamiko-accent); box-shadow: 0 10px 25px rgba(25,175,168,.25); font-size: .77rem; font-weight: 900; transform: rotate(-3deg); }

/* Trust */
.hamiko-trust-strip { position: relative; z-index: 4; margin-top: -30px; }
.hamiko-trust-strip__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 20px 22px; border: 1px solid var(--hamiko-border); border-radius: 20px; background: #fff; box-shadow: var(--hamiko-shadow-soft); }
.hamiko-trust-item { min-width: 0; padding: 5px 18px; display: flex; align-items: center; gap: 11px; border-inline-end: 1px solid var(--hamiko-border); }
.hamiko-trust-item:last-child { border-inline-end: 0; }
.hamiko-trust-item > .hamiko-icon { width: 30px; height: 30px; color: var(--hamiko-primary); }
.hamiko-trust-item span { min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.hamiko-trust-item strong { color: var(--hamiko-text); font-size: .84rem; }
.hamiko-trust-item small { color: var(--hamiko-muted); font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Categories */
.hamiko-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 18px; }
.hamiko-category-card { position: relative; min-width: 0; overflow: hidden; border-radius: var(--hamiko-radius); background: var(--hamiko-soft); box-shadow: inset 0 0 0 1px rgba(23,107,87,.05); }
.hamiko-category-card.is-featured { grid-row: span 2; grid-column: span 2; }
.hamiko-category-card__media { position: absolute; inset: 0; }
.hamiko-category-card__media::after { content: ''; position: absolute; inset: 38% 0 0; background: linear-gradient(to bottom, transparent, rgba(4,25,21,.72)); }
.hamiko-category-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 480ms ease; }
.hamiko-category-card:hover .hamiko-category-card__media img { transform: scale(1.045); }
.hamiko-category-card__content { position: absolute; z-index: 2; inset: auto 18px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; color: #fff; }
.hamiko-category-card__content span { display: flex; flex-direction: column; }
.hamiko-category-card__content strong { font-size: 1.18rem; }
.hamiko-category-card.is-featured .hamiko-category-card__content strong { font-size: 1.7rem; }
.hamiko-category-card__content small { color: rgba(255,255,255,.75); font-size: .72rem; }
.hamiko-category-card__content > .hamiko-icon { width: 40px; height: 40px; padding: 11px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); transition: background var(--hamiko-transition), transform var(--hamiko-transition); }
.hamiko-category-card:hover .hamiko-category-card__content > .hamiko-icon { background: #fff; color: var(--hamiko-primary); transform: translateX(-4px); }

/* Products */
.hamiko-products-section--soft { background: var(--hamiko-cream); }
.hamiko-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.hamiko-product-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 20px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: rgba(23,107,87,.32) transparent; padding: 4px 2px 18px; cursor: grab; }
.hamiko-product-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.hamiko-product-scroller .hamiko-product-card { scroll-snap-align: start; }
.hamiko-product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hamiko-border); border-radius: var(--hamiko-radius); background: #fff; transition: transform var(--hamiko-transition), box-shadow var(--hamiko-transition), border-color var(--hamiko-transition); }
.hamiko-product-card:hover { transform: translateY(-5px); border-color: rgba(23,107,87,.22); box-shadow: var(--hamiko-shadow); }
.hamiko-product-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--hamiko-soft); }
.hamiko-product-image { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 450ms ease; }
.hamiko-product-card:hover .hamiko-product-image { transform: scale(1.035); }
.hamiko-product-badges { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; inset-inline-end: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; }
.hamiko-badge { min-height: 27px; padding: 3px 9px; display: inline-flex; align-items: center; border-radius: 8px; font-size: .66rem; font-weight: 900; }
.hamiko-badge--primary { color: #fff; background: var(--hamiko-primary); }
.hamiko-badge--light { margin-inline-start: auto; color: var(--hamiko-primary-dark); background: rgba(255,255,255,.92); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.hamiko-product-body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 17px; }
.hamiko-product-sku { color: #87918d; font-size: .68rem; }
.hamiko-product-title { margin: 5px 0 12px; color: var(--hamiko-text); font-size: .91rem; line-height: 1.7; font-weight: 800; min-height: 3.05em; }
.hamiko-product-title a:hover { color: var(--hamiko-primary); }
.hamiko-product-commerce { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; border-top: 1px solid var(--hamiko-border); padding-top: 12px; }
.hamiko-product-price { color: var(--hamiko-primary-dark); font-size: .92rem; font-weight: 900; }
.hamiko-product-price del { display: block; color: #a1aaa7; font-size: .68rem; font-weight: 500; }
.hamiko-product-price ins { text-decoration: none; }
.hamiko-product-pack { display: inline-flex; align-items: center; gap: 5px; color: var(--hamiko-muted); font-size: .67rem; white-space: nowrap; }
.hamiko-product-pack .hamiko-icon { width: 15px; height: 15px; color: var(--hamiko-primary); }
.hamiko-product-cta { min-height: 40px; margin-top: 12px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-radius: 11px; background: var(--hamiko-soft); color: var(--hamiko-primary-dark); font-size: .79rem; font-weight: 900; transition: background var(--hamiko-transition), color var(--hamiko-transition); }
.hamiko-product-cta:hover { color: #fff; background: var(--hamiko-primary); }

/* Purchase model */
.hamiko-purchase-model { background: #fff; }
.hamiko-purchase-model__grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 22px; }
.hamiko-purchase-card { position: relative; min-height: 450px; padding: 38px; display: flex; flex-direction: column; border: 1px solid var(--hamiko-border); border-radius: var(--hamiko-radius-lg); background: var(--hamiko-cream); overflow: hidden; }
.hamiko-purchase-card--primary { color: #fff; border: 0; background: linear-gradient(145deg, var(--hamiko-primary-dark), var(--hamiko-primary)); box-shadow: var(--hamiko-shadow); }
.hamiko-purchase-card--primary::after { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; inset: auto -140px -170px auto; border: 70px solid rgba(255,255,255,.06); }
.hamiko-purchase-card__label { position: absolute; top: 24px; inset-inline-end: 24px; padding: 6px 11px; border-radius: 99px; color: var(--hamiko-primary-dark); background: #dff7ef; font-size: .66rem; font-weight: 900; }
.hamiko-purchase-card__icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; color: var(--hamiko-primary); background: #fff; box-shadow: var(--hamiko-shadow-soft); }
.hamiko-purchase-card:not(.hamiko-purchase-card--primary) .hamiko-purchase-card__icon { background: var(--hamiko-soft); box-shadow: none; }
.hamiko-purchase-card__icon .hamiko-icon { width: 31px; height: 31px; }
.hamiko-purchase-card h3 { margin: 25px 0 10px; font-size: 1.75rem; line-height: 1.35; font-weight: 900; }
.hamiko-purchase-card p { max-width: 680px; margin: 0; color: inherit; opacity: .78; }
.hamiko-purchase-card ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 24px 0 30px; }
.hamiko-purchase-card li { display: flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; }
.hamiko-purchase-card li .hamiko-icon { width: 16px; height: 16px; }
.hamiko-purchase-card .hamiko-button { margin-top: auto; align-self: flex-start; position: relative; z-index: 2; }
.hamiko-purchase-card:not(.hamiko-purchase-card--primary) ul { grid-template-columns: 1fr; }

/* Steps */
.hamiko-steps { background: var(--hamiko-cream); }
.hamiko-steps__list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: steps; }
.hamiko-steps__list::before { content: ''; position: absolute; top: 31px; inset-inline: 11%; height: 2px; background: repeating-linear-gradient(90deg, rgba(23,107,87,.25) 0 10px, transparent 10px 18px); }
.hamiko-steps__list li { position: relative; text-align: center; }
.hamiko-steps__list li > span { position: relative; z-index: 2; width: 62px; height: 62px; margin: 0 auto 16px; display: grid; place-items: center; border: 7px solid var(--hamiko-cream); border-radius: 50%; color: #fff; background: var(--hamiko-primary); font-size: .9rem; font-weight: 900; box-shadow: 0 0 0 1px rgba(23,107,87,.17); }
.hamiko-steps__list li > div { padding: 25px 18px; border: 1px solid var(--hamiko-border); border-radius: var(--hamiko-radius); background: #fff; min-height: 210px; }
.hamiko-steps__list li > div > .hamiko-icon { width: 30px; height: 30px; color: var(--hamiko-accent); }
.hamiko-steps__list h3 { margin: 12px 0 7px; font-size: 1rem; font-weight: 900; }
.hamiko-steps__list p { margin: 0; color: var(--hamiko-muted); font-size: .78rem; }

/* Seasonal */
.hamiko-seasonal { padding-top: 0; }
.hamiko-seasonal__panel { position: relative; min-height: 390px; overflow: hidden; padding: 55px 62px; display: flex; align-items: center; border-radius: 34px; color: #fff; background: linear-gradient(135deg, var(--hamiko-primary-deep), var(--hamiko-primary), #138e83); box-shadow: var(--hamiko-shadow); }
.hamiko-seasonal__panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.12), transparent 36%), linear-gradient(115deg, transparent 55%, rgba(255,255,255,.05)); }
.hamiko-seasonal__content { position: relative; z-index: 2; max-width: 620px; }
.hamiko-seasonal h2 { margin: 11px 0 13px; font-size: clamp(2.2rem, 4vw, 3.45rem); line-height: 1.25; letter-spacing: -.05em; font-weight: 950; }
.hamiko-seasonal p { max-width: 540px; margin: 0 0 25px; color: rgba(255,255,255,.78); }
.hamiko-seasonal__art { position: absolute; inset: 0 50% 0 0; pointer-events: none; }
.hamiko-seasonal__art span { position: absolute; display: block; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.hamiko-seasonal__art span:nth-child(1) { width: 380px; height: 380px; top: -110px; left: -60px; }
.hamiko-seasonal__art span:nth-child(2) { width: 260px; height: 260px; bottom: -80px; left: 120px; border-width: 55px; }
.hamiko-seasonal__art span:nth-child(3) { width: 90px; height: 90px; top: 90px; left: 270px; background: rgba(255,255,255,.08); }

/* Consult */
.hamiko-consult { background: #fff; }
.hamiko-consult__grid { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 80px; align-items: center; }
.hamiko-consult__content ul { display: grid; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.hamiko-consult__content li { display: flex; align-items: center; gap: 9px; color: #3d4a46; font-size: .9rem; }
.hamiko-consult__content li .hamiko-icon { color: var(--hamiko-primary); }
.hamiko-consult__card { position: relative; padding: 36px; border: 1px solid var(--hamiko-border); border-radius: 28px; background: var(--hamiko-cream); box-shadow: var(--hamiko-shadow-soft); }
.hamiko-consult__card-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: var(--hamiko-primary); }
.hamiko-consult__card-icon .hamiko-icon { width: 32px; height: 32px; }
.hamiko-consult__card h3 { margin: 20px 0 8px; font-size: 1.35rem; font-weight: 900; }
.hamiko-consult__card p { margin: 0; color: var(--hamiko-muted); }
.hamiko-phone-number { direction: ltr; display: block; margin: 20px 0; color: var(--hamiko-primary-dark); font-size: 1.65rem; font-weight: 900; letter-spacing: .04em; text-align: right; }
.hamiko-consult__card .hamiko-button { width: 100%; }

/* Story */
.hamiko-story { background: var(--hamiko-cream); }
.hamiko-story__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.hamiko-story__gallery { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 230px 230px; gap: 14px; }
.hamiko-story__image { margin: 0; overflow: hidden; border-radius: 22px; background: var(--hamiko-soft); }
.hamiko-story__image:first-child { grid-row: span 2; }
.hamiko-story__image img { width: 100%; height: 100%; object-fit: cover; }
.hamiko-story__gallery.is-placeholder { display: block; }
.hamiko-story__gallery.is-placeholder .hamiko-story__image { aspect-ratio: 3 / 2; }
.hamiko-story__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.hamiko-story__facts span { min-width: 0; padding: 16px; display: flex; flex-direction: column; border: 1px solid var(--hamiko-border); border-radius: 14px; background: #fff; }
.hamiko-story__facts strong { color: var(--hamiko-primary-dark); font-size: 1.2rem; }
.hamiko-story__facts small { color: var(--hamiko-muted); font-size: .68rem; }
.hamiko-admin-note { padding: 11px 14px; border-inline-start: 3px solid var(--hamiko-accent); border-radius: 8px; background: rgba(25,175,168,.08); color: var(--hamiko-muted); font-size: .76rem; }

/* Reviews */
.hamiko-reviews { background: #fff; }
.hamiko-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hamiko-review-card { min-width: 0; padding: 28px; border: 1px solid var(--hamiko-border); border-radius: var(--hamiko-radius); background: #fff; box-shadow: var(--hamiko-shadow-soft); }
.hamiko-review-card__rating { color: #dc9a16; letter-spacing: 3px; }
.hamiko-review-card blockquote { margin: 17px 0 20px; color: #45524e; font-size: .9rem; }
.hamiko-review-card footer { display: flex; flex-direction: column; border-top: 1px solid var(--hamiko-border); padding-top: 14px; }
.hamiko-review-card footer strong { font-size: .86rem; }
.hamiko-review-card footer a { color: var(--hamiko-primary); font-size: .72rem; }

/* Journal */
.hamiko-journal { background: #fff; }
.hamiko-journal-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 20px; }
.hamiko-article-card { overflow: hidden; border: 1px solid var(--hamiko-border); border-radius: var(--hamiko-radius); background: #fff; }
.hamiko-article-card.is-featured { grid-row: span 2; }
.hamiko-article-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--hamiko-soft); }
.hamiko-article-card.is-featured .hamiko-article-card__media { aspect-ratio: 16/11; }
.hamiko-article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.hamiko-article-card:hover .hamiko-article-card__media img { transform: scale(1.04); }
.hamiko-article-card__content { padding: 20px; }
.hamiko-article-card__content time { color: var(--hamiko-muted); font-size: .68rem; }
.hamiko-article-card h3 { margin: 7px 0 8px; font-size: 1.05rem; line-height: 1.55; font-weight: 900; }
.hamiko-article-card.is-featured h3 { font-size: 1.45rem; }
.hamiko-article-card h3 a:hover { color: var(--hamiko-primary); }
.hamiko-article-card p { margin: 0 0 12px; color: var(--hamiko-muted); font-size: .78rem; }
.hamiko-empty-content { padding: 55px; text-align: center; border: 1px dashed rgba(23,107,87,.3); border-radius: var(--hamiko-radius); background: var(--hamiko-cream); }
.hamiko-empty-content > div { width: 60px; height: 60px; margin: 0 auto; display: grid; place-items: center; border-radius: 18px; color: #fff; background: var(--hamiko-primary); }
.hamiko-empty-content > div .hamiko-icon { width: 30px; height: 30px; }
.hamiko-empty-content h3 { margin: 18px 0 7px; font-size: 1.25rem; font-weight: 900; }
.hamiko-empty-content p { max-width: 600px; margin: 0 auto; color: var(--hamiko-muted); }

/* FAQ */
.hamiko-faq { background: var(--hamiko-cream); }
.hamiko-faq__grid { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 85px; align-items: start; }
.hamiko-faq__intro { position: sticky; top: 190px; }
.hamiko-faq__intro .hamiko-button { margin-top: 25px; }
.hamiko-accordion { border-top: 1px solid var(--hamiko-border); }
.hamiko-accordion__item { border-bottom: 1px solid var(--hamiko-border); }
.hamiko-accordion__item h3 { margin: 0; }
.hamiko-accordion__item button { width: 100%; min-height: 76px; padding: 0 3px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 0; background: transparent; color: var(--hamiko-text); text-align: start; cursor: pointer; font-size: .96rem; font-weight: 900; }
.hamiko-accordion__plus { position: relative; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--hamiko-border); }
.hamiko-accordion__plus::before, .hamiko-accordion__plus::after { content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; background: var(--hamiko-primary); transform: translate(-50%,-50%); transition: transform var(--hamiko-transition); }
.hamiko-accordion__plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.hamiko-accordion__item.is-open .hamiko-accordion__plus::after { transform: translate(-50%,-50%) rotate(0); }
.hamiko-accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms ease; }
.hamiko-accordion__panel > p { min-height: 0; overflow: hidden; margin: 0; color: var(--hamiko-muted); font-size: .86rem; }
.hamiko-accordion__item.is-open .hamiko-accordion__panel { grid-template-rows: 1fr; }
.hamiko-accordion__item.is-open .hamiko-accordion__panel > p { padding-bottom: 23px; }

/* Footer */
.hamiko-footer { margin-top: 0 !important; padding: 0 0 26px; color: rgba(255,255,255,.78); background: #092e28; }
.hamiko-footer-cta { position: relative; top: -1px; transform: translateY(-50%); margin-bottom: -70px; min-height: 225px; padding: 42px 52px; display: flex; align-items: center; justify-content: space-between; gap: 45px; border-radius: 30px; color: #fff; background: linear-gradient(135deg, var(--hamiko-primary), var(--hamiko-primary-dark)); box-shadow: 0 24px 60px rgba(6,43,36,.28); overflow: hidden; }
.hamiko-footer-cta::after { content: ''; position: absolute; width: 330px; height: 330px; border: 65px solid rgba(255,255,255,.06); border-radius: 50%; inset: -160px auto auto -110px; }
.hamiko-footer-cta > * { position: relative; z-index: 2; }
.hamiko-footer-cta h2 { max-width: 650px; margin: 8px 0 7px; font-size: 2rem; line-height: 1.35; font-weight: 900; }
.hamiko-footer-cta p { margin: 0; color: rgba(255,255,255,.72); }
.hamiko-footer-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hamiko-footer-grid { padding-top: 120px; display: grid; grid-template-columns: 1.4fr .75fr .85fr 1.15fr; gap: 55px; }
.hamiko-footer-logo { height: 58px; filter: brightness(0) invert(1); }
.hamiko-footer-brand > p { max-width: 360px; margin: 20px 0; color: rgba(255,255,255,.63); font-size: .84rem; }
.hamiko-socials { display: flex; gap: 9px; }
.hamiko-socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: #fff; }
.hamiko-socials a:hover { background: var(--hamiko-accent); border-color: var(--hamiko-accent); }
.hamiko-footer-column h2 { margin: 0 0 18px; color: #fff; font-size: 1rem; font-weight: 900; }
.hamiko-footer-menu { display: grid; gap: 9px; list-style: none; padding: 0; margin: 0; }
.hamiko-footer-menu a { color: rgba(255,255,255,.67); font-size: .82rem; }
.hamiko-footer-menu a:hover { color: #fff; }
.hamiko-footer-contact { display: grid; gap: 12px; }
.hamiko-footer-contact > a, .hamiko-footer-contact > p { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: rgba(255,255,255,.72); }
.hamiko-footer-contact .hamiko-icon { width: 19px; height: 19px; margin-top: 4px; color: var(--hamiko-accent); }
.hamiko-footer-contact span { display: flex; flex-direction: column; }
.hamiko-footer-contact small { color: rgba(255,255,255,.48); font-size: .65rem; }
.hamiko-footer-contact strong { direction: ltr; font-size: .88rem; }
.hamiko-footer-contact p span { display: inline; font-size: .78rem; }
.hamiko-footer-bottom { margin-top: 55px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.45); font-size: .72rem; }
.hamiko-footer-bottom p { margin: 0; }
.hamiko-footer-bottom > div { display: flex; gap: 18px; }
.hamiko-footer-bottom a:hover { color: #fff; }

/* Parent/WooCommerce integration */
.hamiko-theme .site-header { display: none !important; }
.hamiko-theme .ss26-footer { display: none !important; }
.hamiko-theme .site-main { background: transparent; }
.hamiko-theme .btn-primary, .hamiko-theme .button.alt, .hamiko-theme button.button.alt, .hamiko-theme input.button.alt { background-color: var(--hamiko-primary) !important; border-color: var(--hamiko-primary) !important; }
.hamiko-theme .btn-primary:hover, .hamiko-theme .button.alt:hover, .hamiko-theme button.button.alt:hover { background-color: var(--hamiko-primary-dark) !important; }
.hamiko-theme .woocommerce-breadcrumb { color: var(--hamiko-muted); font-size: .75rem; }
.hamiko-theme .woocommerce-products-header, .hamiko-theme .ss26-woocommerce-page-header { border-radius: var(--hamiko-radius) !important; }
.hamiko-theme.woocommerce .products, .hamiko-theme.woocommerce-page .products { gap: 22px !important; }
.hamiko-theme.woocommerce ul.products li.product, .hamiko-theme.woocommerce-page ul.products li.product { border: 1px solid var(--hamiko-border) !important; border-radius: var(--hamiko-radius) !important; background: #fff !important; box-shadow: none !important; transition: transform var(--hamiko-transition), box-shadow var(--hamiko-transition), border-color var(--hamiko-transition); }
.hamiko-theme.woocommerce ul.products li.product:hover, .hamiko-theme.woocommerce-page ul.products li.product:hover { transform: translateY(-4px); border-color: rgba(23,107,87,.24) !important; box-shadow: var(--hamiko-shadow-soft) !important; }
.hamiko-theme.woocommerce ul.products li.product img, .hamiko-theme.woocommerce-page ul.products li.product img { background: var(--hamiko-soft); }
.hamiko-loop-single-badge { position: absolute; z-index: 4; top: 48px; inset-inline-start: 12px; padding: 5px 9px; border-radius: 8px; color: var(--hamiko-primary-dark); background: rgba(255,255,255,.92); box-shadow: 0 4px 14px rgba(0,0,0,.08); font-size: .63rem; font-weight: 900; }
.hamiko-loop-pack-meta { display: flex; align-items: center; gap: 6px; margin: 8px 14px 0; color: var(--hamiko-muted); font-size: .69rem; }
.hamiko-loop-pack-meta .hamiko-icon { width: 15px; height: 15px; color: var(--hamiko-primary); }
.hamiko-theme.woocommerce div.product { --wc-primary: var(--hamiko-primary); }
.hamiko-theme.woocommerce div.product .product_title { color: var(--hamiko-text); font-weight: 900; letter-spacing: -.035em; }
.hamiko-theme.woocommerce div.product .woocommerce-product-gallery, .hamiko-theme.woocommerce div.product div.summary { border-radius: var(--hamiko-radius); }
.hamiko-single-sales-model { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.hamiko-single-sales-model__item { padding: 12px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--hamiko-border); border-radius: 13px; background: #fff; }
.hamiko-single-sales-model__item > .hamiko-icon { width: 24px; height: 24px; color: var(--hamiko-primary); }
.hamiko-single-sales-model__item span { display: flex; flex-direction: column; line-height: 1.35; }
.hamiko-single-sales-model__item strong { font-size: .78rem; }
.hamiko-single-sales-model__item small { color: var(--hamiko-muted); font-size: .62rem; }
.hamiko-single-sales-model__item.is-primary { border-color: rgba(23,107,87,.25); background: var(--hamiko-soft); }
.hamiko-single-sales-model__item.is-disabled { opacity: .58; }
.hamiko-single-trust { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--hamiko-muted); font-size: .72rem; }
.hamiko-single-trust span { display: inline-flex; align-items: center; gap: 5px; }
.hamiko-single-trust .hamiko-icon { width: 15px; height: 15px; color: var(--hamiko-primary); }
.hamiko-theme .woocommerce-message, .hamiko-theme .woocommerce-info { border-top-color: var(--hamiko-primary); background: var(--hamiko-soft); }
.hamiko-theme .woocommerce-message::before, .hamiko-theme .woocommerce-info::before { color: var(--hamiko-primary); }
.hamiko-theme .woocommerce form .form-row input.input-text, .hamiko-theme .woocommerce form .form-row textarea, .hamiko-theme .select2-container--default .select2-selection--single { border-color: var(--hamiko-border); border-radius: 12px; background: #fff; }
.hamiko-theme .content-card { border-color: var(--hamiko-border); border-radius: var(--hamiko-radius); box-shadow: var(--hamiko-shadow-soft); }

/* Responsive */
@media (max-width: 1199.98px) {
  :root { --hamiko-container: min(1120px, calc(100vw - 40px)); }
  .hamiko-header__main { grid-template-columns: auto minmax(260px, 1fr) auto; gap: 18px; }
  .hamiko-consult-link { display: none; }
  .hamiko-menu > li > a { padding-inline: 8px; font-size: .8rem; }
  .hamiko-hero__grid { grid-template-columns: .95fr 1.05fr; gap: 36px; }
  .hamiko-hero__visual { min-height: 520px; }
  .hamiko-trust-item { padding-inline: 10px; }
  .hamiko-product-grid { gap: 16px; }
  .hamiko-story__grid { gap: 42px; }
  .hamiko-footer-grid { gap: 30px; }
}

@media (max-width: 991.98px) {
  :root { --hamiko-container: min(900px, calc(100vw - 32px)); }
  .admin-bar .hamiko-header { top: 46px; }
  .hamiko-announcement__links > span { display: none; }
  .hamiko-header__main { min-height: 72px; grid-template-columns: 44px 1fr auto; gap: 10px; }
  .hamiko-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hamiko-brand { justify-content: center; min-width: 0; max-width: 160px; margin-inline: auto; }
  .hamiko-logo { height: 45px; }
  .hamiko-header__main > .hamiko-search { display: none; }
  .hamiko-header-actions { gap: 6px; }
  .hamiko-header-icon-link { width: 42px; height: 42px; border: 0; background: var(--hamiko-soft); }
  .hamiko-header-actions .hamiko-header-icon-link:first-of-type { display: none; }
  .hamiko-search--mobile { display: block; padding-bottom: 10px; }
  .hamiko-search--mobile form { position: relative; display: flex; align-items: center; }
  .hamiko-search--mobile input[type="search"] { height: 46px; padding-inline: 48px 14px; }
  .hamiko-primary-nav { position: fixed; z-index: 1100; top: 0; bottom: 0; inset-inline-start: 0; width: min(390px, 88vw); border: 0; box-shadow: var(--hamiko-shadow); transform: translateX(105%); transition: transform 260ms ease; overflow-y: auto; }
  .hamiko-ltr .hamiko-primary-nav { transform: translateX(-105%); }
  .hamiko-primary-nav.is-open { transform: translateX(0); }
  .hamiko-primary-nav__inner { min-height: 100%; padding: 0 18px 28px; display: block; }
  .hamiko-mobile-nav-head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--hamiko-border); }
  .hamiko-mobile-nav-head > a { max-width: 145px; }
  .hamiko-mobile-nav-head button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--hamiko-soft); color: var(--hamiko-primary-dark); }
  .hamiko-logo--mobile { height: 44px; }
  .hamiko-menu { display: block; padding: 12px 0; }
  .hamiko-menu > li { border-bottom: 1px solid var(--hamiko-border); }
  .hamiko-menu > li > a { min-height: 50px; padding: 0 4px; font-size: .88rem; }
  .hamiko-menu .sub-menu { position: static; display: none; min-width: 0; padding: 0 12px 12px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .hamiko-menu li.is-submenu-open > .sub-menu { display: block; }
  .hamiko-menu .sub-menu a { min-height: 40px; padding: 7px 10px; background: var(--hamiko-cream); margin-bottom: 4px; }
  .hamiko-menu .sub-menu .sub-menu { position: static; }
  .hamiko-wholesale-link { min-height: 48px; width: 100%; justify-content: center; margin-top: 14px; }
  .hamiko-menu-backdrop { position: fixed; z-index: 1090; inset: 0; display: block; background: rgba(4,24,20,.55); opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 220ms ease; }
  .hamiko-menu-backdrop.is-visible { opacity: 1; visibility: visible; }
  .hamiko-hero { padding: 58px 0 70px; }
  .hamiko-hero__grid { grid-template-columns: 1fr; gap: 46px; }
  .hamiko-hero__content { max-width: 760px; }
  .hamiko-hero h1 { max-width: 760px; }
  .hamiko-hero__visual { width: min(680px, 100%); min-height: 550px; margin-inline: auto; }
  .hamiko-trust-strip { margin-top: -22px; }
  .hamiko-trust-strip__grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .hamiko-trust-item { padding: 12px; border-bottom: 1px solid var(--hamiko-border); }
  .hamiko-trust-item:nth-child(3) { border-inline-end: 0; }
  .hamiko-trust-item:nth-last-child(-n+2) { border-bottom: 0; }
  .hamiko-section { padding: 82px 0; }
  .hamiko-category-grid { grid-template-columns: repeat(3, 1fr); }
  .hamiko-category-card.is-featured { grid-column: span 2; }
  .hamiko-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hamiko-purchase-model__grid { grid-template-columns: 1fr; }
  .hamiko-purchase-card { min-height: 390px; }
  .hamiko-steps__list { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .hamiko-steps__list::before { display: none; }
  .hamiko-consult__grid { grid-template-columns: 1fr 380px; gap: 36px; }
  .hamiko-story__grid { grid-template-columns: 1fr; }
  .hamiko-story__gallery { order: 2; }
  .hamiko-journal-grid { grid-template-columns: 1fr 1fr; }
  .hamiko-article-card.is-featured { grid-column: span 2; grid-row: auto; }
  .hamiko-faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .hamiko-faq__intro { position: static; }
  .hamiko-footer-cta { transform: none; top: auto; margin: 0; border-radius: 0 0 28px 28px; }
  .hamiko-footer-grid { padding-top: 78px; grid-template-columns: 1.3fr 1fr 1fr; }
  .hamiko-footer-contact { grid-column: span 3; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  :root { --hamiko-container: calc(100vw - 28px); }
  body.hamiko-theme { font-size: 15px; }
  .hamiko-announcement__inner { min-height: 34px; justify-content: center; }
  .hamiko-announcement__links { display: none; }
  .hamiko-header__main { min-height: 66px; }
  .hamiko-brand { max-width: 130px; }
  .hamiko-logo { height: 39px; }
  .hamiko-header-icon-link { width: 38px; height: 38px; }
  .hamiko-search--mobile { padding-bottom: 8px; }
  .hamiko-hero { padding-top: 42px; }
  .hamiko-hero h1 { font-size: clamp(2.35rem, 10vw, 3.25rem); }
  .hamiko-hero__content > p { font-size: .96rem; }
  .hamiko-hero__actions { display: grid; grid-template-columns: 1fr; }
  .hamiko-hero__actions .hamiko-button { width: 100%; }
  .hamiko-hero__benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hamiko-hero__visual { min-height: 450px; }
  .hamiko-hero-photo { border-width: 4px; }
  .hamiko-hero-photo--1 { width: 66%; height: 82%; }
  .hamiko-hero-photo--2 { width: 46%; height: 52%; }
  .hamiko-hero-photo--3 { display: none; }
  .hamiko-hero-stat { width: 205px; min-height: 76px; }
  .hamiko-hero-label { top: 4%; inset-inline-start: 0; }
  .hamiko-trust-strip__grid { display: flex; overflow-x: auto; padding: 12px; scroll-snap-type: inline mandatory; }
  .hamiko-trust-item { flex: 0 0 210px; border-bottom: 0; border-inline-end: 1px solid var(--hamiko-border) !important; scroll-snap-align: start; }
  .hamiko-trust-item:last-child { border-inline-end: 0 !important; }
  .hamiko-section { padding: 68px 0; }
  .hamiko-section-head { align-items: flex-start; margin-bottom: 28px; }
  .hamiko-section-head h2, .hamiko-story__content h2, .hamiko-consult__content h2, .hamiko-faq__intro h2 { font-size: 1.9rem; }
  .hamiko-section-head > .hamiko-text-link { display: none; }
  .hamiko-category-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; gap: 12px; }
  .hamiko-category-card.is-featured { grid-column: span 2; grid-row: span 1; }
  .hamiko-category-card.is-featured .hamiko-category-card__content strong { font-size: 1.25rem; }
  .hamiko-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hamiko-product-body { padding: 12px; }
  .hamiko-product-title { font-size: .78rem; }
  .hamiko-product-commerce { display: block; }
  .hamiko-product-pack { margin-top: 4px; }
  .hamiko-product-cta { font-size: .7rem; }
  .hamiko-purchase-card { min-height: 0; padding: 27px; }
  .hamiko-purchase-card h3 { font-size: 1.42rem; }
  .hamiko-purchase-card ul { grid-template-columns: 1fr; }
  .hamiko-steps__list { grid-template-columns: 1fr; }
  .hamiko-steps__list li { display: grid; grid-template-columns: 52px 1fr; align-items: stretch; text-align: start; }
  .hamiko-steps__list li > span { width: 48px; height: 48px; margin: 16px 0 0; border-width: 5px; }
  .hamiko-steps__list li > div { min-height: 0; padding: 20px; }
  .hamiko-seasonal__panel { min-height: 380px; padding: 38px 28px; align-items: flex-end; border-radius: 25px; }
  .hamiko-seasonal h2 { font-size: 2.2rem; }
  .hamiko-consult__grid { grid-template-columns: 1fr; }
  .hamiko-consult__card { padding: 28px; }
  .hamiko-story__gallery { grid-template-rows: 180px 180px; }
  .hamiko-story__facts { grid-template-columns: 1fr; }
  .hamiko-review-grid { display: flex; overflow-x: auto; scroll-snap-type: inline mandatory; }
  .hamiko-review-card { flex: 0 0 88%; scroll-snap-align: start; }
  .hamiko-journal-grid { grid-template-columns: 1fr; }
  .hamiko-article-card.is-featured { grid-column: auto; }
  .hamiko-empty-content { padding: 36px 20px; }
  .hamiko-footer-cta { padding: 36px 26px; display: block; }
  .hamiko-footer-cta h2 { font-size: 1.6rem; }
  .hamiko-footer-cta__actions { margin-top: 20px; }
  .hamiko-footer-cta__actions .hamiko-button { width: 100%; }
  .hamiko-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 25px; }
  .hamiko-footer-brand { grid-column: span 2; }
  .hamiko-footer-contact { grid-column: span 2; grid-template-columns: 1fr; }
  .hamiko-footer-bottom { display: block; text-align: center; }
  .hamiko-footer-bottom > div { margin-top: 10px; justify-content: center; }
  .hamiko-single-sales-model { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  :root { --hamiko-container: calc(100vw - 22px); }
  .hamiko-announcement { font-size: .7rem; }
  .hamiko-header-actions .hamiko-header-icon-link:first-of-type { display: none; }
  .hamiko-hero__benefits { grid-template-columns: 1fr; }
  .hamiko-hero__visual { min-height: 395px; }
  .hamiko-hero-stat { width: 188px; inset-inline-end: -2%; }
  .hamiko-category-grid { grid-auto-rows: 190px; }
  .hamiko-category-card__content { inset: auto 12px 12px; }
  .hamiko-category-card__content > .hamiko-icon { width: 34px; height: 34px; padding: 9px; }
  .hamiko-product-title { min-height: 4.8em; }
  .hamiko-product-price { font-size: .8rem; }
  .hamiko-product-pack { white-space: normal; font-size: .59rem; }
  .hamiko-badge { font-size: .56rem; }
  .hamiko-story__gallery { display: block; }
  .hamiko-story__image { aspect-ratio: 4/3; margin-bottom: 10px; }
  .hamiko-footer-grid { grid-template-columns: 1fr; }
  .hamiko-footer-brand, .hamiko-footer-contact { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .hamiko-announcement, .hamiko-header, .hamiko-footer-cta, .hamiko-mobile-toggle, .hamiko-menu-backdrop { display: none !important; }
  .hamiko-footer { background: #fff; color: #000; }
  .hamiko-section { padding: 24px 0; }
}

/* Wholesale price hierarchy */
.hamiko-product-price { display: flex; flex-direction: column; line-height: 1.4; }
.hamiko-product-price > small { color: var(--hamiko-muted); font-size: .58rem; font-weight: 500; }
.hamiko-product-pack-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.hamiko-product-pack-total { display: flex; align-items: baseline; gap: 4px; color: var(--hamiko-primary-dark); font-size: .62rem; white-space: nowrap; }
.hamiko-product-pack-total small { color: var(--hamiko-muted); font-size: .56rem; }
.hamiko-product-pack-total strong { font-size: .66rem; }
.hamiko-loop-pack-meta { flex-wrap: wrap; }
.hamiko-loop-pack-meta strong { flex-basis: 100%; color: var(--hamiko-primary-dark); font-size: .67rem; }

/* Consultation lead form */
.hamiko-consult-form { display: grid; gap: 12px; margin-top: 20px; }
.hamiko-consult-form label { display: grid; gap: 5px; }
.hamiko-consult-form label > span { color: #51605b; font-size: .68rem; font-weight: 800; }
.hamiko-consult-form input, .hamiko-consult-form select { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--hamiko-border); border-radius: 11px; color: var(--hamiko-text); background: #fff; outline: 0; }
.hamiko-consult-form input:focus, .hamiko-consult-form select:focus { border-color: var(--hamiko-primary); box-shadow: 0 0 0 3px rgba(23,107,87,.1); }
.hamiko-consult-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hamiko-consult-form .hamiko-button { width: 100%; margin-top: 3px; }
.hamiko-honeypot { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hamiko-form-message { margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: .73rem; }
.hamiko-form-message.is-success { color: #0b5c47; background: #dff7ef; }
.hamiko-form-message.is-error { color: #8b2929; background: #fde9e9; }
.hamiko-consult-direct { margin: 12px 0 0 !important; text-align: center; color: var(--hamiko-muted); font-size: .7rem; }
.hamiko-consult-direct a { direction: ltr; display: inline-block; color: var(--hamiko-primary); font-weight: 900; }
@media (max-width: 430px) { .hamiko-consult-form__row { grid-template-columns: 1fr; } }

/* 1.0.1 — Header search, button contrast and mobile drawer fixes */
.hamiko-search > .hamiko-icon,
.hamiko-search form > .hamiko-icon {
  top: 50% !important;
  inset-inline-start: 20px !important;
  inset-inline-end: auto !important;
  transform: translateY(-50%) !important;
}

.hamiko-search input[type="search"] {
  padding-inline-start: 62px !important;
  padding-inline-end: 112px !important;
}

.hamiko-theme a.hamiko-button--light,
.hamiko-theme button.hamiko-button--light,
.hamiko-theme .hamiko-button--light {
  color: var(--hamiko-primary-dark) !important;
  -webkit-text-fill-color: var(--hamiko-primary-dark) !important;
  background-color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.hamiko-theme .hamiko-button--light .hamiko-icon,
.hamiko-theme .hamiko-button--light svg,
.hamiko-theme .hamiko-button--light span,
.hamiko-theme .hamiko-button--light strong {
  color: var(--hamiko-primary-dark) !important;
  -webkit-text-fill-color: var(--hamiko-primary-dark) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.hamiko-theme a.hamiko-button--light:hover,
.hamiko-theme button.hamiko-button--light:hover,
.hamiko-theme .hamiko-button--light:hover {
  color: var(--hamiko-primary-dark) !important;
  -webkit-text-fill-color: var(--hamiko-primary-dark) !important;
  background-color: #e9fffa !important;
}

.hamiko-theme .hamiko-button--ghost-light,
.hamiko-theme .hamiko-button--ghost-light:hover,
.hamiko-theme .hamiko-button--ghost-light .hamiko-icon {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Ajax header search */
.hamiko-search-results[hidden] { display: none !important; }
.hamiko-search-results {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 9px);
  inset-inline: 0;
  max-height: min(520px, calc(100vh - 150px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid var(--hamiko-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(9, 53, 46, .18);
}
.hamiko-search-result {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 12px;
  color: var(--hamiko-text) !important;
  transition: background var(--hamiko-transition), color var(--hamiko-transition);
}
.hamiko-search-result:hover,
.hamiko-search-result:focus,
.hamiko-search-result.is-active {
  color: var(--hamiko-text) !important;
  background: var(--hamiko-soft);
  outline: 0;
}
.hamiko-search-result__image {
  width: 58px;
  height: 68px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--hamiko-soft);
}
.hamiko-search-result__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.hamiko-search-result__body { min-width: 0; }
.hamiko-search-result__title {
  display: block;
  overflow: hidden;
  color: var(--hamiko-text);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.65;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hamiko-search-result__meta {
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  color: var(--hamiko-muted);
  font-size: .66rem;
}
.hamiko-search-result__meta b { direction: ltr; unicode-bidi: plaintext; font-weight: 700; }
.hamiko-search-result__side {
  min-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: end;
}
.hamiko-search-result__price { color: var(--hamiko-primary-dark); font-size: .74rem; font-weight: 900; white-space: nowrap; }
.hamiko-search-result__price del { display: none; }
.hamiko-search-result__price ins { text-decoration: none; }
.hamiko-search-result__stock { color: var(--hamiko-primary); font-size: .61rem; font-weight: 800; }
.hamiko-search-result__stock.is-out { color: var(--hamiko-danger); }
.hamiko-search-status {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  color: var(--hamiko-muted);
  font-size: .78rem;
  text-align: center;
}
.hamiko-search-status.is-loading::before {
  content: '';
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border: 2px solid rgba(23,107,87,.18);
  border-top-color: var(--hamiko-primary);
  border-radius: 50%;
  animation: hamiko-search-spin .75s linear infinite;
}
.hamiko-search-results__all {
  min-height: 42px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--hamiko-border);
  border-radius: 0 0 10px 10px;
  color: var(--hamiko-primary) !important;
  font-size: .75rem;
  font-weight: 900;
}
.hamiko-search-results__all:hover { background: var(--hamiko-soft); }
@keyframes hamiko-search-spin { to { transform: rotate(360deg); } }

@media (max-width: 991.98px) {
  /* backdrop-filter on an ancestor turns position:fixed into a header-sized box. */
  .hamiko-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    contain: none !important;
  }
  .hamiko-search--mobile form { width: 100%; }
  .hamiko-search--mobile input[type="search"] {
    padding-inline-start: 58px !important;
    padding-inline-end: 16px !important;
  }
  .hamiko-search--mobile .hamiko-search-results {
    top: calc(100% + 6px);
    max-height: min(62vh, 470px);
  }
  .hamiko-primary-nav {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    height: 100dvh !important;
    min-height: 100vh;
    max-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  .hamiko-primary-nav .hamiko-primary-nav__inner {
    width: 100% !important;
    max-width: none !important;
    min-height: 100% !important;
    margin: 0 !important;
    overflow-x: hidden;
  }
  .hamiko-primary-nav .hamiko-menu,
  .hamiko-primary-nav .sub-menu,
  .hamiko-primary-nav li,
  .hamiko-primary-nav a { max-width: 100%; }
  .hamiko-primary-nav .hamiko-menu,
  .hamiko-primary-nav .sub-menu { overflow-x: hidden !important; }
  .hamiko-menu-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
  }
  .admin-bar .hamiko-primary-nav {
    top: 46px !important;
    height: calc(100dvh - 46px) !important;
    min-height: calc(100vh - 46px);
  }
  .admin-bar .hamiko-menu-backdrop { top: 46px !important; height: calc(100dvh - 46px) !important; }
}

@media (max-width: 600px) {
  .hamiko-search-result { grid-template-columns: 48px minmax(0, 1fr); gap: 9px; }
  .hamiko-search-result__image { width: 48px; height: 58px; }
  .hamiko-search-result__side {
    grid-column: 2;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hamiko-search-result__title { font-size: .76rem; }
  .hamiko-search-result__meta { font-size: .6rem; }
  .hamiko-search-result__price { font-size: .68rem; }
}


/* 1.0.2 — spacing, readable headings, media proportions and page featured images */
.hamiko-section {
  padding-block: 78px;
}
.hamiko-section-head {
  margin-bottom: 30px;
}

/* More balanced headline scale. */
.hamiko-hero h1 {
  max-width: 680px;
  font-size: clamp(2.55rem, 4vw, 3.65rem);
  line-height: 1.24;
  letter-spacing: -.052em;
}
.hamiko-seasonal h2 {
  max-width: 620px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.38;
  letter-spacing: -.035em;
}
.hamiko-seasonal p,
.hamiko-seasonal .hamiko-kicker,
.hamiko-seasonal .hamiko-kicker * {
  color: rgba(255,255,255,.86) !important;
  -webkit-text-fill-color: currentColor !important;
}
.hamiko-purchase-card--primary h3,
.hamiko-purchase-card--primary p,
.hamiko-purchase-card--primary li {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.hamiko-purchase-card--primary p { opacity: .84; }
.hamiko-purchase-card h3 { font-size: clamp(1.3rem, 2vw, 1.62rem); }

/* Product photos: taller media, no false empty strip and no aggressive zoom. */
.hamiko-product-media {
  aspect-ratio: 3 / 4;
}
.hamiko-theme .hamiko-product-image {
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.hamiko-product-card:hover .hamiko-product-image {
  transform: scale(1.012);
}
.hamiko-theme.woocommerce ul.products li.product a img,
.hamiko-theme.woocommerce-page ul.products li.product a img {
  width: 100% !important;
  height: 390px !important;
  margin: 0 !important;
  display: block;
  object-fit: cover;
  object-position: center top;
  background: var(--hamiko-soft);
}

/* Exactly seven current categories without an orphaned last card. */
.hamiko-category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, 250px);
  grid-auto-rows: 250px;
}
.hamiko-category-card:not(.is-featured) {
  grid-column: span 1;
}
.hamiko-category-card.is-featured {
  grid-column: span 3;
  grid-row: span 2;
}

/* Story remains a finished section even before gallery images are supplied. */
.hamiko-story__grid--text-only {
  grid-template-columns: 1fr;
}
.hamiko-story__grid--text-only .hamiko-story__content {
  max-width: 920px;
  padding: 46px 50px;
  border: 1px solid var(--hamiko-border);
  border-radius: var(--hamiko-radius-lg);
  background: #fff;
  box-shadow: var(--hamiko-shadow-soft);
}
.hamiko-admin-note { display: none !important; }

/* Footer CTA gets its own breathing room instead of covering page content. */
.hamiko-footer {
  margin-top: 112px !important;
  padding-top: 1px;
}
.hamiko-footer-cta {
  top: auto;
  min-height: 205px;
  transform: translateY(-56px);
  margin-bottom: -20px;
  padding: 38px 48px;
}
.hamiko-footer-cta h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(1.45rem, 2.25vw, 1.85rem);
  line-height: 1.48;
  letter-spacing: -.025em;
}
.hamiko-footer-cta p,
.hamiko-footer-cta .hamiko-kicker,
.hamiko-footer-cta .hamiko-kicker * {
  color: rgba(255,255,255,.82) !important;
  -webkit-text-fill-color: currentColor !important;
}
.hamiko-footer-grid {
  padding-top: 46px;
}

/* Standard pages now display their actual featured image. */
.hamiko-page-container {
  padding-block: 46px 72px;
}
.hamiko-page-featured-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6.3;
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: var(--hamiko-radius-lg);
  background: var(--hamiko-soft);
  box-shadow: var(--hamiko-shadow-soft);
}
.hamiko-theme .hamiko-page-featured-image {
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
  object-position: center;
}
.hamiko-page-card {
  padding: clamp(24px, 4vw, 48px) !important;
}
.hamiko-page-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hamiko-border);
}
.hamiko-page-header .entry-title {
  margin: 0;
  color: var(--hamiko-text);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -.04em;
}
.hamiko-page-content img {
  border-radius: var(--hamiko-radius-sm);
}

@media (max-width: 1199.98px) {
  .hamiko-theme.woocommerce ul.products li.product a img,
  .hamiko-theme.woocommerce-page ul.products li.product a img {
    height: 330px !important;
  }
  .hamiko-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(2, 225px);
    grid-auto-rows: 225px;
  }
}

@media (max-width: 991.98px) {
  .hamiko-section { padding-block: 64px; }
  .hamiko-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 280px;
    grid-auto-rows: 220px;
  }
  .hamiko-category-card.is-featured {
    grid-column: span 3;
    grid-row: span 1;
  }
  .hamiko-category-card:not(.is-featured) { grid-column: span 1; }
  .hamiko-footer {
    margin-top: 70px !important;
  }
  .hamiko-footer-cta {
    transform: none;
    margin: 0;
    border-radius: 28px;
  }
  .hamiko-footer-grid { padding-top: 64px; }
}

@media (max-width: 767.98px) {
  .hamiko-section { padding-block: 52px; }
  .hamiko-section-head { margin-bottom: 24px; }
  .hamiko-hero h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
    line-height: 1.3;
  }
  .hamiko-seasonal h2 { font-size: clamp(1.65rem, 7vw, 2rem); }
  .hamiko-theme.woocommerce ul.products li.product a img,
  .hamiko-theme.woocommerce-page ul.products li.product a img {
    height: 245px !important;
  }
  .hamiko-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 230px;
    grid-auto-rows: 205px;
  }
  .hamiko-category-card.is-featured { grid-column: span 2; }
  .hamiko-category-card:not(.is-featured) { grid-column: span 1; }
  .hamiko-story__grid--text-only .hamiko-story__content { padding: 30px 24px; }
  .hamiko-footer { margin-top: 48px !important; }
  .hamiko-footer-cta { min-height: 0; padding: 32px 24px; }
  .hamiko-page-container { padding-block: 24px 52px; }
  .hamiko-page-featured-media {
    aspect-ratio: 16 / 9;
    margin-bottom: 14px;
    border-radius: 20px;
  }
}

@media (max-width: 430px) {
  .hamiko-theme.woocommerce ul.products li.product a img,
  .hamiko-theme.woocommerce-page ul.products li.product a img {
    height: 220px !important;
  }
  .hamiko-category-grid {
    grid-auto-rows: 190px;
  }
}

/* 1.0.3 — Strong primary-button contrast and real AJAX lead form */
.hamiko-theme a.hamiko-button--primary,
.hamiko-theme button.hamiko-button--primary,
.hamiko-theme input.hamiko-button--primary,
.hamiko-theme .hamiko-button--primary {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background-color: var(--hamiko-primary) !important;
  border-color: var(--hamiko-primary) !important;
  opacity: 1 !important;
}
.hamiko-theme a.hamiko-button--primary:hover,
.hamiko-theme button.hamiko-button--primary:hover,
.hamiko-theme .hamiko-button--primary:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background-color: var(--hamiko-primary-dark) !important;
  border-color: var(--hamiko-primary-dark) !important;
}
.hamiko-theme .hamiko-button--primary .hamiko-icon,
.hamiko-theme .hamiko-button--primary svg,
.hamiko-theme .hamiko-button--primary span,
.hamiko-theme .hamiko-button--primary strong {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  stroke: currentColor;
  opacity: 1 !important;
}
.hamiko-hero__actions .hamiko-button--primary {
  min-width: 225px;
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.hamiko-form-message[hidden] { display: none !important; }
.hamiko-form-message {
  outline: 0;
  line-height: 1.75;
}
.hamiko-consult-form[aria-busy="true"] input,
.hamiko-consult-form[aria-busy="true"] select {
  opacity: .72;
}
.hamiko-consult-form .hamiko-button.is-loading {
  cursor: wait;
  opacity: .86 !important;
  transform: none !important;
}
.hamiko-consult-form .hamiko-button.is-loading .hamiko-icon {
  animation: hamiko-consult-pulse 900ms ease-in-out infinite alternate;
}
@keyframes hamiko-consult-pulse {
  from { transform: translateX(0); opacity: .55; }
  to { transform: translateX(-5px); opacity: 1; }
}


/* 1.0.5 — compact headings, SEO-safe mobile hero order and four product scrollers */
.hamiko-section-head h2,
.hamiko-story__content h2,
.hamiko-consult__content h2,
.hamiko-faq__intro h2 {
  font-size: clamp(1.55rem, 2.15vw, 2.12rem);
  line-height: 1.42;
  letter-spacing: -.03em;
}
.hamiko-section-head p,
.hamiko-story__content > p,
.hamiko-consult__content > p,
.hamiko-faq__intro > p {
  font-size: .94rem;
}
.hamiko-hero h1 {
  max-width: 650px;
  font-size: clamp(2.1rem, 3.25vw, 3.1rem);
  line-height: 1.3;
  letter-spacing: -.042em;
}
.hamiko-seasonal h2 {
  font-size: clamp(1.6rem, 2.55vw, 2.15rem);
}
.hamiko-footer-cta h2 {
  font-size: clamp(1.45rem, 2vw, 1.82rem);
}

.hamiko-home-collections {
  padding-block: 72px;
  background: linear-gradient(180deg, #fff 0%, var(--hamiko-cream) 48%, #fff 100%);
}
.hamiko-collection-block + .hamiko-collection-block {
  margin-top: 62px;
  padding-top: 58px;
  border-top: 1px solid var(--hamiko-border);
}
.hamiko-collection-head {
  align-items: center;
  margin-bottom: 25px;
}
.hamiko-section-head__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hamiko-product-scroller {
  grid-auto-columns: clamp(250px, 22vw, 292px);
  gap: 18px;
  padding: 5px 3px 20px;
  scroll-padding-inline: 3px;
}
.hamiko-product-scroller::-webkit-scrollbar {
  height: 7px;
}
.hamiko-product-scroller::-webkit-scrollbar-track {
  background: rgba(23, 107, 87, .06);
  border-radius: 999px;
}
.hamiko-product-scroller::-webkit-scrollbar-thumb {
  background: rgba(23, 107, 87, .3);
  border-radius: 999px;
}
.hamiko-collection-block--sale .hamiko-badge--primary {
  background: #b93838;
}
.hamiko-collection-block--restocked .hamiko-badge--primary {
  background: #157a68;
}

@media (max-width: 991.98px) {
  /* Text remains first in the HTML for semantics/SEO; only the visual order changes. */
  .hamiko-hero__visual { order: -1; }
  .hamiko-hero__content { order: 1; }
  .hamiko-home-collections { padding-block: 60px; }
  .hamiko-collection-block + .hamiko-collection-block { margin-top: 52px; padding-top: 48px; }
  .hamiko-product-scroller { grid-auto-columns: minmax(245px, 38vw); }
}

@media (max-width: 767.98px) {
  .hamiko-hero__grid { gap: 30px; }
  .hamiko-hero h1 { font-size: clamp(1.82rem, 8vw, 2.38rem); }
  .hamiko-section-head h2,
  .hamiko-story__content h2,
  .hamiko-consult__content h2,
  .hamiko-faq__intro h2 { font-size: clamp(1.35rem, 6.2vw, 1.72rem); }
  .hamiko-section-head p,
  .hamiko-story__content > p,
  .hamiko-consult__content > p,
  .hamiko-faq__intro > p { font-size: .86rem; }
  .hamiko-home-collections { padding-block: 50px; }
  .hamiko-collection-block + .hamiko-collection-block { margin-top: 44px; padding-top: 40px; }
  .hamiko-collection-head { margin-bottom: 20px; }
  .hamiko-section-head__actions { gap: 8px; }
  .hamiko-section-head__actions > .hamiko-text-link { display: none; }
  .hamiko-product-scroller { grid-auto-columns: min(78vw, 286px); gap: 13px; padding-bottom: 16px; }
  .hamiko-seasonal h2 { font-size: clamp(1.45rem, 6.5vw, 1.78rem); }
}

@media (max-width: 479.98px) {
  .hamiko-product-scroller { grid-auto-columns: min(82vw, 280px); }
}


/* 1.0.6 — configurable collections, dedicated offers page, category scrollers and portrait media */
.hamiko-section-head__actions {
  gap: 12px;
}

/* Product loop images stay portrait on every viewport, including category archives. */
.hamiko-theme.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img,
.hamiko-theme.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link img,
.hamiko-theme.woocommerce ul.products li.product > a img,
.hamiko-theme.woocommerce-page ul.products li.product > a img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4;
  object-fit: cover !important;
  object-position: center top !important;
}

/* Child product categories on parent category archives. */
.hamiko-child-categories {
  margin: 0 0 34px;
  padding: 24px;
  border: 1px solid var(--hamiko-border);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, var(--hamiko-soft));
  box-shadow: var(--hamiko-shadow-soft);
}
.hamiko-child-categories__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.hamiko-child-categories__head h2 {
  margin: 5px 0 0;
  color: var(--hamiko-text);
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  line-height: 1.45;
}
.hamiko-child-categories__head > small {
  color: var(--hamiko-muted);
  white-space: nowrap;
}
.hamiko-child-category-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(180px, 18vw, 225px);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  cursor: grab;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(23,107,87,.28) transparent;
}
.hamiko-child-category-scroller.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}
.hamiko-child-category-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hamiko-border);
  border-radius: 18px;
  color: #fff;
  background: var(--hamiko-soft);
  scroll-snap-align: start;
}
.hamiko-child-category-card__media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.hamiko-child-category-card__media::after {
  content: "";
  position: absolute;
  inset: 34% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(5,31,26,.86));
  pointer-events: none;
}
.hamiko-child-category-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform 320ms ease;
}
.hamiko-child-category-card:hover .hamiko-child-category-card__media img {
  transform: scale(1.02);
}
.hamiko-child-category-card__content {
  position: absolute;
  z-index: 2;
  inset: auto 15px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3px 10px;
}
.hamiko-child-category-card__content strong {
  font-size: .96rem;
  line-height: 1.55;
}
.hamiko-child-category-card__content small {
  grid-column: 1;
  color: rgba(255,255,255,.75);
  font-size: .68rem;
}
.hamiko-child-category-card__content .hamiko-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}

/* Dedicated /off/ special-offers page. */
.hamiko-off-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 82px;
  background:
    radial-gradient(circle at 12% 22%, rgba(25,175,168,.15), transparent 28%),
    linear-gradient(135deg, #f8fbfa 0%, #f0f8f5 54%, #fff8f5 100%);
}
.hamiko-off-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  inset: -210px auto auto -100px;
  border: 72px solid rgba(185,56,56,.055);
  border-radius: 50%;
}
.hamiko-off-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: 70px;
}
.hamiko-off-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--hamiko-muted);
  font-size: .78rem;
}
.hamiko-off-breadcrumb a {
  color: var(--hamiko-primary);
}
.hamiko-off-hero h1 {
  margin: 10px 0 18px;
  color: var(--hamiko-text);
  font-size: clamp(2.35rem, 4.2vw, 4rem);
  line-height: 1.25;
  letter-spacing: -.055em;
}
.hamiko-off-hero__content > p {
  max-width: 660px;
  margin: 0;
  color: var(--hamiko-muted);
  font-size: 1rem;
  line-height: 2;
}
.hamiko-off-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hamiko-off-hero__visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}
.hamiko-off-hero__shape {
  position: relative;
  z-index: 2;
  width: min(330px, 90%);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 42% 58% 52% 48% / 46% 44% 56% 54%;
  color: #fff;
  background: linear-gradient(145deg, #b93838, #7e1f2b);
  box-shadow: 0 34px 70px rgba(126,31,43,.22);
  transform: rotate(-3deg);
}
.hamiko-off-hero__shape .hamiko-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 10px;
}
.hamiko-off-hero__shape strong {
  font-size: 3rem;
  line-height: 1;
}
.hamiko-off-hero__shape span {
  margin-top: 8px;
  font-size: .82rem;
}
.hamiko-off-orbit {
  position: absolute;
  border: 1px solid rgba(23,107,87,.18);
  border-radius: 50%;
}
.hamiko-off-orbit--1 {
  width: 360px;
  height: 360px;
}
.hamiko-off-orbit--2 {
  width: 430px;
  height: 430px;
}
.hamiko-off-products {
  background: #fff;
}
.hamiko-off-products__head {
  align-items: end;
}
.hamiko-off-result-count {
  padding: 10px 14px;
  border: 1px solid var(--hamiko-border);
  border-radius: 999px;
  color: var(--hamiko-primary-dark);
  background: var(--hamiko-soft);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.hamiko-off-category-filter {
  display: flex;
  gap: 9px;
  margin: -4px 0 30px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.hamiko-off-category-filter a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid var(--hamiko-border);
  border-radius: 999px;
  color: var(--hamiko-text);
  background: #fff;
  font-size: .77rem;
  font-weight: 800;
}
.hamiko-off-category-filter a small {
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--hamiko-primary-dark);
  background: var(--hamiko-soft);
  font-size: .62rem;
}
.hamiko-off-category-filter a.is-active,
.hamiko-off-category-filter a:hover {
  border-color: var(--hamiko-primary);
  color: #fff;
  background: var(--hamiko-primary);
}
.hamiko-off-category-filter a.is-active small,
.hamiko-off-category-filter a:hover small {
  color: var(--hamiko-primary-dark);
  background: #fff;
}
.hamiko-off-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.hamiko-pagination {
  margin-top: 42px;
}
.hamiko-pagination .page-numbers {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.hamiko-pagination a,
.hamiko-pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--hamiko-border);
  border-radius: 12px;
  color: var(--hamiko-text);
  background: #fff;
}
.hamiko-pagination .current,
.hamiko-pagination a:hover {
  border-color: var(--hamiko-primary);
  color: #fff;
  background: var(--hamiko-primary);
}

@media (max-width: 1199.98px) {
  .hamiko-off-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .hamiko-off-hero {
    padding: 58px 0 68px;
  }
  .hamiko-off-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hamiko-off-hero__content {
    order: 1;
  }
  .hamiko-off-hero__visual {
    min-height: 310px;
    order: 0;
  }
  .hamiko-off-hero__shape {
    width: min(290px, 84%);
  }
  .hamiko-off-orbit--1 {
    width: 320px;
    height: 320px;
  }
  .hamiko-off-orbit--2 {
    width: 380px;
    height: 380px;
  }
}

@media (max-width: 767.98px) {
  .hamiko-child-categories {
    margin-bottom: 26px;
    padding: 18px 14px;
    border-radius: 20px;
  }
  .hamiko-child-categories__head {
    align-items: flex-start;
  }
  .hamiko-child-categories__head h2 {
    font-size: 1.24rem;
  }
  .hamiko-child-category-scroller {
    grid-auto-columns: min(58vw, 210px);
    gap: 11px;
  }
  .hamiko-child-category-card,
  .hamiko-child-category-card__media {
    aspect-ratio: 3 / 4;
  }
  .hamiko-off-hero {
    padding: 42px 0 52px;
  }
  .hamiko-off-hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
  .hamiko-off-hero__actions {
    display: grid;
  }
  .hamiko-off-hero__actions .hamiko-button {
    width: 100%;
  }
  .hamiko-off-products__head {
    align-items: flex-start;
  }
  .hamiko-off-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .hamiko-off-result-count {
    margin-top: 8px;
  }
}

@media (max-width: 430px) {
  .hamiko-child-category-scroller {
    grid-auto-columns: min(65vw, 205px);
  }
  .hamiko-off-grid {
    grid-template-columns: 1fr;
  }
  .hamiko-off-grid .hamiko-product-card {
    max-width: 330px;
    width: 100%;
    margin-inline: auto;
  }
}


@media (max-width: 767.98px) {
  /* Every homepage category card remains portrait on mobile; horizontal scrolling avoids an orphaned seventh card. */
  .hamiko-category-grid {
    display: grid;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-auto-flow: column;
    grid-auto-columns: min(58vw, 220px);
    grid-auto-rows: auto;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: inline mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .hamiko-category-card,
  .hamiko-category-card.is-featured,
  .hamiko-category-card:not(.is-featured) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
  }
  .hamiko-category-card.is-featured .hamiko-category-card__content strong {
    font-size: 1.08rem;
  }
}

@media (max-width: 430px) {
  .hamiko-category-grid {
    grid-auto-columns: min(64vw, 210px);
  }
}

/* 1.0.7 — SS26 pagination/header compatibility, clean product flow and pack quantity controls */
.hamiko-header.is-hidden {
  transform: translateY(calc(-100% - 8px));
  box-shadow: none;
}
body.hamiko-menu-open .hamiko-header {
  transform: none !important;
}

/* Dragging begins only after an actual horizontal movement; normal clicks stay active. */
[data-hamiko-drag-scroll].is-dragging,
[data-hamiko-drag-scroll].is-dragging * {
  cursor: grabbing !important;
}
[data-hamiko-drag-scroll].is-dragging a {
  pointer-events: none;
}

/* Archive cards: enforce a taller portrait image and a separate readable content area. */
.hamiko-theme.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.hamiko-theme.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--hamiko-radius) - 1px) calc(var(--hamiko-radius) - 1px) 0 0;
  background: #fff;
}
.hamiko-theme.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img,
.hamiko-theme.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link img,
.hamiko-theme.woocommerce ul.products li.product > a img,
.hamiko-theme.woocommerce-page ul.products li.product > a img {
  flex: 0 0 auto;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center top !important;
}
.hamiko-theme.woocommerce ul.products li.product .woocommerce-loop-product__title,
.hamiko-theme.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  position: relative;
  z-index: 6;
  width: 100%;
  min-height: 3.45em !important;
  margin: 0 !important;
  padding: 14px 14px 8px !important;
  background: #fff;
  box-shadow: 0 -1px 0 rgba(227,233,230,.85);
}
.hamiko-theme.woocommerce ul.products li.product .price,
.hamiko-theme.woocommerce-page ul.products li.product .price {
  position: relative;
  z-index: 6;
  background: #fff;
}
.hamiko-theme.woocommerce ul.products li.product .hamiko-loop-pack-meta,
.hamiko-theme.woocommerce-page ul.products li.product .hamiko-loop-pack-meta {
  position: relative;
  z-index: 6;
  background: #fff;
}

/* Pack-aware, accessible plus/minus quantity controller. */
.hamiko-theme .quantity {
  display: inline-grid !important;
  grid-template-columns: 42px minmax(62px, 86px) 42px;
  align-items: stretch;
  direction: ltr;
  overflow: hidden;
  border: 1px solid var(--hamiko-border);
  border-radius: 14px;
  background: #fff;
}
.hamiko-theme .quantity .qty {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-inline: 1px solid var(--hamiko-border) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--hamiko-text) !important;
  text-align: center !important;
  font-weight: 900;
  direction: ltr;
  box-shadow: none !important;
  appearance: textfield;
  -moz-appearance: textfield;
}
.hamiko-theme .quantity .qty::-webkit-outer-spin-button,
.hamiko-theme .quantity .qty::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.hamiko-quantity-button {
  width: 42px;
  min-width: 42px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: var(--hamiko-soft);
  color: var(--hamiko-primary-dark);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: background var(--hamiko-transition), color var(--hamiko-transition);
}
.hamiko-quantity-button:hover:not(:disabled) {
  background: var(--hamiko-primary);
  color: #fff;
}
.hamiko-quantity-button:disabled {
  color: #aab3b0;
  background: #f4f6f5;
  cursor: not-allowed;
}
.hamiko-theme form.cart {
  align-items: center;
}
.hamiko-theme .woocommerce-cart-form .quantity {
  margin-inline: auto;
}

/* SS26 infinite-scroll loader remains visible inside the child wrapper. */
.hamiko-shop-main.ss26-pagination-mode-scroll nav.woocommerce-pagination {
  min-height: 46px;
}

@media (max-width: 991.98px) {
  .hamiko-header.is-hidden {
    transform: translateY(calc(-100% - 8px)) !important;
  }
  body.hamiko-menu-open .hamiko-header {
    transform: none !important;
  }
}

@media (max-width: 575.98px) {
  .hamiko-theme.woocommerce ul.products li.product .woocommerce-loop-product__title,
  .hamiko-theme.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    padding: 11px 10px 6px !important;
    font-size: .82rem !important;
    line-height: 1.72 !important;
  }
  .hamiko-theme .quantity {
    grid-template-columns: 38px minmax(56px, 72px) 38px;
    border-radius: 12px;
  }
  .hamiko-quantity-button {
    width: 38px;
    min-width: 38px;
    height: 42px;
  }
  .hamiko-theme .quantity .qty {
    height: 42px !important;
  }
}

/* Keep the out-of-stock badge over the photo without pulling the product title upward. */
.hamiko-theme.woocommerce ul.products li.product .ss26-product-stock-badge,
.hamiko-theme.woocommerce-page ul.products li.product .ss26-product-stock-badge {
  height: 2rem !important;
  min-height: 2rem !important;
  margin: -3rem auto 1rem !important;
}
.hamiko-theme.woocommerce ul.products li.product .ss26-product-stock-badge + .woocommerce-loop-product__title,
.hamiko-theme.woocommerce-page ul.products li.product .ss26-product-stock-badge + .woocommerce-loop-product__title {
  margin-top: 0 !important;
}

/* 1.0.9 — Dedicated About and Contact pages without sidebars */
body.hamiko-dedicated-page .ss26-sidebar,
body.hamiko-dedicated-page .widget-area,
body.hamiko-dedicated-page aside.sidebar {
  display: none !important;
}
.hamiko-special-page {
  width: 100%;
  overflow: clip;
}
.hamiko-inner-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(135deg, var(--hamiko-primary-deep), var(--hamiko-primary));
  overflow: hidden;
}
.hamiko-inner-hero__media,
.hamiko-inner-hero__shade {
  position: absolute;
  inset: 0;
  margin: 0;
}
.hamiko-inner-hero__media { z-index: -3; }
.hamiko-inner-hero__image {
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
  object-position: center;
}
.hamiko-inner-hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4,34,29,.18) 0%, rgba(4,34,29,.58) 48%, rgba(4,34,29,.92) 100%),
    linear-gradient(0deg, rgba(4,34,29,.72) 0%, rgba(4,34,29,.05) 62%);
}
.hamiko-inner-hero.has-no-featured-image::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  inset: -170px auto auto -130px;
  border: 90px solid rgba(255,255,255,.06);
  border-radius: 50%;
}
.hamiko-inner-hero__content {
  padding-block: 104px 72px !important;
}
.hamiko-inner-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
}
.hamiko-inner-breadcrumb a:hover { color: #fff; }
.hamiko-inner-hero h1 {
  max-width: 820px;
  margin: 12px 0 14px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.22;
  letter-spacing: -.055em;
  font-weight: 950;
  text-shadow: 0 5px 30px rgba(0,0,0,.16);
}
.hamiko-inner-hero__content > p {
  max-width: 780px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.95;
}
.hamiko-inner-section {
  padding-block: 88px;
}
.hamiko-inner-section--soft {
  background: var(--hamiko-cream);
  border-block: 1px solid rgba(227,233,230,.8);
}
.hamiko-inner-section--last {
  padding-bottom: 24px;
}
.hamiko-about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 70px;
  align-items: center;
}
.hamiko-about-intro__content h2,
.hamiko-contact-info-panel h2,
.hamiko-contact-form-card > h2 {
  margin: 10px 0 18px;
  color: var(--hamiko-text);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.42;
  letter-spacing: -.04em;
  font-weight: 900;
}
.hamiko-about-intro__content p,
.hamiko-contact-info-panel > p {
  margin: 0 0 14px;
  color: var(--hamiko-muted);
  font-size: 1rem;
  line-height: 2.05;
}
.hamiko-about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hamiko-about-facts article {
  min-height: 174px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--hamiko-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--hamiko-shadow-soft);
}
.hamiko-about-facts .hamiko-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  color: var(--hamiko-accent);
}
.hamiko-about-facts strong {
  color: var(--hamiko-primary-dark);
  font-size: 1rem;
  font-weight: 900;
}
.hamiko-about-facts span {
  margin-top: 5px;
  color: var(--hamiko-muted);
  font-size: .78rem;
  line-height: 1.8;
}
.hamiko-about-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.hamiko-about-services article {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--hamiko-border);
  border-radius: 22px;
  background: #fff;
  transition: transform var(--hamiko-transition), box-shadow var(--hamiko-transition), border-color var(--hamiko-transition);
}
.hamiko-about-services article:hover {
  transform: translateY(-5px);
  border-color: rgba(23,107,87,.28);
  box-shadow: var(--hamiko-shadow-soft);
}
.hamiko-about-services article > span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--hamiko-accent);
  font-size: .78rem;
  font-weight: 900;
}
.hamiko-about-services h3 {
  margin: 0 0 10px;
  color: var(--hamiko-text);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 900;
}
.hamiko-about-services p {
  margin: 0;
  color: var(--hamiko-muted);
  font-size: .84rem;
  line-height: 1.9;
}
.hamiko-about-purchase-grid .hamiko-purchase-card {
  min-height: 420px;
}
.hamiko-about-steps { margin-top: 8px; }
.hamiko-inner-cta {
  position: relative;
  min-height: 250px;
  padding: 48px 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: #fff;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--hamiko-primary-deep), var(--hamiko-primary));
  box-shadow: var(--hamiko-shadow);
  overflow: hidden;
}
.hamiko-inner-cta::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  inset: -160px auto auto -130px;
  border: 62px solid rgba(255,255,255,.055);
  border-radius: 50%;
}
.hamiko-inner-cta > * { position: relative; z-index: 1; }
.hamiko-inner-cta h2 {
  max-width: 720px;
  margin: 10px 0 9px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.45;
  letter-spacing: -.035em;
  font-weight: 900;
}
.hamiko-inner-cta p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.78);
}
.hamiko-inner-cta__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.hamiko-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.hamiko-contact-card {
  min-height: 238px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--hamiko-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--hamiko-shadow-soft);
  transition: transform var(--hamiko-transition), box-shadow var(--hamiko-transition), border-color var(--hamiko-transition);
}
.hamiko-contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(23,107,87,.35);
  box-shadow: var(--hamiko-shadow);
}
.hamiko-contact-card--primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, var(--hamiko-primary-dark), var(--hamiko-primary));
}
.hamiko-contact-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  color: var(--hamiko-primary);
  border-radius: 17px;
  background: var(--hamiko-soft);
}
.hamiko-contact-card--primary .hamiko-contact-card__icon {
  color: var(--hamiko-primary-dark);
  background: #fff;
}
.hamiko-contact-card__icon .hamiko-icon { width: 27px; height: 27px; }
.hamiko-contact-card small { color: var(--hamiko-muted); font-size: .74rem; }
.hamiko-contact-card--primary small,
.hamiko-contact-card--primary > span:last-child { color: rgba(255,255,255,.72); }
.hamiko-contact-card strong {
  margin: 7px 0 8px;
  color: var(--hamiko-primary-dark);
  font-size: 1.45rem;
  letter-spacing: .01em;
  font-weight: 900;
}
.hamiko-contact-card--primary strong { color: #fff; }
.hamiko-contact-card > span:last-child {
  color: var(--hamiko-muted);
  font-size: .78rem;
  line-height: 1.8;
}
.hamiko-contact-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 54px;
  align-items: center;
}
.hamiko-contact-info-panel {
  padding: 8px 0;
}
.hamiko-contact-detail-list {
  display: grid;
  gap: 13px;
  margin-top: 30px;
}
.hamiko-contact-detail-list > div {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--hamiko-border);
  border-radius: 18px;
  background: #fff;
}
.hamiko-contact-detail-list > div > span {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--hamiko-primary);
  border-radius: 14px;
  background: var(--hamiko-soft);
}
.hamiko-contact-detail-list .hamiko-icon { width: 22px; height: 22px; }
.hamiko-contact-detail-list p { margin: 0; }
.hamiko-contact-detail-list small {
  display: block;
  margin-bottom: 4px;
  color: var(--hamiko-muted);
  font-size: .7rem;
}
.hamiko-contact-detail-list strong {
  display: block;
  color: var(--hamiko-text);
  font-size: .88rem;
  line-height: 1.9;
}
.hamiko-contact-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.hamiko-contact-socials {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
}
.hamiko-contact-socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--hamiko-primary);
  border: 1px solid var(--hamiko-border);
  border-radius: 14px;
  background: #fff;
  transition: color var(--hamiko-transition), background var(--hamiko-transition), transform var(--hamiko-transition);
}
.hamiko-contact-socials a:hover {
  color: #fff;
  background: var(--hamiko-primary);
  transform: translateY(-3px);
}
.hamiko-contact-form-card {
  width: 100%;
  max-width: none;
  margin: 0;
}
.hamiko-contact-form-card > h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}
.hamiko-contact-form-card .hamiko-consult-form {
  text-align: start;
}

@media (max-width: 1199.98px) {
  .hamiko-about-intro { gap: 40px; }
  .hamiko-about-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hamiko-contact-main-grid { gap: 34px; }
}

@media (max-width: 991.98px) {
  .hamiko-inner-hero { min-height: 430px; }
  .hamiko-inner-hero__content { padding-block: 90px 58px !important; }
  .hamiko-inner-section { padding-block: 66px; }
  .hamiko-about-intro,
  .hamiko-contact-main-grid {
    grid-template-columns: 1fr;
  }
  .hamiko-about-facts { max-width: 720px; }
  .hamiko-contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hamiko-contact-card--primary { grid-column: span 2; }
  .hamiko-contact-form-card { max-width: 680px; margin-inline: auto; }
  .hamiko-inner-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767.98px) {
  .hamiko-inner-hero { min-height: 410px; }
  .hamiko-inner-hero__shade {
    background: linear-gradient(0deg, rgba(4,34,29,.93) 0%, rgba(4,34,29,.42) 80%, rgba(4,34,29,.24) 100%);
  }
  .hamiko-inner-hero__content { padding-block: 80px 44px !important; }
  .hamiko-inner-hero h1 { font-size: clamp(2rem, 10vw, 2.75rem); }
  .hamiko-inner-breadcrumb { margin-bottom: 20px; }
  .hamiko-inner-section { padding-block: 52px; }
  .hamiko-inner-section--last { padding-bottom: 10px; }
  .hamiko-about-facts,
  .hamiko-about-services,
  .hamiko-contact-cards {
    grid-template-columns: 1fr;
  }
  .hamiko-contact-card--primary { grid-column: auto; }
  .hamiko-about-facts article { min-height: 148px; }
  .hamiko-about-services article { min-height: 0; }
  .hamiko-about-purchase-grid { grid-template-columns: 1fr; }
  .hamiko-about-purchase-grid .hamiko-purchase-card { min-height: 0; padding: 30px 24px; }
  .hamiko-about-purchase-grid .hamiko-purchase-card ul { grid-template-columns: 1fr; }
  .hamiko-inner-cta { min-height: 0; padding: 34px 25px; border-radius: 24px; }
  .hamiko-inner-cta__actions { width: 100%; }
  .hamiko-inner-cta__actions .hamiko-button { width: 100%; justify-content: center; }
  .hamiko-contact-card { min-height: 210px; padding: 25px; }
  .hamiko-contact-info-actions .hamiko-button { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hamiko-inner-hero { min-height: 380px; }
  .hamiko-inner-hero__image { object-position: center top; }
  .hamiko-about-facts { grid-template-columns: 1fr; }
  .hamiko-about-facts article { min-height: 132px; }
  .hamiko-contact-form-card { padding: 28px 20px; }
}


/* 1.0.10 — uncropped featured images and true-fit card media */

/* Dedicated About/Contact heroes: show the complete featured image above the text panel. */
.hamiko-inner-hero.has-featured-image {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-items: stretch;
  background: linear-gradient(135deg, var(--hamiko-primary-deep), var(--hamiko-primary));
}
.hamiko-inner-hero.has-featured-image .hamiko-inner-hero__media {
  position: relative;
  inset: auto;
  z-index: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f2f7f5;
}
.hamiko-inner-hero.has-featured-image .hamiko-inner-hero__image {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: min(78vh, 820px);
  display: block;
  object-fit: contain !important;
  object-position: center !important;
}
.hamiko-inner-hero.has-featured-image .hamiko-inner-hero__shade {
  display: none !important;
}
.hamiko-inner-hero.has-featured-image .hamiko-inner-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 44px 52px !important;
}

/* Standard page featured media: no fixed crop and no decorative overlay. */
.hamiko-page-featured-media {
  aspect-ratio: auto !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f2f7f5;
}
.hamiko-theme .hamiko-page-featured-image {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: min(78vh, 900px);
  object-fit: contain !important;
  object-position: center !important;
}

/* Single-post featured image: request the full source and keep every edge visible. */
.hamiko-theme .ss26-single-featured-media,
.hamiko-single-featured-media {
  aspect-ratio: auto !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #f2f7f5 !important;
}
.hamiko-theme .ss26-single-featured-media::after,
.hamiko-single-featured-media::after {
  display: none !important;
}
.hamiko-theme .ss26-single-featured-image,
.hamiko-single-featured-image {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: min(78vh, 960px);
  object-fit: contain !important;
  object-position: center !important;
}

/* Blog/archive cards and archive heroes also preserve their full image. */
.hamiko-theme .ss26-content-archive-card-media,
.hamiko-theme .ss26-content-archive-hero-media,
.hamiko-theme .hamiko-article-card__media {
  background: #f2f7f5 !important;
}
.hamiko-theme .ss26-content-archive-card-img,
.hamiko-theme .ss26-content-archive-hero-img,
.hamiko-theme .hamiko-article-card__media img {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
.hamiko-theme .hamiko-article-card:hover .hamiko-article-card__media img {
  transform: none !important;
}

/* Homepage product cards: fixed portrait canvas, full uncropped source. */
.hamiko-product-media {
  aspect-ratio: 2 / 3 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f7f5 !important;
}
.hamiko-product-image,
.hamiko-product-card:hover .hamiko-product-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

/* Main homepage category cards: keep the grid dimensions, show the whole category image. */
.hamiko-category-card__media,
.hamiko-child-category-card__media {
  background: #eaf3f0 !important;
}
.hamiko-category-card__media img,
.hamiko-child-category-card__media img,
.hamiko-category-card:hover .hamiko-category-card__media img,
.hamiko-child-category-card:hover .hamiko-child-category-card__media img {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

/* WooCommerce shop/category cards: portrait canvas with contain, never crop or zoom. */
.hamiko-theme.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.hamiko-theme.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link {
  background: #f2f7f5 !important;
}
.hamiko-theme.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img,
.hamiko-theme.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link img,
.hamiko-theme.woocommerce ul.products li.product > a img,
.hamiko-theme.woocommerce-page ul.products li.product > a img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  background: #f2f7f5 !important;
}
.hamiko-theme.woocommerce ul.products li.product:hover a img,
.hamiko-theme.woocommerce-page ul.products li.product:hover a img {
  transform: none !important;
}

@media (max-width: 767.98px) {
  .hamiko-inner-hero.has-featured-image .hamiko-inner-hero__image,
  .hamiko-theme .hamiko-page-featured-image,
  .hamiko-theme .ss26-single-featured-image {
    max-height: 72vh;
  }
  .hamiko-inner-hero.has-featured-image .hamiko-inner-hero__content {
    padding-block: 34px 40px !important;
  }
}


/* 1.0.11 — page hero flow and full-image card backdrops */

/* Dedicated pages: green introduction first, full-width featured image second. */
.hamiko-inner-hero.has-featured-image {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  color: #fff;
  background: transparent !important;
  overflow: visible;
}
.hamiko-inner-hero.has-featured-image .hamiko-inner-hero__content {
  order: 1;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: clamp(42px, 5vw, 76px) clamp(28px, 7vw, 120px) !important;
  color: #fff;
  background: linear-gradient(135deg, var(--hamiko-primary-deep), var(--hamiko-primary));
}
.hamiko-inner-hero.has-featured-image .hamiko-inner-hero__content > * {
  max-width: 1280px;
  margin-inline: auto;
}
.hamiko-inner-hero.has-featured-image .hamiko-inner-breadcrumb {
  margin-bottom: 22px;
}
.hamiko-inner-hero.has-featured-image .hamiko-inner-hero__media {
  order: 2;
  position: relative !important;
  inset: auto !important;
  z-index: 0 !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  display: block !important;
  overflow: hidden;
  line-height: 0;
  background: transparent !important;
}
.hamiko-inner-hero.has-featured-image .hamiko-inner-hero__image {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
}
.hamiko-inner-hero.has-featured-image .hamiko-inner-hero__shade {
  display: none !important;
}

/* 1.0.12 — row-aware, full-image product media without flat bands.
   The tallest intrinsic image in each visual row defines that row's media height.
   Shorter images remain fully visible and use a blurred copy of themselves behind. */
.hamiko-media-fit,
.hamiko-fit-media-frame {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  background: transparent !important;
  background-color: transparent !important;
}

.hamiko-product-media.hamiko-media-fit,
.hamiko-fit-media-frame {
  width: 100% !important;
  height: auto;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.hamiko-product-media.hamiko-media-fit.is-row-sized,
.hamiko-fit-media-frame.is-row-sized {
  height: var(--hamiko-row-media-height) !important;
}

.hamiko-fit-media-frame {
  margin: 0 0 1rem;
  border-radius: calc(var(--ss26-radius-lg, 1.25rem) - .25rem);
}

.hamiko-media-fit__backdrop {
  position: absolute;
  inset: -18%;
  z-index: 0;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(26px) saturate(1.08) brightness(.98);
  opacity: .78;
  transform: scale(1.2);
  pointer-events: none;
}

/* A tiny veil keeps text/badges readable without turning the backdrop into a flat strip. */
.hamiko-media-fit::after,
.hamiko-fit-media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.13));
  pointer-events: none;
}

.hamiko-media-fit > img,
.hamiko-fit-media-frame > img {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  margin: 0 !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  transform: none !important;
}

.hamiko-product-media.hamiko-media-fit.is-row-sized > img,
.hamiko-fit-media-frame.is-row-sized > img {
  height: 100% !important;
}

/* Keep badges above both the foreground and blurred background. */
.hamiko-product-media .hamiko-product-badges,
.hamiko-theme.woocommerce ul.products li.product .onsale,
.hamiko-theme.woocommerce-page ul.products li.product .onsale,
.hamiko-theme.woocommerce ul.products li.product .ss26-product-stock-badge,
.hamiko-theme.woocommerce-page ul.products li.product .ss26-product-stock-badge {
  z-index: 4 !important;
}

/* Product cards keep a stable content area while media height is row-aware. */
.hamiko-product-card,
.hamiko-theme.woocommerce ul.products li.product,
.hamiko-theme.woocommerce-page ul.products li.product {
  min-height: 0;
}
.hamiko-product-card .hamiko-product-body {
  flex: 1 1 auto;
}
.hamiko-theme.woocommerce ul.products li.product a.woocommerce-LoopProduct-link > .hamiko-fit-media-frame,
.hamiko-theme.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link > .hamiko-fit-media-frame {
  margin-bottom: 0 !important;
}

@media (max-width: 767.98px) {
  .hamiko-inner-hero.has-featured-image .hamiko-inner-hero__content {
    padding: 36px 24px 42px !important;
  }
  .hamiko-inner-hero.has-featured-image .hamiko-inner-hero__image {
    max-height: none !important;
  }
  .hamiko-media-fit__backdrop {
    inset: -22%;
    filter: blur(22px) saturate(1.06) brightness(.98);
  }
}

.hamiko-media-fit > img,
.hamiko-fit-media-frame > img {
  aspect-ratio: auto !important;
}

/* 1.0.13 — unified archive-card content, cleaner quantity control and friendly variable-product selection */

/* Keep all textual parts of WooCommerce cards on one calm, consistent surface. */
.hamiko-theme.woocommerce ul.products li.product,
.hamiko-theme.woocommerce-page ul.products li.product,
.hamiko-theme .related.products ul.products li.product,
.hamiko-theme .upsells.products ul.products li.product,
.hamiko-theme .cross-sells ul.products li.product {
  background: #fff !important;
}

.hamiko-theme.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.hamiko-theme.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link,
.hamiko-theme .related.products ul.products li.product a.woocommerce-LoopProduct-link,
.hamiko-theme .upsells.products ul.products li.product a.woocommerce-LoopProduct-link,
.hamiko-theme .cross-sells ul.products li.product a.woocommerce-LoopProduct-link,
.hamiko-theme.woocommerce ul.products li.product .woocommerce-loop-product__title,
.hamiko-theme.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.hamiko-theme.woocommerce ul.products li.product .price,
.hamiko-theme.woocommerce-page ul.products li.product .price,
.hamiko-theme.woocommerce ul.products li.product .hamiko-loop-pack-meta,
.hamiko-theme.woocommerce-page ul.products li.product .hamiko-loop-pack-meta {
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: none !important;
}

.hamiko-theme.woocommerce ul.products li.product .woocommerce-loop-product__title,
.hamiko-theme.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  border: 0 !important;
  border-top: 0 !important;
}

.hamiko-theme.woocommerce ul.products li.product .price,
.hamiko-theme.woocommerce-page ul.products li.product .price {
  border: 0 !important;
}

.hamiko-theme.woocommerce ul.products li.product .hamiko-loop-pack-meta,
.hamiko-theme.woocommerce-page ul.products li.product .hamiko-loop-pack-meta {
  margin-top: 0 !important;
  padding-top: 8px;
  border-top: 1px solid rgba(227, 233, 230, .7);
}

/* Remove the unnecessary outer frame; each control remains clearly tappable. */
.hamiko-theme .quantity {
  gap: 5px;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hamiko-theme .quantity .qty {
  border: 1px solid var(--hamiko-border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.hamiko-quantity-button {
  border: 1px solid var(--hamiko-border) !important;
  border-radius: 12px;
  background: #fff;
}

.hamiko-quantity-button.is-at-limit,
.hamiko-quantity-button[aria-disabled="true"] {
  color: #98a39f;
  background: #f6f8f7;
  cursor: not-allowed;
}

.hamiko-theme .quantity.is-limit-feedback {
  animation: hamiko-quantity-limit .24s ease;
}

@keyframes hamiko-quantity-limit {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(3px); }
  70% { transform: translateX(-3px); }
}

/* Variable products: make the required choice obvious without visual noise. */
.hamiko-variation-guide {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 16px;
  padding: 13px 14px;
  border: 1px solid rgba(23, 107, 87, .18);
  border-radius: 14px;
  background: #f2f8f6;
  color: var(--hamiko-primary-dark);
  line-height: 1.75;
  transition: border-color var(--hamiko-transition), background var(--hamiko-transition), color var(--hamiko-transition);
}

.hamiko-variation-guide__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--hamiko-primary);
  color: #fff;
  font-size: .92rem;
  font-weight: 900;
}

.hamiko-variation-guide strong,
.hamiko-variation-guide span {
  display: block;
}

.hamiko-variation-guide strong {
  margin-bottom: 1px;
  font-size: .92rem;
}

.hamiko-variation-guide span {
  color: var(--hamiko-muted);
  font-size: .8rem;
}

.hamiko-variation-guide.is-complete {
  border-color: rgba(25, 175, 168, .3);
  background: #ecfaf8;
}

.hamiko-variation-guide.is-complete .hamiko-variation-guide__icon {
  background: var(--hamiko-accent, #19afa8);
}

.hamiko-theme form.variations_form table.variations {
  width: 100%;
  margin-bottom: 10px;
}

.hamiko-theme form.variations_form table.variations tr {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.hamiko-theme form.variations_form table.variations th,
.hamiko-theme form.variations_form table.variations td {
  display: block;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
}

.hamiko-theme form.variations_form table.variations label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--hamiko-text);
  font-weight: 900;
}

.hamiko-theme form.variations_form table.variations label::after {
  content: '*';
  color: #c94f4f;
  font-size: .82rem;
}

.hamiko-theme form.variations_form table.variations select {
  width: 100% !important;
  min-height: 48px;
  padding: 0 14px !important;
  border: 1px solid var(--hamiko-border) !important;
  border-radius: 13px !important;
  background-color: #fff !important;
  color: var(--hamiko-text) !important;
  font-weight: 750;
  box-shadow: none !important;
  cursor: pointer;
}

.hamiko-theme form.variations_form table.variations select:focus {
  border-color: var(--hamiko-primary) !important;
  box-shadow: 0 0 0 3px rgba(23, 107, 87, .11) !important;
  outline: 0;
}

.hamiko-theme form.variations_form table.variations select.is-unselected {
  color: #7d8985 !important;
  background-color: #fbfcfc !important;
}

.hamiko-theme form.variations_form .reset_variations {
  display: inline-flex !important;
  margin-top: 7px;
  color: var(--hamiko-primary);
  font-size: .78rem;
  font-weight: 800;
}

.hamiko-theme form.variations_form .single_add_to_cart_button.disabled,
.hamiko-theme form.variations_form .single_add_to_cart_button[disabled] {
  opacity: .58;
  cursor: not-allowed;
  box-shadow: none !important;
}

@media (max-width: 575.98px) {
  .hamiko-theme form.variations_form table.variations tr {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hamiko-variation-guide {
    padding: 12px;
  }
}

/* 1.0.14 — quantity state and wholesale-step regression fix */
.hamiko-theme .hamiko-quantity-button:disabled,
.hamiko-theme .hamiko-quantity-button.is-at-limit,
.hamiko-theme .hamiko-quantity-button[aria-disabled="true"] {
  color: #98a39f !important;
  background: #f6f8f7 !important;
  cursor: default !important;
  opacity: .68;
}

.hamiko-theme .hamiko-quantity-button:not(:disabled):not(.is-at-limit),
.hamiko-theme .hamiko-quantity-button[aria-disabled="false"] {
  color: var(--hamiko-primary-dark) !important;
  background: #fff !important;
  cursor: pointer !important;
  opacity: 1;
}

.hamiko-theme .hamiko-quantity-button:not(:disabled):not(.is-at-limit):hover {
  color: #fff !important;
  background: var(--hamiko-primary) !important;
}

/* 1.0.15 — clearer completed variation-selection status icon */
.hamiko-variation-guide__icon {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 5px 14px rgba(14, 70, 60, .16);
  position: relative;
  overflow: visible;
}

.hamiko-variation-guide__icon::before {
  content: '۱';
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.hamiko-variation-guide.is-complete .hamiko-variation-guide__icon {
  background: #12aaa5 !important;
  border: 1px solid rgba(255, 255, 255, .34);
  box-shadow: 0 6px 16px rgba(18, 170, 165, .24);
}

.hamiko-variation-guide.is-complete .hamiko-variation-guide__icon::before {
  content: '';
  display: block;
  width: 11px;
  height: 19px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
  transform-origin: center;
}

@media (max-width: 575px) {
  .hamiko-variation-guide__icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 11px !important;
  }
}

/* 1.0.16 — mobile collection links, cart thumbnails, related-product rail and mobile card density */

/* Keep each collection's "view all" action useful and visible on mobile. */
@media (max-width: 767.98px) {
  .hamiko-collection-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }

  .hamiko-collection-head .hamiko-section-head__actions {
    width: 100%;
    display: flex !important;
  }

  .hamiko-collection-head .hamiko-section-head__actions > .hamiko-text-link {
    width: 100%;
    min-height: 46px;
    display: inline-flex !important;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid rgba(23, 107, 87, .18);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, var(--hamiko-soft));
    color: var(--hamiko-primary-dark);
    box-shadow: 0 8px 22px rgba(14, 70, 60, .07);
    font-size: .8rem;
  }

  .hamiko-collection-head .hamiko-section-head__actions > .hamiko-text-link .hamiko-icon {
    width: 18px;
    height: 18px;
    color: var(--hamiko-accent);
  }

  .hamiko-collection-head .hamiko-section-head__actions > .hamiko-text-link:active {
    transform: translateY(1px);
    background: var(--hamiko-soft);
  }
}

/* Related/upsell products use the same touch- and mouse-friendly rail pattern as home. */
.hamiko-theme.single-product .related.products,
.hamiko-theme.single-product .upsells.products {
  margin-top: clamp(2.4rem, 5vw, 4.5rem);
}

.hamiko-theme.single-product .related.products > h2,
.hamiko-theme.single-product .upsells.products > h2 {
  margin-bottom: 1.35rem;
  color: var(--hamiko-text);
  font-size: clamp(1.28rem, 2.3vw, 1.8rem);
  line-height: 1.45;
  font-weight: 900;
}

.hamiko-theme.single-product .related.products ul.products.hamiko-related-product-scroller,
.hamiko-theme.single-product .upsells.products ul.products.hamiko-related-product-scroller {
  width: 100%;
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: clamp(235px, 23vw, 288px);
  align-items: stretch;
  gap: 16px;
  margin: 0 !important;
  padding: 4px 3px 18px !important;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 107, 87, .3) transparent;
  cursor: grab;
}

.hamiko-theme.single-product .related.products ul.products.hamiko-related-product-scroller.is-dragging,
.hamiko-theme.single-product .upsells.products ul.products.hamiko-related-product-scroller.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.hamiko-theme.single-product .related.products ul.products.hamiko-related-product-scroller > li.product,
.hamiko-theme.single-product .upsells.products ul.products.hamiko-related-product-scroller > li.product {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100%;
  margin: 0 !important;
  scroll-snap-align: start;
}

/* WooCommerce hides cart thumbnails in its small-screen table; restore a useful image card. */
.hamiko-cart-product-thumbnail {
  display: block;
  width: 86px !important;
  height: 108px !important;
  margin: 0 !important;
  border-radius: 12px;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff;
}

@media (max-width: 767.98px) {
  .hamiko-theme.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail,
  .hamiko-theme.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 12px !important;
    border: 1px solid var(--hamiko-border) !important;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, var(--hamiko-soft));
  }

  .hamiko-theme.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail::before,
  .hamiko-theme.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail::before {
    display: none !important;
    content: none !important;
  }

  .hamiko-theme.woocommerce-cart td.product-thumbnail > a {
    display: block !important;
    width: max-content;
    max-width: 100%;
  }

  .hamiko-theme.woocommerce-cart td.product-thumbnail img,
  .hamiko-theme.woocommerce-cart td.product-thumbnail .hamiko-cart-product-thumbnail {
    display: block !important;
    width: 94px !important;
    height: 118px !important;
    max-width: none !important;
    box-shadow: 0 8px 20px rgba(14, 70, 60, .08);
  }
}

/* Two compact cards on normal/large phones; a single generous card only on very narrow screens. */
@media (min-width: 360px) and (max-width: 767.98px) {
  .hamiko-product-scroller,
  .hamiko-theme.single-product .related.products ul.products.hamiko-related-product-scroller,
  .hamiko-theme.single-product .upsells.products ul.products.hamiko-related-product-scroller {
    grid-auto-columns: calc((100% - 12px) / 2) !important;
    gap: 12px;
  }

  .hamiko-theme.woocommerce ul.products:not(.hamiko-related-product-scroller),
  .hamiko-theme.woocommerce-page ul.products:not(.hamiko-related-product-scroller) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .hamiko-theme.woocommerce ul.products:not(.hamiko-related-product-scroller) > li.product,
  .hamiko-theme.woocommerce-page ul.products:not(.hamiko-related-product-scroller) > li.product {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

@media (max-width: 359.98px) {
  .hamiko-product-scroller,
  .hamiko-theme.single-product .related.products ul.products.hamiko-related-product-scroller,
  .hamiko-theme.single-product .upsells.products ul.products.hamiko-related-product-scroller {
    grid-auto-columns: min(86vw, 286px) !important;
  }

  .hamiko-theme.woocommerce ul.products:not(.hamiko-related-product-scroller),
  .hamiko-theme.woocommerce-page ul.products:not(.hamiko-related-product-scroller) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .hamiko-theme.woocommerce ul.products:not(.hamiko-related-product-scroller) > li.product,
  .hamiko-theme.woocommerce-page ul.products:not(.hamiko-related-product-scroller) > li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
  }
}

/* Keep compact two-column cards readable without sacrificing tap targets. */
@media (min-width: 360px) and (max-width: 575.98px) {
  .hamiko-product-scroller .hamiko-product-body {
    padding: 10px;
  }

  .hamiko-product-scroller .hamiko-product-title {
    min-height: 4.7em;
    margin-bottom: 8px;
    font-size: .69rem;
    line-height: 1.7;
  }

  .hamiko-product-scroller .hamiko-product-commerce {
    padding-top: 8px;
  }

  .hamiko-product-scroller .hamiko-product-price {
    font-size: .72rem;
  }

  .hamiko-product-scroller .hamiko-product-pack,
  .hamiko-product-scroller .hamiko-product-pack-total {
    font-size: .54rem;
    white-space: normal;
  }

  .hamiko-product-scroller .hamiko-product-cta {
    min-height: 38px;
    padding-inline: 9px;
    font-size: .64rem;
  }
}

/* 1.0.17 — mobile viewport stability, sharp category media and contained related rails */

/* Use the layout viewport rather than 100vw so a scrollbar or disappearing sticky
   header can never create a horizontal offset. overflow:clip also avoids creating
   an extra scroll container, so sticky header behavior remains intact. */
html,
body.hamiko-theme {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body.hamiko-theme .hamiko-site-wrapper,
body.hamiko-theme .hamiko-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-x: clip;
}

body.hamiko-theme .container {
  max-width: 100%;
}

@media (max-width: 1199.98px) {
  :root { --hamiko-container: min(1120px, calc(100% - 40px)); }
}

@media (max-width: 991.98px) {
  :root { --hamiko-container: min(900px, calc(100% - 32px)); }

  .hamiko-header {
    inset-inline: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0) !important;
  }

  .hamiko-header.is-hidden {
    transform: translate3d(0, calc(-100% - 8px), 0) !important;
  }

  .hamiko-primary-nav:not(.is-open) {
    visibility: hidden;
    pointer-events: none;
  }

  .hamiko-primary-nav.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .hamiko-menu-backdrop {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  :root { --hamiko-container: calc(100% - 28px); }
}

@media (max-width: 430px) {
  :root { --hamiko-container: calc(100% - 22px); }
}

/* Category tiles are navigation, not product photography. Keep their real source
   crisp and remove the blurred product-card backdrop entirely. */
.hamiko-category-card__media,
.hamiko-child-category-card__media {
  isolation: isolate;
  background: #edf4f1 !important;
}

.hamiko-category-card__media > .hamiko-media-fit__backdrop,
.hamiko-child-category-card__media > .hamiko-media-fit__backdrop {
  display: none !important;
  background-image: none !important;
}

.hamiko-category-card__media > img,
.hamiko-child-category-card__media > img,
.hamiko-category-card:hover .hamiko-category-card__media > img,
.hamiko-child-category-card:hover .hamiko-child-category-card__media > img {
  position: absolute !important;
  inset: 0;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  background: #edf4f1 !important;
}

.hamiko-category-card__media::after,
.hamiko-child-category-card__media::after {
  z-index: 2;
  background: linear-gradient(to bottom, transparent 42%, rgba(4, 31, 25, .78) 100%) !important;
}

.hamiko-category-card__content,
.hamiko-child-category-card__content {
  z-index: 3;
}

/* Related and upsell products must remain inside the product page and scroll as
   an actual rail. Flex is used here to neutralize WooCommerce/parent grid rules. */
.hamiko-theme.single-product .related.products,
.hamiko-theme.single-product .upsells.products {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.hamiko-theme.single-product .related.products ul.products,
.hamiko-theme.single-product .upsells.products ul.products,
.hamiko-theme.single-product .related.products ul.products.hamiko-related-product-scroller,
.hamiko-theme.single-product .upsells.products ul.products.hamiko-related-product-scroller {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 4px 3px 18px !important;
  list-style: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 107, 87, .3) transparent;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.hamiko-theme.single-product .related.products ul.products::before,
.hamiko-theme.single-product .related.products ul.products::after,
.hamiko-theme.single-product .upsells.products ul.products::before,
.hamiko-theme.single-product .upsells.products ul.products::after {
  display: none !important;
  content: none !important;
}

.hamiko-theme.single-product .related.products ul.products > li.product,
.hamiko-theme.single-product .upsells.products ul.products > li.product,
.hamiko-theme.single-product .related.products ul.products.hamiko-related-product-scroller > li.product,
.hamiko-theme.single-product .upsells.products ul.products.hamiko-related-product-scroller > li.product {
  flex: 0 0 clamp(235px, 23vw, 288px) !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  scroll-snap-align: start;
}

@media (min-width: 360px) and (max-width: 767.98px) {
  .hamiko-theme.single-product .related.products ul.products > li.product,
  .hamiko-theme.single-product .upsells.products ul.products > li.product,
  .hamiko-theme.single-product .related.products ul.products.hamiko-related-product-scroller > li.product,
  .hamiko-theme.single-product .upsells.products ul.products.hamiko-related-product-scroller > li.product {
    flex-basis: calc((100% - 12px) / 2) !important;
  }
}

@media (max-width: 359.98px) {
  .hamiko-theme.single-product .related.products ul.products > li.product,
  .hamiko-theme.single-product .upsells.products ul.products > li.product,
  .hamiko-theme.single-product .related.products ul.products.hamiko-related-product-scroller > li.product,
  .hamiko-theme.single-product .upsells.products ul.products.hamiko-related-product-scroller > li.product {
    flex-basis: min(86vw, 286px) !important;
  }
}

/* 1.0.18 — Recently viewed products widget polish
   Scoped only to the WooCommerce recently-viewed widget so other sidebar
   filters and product widgets keep their existing behavior. */
.hamiko-theme .widget_recently_viewed_products .product_list_widget,
.hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.hamiko-theme .widget_recently_viewed_products .product_list_widget > li,
.hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li {
  position: relative;
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 10px !important;
  overflow: hidden;
  border: 1px solid rgba(23, 107, 87, .12) !important;
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(247, 251, 249, .96)) !important;
  box-shadow: 0 6px 18px rgba(14, 70, 60, .045);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hamiko-theme .widget_recently_viewed_products .product_list_widget > li:hover,
.hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 107, 87, .25) !important;
  box-shadow: 0 10px 24px rgba(14, 70, 60, .09);
}

.hamiko-theme .widget_recently_viewed_products .product_list_widget > li > a,
.hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li > a {
  display: grid !important;
  grid-template-columns: 62px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 11px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--hamiko-ink, #113b34) !important;
  text-decoration: none !important;
}

.hamiko-theme .widget_recently_viewed_products .product_list_widget > li > a img,
.hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li > a img {
  grid-column: 1;
  width: 62px !important;
  height: 70px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 1px solid rgba(23, 107, 87, .1);
  border-radius: 12px !important;
  background: #f4f8f6 !important;
  box-shadow: none !important;
}

.hamiko-theme .widget_recently_viewed_products .product_list_widget .product-title,
.hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget .product-title {
  grid-column: 2;
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--hamiko-ink, #113b34) !important;
  font-size: .9rem !important;
  font-weight: 800 !important;
  line-height: 1.75 !important;
  text-align: start;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hamiko-theme .widget_recently_viewed_products .product_list_widget > li > .amount,
.hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li > .amount,
.hamiko-theme .widget_recently_viewed_products .product_list_widget > li > del,
.hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li > del {
  display: inline-flex !important;
  align-items: center;
  margin-block-start: 5px !important;
  margin-inline-start: 73px !important;
}

.hamiko-theme .widget_recently_viewed_products .product_list_widget > li > ins,
.hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li > ins {
  display: inline-flex !important;
  align-items: center;
  margin-block-start: 5px !important;
  margin-inline-start: 5px !important;
  text-decoration: none !important;
}

.hamiko-theme .widget_recently_viewed_products .product_list_widget .amount,
.hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget .amount {
  color: var(--hamiko-primary, #176b57) !important;
  font-size: .88rem !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  white-space: nowrap;
}

.hamiko-theme .widget_recently_viewed_products .product_list_widget del .amount,
.hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget del .amount {
  color: #8a9692 !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
}

.hamiko-theme .widget_recently_viewed_products .product_list_widget > li::after,
.hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li::after {
  position: absolute;
  inset-inline-end: 10px;
  inset-block-end: 10px;
  width: 18px;
  height: 18px;
  content: "";
  opacity: 0;
  pointer-events: none;
  background-color: var(--hamiko-primary, #176b57);
  -webkit-mask: var(--ss26-mask-arrow-left-long) center / contain no-repeat;
  mask: var(--ss26-mask-arrow-left-long) center / contain no-repeat;
  transform: translateX(4px);
  transition: opacity .2s ease, transform .2s ease;
}

.hamiko-theme .widget_recently_viewed_products .product_list_widget > li:hover::after,
.hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li:hover::after {
  opacity: .75;
  transform: translateX(0);
}

/* The mobile drawer has less horizontal room; preserve the same hierarchy
   without shrinking the thumbnail into an unusable icon. */
@media (max-width: 575.98px) {
  .hamiko-theme .widget_recently_viewed_products .product_list_widget > li,
  .hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li {
    padding: 9px !important;
    border-radius: 13px;
  }

  .hamiko-theme .widget_recently_viewed_products .product_list_widget > li > a,
  .hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li > a {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  .hamiko-theme .widget_recently_viewed_products .product_list_widget > li > a img,
  .hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li > a img {
    width: 56px !important;
    height: 64px !important;
    border-radius: 10px !important;
  }

  .hamiko-theme .widget_recently_viewed_products .product_list_widget .product-title,
  .hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget .product-title {
    font-size: .84rem !important;
    line-height: 1.7 !important;
  }

  .hamiko-theme .widget_recently_viewed_products .product_list_widget > li > .amount,
  .hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li > .amount,
  .hamiko-theme .widget_recently_viewed_products .product_list_widget > li > del,
  .hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li > del {
    margin-inline-start: 65px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hamiko-theme .widget_recently_viewed_products .product_list_widget > li,
  .hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li,
  .hamiko-theme .widget_recently_viewed_products .product_list_widget > li::after,
  .hamiko-theme [id^="woocommerce_recently_viewed_products"] .product_list_widget > li::after {
    transition: none !important;
  }
}

/* 1.0.19 — checkout validation must never render as an empty red bar */
body.woocommerce-checkout.hamiko-theme form.checkout > .woocommerce-NoticeGroup-checkout,
body.woocommerce-checkout.hamiko-theme form.checkout > .woocommerce-error,
body.woocommerce-checkout.hamiko-theme form.checkout > .woocommerce-info,
body.woocommerce-checkout.hamiko-theme form.checkout > .woocommerce-message {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 18px !important;
}

body.woocommerce-checkout.hamiko-theme .woocommerce-NoticeGroup-checkout:empty {
  display: none !important;
}

body.woocommerce-checkout.hamiko-theme .woocommerce-NoticeGroup-checkout .woocommerce-error,
body.woocommerce-checkout.hamiko-theme .woocommerce-NoticeGroup-checkout .woocommerce-info,
body.woocommerce-checkout.hamiko-theme .woocommerce-NoticeGroup-checkout .woocommerce-message {
  display: block !important;
  width: 100% !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 18px 68px 18px 20px !important;
  color: #183a33 !important;
  text-align: right !important;
  line-height: 1.9 !important;
  font-size: .96rem !important;
  font-weight: 800 !important;
  list-style: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.woocommerce-checkout.hamiko-theme .woocommerce-NoticeGroup-checkout .woocommerce-error {
  color: #7f1d1d !important;
  border-color: rgba(220, 38, 38, .28) !important;
  background: linear-gradient(135deg, rgba(254, 226, 226, .94), rgba(255,255,255,.98)) !important;
}

body.woocommerce-checkout.hamiko-theme .woocommerce-NoticeGroup-checkout :is(li, p, a, strong) {
  display: revert !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.woocommerce-checkout.hamiko-theme .woocommerce-NoticeGroup-checkout li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.woocommerce-checkout.hamiko-theme .woocommerce-shipping-methods li {
  padding: 7px 0 !important;
}

body.woocommerce-checkout.hamiko-theme .woocommerce-shipping-methods label {
  cursor: pointer;
  font-weight: 800;
}

body.woocommerce-checkout.hamiko-theme #place_order {
  min-height: 52px;
  padding-inline: 26px;
}

@media (max-width: 575.98px) {
  body.woocommerce-checkout.hamiko-theme .woocommerce-NoticeGroup-checkout .woocommerce-error,
  body.woocommerce-checkout.hamiko-theme .woocommerce-NoticeGroup-checkout .woocommerce-info,
  body.woocommerce-checkout.hamiko-theme .woocommerce-NoticeGroup-checkout .woocommerce-message {
    padding: 62px 16px 16px !important;
    font-size: .9rem !important;
  }

  body.woocommerce-checkout.hamiko-theme #place_order {
    width: 100%;
  }
}

/* 1.0.20 — readable checkout alerts independent from parent notice styles */
body.woocommerce-checkout.hamiko-theme .woocommerce-NoticeGroup-checkout .hamiko-checkout-alert {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 14px !important;
  width: 100% !important;
  min-height: 74px !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(220, 38, 38, .26) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #fff1f2, #fff) !important;
  box-shadow: 0 12px 34px rgba(127, 29, 29, .08) !important;
  color: #7f1d1d !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.woocommerce-checkout.hamiko-theme .woocommerce-NoticeGroup-checkout .hamiko-checkout-alert--message {
  border-color: rgba(13, 148, 136, .26) !important;
  background: linear-gradient(135deg, #ecfdf5, #fff) !important;
  color: #115e59 !important;
}

body.woocommerce-checkout.hamiko-theme .hamiko-checkout-alert__icon {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
  background: #dc2626 !important;
  color: #fff !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.woocommerce-checkout.hamiko-theme .hamiko-checkout-alert--message .hamiko-checkout-alert__icon {
  background: #0f766e !important;
}

body.woocommerce-checkout.hamiko-theme .hamiko-checkout-alert__list {
  display: grid !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: .96rem !important;
  font-weight: 800 !important;
  line-height: 1.9 !important;
  list-style: none !important;
}

body.woocommerce-checkout.hamiko-theme .hamiko-checkout-alert__list > li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.woocommerce-checkout.hamiko-theme .hamiko-checkout-country-field,
body.woocommerce-checkout.hamiko-theme .hamiko-checkout-country-input[type="hidden"] {
  display: none !important;
}

@media (max-width: 575.98px) {
  body.woocommerce-checkout.hamiko-theme .woocommerce-NoticeGroup-checkout .hamiko-checkout-alert {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    gap: 11px !important;
    padding: 14px !important;
    border-radius: 16px !important;
  }

  body.woocommerce-checkout.hamiko-theme .hamiko-checkout-alert__icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
    font-size: 1.15rem !important;
  }

  body.woocommerce-checkout.hamiko-theme .hamiko-checkout-alert__list {
    font-size: .88rem !important;
  }
}
