/* Shared HDB storefront layout. Loaded after the page's original styles. */
body.gp-site { --hdb-gutter: clamp(16px, 3vw, 40px); -webkit-text-size-adjust: 100%; }
body.gp-site :where(input, select, textarea, button) { max-width: 100%; }
body.gp-site :where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--gp-gold); outline-offset: 4px; }
body.gp-site :where(h1, h2, h3, p, dd) { overflow-wrap: break-word; }
body.gp-site main { scroll-margin-top: 100px; }
.gp-header-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; }
.gp-brand, .gp-actions { min-width: 0; }
.gp-topbar { font-size: 10px; }
.gp-nav { gap: clamp(16px, 2vw, 28px); font-size: 12px; }
.gp-lang, .gp-menu { width: 44px; min-width: 44px; min-height: 44px; }
.gp-cart { min-height: 44px; }
.gp-footer-links a { min-height: 44px; display: inline-flex; align-items: center; }

/* Catalogue: readable type and a compact, progressive filter form. */
.hdb-container { width: min(1280px, calc(100% - var(--hdb-gutter) * 2)); }
.hdb-catalog-hero p { font-size: 14px; }
.hdb-filters { grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 20px; }
.hdb-search { grid-column: auto; }
.hdb-search-submit { display: none; }
.hdb-filter-details { min-width: 0; }
.hdb-filter-details > summary { display: none; }
.hdb-filter-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 12px; }
.hdb-filters label, .hdb-purchase label { font-size: 12px; min-width: 0; }
.hdb-filters input, .hdb-filters select, .hdb-purchase select { font-size: 14px; min-height: 50px; background: var(--gp-paper); border-radius: 4px; }
.hdb-button { font-size: 12px; min-height: 50px; border-radius: 4px; }
.hdb-results { font-size: 12px; flex-wrap: wrap; }
.hdb-card { display: flex; flex-direction: column; }
.hdb-card-image { border-radius: 5px; }
.hdb-card-copy { display: flex; flex: 1; flex-direction: column; }
.hdb-card h2 { font-size: 21px; }
.hdb-card-sizes { margin: 6px 0; color: var(--gp-muted); font-size: 11px; }
.hdb-card-sizes span { display: inline-block; font-family: Arial, sans-serif; font-size: 13px; letter-spacing: .025em; }
.hdb-availability { font-size: 11px; min-height: 0; }
.hdb-detail-link { min-height: 46px; margin-top: auto; font-size: 12px; }
.hdb-pagination { flex-wrap: wrap; }
.hdb-pagination a { min-width: 44px; height: 44px; }
.hdb-detail > * { min-width: 0; }
.hdb-detail-copy { position: static; padding-top: 6px; }
.hdb-description { font-size: 14px; line-height: 2.2; }
.hdb-breadcrumb { font-size: 12px; flex-wrap: wrap; }
.hdb-thumbnails { overflow-x: auto; padding: 5px; margin-inline: -5px; scroll-snap-type: x proximity; }
.hdb-thumbnails button { flex: 0 0 76px; width: 76px; scroll-snap-align: start; }
.hdb-image-hint { font-size: 11px; }
.hdb-listed-sizes { margin: 24px 0; }
.hdb-listed-sizes h2 { font-family: inherit; font-size: 13px; margin: 0 0 12px; }
.hdb-listed-sizes ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; justify-content: flex-start; }
[dir='rtl'] .hdb-listed-sizes ul { justify-content: flex-end; }
.hdb-listed-sizes li { min-width: 44px; height: 44px; padding: 8px 12px; display: grid; place-items: center; border: 1px solid var(--gp-line); border-radius: 4px; background: var(--gp-paper); font: 500 16px Arial, sans-serif; }
.hdb-stock-status strong { font-size: 13px; }
.hdb-stock-status p, .hdb-purchase p, .hdb-purchase > a, .hdb-specs, .hdb-source { font-size: 12px; }
.hdb-specs dd { text-align: end; }
.hdb-size-guide { font-size: 13px; }
.hdb-size-guide summary { min-height: 44px; padding-block: 10px; }
.hdb-size-guide table { font-size: 12px; }
.hdb-footer p { font-size: 13px; }
.hdb-footer small { font-size: 12px; }

