@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 115ms; }
::view-transition-new(root) { animation-duration: 180ms; }

.site-header .masthead { grid-template-columns: auto minmax(0, 1fr) auto; }
.site-header .store-search { order: 0; }
.site-header .store-search .icon { color: var(--ink); }
.site-header .store-search button { min-height: 42px; border-radius: 9px; }
.site-header .iconbtn, .site-header .cartbtn { color: var(--red); }
.site-header .cartbtn { background: transparent; border: 0; padding: 7px 0; }
.site-header .cartbtn:hover, .site-header .menu-toggle:hover { color: #85051b; }
.site-header .nav-category { display: inline-flex; gap: 7px; align-items: center; }
.site-header .navline .navspacer { margin-left: auto; }
.site-header .navline button { display: inline-flex; gap: 6px; align-items: center; }
.site-header .navline a { min-height: 0; }
.site-header .cartcount, .bottomnav .cartcount { background: var(--red); color: white; }
.site-header .store-original-logo { width: clamp(160px, 20vw, 210px); height: auto; display: block; object-fit: contain; }
.storefront-home .promo { margin-bottom: 0; }
.storefront-home .promo-viewport { border-radius: 0; }
.storefront-home .promo-viewport button { box-shadow: none; }
.storefront-home .promo-toolbar button { color: var(--red); }
.storefront-home .promo-copy .promo-link { display: inline-flex; width: max-content; font-size: 17px; }
.storefront-home #new { margin-top: 0; }
.category-promo { clear: both; margin: 0 0 22px; }
.category-promo .promo-slide { min-height: 265px; }
.category-promo .promo-copy { padding: 25px 0 25px clamp(35px, 5vw, 68px); }
.category-promo .promo-copy > div { font-size: clamp(.8rem, 2.4vw, 1rem); max-width: 29ch; }
.category-promo .promo-copy strong { font-size: clamp(1.55rem, 4.3vw, 3.25rem); line-height: 1.09; overflow-wrap: anywhere; }
.category-promo .promo-slide img { max-height: 245px; max-width: 330px; width: 76%; aspect-ratio: 1; object-fit: contain; border-radius: 13px; }
.category-promo .promo-copy .promo-link { display: inline-flex; width: max-content; font-size: .95rem; }
.category-promo .promo-viewport { border-radius: 0; }
.category-promo .promo-dots { gap: 5px; }
.category-promo .promo-dots button { min-width: 35px; }
.category-promo .promo-toolbar { justify-content: center; }
.category-promo .promo-toolbar button { color: var(--red); }
.category-promo .promo-slide.category-banner-artwork { display: block; min-height: 0; background: #fff; }
.category-promo .promo-slide.category-banner-artwork::before, .category-promo .promo-slide.category-banner-artwork::after { display: none; }
.category-promo .promo-slide.category-banner-artwork img { display: block; width: 100%; height: auto; max-width: none; max-height: none; margin: 0; aspect-ratio: auto; object-fit: contain; border-radius: 0; filter: none; }
.department-drawers details[open] { animation: drawer-open 180ms ease-out; }
@keyframes drawer-open { from { opacity: .45; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.legacy-slider { text-align: inherit; padding: 0; container-type: inline-size; }
.legacy-slider .campaign-stage { min-height: 0; height: var(--original-banner-height, auto); aspect-ratio: 1240 / 900; }
@container (width <= 1024px) { .legacy-slider .campaign-stage { aspect-ratio: 1024 / 768; } }
@container (width <= 778px) { .legacy-slider .campaign-stage { aspect-ratio: 778 / 960; } }
@container (width <= 480px) { .legacy-slider .campaign-stage { aspect-ratio: 480 / 720; } }
.legacy-slider .campaign-stage iframe { width: 100%; height: 100%; }
.legacy-slider .campaign-placeholder { background: #261820; color: #f3dce4; text-align: center; padding: 16px; }
.legacy-slider .campaign-tabs button { transition: background-color 155ms ease, color 155ms ease, border-color 155ms ease; }
.legacy-slider .campaign-actions button { font-size: .84rem; padding-inline: 10px; }
.motion-products .motion-product a { padding: 0; border: 0; border-radius: 0; background: transparent; }

.woocommerce ul.products li.reference-card, .woocommerce-page ul.products li.reference-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: box-shadow 175ms ease, border-color 175ms ease;
}
.woocommerce ul.products li.reference-card:hover { border-color: #e5c3cd; box-shadow: 0 7px 22px #621c320d; }
.woocommerce ul.products li.reference-card .card-media { padding: 0; }
.woocommerce ul.products li.reference-card .product-photo { margin: 0; }
.woocommerce ul.products li.reference-card .product-photo img { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; background: #fff; border-radius: 0; }
.woocommerce ul.products li.reference-card .woocommerce-loop-product__title { min-height: 0; padding: 0; margin: 0 0 auto; font-size: clamp(.99rem, 1.6vw, 1.17rem); }
.woocommerce ul.products li.reference-card .price { margin: 3px 0 0; font-size: clamp(1.15rem, 4.6vw, 1.45rem); line-height: 1.18; }
.woocommerce ul.products li.reference-card .stock-label { align-self: flex-start; margin: 0; background: #eaf7ef; padding: 3px 8px; border-radius: 5px; }
.woocommerce ul.products li.reference-card .stock-label.out { background: #f2eaec; color: #66575d; }
.woocommerce ul.products li.reference-card .stock-label.backorder, .woocommerce div.product .stock.available-on-backorder { background: #fff0d9; color: #a64700; font-weight: 750; padding: 4px 8px; border-radius: 5px; }
.woocommerce ul.products li.reference-card .button { margin: 3px 0 0; font-size: .875rem; gap: 5px; line-height: 1.18; background: linear-gradient(165deg, #c9223b, #a50920); transition: filter 150ms ease; }
.woocommerce ul.products li.reference-card .button:hover { filter: brightness(.92); }
.woocommerce ul.products li.reference-card svg { width: 17px; height: 17px; flex: 0 0 auto; }
.woocommerce ul.products li.reference-card .fav svg { width: 21px; height: 21px; }
.woocommerce ul.products li.reference-card .fav.saved svg { fill: var(--red); stroke: var(--red); }
.woocommerce ul.products li.reference-card .onsale { left: 10px; top: 10px; }
.woocommerce ul.products li.reference-card .added_to_cart { color: var(--red); text-align: center; font-size: .84rem; font-weight: 700; }
body.erchuud-list .woocommerce ul.products li.reference-card { grid-template-columns: minmax(105px, 27%) minmax(0, 1fr); align-items: start; }
body.erchuud-list .woocommerce ul.products li.reference-card .product-photo { margin: 0; }
body.erchuud-list .woocommerce ul.products li.reference-card .card-media { padding-bottom: 6px; }

.cart-sheet.store-dialog, #erchuud-department-sheet.store-dialog { inset: auto 16px 16px auto; margin: 0; }
.cart-sheet h2, #erchuud-department-sheet h2 { margin: 0 36px 14px 0; }
.cart-sheet .widget_shopping_cart_content { padding: 4px 0; }
.cart-sheet .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.cart-sheet .woocommerce-mini-cart-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-sheet .woocommerce-mini-cart-item img { width: 48px; height: 48px; margin-right: 9px; object-fit: contain; vertical-align: middle; }
.cart-sheet .woocommerce-mini-cart-item .quantity { grid-column: 2; }
.cart-sheet .woocommerce-mini-cart__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cart-sheet .woocommerce-mini-cart__buttons a { color: white; background: var(--red); padding: 9px 13px; border-radius: 8px; }
.department-sheet-list { display: grid; gap: 8px; }
.department-sheet-list details { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.department-sheet-list summary, .department-sheet-list a, .department-sheet-list button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; }
.department-sheet-list summary { cursor: pointer; background: var(--redlight); font-weight: 750; }
.department-sheet-list details a { border-top: 1px solid var(--line); }
.department-sheet-list button { font-weight: 750; color: var(--red); }
.woocommerce-checkout form.checkout { display: block; }
.woocommerce .woocommerce-products-header { position: static; background: transparent; box-shadow: none; border: 0; }
.single-product .woocommerce div.product { display: flow-root; overflow: visible; background: transparent; border: 0; box-shadow: none; }
.single-product .woocommerce div.product .related.products, .single-product .woocommerce div.product .up-sells.products { display: block; clear: both; }
.single-product .woocommerce div.product .summary .price { font-size: clamp(1.65rem, 5vw, 2.5rem); line-height: 1.16; }
.woocommerce div.product .erchuud-gallery { display: grid; grid-template-columns: 68px minmax(0, 1fr); }
.woocommerce div.product .erchuud-gallery .gallery-stage { aspect-ratio: 1; grid-column: 2; grid-row: 2; }
.woocommerce div.product .erchuud-gallery .gallery-stage img, .woocommerce div.product .erchuud-gallery .gallery-stage video { max-height: none; object-fit: contain; width: 100%; height: 100%; }
.erchuud-gallery .gallery-controls { grid-column: 2; grid-row: 3; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .82rem; }
.product-media-viewer { width: min(96vw, 1400px); max-width: 96vw; height: min(94dvh, 1200px); max-height: 94dvh; padding: 48px 8px 8px; border: 0; border-radius: 12px; background: #fff; }
.product-media-viewer::backdrop { background: #120c10df; }
.product-media-viewer > div { display: grid; place-items: center; width: 100%; height: 100%; overflow: auto; }
.product-media-viewer img, .product-media-viewer video { width: 100%; height: 100%; object-fit: contain; }
.supportbubble:focus-visible { outline-offset: 3px; }

@media (min-width: 821px) {
    .site-header .masthead .menu-toggle { flex: 0 0 42px; }
    .site-header .masthead .store-search { flex: 1 1 340px; }
    .site-header .masthead .head-actions { flex: 0 0 auto; }
}
@media (max-width: 820px) {
    .category-promo { margin-bottom: 16px; }
    .category-promo .promo-slide { min-height: 205px; grid-template-columns: 1.1fr .9fr; }
    .category-promo .promo-copy { padding: 21px 0 21px 30px; }
    .category-promo .promo-copy strong { font-size: clamp(1.45rem, 6vw, 2.5rem); }
    .category-promo .promo-copy .promo-link { font-size: .79rem; margin-top: 13px; padding: 8px 10px; }
    .category-promo .promo-slide img { max-height: 172px; width: 82%; margin-right: 14px; }
    .site-header .masthead .store-search { grid-column: 1/-1; grid-row: 2; }
    .site-header .masthead .saved-button, .site-header .masthead .accountbtn { display: none; }
    .site-header .cartbtn .cartcount.zero { display: none; }
    .site-header .masthead .brand { white-space: nowrap; }
    .site-header .store-original-logo { width: clamp(142px, 44vw, 191px); }
    .site-header .masthead .menu-toggle { min-height: 43px; }
    .site-header .navline { display: none; }
    .storefront-home .promo-copy .promo-link { font-size: 13px; }
    .department-grid button:last-child span { font-size: clamp(.8rem, 3.5vw, 1rem); }
    .legacy-slider .campaign-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .legacy-slider .campaign-tabs button { min-height: 44px; padding-inline: 2px; font-size: clamp(.74rem, 3.25vw, .92rem); }
    .site-footer { padding-bottom: 100px; }
    .woocommerce div.product .erchuud-gallery { grid-template-columns: minmax(0, 1fr); float: none; width: 100%; margin-right: 0; }
    .woocommerce div.product .erchuud-gallery .gallery-stage { aspect-ratio: 1; grid-column: 1; grid-row: 2; }
    .woocommerce div.product .erchuud-gallery .gallery-tabs { grid-column: 1; grid-row: 1; }
    .woocommerce div.product .erchuud-gallery .gallery-thumbs { grid-column: 1; grid-row: 3; flex-direction: row; }
    .woocommerce div.product .erchuud-gallery .gallery-controls { grid-column: 1; grid-row: 4; }
    .woocommerce div.product .summary { float: none; width: 100%; }
    .woocommerce div.product .erchuud-gallery:has(.gallery-tabs) > .gallery-tabs { grid-row: 1; grid-column: 1; }
    .woocommerce div.product .erchuud-gallery:has(.gallery-tabs) > .gallery-stage { grid-row: 2; grid-column: 1; }
    .woocommerce div.product .erchuud-gallery:has(.gallery-tabs) > .gallery-thumbs { grid-row: 3; grid-column: 1; }
    .woocommerce div.product .erchuud-gallery .gallery-stage img, .woocommerce div.product .erchuud-gallery .gallery-stage video { aspect-ratio: auto; min-height: 0; }
    .cart-sheet.store-dialog, #erchuud-department-sheet.store-dialog { inset: auto 0 0; width: 100%; max-width: none; margin: 0; max-height: 85dvh; border-radius: 20px 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
