/* Legacy artwork and typography remain; fixed widths are adapted to the viewport. */
html, body { min-width: 0 !important; width: 100%; margin: 0; background: #fff; color: #111; }
body { font-size: 16px; line-height: 1.7; }
.site-header { position: sticky; inset: 0 0 auto; z-index: 1000; width: 100%; height: auto; background: #fff; border-bottom: 1px solid #111; }
.site-header .site-header-inner { max-width: 1240px; padding: 18px 24px; margin: auto; display: flex; align-items: center; gap: 28px; min-height: 70px; }
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { width: 190px; height: auto; display: block; }
.site-navigation { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.site-navigation a, .site-languages a { text-decoration: none; font-size: 14px; white-space: nowrap; }
.site-navigation a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-languages { display: flex; gap: 10px; }
.site-languages a { font-size: 12px; }
.site-languages [aria-current] { font-weight: bold; text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; align-items: center; justify-content: center; border: 0; width: 44px; height: 44px; padding: 10px; color: #111; background: #fff; cursor: pointer; }
.site-footer { background: #fff; color: #111; border-top: 1px solid #111; margin-top: 70px; }
.site-footer-inner { max-width: 1100px; padding: 48px 24px 24px; margin: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px 26px; margin: 24px 0; }
.site-footer a { text-decoration: none; font-size: 14px; }
.site-footer small { font-size: 12px; }
.legacy-page { display: block; min-height: 55vh; font-size: 16px; width: 100%; }
.legacy-page #layout, .legacy-page #upper, .legacy-page #bgPallarax, .legacy-page .palBoxWrap { min-width: 0 !important; width: 100% !important; max-width: 100%; margin: 0 auto !important; top: 0 !important; }
.legacy-page #bgPallarax .palBox, .legacy-page .container, .legacy-page .topbanner { width: min(100%, 1000px) !important; min-width: 0 !important; max-width: 100% !important; margin-inline: auto; }
.legacy-page #bgPallarax .palBox { height: auto; padding: 70px 0 0; }
.legacy-page #bgPallarax .palBox:first-child { padding-top: 30px; }
.legacy-page #bgPallarax { margin-bottom: 0; }
.legacy-page #pageBody { padding: 70px 24px 0; }
.legacy-page #pageBody .container { width: 100% !important; }
.legacy-page.product-list-page #products, .legacy-page #pageBody.contact-page { box-sizing: border-box; width: min(calc(100% - 48px), 1000px) !important; max-width: 1000px !important; margin: 0 auto; padding: 56px 0 0; }
.legacy-page.product-list-page #products .sectionHead, .legacy-page #pageBody.contact-page .sectionHead { position: static; display: flex; flex-direction: column; gap: 8px; width: auto; height: auto; padding: 0; margin: 0 0 36px; background: none; font-size: 40px; font-weight: bold; line-height: 1.2; color: #111; }
.legacy-page.product-list-page #products .sectionHead-inner { position: static; display: flex; flex-direction: column; gap: 8px; }
.legacy-page.product-list-page #products .sectionHead .font, .legacy-page #pageBody.contact-page .sectionHead > .font { display: block; font-size: inherit; line-height: 1.2; letter-spacing: .08em; margin: 0; }
.legacy-page.product-list-page #products .sectionHead-name, .legacy-page #pageBody.contact-page .sectionHead-name { position: static; font-size: 18px; line-height: 1.5; letter-spacing: 0; }
.legacy-page #pageBody.contact-page .basicBlock { padding: 32px; font-size: 16px; }
.legacy-page.product-list-page #products .productsIndex-title { margin: 36px 0 24px; line-height: 1.3; }
.legacy-page.product-list-page .productsIndex-li-thumb > img { aspect-ratio: 12 / 5; object-fit: contain; background: #fff; }
.legacy-page #pageBody.body-catalog { box-sizing: border-box; width: min(calc(100% - 48px), 1000px) !important; padding: 56px 0 0; margin: 0 auto; }
.legacy-page .body-catalog .catalog-heading { position: static; display: block; float: none; width: 100%; min-width: 0 !important; max-width: 100%; height: auto; margin: 0 0 36px; padding: 0; background: transparent; z-index: auto; }
.legacy-page .body-catalog .catalog-heading h1 { margin: 0; font-size: 40px; line-height: 1.25; font-weight: 700; letter-spacing: .06em; }
.body-catalog .catalog-subtitle { margin: 8px 0 0; font-size: 18px; font-weight: bold; }
.body-catalog .catalog-description { margin: 20px 0 0; color: #666; font-size: 14px; line-height: 1.8; }
.body-catalog .catalog-category-grid, .legacy-page .body-catalog .catalog-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; }
.body-catalog .catalog-category { display: block; border: 1px solid #e7e7e7; color: #111; text-decoration: none; background: #fff; }
.body-catalog .catalog-category-media { aspect-ratio: 12 / 5; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f5f5f5; }
.body-catalog .catalog-category-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.body-catalog .catalog-category-info { padding: 24px; }
.body-catalog .catalog-meta, .body-catalog .catalog-eyebrow { font-size: 10px; letter-spacing: .12em; color: #777; }
.body-catalog .catalog-category h2 { margin: 10px 0 24px; font-size: 18px; line-height: 1.6; font-weight: bold; }
.body-catalog .catalog-action { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.body-catalog .catalog-category:hover { border-color: #111; }
.body-catalog .catalog-category:hover .catalog-action { text-decoration: underline; text-underline-offset: 4px; }
.body-catalog .catalog-jan { background: #161616; color: #fff; border-color: #161616; }
.body-catalog .catalog-jan .catalog-category-media { background: #161616; }
.body-catalog .catalog-jan .catalog-meta { color: #aaa; }
.body-catalog .catalog-barcode { width: 118px; height: 55px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px, #fff 5px 6px, transparent 6px 9px, #fff 9px 13px, transparent 13px 16px); }
.body-catalog .catalog-back { display: inline-block; margin-bottom: 28px; color: #666; font-size: 13px; text-decoration: none; }
.body-catalog .catalog-eyebrow { margin: 0 0 10px; }
.legacy-page .body-catalog .catalog-container .catalog-item { width: auto; max-width: none; min-width: 0; padding: 0; margin: 0; border: 1px solid #e7e7e7; box-shadow: none; }
.body-catalog .catalog-item > a { display: block; padding: 20px; background: #f6f6f6; }
.body-catalog .catalog-item > a > img { display: block; width: 100%; height: 240px; object-fit: contain; margin: 0; }
.body-catalog .catalog-item h3 { margin: 20px 20px 14px; font-size: 16px; line-height: 1.5; }
.body-catalog .catalog-links { margin: 0; padding: 0 20px 20px; }
.body-catalog .catalog-links a { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid #e7e7e7; font-size: 12px; color: #111; text-decoration: none; }
@media (max-width: 1000px) { .body-catalog .catalog-category-grid, .legacy-page .body-catalog .catalog-container { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .legacy-page #pageBody.body-catalog { width: calc(100% - 32px) !important; padding: 32px 0 0; }
  .legacy-page .body-catalog .catalog-heading h1 { font-size: 28px; }
  .body-catalog .catalog-category-grid, .legacy-page .body-catalog .catalog-container { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .body-catalog .catalog-category { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; }
  .body-catalog .catalog-category-media { aspect-ratio: 1; height: 100%; }
  .body-catalog .catalog-category-info { padding: 18px; }
  .body-catalog .catalog-category h2 { font-size: 16px; margin-bottom: 16px; }
  .body-catalog .catalog-barcode { width: 70px; height: 42px; }
}
.legacy-page img { max-width: 100%; height: auto; }
.legacy-mobile :is(.products-mmpucchinew, .products-mmfeel2022, .products-mmgelee, .products-mmgrit) .icatch { height: auto !important; aspect-ratio: 2 / 3; background-size: 100% 100%; }
.legacy-mobile :is(.products-mmpucchipremium, .products-mmsmartgearnew) .icatch { height: auto !important; aspect-ratio: 5 / 8; background-size: 100% 100%; }
.legacy-desktop.products-mmsmart .smartimg { top: 0; }
.legacy-desktop.products-mmsmart .top-prebg { display: none; }
.legacy-page .icatch > img { display: block; margin: auto; }
.legacy-page .slideshow, .legacy-page .slideshow-ul { width: 100% !important; height: auto !important; margin: 0; padding: 0; overflow: hidden; }
.legacy-page .slideshow-li { position: relative !important; width: 100% !important; float: none !important; opacity: 1 !important; list-style: none; }
.legacy-page .slideshow-li[hidden] { display: none !important; }
.legacy-page .slideshow-li:first-child { display: block; }
.legacy-page .slideshow-li img { display: block; width: 100%; height: auto; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 0; background: #fff; color: #111; }
.carousel-controls button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; color: #333; background: transparent; cursor: pointer; }
.carousel-controls button:hover { background: #f3f3f3; color: #000; }
.carousel-controls button:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.carousel-pagination { display: flex; align-items: center; }
.carousel-controls .carousel-dot { width: 24px; border-radius: 0; }
.carousel-dot::before { content: ""; width: 4px; height: 4px; border-radius: 4px; background: #c4c4c4; transition: width .18s ease, background .18s ease; }
.carousel-dot[aria-current="true"]::before { width: 18px; background: #111; }
.carousel-controls .carousel-toggle { margin-left: 4px; color: #666; }
.carousel-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 480px) { .carousel-controls { gap: 4px; } .carousel-controls .carousel-dot { width: 20px; } }
@media (prefers-reduced-motion: reduce) { .carousel-dot::before { transition: none; } }
.legacy-page .products-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 24px; padding: 0; margin: 0 0 30px; }
.legacy-mobile { display: none; }
.legacy-desktop, .legacy-mobile { min-width: 0 !important; max-width: 100% !important; }
.legacy-page .productsIndex-li { height: auto !important; min-height: 0 !important; padding-bottom: 0 !important; }
.legacy-page .productsIndex-li-a { width: 100% !important; height: auto !important; }
.legacy-page .productsIndex-li-thumb { width: 100% !important; }
.legacy-page .products-grid > li { width: auto !important; margin: 0 !important; float: none !important; }
.legacy-page .productsIndex-li-thumb img { width: 100%; }
.legacy-page .productsIndex-li-thumb div { font-size: 16px; padding: 10px 0; }
.legacy-page .productsIndex-li-a { background: transparent; }
.legacy-page .productsIndex-li .highlight { display: none; }
.legacy-page .productsIndex-title { margin-bottom: 24px; }
.legacy-page #bgPallarax .sectionHead { width: auto; height: auto; background: none; color: #111; }
.legacy-page #bgPallarax .sectionHead-inner { position: static; }
.legacy-page .palBoxWrap > section { scroll-margin-top: 90px; }
.legacy-page #news .textBlock { padding: 24px; }
.legacy-page #news .w50 { width: 100%; max-width: 520px; }
.legacy-page .note-embed { max-width: 100% !important; }
.legacy-page .news-more { margin-top: 24px; text-align: center; }
.legacy-page .news-more-button { display: inline-flex; align-items: center; gap: 24px; padding: 12px 28px; border: 1px solid #111; background: #fff; color: #111; font-size: 14px; text-decoration: none; }
.legacy-page .news-more-button:hover { background: #111; color: #fff; }
.legacy-page iframe, .legacy-page video { max-width: 100%; }
.legacy-page .basicBlock { line-height: 1.9; }
.legacy-page .contact-button { display: inline-flex; align-items: center; gap: 18px; background: #111; color: #fff !important; padding: 18px 28px; margin: 20px 0; text-decoration: none; border: 1px solid #111; }
.legacy-page .contact-button:hover { background: #333; }
.legacy-page .contact-account { font-size: 14px; }
.legacy-page .contact-guide { border-top: 1px solid #ddd; margin-top: 32px; padding-top: 24px; }
.legacy-page .contact-guide h2 { font-size: 18px; margin-bottom: 16px; }
.age-dialog { position: fixed; inset: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 48px 32px; border: 1px solid #111; background: #fff; color: #111; text-align: center; z-index: 2000; margin: auto; font-size: 15px; }
.age-dialog:not([open]) { display: none; }
.age-dialog::backdrop { background: rgba(255, 255, 255, .96); }
.age-dialog > img { max-width: 80%; height: auto; margin-bottom: 22px; }
.age-dialog h2 { font-size: 22px; margin: 24px 0; }
.age-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.age-actions button, .age-actions a { display: block; padding: 14px 20px; color: #111; background: #fff; border: 1px solid #111; font-size: 14px; text-decoration: none; cursor: pointer; }
.age-actions button { background: #111; color: #fff; }
.image-dialog { border: 0; padding: 16px; max-width: 95vw; max-height: 95dvh; }
.image-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.image-dialog img { display: block; max-width: 85vw; max-height: 80dvh; object-fit: contain; }
.image-dialog button { display: block; margin: 0 0 12px auto; padding: 8px 16px; cursor: pointer; }
@media (min-width: 1001px) {
  .site-header .site-header-inner { box-sizing: border-box; width: calc(100% - 48px); max-width: 1000px; padding-inline: 0; }
  .legacy-desktop #upper { padding-bottom: 0 !important; }
  .site-footer { margin-top: 32px; }
  .site-footer-inner { box-sizing: border-box; width: calc(100% - 48px); max-width: 1000px; padding: 28px 0; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px 32px; align-items: start; }
  .site-footer-inner > .site-logo { grid-column: 2; grid-row: 1 / span 3; justify-self: end; }
  .site-footer-inner > nav, .site-footer-inner > small { grid-column: 1; margin: 0; }
}
@media (max-width: 1100px) {
  .site-header .site-header-inner { gap: 18px; padding-inline: 20px; }
  .site-navigation { gap: 16px; }
  .site-logo img { width: 160px; }
  .legacy-page #bgPallarax .palBox { padding-inline: 24px; }
}
@media (max-width: 900px) {
  .site-header .site-header-inner { flex-wrap: wrap; gap: 12px 20px; }
  .menu-toggle { display: flex; margin-left: auto; }
  .site-navigation { display: none; flex-basis: 100%; order: 4; margin: 0; padding-top: 8px; border-top: 1px solid #ddd; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - 100px); overflow-y: auto; }
  .site-navigation.is-open { display: flex; }
  .site-navigation > a { padding: 12px 0; border-bottom: 1px solid #eee; }
  .site-navigation .site-languages { margin: 0; padding: 12px 0 0; gap: 12px; }
  .site-languages a { padding: 8px; }
}
@media (max-width: 1000px) {
  .legacy-page.has-mobile-version > .legacy-desktop { display: none; }
  .legacy-page.has-mobile-version > .legacy-mobile { display: block; }
}
@media (max-width: 768px) {
  .legacy-page.product-list-page #products, .legacy-page #pageBody.contact-page { width: calc(100% - 32px) !important; padding: 32px 0 0; }
  .legacy-page.product-list-page #products .sectionHead, .legacy-page #pageBody.contact-page .sectionHead { font-size: 28px; margin-bottom: 28px !important; }
  .legacy-page.product-list-page #products .sectionHead-name, .legacy-page #pageBody.contact-page .sectionHead-name { font-size: 16px; }
  .legacy-page #pageBody.contact-page .basicBlock { padding: 20px; }
  .legacy-page #bgPallarax .palBox { padding: 44px 16px 0; }
  .legacy-page #bgPallarax .palBox:first-child { padding-top: 16px; }
  .legacy-page #pageBody { padding: 40px 16px 0; }
  .legacy-page .wrap.container { padding-inline: 16px; }
  .legacy-page .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; }
  .legacy-page.has-mobile-version > .legacy-desktop { display: none; }
  .legacy-page.has-mobile-version > .legacy-mobile { display: block; }
  .legacy-mobile #wrapper { min-width: 0 !important; width: 100% !important; max-width: 100%; margin: 0 !important; padding: 0 !important; }
  .legacy-mobile #upper { padding-top: 0 !important; }
  .legacy-mobile .mainImege > img { width: 100%; }
  .legacy-mobile .bodyinner, .legacy-mobile .pc-bodyinner, .legacy-mobile .sp-bodyinner { width: 100% !important; max-width: 100%; }
  .legacy-page .productsIndex-li-thumb div { font-size: 13px; }
  .legacy-page .row-fluid { display: flex; flex-wrap: wrap; gap: 16px; }
  .legacy-page .row-fluid > [class*="span"] { width: 100% !important; margin: 0 !important; float: none !important; }
  .legacy-page .productsIndex-type .row-fluid > li { width: calc(50% - 8px) !important; }
  .legacy-page .productsIndex-type .row-fluid { padding: 0; }
  .legacy-page .basicBlock, .legacy-page.brand-index .basicBlock { padding: 24px !important; font-size: 16px; }
  .legacy-page .w50, .legacy-page .w60, .legacy-page .w70, .legacy-page .w80 { width: 100% !important; }
  .legacy-page .pull-left, .legacy-page .pull-right { float: none !important; }
  .legacy-page .dis-flex { flex-wrap: wrap; }
  .legacy-page .sectionHead { font-size: 26px; margin-bottom: 24px !important; }
  .legacy-page .sectionHead-name { font-size: 18px; }
  .legacy-page .catalog-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legacy-page .catalog-item { width: auto; min-width: 0; }
  .legacy-page table { display: block; max-width: 100%; overflow-x: auto; }
  .legacy-page #news .textBlock { padding: 12px; }
  .legacy-page [style*="width: 1000"], .legacy-page [style*="width:1000"] { width: 100% !important; }
  .site-footer-inner { padding: 32px 20px 24px; }
  .site-footer nav { gap: 14px 20px; }
}
@media (max-width: 480px) {
  .site-header .site-header-inner { padding: 12px 16px; gap: 10px; }
  .site-header .site-logo img { width: 145px; }
  .legacy-page .contact-button { padding: 16px; font-size: 14px; }
  .age-dialog { padding: 32px 20px; }
  .age-actions { flex-direction: column; }
}