/* Home: balanced image proportions and consistent product cards. */
body.gp-home .hero { min-height: 0; }
body.gp-home .hero-inner { padding-block: clamp(46px, 6vw, 86px); }
body.gp-home .hero h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1.45; letter-spacing: -.025em; }
body.gp-home .hero-copy { min-height: 0; }
body.gp-home .hdb-hero-photo { min-height: 580px; }
body.gp-home .hero-buttons { flex-wrap: wrap; }
body.gp-home .mini-notes { flex-wrap: wrap; font-size: 11px; gap: 20px; }
body.gp-home .eyebrow { font-size: 12px; }
body.gp-home .section-title h2 { line-height: 1.5; }
body.gp-home .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.gp-home .product-card { min-width: 0; border-radius: 5px; overflow: hidden; display: flex; flex-direction: column; }
body.gp-home .product-visual { height: auto; aspect-ratio: 3/4; }
body.gp-home .product-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
body.gp-home .product-info h3 { font-size: 22px; line-height: 1.7; margin-block: 6px 10px; }
body.gp-home .product-info small { font: 12px Arial, sans-serif; color: var(--gp-muted); }
body.gp-home .product-footer { margin-top: auto; }
body.gp-home .price { font-size: 12px; }
body.gp-home .order-icon, body.gp-home .product-heart { min-width: 44px; min-height: 44px; }
body.gp-home .category-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
body.gp-home .order-path-copy em { font-size: 12px; white-space: normal; overflow: visible; }
body.gp-home .order-paths-head > span { font-size: 12px; }
body.gp-home footer h3, body.gp-home footer li, body.gp-home .copyright { font-size: 12px; }
body.gp-home footer li a { display: inline-flex; align-items: center; min-height: 40px; }

/* Bag and account use the same touch and text scale. */
.bag-shell > *, .bag-fields > *, .bag-identity-name-grid > * { min-width: 0; }
.bag-hero > p, .bag-empty p, .bag-fields label, .bag-identity-field > span,
.bag-identity-heading p, .bag-identity-choice-copy small, .bag-section-head p,
.bag-summary p, .bag-summary-row, .bag-status, .bag-item-options { font-size: 12px; }
.bag-identity-progress span { font-size: 11px; }
.bag-identity-methods label, .bag-identity-button, .bag-identity-hint,
.bag-delivery-choice label, .bag-summary > button, .bag-coupon label button { font-size: 12px; }
.bag-fields input, .bag-fields select, .bag-fields textarea { min-width: 0; }
body.gp-account-page .login p, body.gp-account-page .field label,
body.gp-account-page .alert, body.gp-account-page .hero p { font-size: 13px; }
body.gp-account-page .btn { font-size: 13px; min-height: 48px; }
body.gp-account-page .login { margin-block: 24px; }

@media (max-width: 1100px) {
    .hdb-filters { grid-template-columns: minmax(0, 1fr); }
    .hdb-filter-options { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
    body.gp-home .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
    .gp-header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    .gp-nav { max-height: calc(100dvh - 150px - env(safe-area-inset-bottom)); }
    .gp-nav a { font-size: 14px; min-height: 48px; }
    body.gp-home .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    body.gp-home .hero-inner { width: calc(100% - 40px); }
    body.gp-home .hero h1 { font-size: 44px; }
    body.gp-home .hdb-hero-photo { min-height: 520px; }
    body.gp-home .hero-buttons { flex-direction: column; align-items: stretch; }
    body.gp-home .hero-buttons .ghost-link { justify-content: center; }
}
@media (max-width: 760px) {
    body.gp-site { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .gp-header-inner { width: calc(100% - 24px); }
    .gp-mobile-dock { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); padding-inline: max(8px, env(safe-area-inset-left)); }
    .gp-mobile-dock a { font-size: 10px; min-height: 60px; }
    .gp-mobile-dock a[aria-current='page'] { background: #c7a35414; border-radius: 8px; }
    .gp-mobile-dock a > b { font-size: 9px; min-width: 18px; height: 18px; }
    .gp-topbar { min-height: 30px; font-size: 9px; }
    .gp-cart { position: relative; width: 44px; min-width: 44px; height: 44px; padding: 0; }
    .gp-cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .gp-cart-count { position: absolute; top: -5px; inset-inline-end: -4px; min-width: 18px; height: 18px; font-size: 9px; border: 2px solid var(--gp-paper); }
    .gp-actions { gap: 8px; }
    .hdb-catalog-hero { padding: 32px 20px; }
    .hdb-catalog-hero h1 { font-size: clamp(28px, 6vw, 38px); }
    .hdb-catalog-hero p { font-size: 12px; }
    .hdb-eyebrow { font-size: 10px; letter-spacing: .08em; }
    .hdb-filters { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 10px; padding-block: 22px; }
    .hdb-search { grid-column: auto; }
    .hdb-search-submit { display: inline-flex; padding-inline: 18px; }
    .hdb-filter-details { grid-column: 1/-1; }
    .hdb-filter-details > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; min-height: 46px; font-size: 12px; border-block: 1px solid var(--gp-line); padding: 8px 2px; }
    .hdb-filter-details > summary::-webkit-details-marker { display: none; }
    .hdb-filter-details > summary span { font: 22px Arial, sans-serif; }
    .hdb-filter-details[open] > summary span { transform: rotate(45deg); }
    .hdb-filter-options { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 18px; }
    .hdb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
    .hdb-card h2 { font-size: 19px; line-height: 1.65; }
    .hdb-price { font-size: 12px; }
    .hdb-sku { font-size: 12px; }
    .hdb-card-sizes { font-size: 10px; line-height: 1.8; }
    .hdb-card-sizes span { font-size: 12px; }
    .hdb-availability { font-size: 10px; margin-bottom: 12px; }
    .hdb-detail-link { font-size: 11px; }
    .hdb-pagination { gap: 7px; padding-block: 36px; }
    .hdb-pagination span { flex-basis: 100%; text-align: center; margin: 10px 0 0; }
    .hdb-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .hdb-main-image img { aspect-ratio: 3/4; object-fit: contain; background: #eeeae4; }
    .hdb-thumbnails button { flex-basis: 64px; width: 64px; }
    .hdb-detail-copy h1 { font-size: 30px; }
    .hdb-detail-price { margin-bottom: 18px; }
    .hdb-listed-sizes ul { gap: 6px; }
    .hdb-stock-status { margin-block: 22px; }
    .hdb-footer { padding-bottom: 48px; }
    body.gp-home .hero { grid-template-columns: minmax(0, 1fr); }
    body.gp-home .hero-inner { width: calc(100% - 40px); padding-block: 34px; }
    body.gp-home .hero h1 { font-size: clamp(38px, 9vw, 54px); margin: 14px 0; }
    body.gp-home .hero-subtitle { font-size: 13px; }
    body.gp-home .hero-buttons { gap: 10px; margin-top: 24px; }
    body.gp-home .hero-buttons :is(.button, .ghost-link) { min-height: 48px; font-size: 12px; }
    body.gp-home .mini-notes { flex-direction: row; gap: 20px; margin-top: 20px; }
    body.gp-home .mini-notes span { font-size: 10px; }
    body.gp-home .hdb-hero-photo { min-height: 0; aspect-ratio: 4/5; }
    body.gp-home .hdb-hero-photo span { inset-inline: 18px; bottom: 20px; width: fit-content; max-width: calc(100% - 36px); }
    body.gp-home section { padding-block: 52px; }
    body.gp-home .section-title { gap: 14px; }
    body.gp-home .section-title h2 { font-size: 34px; }
    body.gp-home .section-link { font-size: 12px; min-height: 44px; }
    body.gp-home .product-grid { gap: 22px 12px; }
    body.gp-home .product-info { padding: 14px 10px; }
    body.gp-home .product-info h3 { font-size: 19px; }
    body.gp-home .product-footer { gap: 5px; flex-wrap: wrap; padding-top: 12px; }
    body.gp-home .price { font-size: 11px; }
    body.gp-home .product-badge { top: 10px; inset-inline-start: 8px; padding: 5px 8px; font-size: 10px; }
    body.gp-home .product-heart { top: 8px; inset-inline-end: 8px; }
    body.gp-home .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.gp-home .category-tile { padding: 16px; }
    body.gp-home .visit-grid { gap: 30px; }
    body.gp-home .visit-art { min-height: 240px; }
    body.gp-home .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    body.gp-home .footer-grid > :first-child { grid-column: 1/-1; }
    body.gp-home .final-cta h2 { font-size: 38px; line-height: 1.5; }
    .bag-hero { padding: 40px 20px; }
    .bag-hero h1 { font-size: 40px; line-height: 1.5; }
    .bag-shell { padding-block: 32px 48px; }
    .bag-identity-card { padding: 22px 16px; }
    .bag-identity-progress { gap: 6px; }
    .bag-identity-progress span { font-size: 10px; flex-wrap: wrap; justify-content: center; text-align: center; }
    .bag-summary { position: static; }
    .bag-edit-panel { height: min(88dvh, 880px); }
    body.gp-account-page .wrap { padding-block: 28px 48px; }
    body.gp-account-page .login { padding: 26px 20px; margin-block: 10px; }
    body.gp-account-page .login h1 { font-size: 32px; line-height: 1.6; }
}
@media (max-width: 380px) {
    .gp-header-inner { width: calc(100% - 20px); gap: 6px; }
    .gp-actions { gap: 4px; }
    .gp-brand .hdb-brand-lockup { gap: 6px; }
    .gp-brand .hdb-brand-symbol { width: 28px; height: 38px; }
    .gp-brand .hdb-brand-wordmark { font-size: 16px; }
    .gp-brand .hdb-brand-lockup[lang='en'] .hdb-brand-wordmark { font-size: 14px; }
    .hdb-grid { gap: 24px 10px; }
    .hdb-card h2, body.gp-home .product-info h3 { font-size: 17px; }
    .hdb-listed-sizes li { min-width: 40px; padding-inline: 8px; }
    .hdb-filter-options { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) {
    .hdb-card:hover .hdb-card-image img { transform: none; }
    body.gp-home .product-card:hover .product-photo { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    body.gp-site { scroll-behavior: auto; }
    body.gp-site .gp-reveal { opacity: 1; transform: none; }
}
.bag-empty a, .bag-empty button, .bag-item-remove, .bag-summary label { font-size: 12px; }
.bag-quantity button { min-width: 44px; min-height: 44px; }
.bag-quantity { grid-template-columns: 44px 36px 44px; }
.bag-edit-intro p, .bag-edit-section-title small, .bag-edit-info small,
.bag-edit-field > span, .bag-edit-footer button { font-size: 12px; }

/* Ready stock and standard-size production share the same checkout. */
.hdb-purchase .hdb-fulfillment-policy, .hdb-order-fulfillment { padding: 16px; border: 1px solid var(--gp-line); background: var(--gp-ivory); color: var(--gp-ink); font-size: 12px; line-height: 2; }
.hdb-bag-fulfillment { color: #7c612c; font-size: 12px; font-weight: 600; }
.bag-summary .hdb-fulfillment-policy { padding: 12px 0; font-size: 12px; line-height: 2; }
.hdb-order-fulfillment { margin-block: 20px; text-align: start; }
.hdb-order-fulfillment p { font-size: 12px; }
