.header-logo, .header-cart {
    width: 20%;
}

.header-cart {
    flex-grow: unset;
}

.search-header-bar {
    height: 100px;
}

.search-header-bar > * {
    height: 100%;
}

.search-input > div {
    width: 100%;
}

.search-input-icon {
    position: absolute;
    font-size: 22px;
    top: 8px;
    left: 4px;
}


.rtl .search-input-icon {
    left: unset;
    right: 4px;
    top: 9px;
}

.search-input-input {
    padding-left: 30px;
    min-height: 40px;
    max-height: 40px;
}

.rtl .search-input-input {
    padding-left: inherit;
    padding-right: 30px;
}


.icon-shopping_cart_black_36dp-1-1, .sm-search-icon > span {
    font-size: 32px;
}

.icon-shopping_cart_black_36dp-1-1 .path1:before {
    color: unset;
}

.icon-shopping_cart_black_36dp-1-1 .path2:before {
    color: unset;
}

.icon-language_black_24dp .path1:before {
    color: unset;
}

/* Count badge in the store's ink (same as the buttons), ringed in the header colour so it reads
   cleanly over the icon. The accent red stays for sale labels. */
.cart-badge {
    position: absolute;
    right: 20px;
    top: -8px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    font-weight: 600;
    color: var(--cart-badge-text, var(--theme-btn-text));
    text-align: center;
    border-radius: 50%;
    background-color: var(--cart-badge-bg, var(--theme-btn-bg));
    box-shadow: 0 0 0 2px var(--header-primary-color);
}

.rtl .cart-badge {
    right: unset;
    left: 20px;
}

.top-main-menu-wrapper {
    margin-right: -22px;
    margin-left: -22px;
}

.ic.menu{
    text-align: left;
    position: relative;
    right: 4px;
}

.rtl .ic.menu{
    text-align: right;
    right: unset;
    left: 4px;
}

.ic.menu, .sm-search-icon {
    margin-right: 20px;
}

.icon-menu-top {
    margin-right: 10px !important;
}

.rtl .ic.menu, .sm-search-icon {
    margin-right: unset;
    margin-left: 20px;
}

.rtl .icon-menu-top {
    margin-right: unset !important;
    margin-left: 10px !important;
}

.icon-menu-top > span {
    font-size: 32px;
}

.icon-menu_open_black_24dp-1:before {
    color: unset;
}


.sm-search-div {
    display: none;
    visibility: hidden;
    position: absolute;
    left: 0;
    padding: 0px 15px 20px 15px;
    width: 100%;
    background-color: var(--header-primary-color, var(--primary-color));
    transform: translateY(-100%);
    transition: all .3s ease;
    z-index: 1;
}

.sm-search-div.show {
    visibility: visible;
    transform: translateY(0%);
    -webkit-transform:translate3d(0,0,0);
}

.footer .apps-social-icons:nth-child(2) {
    padding-left: 0px;
}

.rtl .footer .apps-social-icons:nth-child(2) {
    padding-right: 0px;
    padding-left: 15px;
}

.footer .google-app-stores {
    margin-left: -4px;
    margin-right: -4px;
}

.footer .icons-wrapper {
    padding: 0px;
}

.footer-about-us-links-div {

}


.footer-about-us-div {
    padding-right: 20%;
}

.rtl .footer-about-us-div {
    padding-right: unset;
    padding-left: 20%;
}

.slick-dotted.slick-slider {
    margin-bottom: 0px;
}

.slick-next.slick-arrow > span, .slick-prev.slick-arrow > span {
    color: var(--theme-ink);
    font-size: 3.3rem;
}

.category-item a, .category-item img {
    display: block;
    text-align: center;
    width: 100%;
}

.category-item img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.category-item h3 {
    margin-top: 15px;
    font-size: 1.6rem;
    font-weight: 400;
    text-align: center;
    color: var( --primary-color);
    white-space: break-spaces;
}

.category-page-slider .category-item h3 {
    font-size: 1.2rem;
}

.categories-slider .category-item {
    width: 100%;
    max-width: 200px;
}

.slider-container {
    padding-left: 15px;
    padding-right: 15px;
}
.section-title {
    padding-left: 0px;
    padding-right: 0px;
}

.products-slider .prod-col, .categories-slider .cat-col {
    padding-left: 15px;
    padding-right: 15px;
    display: block;
    width: auto;
}

.category-page-slider .categories-slider.s-slider {
    margin-right: -15px;
    margin-left: -15px;
}

.category-page-slider .home-categories-section .section-title {
    margin-right: -15px;
    margin-left: -15px;
}

.category-page-slider .products-slider .prod-col, .categories-slider .cat-col {
    padding-left: 15px;
    padding-right: 15px;
}

.categories-slider-wrapper, .products-slider-wrapper {
    margin-right: -15px;
    margin-left: -15px;
}

.bundle-offer-products .prod-col{
    width: 20%;
    padding: 15px;
}

/* Propagate the row's stretch height so all action buttons align */
.products-list .prod-col,
.bundle-offer-products .prod-col {
    display: flex;
    flex-direction: column;
}

.products-list .prod-col .product-item,
.bundle-offer-products .prod-col .product-item {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.products-list .prod-col .product-item > a,
.bundle-offer-products .prod-col .product-item > a {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.products-list .product-card-footer,
.bundle-offer-products .product-card-footer {
    margin-top: auto;
}

/* Listing grid (products, category). Columns come from Layout settings > Product & category pages
   as --product-grid-cols(-mobile, -filtered) on :root; with the filter sidebar there is one column fewer.
   The gap preset is a product-grid-gap--* class on <body>. */
.products-list {
    --product-grid-gap: 20px;
    display: grid;
    grid-template-columns: repeat(var(--product-grid-cols-mobile, 2), minmax(0, 1fr));
    gap: calc(var(--product-grid-gap) * .6);
    margin-top: var(--product-grid-gap);
}

/* Face shape "see all" (/products?face=…): the suggested products load after the page,
   then the catalog follows under its own heading. */
.products-list.is-loading {
    min-height: 240px;
}

.fs-picks-all-title {
    margin: 40px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--theme-line, #e6e6e6);
    font-size: 1.667rem;
    font-weight: 700;
}

.product-grid-gap--compact .products-list {
    --product-grid-gap: 12px;
}

.product-grid-gap--relaxed .products-list {
    --product-grid-gap: 30px;
}

.products-list .prod-col {
    width: auto;
    min-width: 0;
    padding: 0;
}

/* Sliders too: main.css caps cards at 200px, which left the rest of each slide as a gap. */
.products-list .product-item,
.home-products .product-item,
.slick-slide .product-item {
    width: 100%;
    max-width: none;
}

@media (min-width: 768px) {
    .products-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .products-list {
        grid-template-columns: repeat(var(--product-grid-cols, 4), minmax(0, 1fr));
    }

    .products-list--filtered {
        grid-template-columns: repeat(var(--product-grid-cols-filtered, 3), minmax(0, 1fr));
    }
}

.select-dropdown .dropdown-item {
    padding-bottom: 7.5px;
    padding-top: 7.5px;
}

.products-pagination {
    margin-bottom: 24px;
    padding: 0 15px;
}

.products-pagination ul  {
    padding: 0px;
}

.products-pagination .page-link {
    color: var( --primary-color);
    font-size: 1.2rem;
}

.products-pagination .page-link.active {
    color: var(--text-color-primary-bg);
    background-color: var( --primary-color);
}

.rtl .products-pagination .page-item:first-child .page-link {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}


.rtl .products-pagination .page-item:last-child .page-link {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.products-container .products-list {
    margin-bottom: 24px;
}

.cart-header-total {
    margin-right: 10px;
    font-size: 1.6rem;
    color: var(--header-text-color-primary-bg, var(--text-color-primary-bg));
}

.rtl .cart-header-total {
    margin-right: unset;
    margin-left: 10px;
}

.form-control {
    border-color: var(--theme-line);
    border-radius: var(--theme-radius-sm);
}

/* Design identity: square-ish buttons in the button colour from Layout settings > Colors. */
.btn {
    border-radius: var(--theme-radius-sm);
}

/* Button hover: tone drift. The gradient is wider than the button and starts on its solid
   part, so at rest the button looks flat; hover slides the lighter band across. A button
   with its own colour sets --btn-drift. Page CSS must use background-color, not the
   background shorthand, or it wipes the gradient. */
.btn-primary,
.btn-outline-primary,
.btn-add-to-cart,
.btn-buy-now,
.pd-sticky-btn,
.home-btn,
.cart-empty-btn,
.btn-face-shape,
.btn-try-on,
.tryon-btn,
.tryon-cta,
.tryon-alt,
.fshape-btn,
.fshape-act,
.fshape-prod-btn,
.lens-btn,
.pd-sec-btn,
.contact-branch-btn {
    --btn-drift: var(--theme-btn-bg);
    --btn-drift-from: var(--btn-drift);
    --btn-drift-tone: color-mix(in srgb, var(--btn-drift) 72%, #fff);
    --btn-drift-stop: 70%;
    background-image: linear-gradient(100deg, var(--btn-drift-from) 40%, var(--btn-drift-tone) var(--btn-drift-stop), var(--btn-drift) 100%);
    background-size: 260% 100%;
    background-position: 0 0;
    transition: background-position .9s cubic-bezier(.22, 1, .36, 1), color .4s ease, border-color .4s ease;
}

/* Outline buttons start see-through and fill with the same drift */
.btn-outline-primary,
.btn-buy-now,
.home-btn--outline,
.btn-face-shape,
.btn-try-on {
    --btn-drift-from: transparent;
    --btn-drift-tone: var(--btn-drift);
    --btn-drift-stop: 62%;
}

.btn:disabled,
.btn.disabled,
.btn-face-shape:disabled,
.btn-try-on:disabled,
.tryon-btn[disabled],
.tryon-cta[disabled],
.tryon-alt[disabled],
.fshape-prod-btn.is-busy,
.lens-btn:disabled {
    background-image: none;
}

.btn-primary:focus-visible,
.btn-outline-primary:focus-visible,
.btn-add-to-cart:focus-visible,
.btn-buy-now:focus-visible,
.pd-sticky-btn:focus-visible,
.home-btn:focus-visible,
.cart-empty-btn:focus-visible,
.btn-face-shape:focus-visible,
.btn-try-on:focus-visible,
.tryon-btn:focus-visible,
.tryon-cta:focus-visible,
.tryon-alt:focus-visible,
.fshape-btn:focus-visible,
.fshape-act:focus-visible,
.fshape-prod-btn:focus-visible,
.lens-btn:focus-visible,
.pd-sec-btn:focus-visible,
.contact-branch-btn:focus-visible {
    background-position: 100% 0;
}

@media (hover: hover) {
    .btn-primary:hover,
    .btn-outline-primary:hover,
    .btn-add-to-cart:hover,
    .btn-buy-now:hover,
    .pd-sticky-btn:hover,
    .home-btn:hover,
    .cart-empty-btn:hover,
    .btn-face-shape:hover,
    .btn-try-on:hover,
    .tryon-btn:hover,
    .tryon-cta:hover,
    .tryon-alt:hover,
    .fshape-btn:hover,
    .fshape-act:hover,
    .fshape-prod-btn:hover,
    .lens-btn:hover,
    .pd-sec-btn:hover,
    .contact-branch-btn:hover {
        background-position: 100% 0;
    }

    .btn-outline-primary:hover {
        background-color: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary,
    .btn-outline-primary,
    .btn-add-to-cart,
    .btn-buy-now,
    .pd-sticky-btn,
    .home-btn,
    .cart-empty-btn,
    .btn-face-shape,
    .btn-try-on,
    .tryon-btn,
    .tryon-cta,
    .tryon-alt,
    .fshape-btn,
    .fshape-act,
    .fshape-prod-btn,
    .lens-btn,
    .pd-sec-btn,
    .contact-branch-btn {
        transition: none;
    }
}


.box-1-1 {
    position: relative;
    width:    100%;
}

.box-1-1:before {
    content:     "";
    display:     block;
    padding-top: 100%; /* initial ratio of 1:1*/
}

.box-1-1 .content {
    position: absolute;
    top:      0;
    left:     0;
    bottom:   0;
    right:    0;
}

/* Other ratios - just apply the desired class to the "box" element */
.box-1-1.ratio2_1:before{
    padding-top: 50%;
}
.box-1-1.ratio1_2:before{
    padding-top: 200%;
}
.box-1-1.ratio4_3:before{
    padding-top: 75%;
}
.box-1-1.ratio16_9:before{
    padding-top: 56.25%;
}

.box-1-1.ratio21_9:before{
    padding-top: 42.85%;
}

.product-item-out-of-stock {
    filter: grayscale(1);
}


.sm-search-div .autocomplete-items, .lg-search-div .autocomplete-items{
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.sm-search-div .autocomplete-items div, .lg-search-div .autocomplete-items div {
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

/*when hovering an item:*/
.sm-search-div .autocomplete-items div:hover, .lg-search-div .autocomplete-items div:hover {
    background-color: #e9e9e9;
}

.sm-search-div .autocomplete-items div a, .lg-search-div .autocomplete-items div a {
    padding: 10px;
    cursor: pointer;
    color: inherit;
    display: block;
}

.product-crd-spec {
    min-height: var(--product-card-spec-height, 81px);
}

.ic-menu-back {
    font-size: 22px;
    margin-right: 16px;
    font-weight: bold;
}

.rtl .ic-menu-back {
    margin-right: unset;
    margin-left: 16px;
}

@media (max-width: 768px) {
    .header-cart {
        flex-grow: 1;
        width: 30%;
    }

    .header-logo {
        width: 70%;
    }

    .search-header-bar {
        height: 64px;
    }


    .footer .apps-social-icons:nth-child(2) {
        padding-left: 15px;
    }

    .rtl .footer .apps-social-icons:nth-child(2) {
        padding-right: 15px;
        padding-left: 15px;
    }

    .footer .icons-wrapper {
        padding-bottom: 10px;
        padding-top: 10px;
    }

    .footer-about-us-div {
        padding-right: 0;
    }

    .rtl .footer-about-us-div {
        padding-right: unset;
        padding-left: 0;
    }

    .category-page-slider .categories-slider {
        height: 225px;
    }

    .categories-slider .category-item {
        width: 190px;
    }

    .category-page-slider .categories-slider .category-item {
        width: 165px;
    }

    .category-page-slider .categories-slider.s-slider {
        margin-right: -7.5px;
        margin-left: -7.5px;
    }

    .category-page-slider .products-slider .prod-col, .categories-slider .cat-col {
        padding-left: 7.5px;
        padding-right: 7.5px;
    }

    .products-slider .prod-col, .categories-slider .cat-col {
        display: inline-block;
        vertical-align: top;
    }

    .categories-slider, .products-slider {
        overflow-y: hidden;
        overflow-x: scroll;
        white-space: nowrap;
    }
    .product-crd-spec small {
        white-space: break-spaces;
    }

    .categories-slider-wrapper, .products-slider-wrapper {
        overflow-x: hidden;
        margin-right: 0px;
        margin-left: 0px;
    }

    .slider-container {
        padding-left: 0px;
        padding-right: 0px;
    }

    .section-title {
        padding-right: 15px;
        padding-left: 15px;
    }

    .bundle-offer-products .prod-col {
        margin: 0 auto;
        width: auto;
    }

    .product-item {
        width: 135px;
    }

    .products-list .prod-col .product-item {
        width: 100%;
    }

    .sm-search-div {
        display: block;
    }

    .icon-shopping_cart_black_36dp-1-1, .sm-search-icon > span {
        font-size: 28px;
    }

    .icon-menu-top {
        width: 32px;
    }

}


.btn:focus,.btn:active, .page-link:focus, .page-link:active {
    outline: none !important;
    box-shadow: none;
}

.gift-popover-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 115px;
    height: 140px;
    max-width: 100%;
}
.popover {
    top: 40px;
}
.popover .arrow {
    top: -0.5rem;
    left: 5px;
}
.popover .arrow::before {
    top: 0;
    border-width: 0 0.5rem 0.5rem;
    border-bottom-color: #fff;
}
.popover .arrow ::after {
    top: 1px;
    border-width: 0 0.5rem 0.5rem;
    border-bottom-color: #fff;
}


.preorder-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 300;
  line-height: 1.4;
  background-color: var(--primary-color);
  color: var(--text-color-primary-bg, #ffffff);
  white-space: nowrap;
  margin-bottom: 8px;
}

.preorder-badge.preorder-badge--product-card {
  border-radius: 10px;
  margin-bottom: 0;
}

.add-to-wishlist {
  position: absolute;
  right: 0;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
  width: 40px;
  height: 35px;
  cursor: pointer;
  border-radius: 50%;
  background-color: transparent;
}

.rtl .add-to-wishlist {
  right: unset;
  left: 0;
}

.icon-heart-mask {
  display: inline-block;
  width: 25px;
  height: 20px;
  mask-size: 100%;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-image: var(--heart-outlined-icon);
  background-color: var(--theme-ink);
}

.icon-heart-mask.filled {
  mask-image: var(--heart-filled-icon);
  background-color: var(--theme-accent);
}


/* ===== Centered header (components/header-centered.jinja, header_layout = centered) =====
   Menu/region on the start side, logo centred, account/wishlist/cart on the end side.
   Same stacking layer as the classic wrapper (inline z-index: 3). */
.header-centered-wrapper {
    position: relative;
    z-index: 3;
}

/* `.sticky` (main.css) makes it fixed; restate position because the rule above comes later. */
.header-centered-wrapper.sticky {
    position: fixed;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

/* Replaces the classic 130px padding with the real height measured by menuFiixedHeader(). */
.app:has(.header-centered-wrapper) .app-content-padded {
    padding-top: var(--fixed-header-h, 72px);
}

.header-centered-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 12px;
    min-height: 72px;
}

/* Transition only into the shrunk state, so un-sticking is instant (no content shift near the threshold). */
.header-shrink.sticky .header-centered-bar {
    min-height: 56px;
    transition: min-height .2s ease;
}

.header-centered-start,
.header-centered-end {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.header-centered-end {
    justify-content: flex-end;
}

.header-centered-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: var(--header-text-color-primary-bg, inherit);
    cursor: pointer;
    transition: background-color .2s ease;
}

.header-centered-btn:hover {
    color: var(--header-text-color-primary-bg, inherit);
    text-decoration: none;
}

@media (hover: hover) {
    .header-centered-btn:hover,
    .header-centered-region:hover {
        background-color: rgba(0, 0, 0, .05);
    }
}

.header-centered-btn:focus-visible,
.header-centered-region:focus-visible {
    background-color: rgba(0, 0, 0, .05);
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.header-centered .theme-icon {
    flex: none;
    width: 22px;
    height: 22px;
}

/* Undo the classic .ic-menu-back / .rtl .ic-menu-back margins inside the bar. */
.header-centered .ic-menu-back {
    margin: 0;
}

.ltr .header-centered-back-icon {
    transform: scaleX(-1);
}

/* #hello-btn gets an inline display from main.js; the inner span keeps icon + greeting aligned. */
.header-centered-btn-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    vertical-align: top;
}

.header-centered-account {
    padding-inline: 9px;
    line-height: 40px;
    text-align: center;
}

.header-centered-greeting {
    max-width: 140px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1.1rem;
}

/* Region button; the branch-label script rewrites its .currency-btn span. */
.header-centered-region {
    align-items: center;
    gap: 8px;
    height: 40px;
    padding-block: 0;
    padding-inline: 10px;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: var(--header-text-color-primary-bg, inherit);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color .2s ease;
}

.header-centered-region .currency-btn {
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.header-centered-divider {
    width: 1px;
    height: 16px;
    background-color: currentColor;
    opacity: .4;
}

.header-centered-logo {
    display: block;
    justify-self: center;
}

/* --header-logo-h / --header-logo-h-m come from Header settings (header.jinja). */
.header-centered-logo .image-logo {
    width: auto;
    height: var(--header-logo-h, 48px);
    max-width: 280px;
    object-fit: contain;
}

.header-shrink.sticky .header-centered-logo .image-logo {
    height: calc(var(--header-logo-h, 48px) * .75);
    transition: height .2s ease;
}

.header-centered-cart {
    position: relative;
}

/* main.css places the badge for the classic 32px icon font; pin it to the circle's top end. */
.header-centered .cart-badge {
    top: -4px;
    right: auto;
    left: auto;
    inset-inline-end: -10px;
}

.header-centered-cart .popover {
    left: auto;
    right: auto;
    inset-inline-end: 0;
}

.header-centered-cart .popover .arrow {
    left: auto;
    right: auto;
    inset-inline-end: 12px;
}

/* Mirrors the classic inline style: the absolutely positioned .sm-search-div slides out from under the bar. */
.header-centered-mobile-search {
    position: relative;
    z-index: -1;
}

.header-centered-mobile-search .autocomplete,
.header-search-field .autocomplete {
    position: relative;
}

/* Own layer for the autocomplete dropdown (z 99 inside): above page content, below the sticky header (z 3). */
.header-search-row {
    position: relative;
    z-index: 2;
    padding-block: 0 16px;
}

.header-search-field {
    position: relative;
}

.header-search-field-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 16px;
    z-index: 1;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    opacity: .6;
    pointer-events: none;
}

.header-search-field .search-input-input {
    min-height: 44px;
    max-height: 44px;
    padding-inline-start: 44px;
    padding-inline-end: 16px;
    border-color: transparent;
    border-radius: var(--theme-radius-sm);
    background-color: var(--theme-surface);
}

.header-search-field .search-input-input:focus {
    border-color: var(--theme-ink);
    background-color: var(--theme-bg);
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .header-centered-bar {
        min-height: 60px;
        column-gap: 8px;
    }

    .header-shrink.sticky .header-centered-bar {
        min-height: 56px;
    }

    .header-centered-start,
    .header-centered-end {
        gap: 0;
    }

    .header-centered-logo .image-logo,
    .header-shrink.sticky .header-centered-logo .image-logo {
        height: var(--header-logo-h-m, 38px);
        max-width: 140px;
    }

    /* custom.css only shows the slide-down search below 768px; the centered toggle exists up to 991px. */
    .header-centered-mobile-search .sm-search-div {
        display: block;
    }
}

/* Small phones: off the home page each side holds three icons, so shrink them, drop the wishlist
   (reachable from the account page / drawer) and cap the logo so it can't run under the icons. */
@media (max-width: 575.98px) {
    .header-centered-btn {
        min-width: 36px;
        width: 36px;
        height: 36px;
        border-radius: 18px;
    }

    .header-centered-account {
        width: auto;
        line-height: 36px;
    }

    .header-centered .theme-icon {
        width: 18px;
        height: 18px;
    }

    .header-centered-wishlist {
        display: none;
    }

    .header-centered-logo .image-logo,
    .header-shrink.sticky .header-centered-logo .image-logo {
        max-width: 30vw;
        object-fit: contain;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-shrink.sticky .header-centered-bar,
    .header-shrink.sticky .header-centered-logo .image-logo,
    .header-centered-btn,
    .header-centered-region {
        transition: none;
    }
}


/* ===== Transparent header (header group: transparent, transparent_pages, transparent_text_color, transparent_logo) =====
   The header leaves the flow and sits over the first section. No z-index on the root on purpose: it would cap
   the slide menu (z 1000) inside it; the bar (z 3), menu and search row (z 2) already stack above the page.
   Colours are swapped through the header variables, so every child that reads them follows. Once the bar
   sticks on scroll (.sticky) it is excluded and gets its normal solid colours back. */
.header--transparent {
    position: absolute;
    top: 0;
    inset-inline: 0;
}

.header--transparent .header-centered-wrapper:not(.sticky),
.header--transparent .mega-menu-root,
.header--transparent .header-search-row {
    --header-primary-color: transparent;
    --menu-header-primary-color: transparent;
    --header-text-color-primary-bg: var(--header-transparent-text, #fff);
    --menu-header-text-color-primary-bg: var(--header-transparent-text, #fff);
}

/* Light logo swap; only rendered (and only matched) when the merchant uploaded one. */
.header-logo-default {
    display: var(--header-logo-default-display, contents);
}

.header-logo-alt {
    display: var(--header-logo-alt-display, none);
}

.header--alt-logo .header-centered-wrapper:not(.sticky) {
    --header-logo-default-display: none;
    --header-logo-alt-display: contents;
}

/* The search field keeps its surface colour, slightly see-through so the image shows behind it. */
.header--transparent .header-search-field .search-input-input {
    background-color: rgba(255, 255, 255, .85);
}

/* The header never took space, so becoming fixed must not push the page down (main.js adds this padding). */
.app:has(.header--transparent) .app-content-padded {
    padding-top: 0;
}

/* ===== Mega menu (components/header-mega-menu.jinja, header group mega_menu) =====
   The markup keeps main.css's `.main-nav > li > div.sub-menu-block`, so these rules out-rank its desktop
   block: panel 0,2,3 / open 0,3,3 (rotateX, #f9f9f9 wash, z 556 !important which stays contained in our
   root's stacking context). Highlight colour: the merchant colour arrives as --mega-highlight-color. */
.mega-menu-root .is-highlight > a,
.slide-menu .is-highlight > a {
    color: var(--mega-highlight-color, var(--theme-accent));
}

/* Drawer (components/header-sliding-menu.jinja): roomier top-level rows and hairline dividers that read on
   light and dark menu colours. Structure is untouched; SlideMenu wraps the root <ul> in
   .slide-menu__slider on init, so both shapes are matched. Nested sub-items keep slide-menu-style.css. */
.slide-menu > ul > .slide-menu-ul-li > a,
.slide-menu > .slide-menu__slider > ul > .slide-menu-ul-li > a {
    padding: 14px 20px;
    font-size: 1.25rem;
    font-weight: 500;
}

.slide-menu > ul > .slide-menu-ul-li + .slide-menu-ul-li,
.slide-menu > .slide-menu__slider > ul > .slide-menu-ul-li + .slide-menu-ul-li {
    border-top: 1px solid rgba(128, 128, 128, .2);
}

@media (min-width: 992px) {
    /* Own layer for the panels: above .main content, below the sticky header (z 3). */
    .mega-menu-root {
        z-index: 2;
    }

    /* The centered layout's search row comes next in the DOM on the same layer (z 2) and would cover an
       open panel, so it drops a layer while the menu is hovered/focused. Going back up waits for the
       panel's fade-out. */
    .header-search-row {
        transition: z-index 0s linear .2s;
    }

    .mega-menu-root:hover ~ .header-search-row {
        z-index: 1;
        transition-delay: 0s;
    }

    /* Keyboard opening uses :has(:focus-visible), not :focus-within: Chrome focuses a link on mousedown,
       which would keep a panel open after mouse use. Kept as separate rules so a browser without :has()
       drops only these; the @supports block after this media query restores :focus-within there. */
    .mega-menu-root:has(:focus-visible) ~ .header-search-row {
        z-index: 1;
        transition-delay: 0s;
    }

    /* Honour the merchant's alignment. fixMenu() adds Bootstrap's .justify-content-between (!important)
       whenever ul.main-nav is within 100px of its parent's width, which is always (it is flex-grow-1
       inside a d-flex nav), so only an !important rule that also names that class can override it. */
    .mega-align-center ul.main-nav,
    .mega-align-center ul.main-nav.justify-content-between {
        justify-content: center !important;
    }

    .mega-align-start ul.main-nav,
    .mega-align-start ul.main-nav.justify-content-between {
        justify-content: flex-start !important;
    }

    /* custom.css pulls the bar out by the classic 22px link padding; match the 16px used here so the
       first link's text lines up with the container edge. */
    .mega-menu-root .top-main-menu-wrapper {
        margin-inline: -16px;
    }

    /* main.css clips the bar to 41px until fixMenu() removes .main-nav-wrapper; match the new link height. */
    .mega-menu-root .main-nav-wrapper {
        height: 48px;
    }

    .mega-menu-root ul.main-nav > li.top-level-link > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 14px 16px;
        line-height: 20px;
        font-weight: 500;
    }

    .mega-menu-root ul.main-nav > li.top-level-link:hover {
        background-color: transparent;
    }

    /* main.css forces #333 !important on the hovered link for its light wash; without the wash keep the
       bar's own text colour (only !important can override it). */
    .mega-menu-root ul.main-nav > li.top-level-link:hover > a {
        color: inherit !important;
    }

    .mega-menu-root ul.main-nav > li.is-highlight > a,
    .mega-menu-root ul.main-nav > li.is-highlight:hover > a {
        color: var(--mega-highlight-color, var(--theme-accent)) !important;
    }

    /* Replaces main.css's border triangle with the SVG chevron. */
    .mega-menu-root ul.main-nav > li > a.mega-menu > span::after {
        display: none;
    }

    .mega-menu-root ul.main-nav > li.top-level-link > a::after {
        content: '';
        position: absolute;
        inset-inline: 16px;
        bottom: 8px;
        height: 2px;
        border-radius: 1px;
        background-color: currentColor;
        transform: scaleX(0);
        transition: transform .2s ease;
    }

    .mega-menu-root ul.main-nav > li.top-level-link:hover > a::after {
        transform: scaleX(1);
    }

    .mega-menu-root ul.main-nav > li.top-level-link:has(:focus-visible) > a::after {
        transform: scaleX(1);
    }

    .mega-chevron {
        width: 14px;
        height: 14px;
        transition: transform .2s ease;
    }

    .mega-menu-root ul.main-nav > li:hover > a .mega-chevron {
        transform: rotate(180deg);
    }

    .mega-menu-root ul.main-nav > li:has(:focus-visible) > a .mega-chevron {
        transform: rotate(180deg);
    }

    /* Panel: fades and rises in after an 80ms hover intent (a pointer crossing the bar opens nothing);
       visibility flips at the end of the fade-out so the panel can't flicker or catch the pointer. */
    .mega-menu-root ul.main-nav > li > div.sub-menu-block {
        top: 100%;
        padding: 28px 32px;
        border: 0;
        border-radius: 0 0 16px 16px;
        background-color: #fff;
        color: var(--secondary-color-alt3);
        font-size: 1.1666rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 16px rgba(0, 0, 0, .06), 0 24px 48px rgba(0, 0, 0, .08);
        opacity: 0;
        visibility: hidden;
        transform: translate3d(0, 8px, 0);
        transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    }

    .mega-menu-root ul.main-nav > li:hover > div.sub-menu-block {
        background-color: #fff;
        opacity: 1;
        visibility: visible;
        transform: translate3d(0, 0, 0);
        transition: opacity .2s ease 80ms, transform .2s ease 80ms, visibility 0s linear 80ms;
    }

    .mega-menu-root ul.main-nav > li:has(:focus-visible) > div.sub-menu-block {
        background-color: #fff;
        opacity: 1;
        visibility: visible;
        transform: translate3d(0, 0, 0);
        transition: opacity .2s ease 80ms, transform .2s ease 80ms, visibility 0s linear 80ms;
    }

    /* main.css fades the children separately and only on :hover; keyboard focus must show them too. */
    .mega-menu-root ul.main-nav > li > div.sub-menu-block > * {
        opacity: 1;
        transition: none;
    }

    .mega-panel {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 20px 32px;
    }

    .mega-columns {
        flex: 1 1 0;
        min-width: 0;
    }

    .mega-column {
        margin-bottom: 12px;
    }

    .mega-menu-root .sub-menu-head {
        margin: 0 0 10px;
        font-size: 1.25rem;
        font-weight: 600;
    }

    .mega-menu-root .sub-menu-head a {
        color: inherit;
    }

    .mega-menu-root ul.main-nav ul.sub-menu-lists a,
    .mega-menu-root ul.main-nav .mega-dropdown-list a {
        display: inline-block;
        padding-block: 4px;
        color: var(--secondary-color-alt6);
        transition: color .15s ease, padding .15s ease;
    }

    .mega-menu-root ul.main-nav ul.sub-menu-lists a:hover,
    .mega-menu-root ul.main-nav ul.sub-menu-lists a:focus-visible,
    .mega-menu-root ul.main-nav .mega-dropdown-list a:hover,
    .mega-menu-root ul.main-nav .mega-dropdown-list a:focus-visible {
        padding-inline-start: 4px;
        color: var(--secondary-color-alt3);
        text-decoration: none;
    }

    .mega-promo {
        position: relative;
        display: block;
        flex: 0 0 240px;
        overflow: hidden;
        isolation: isolate;
        border-radius: 12px;
        color: #fff;
    }

    .mega-promo-img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        transition: transform .4s ease;
    }

    @media (hover: hover) {
        .mega-promo:hover .mega-promo-img {
            transform: scale(1.05);
        }
    }

    .mega-promo:focus-visible .mega-promo-img {
        transform: scale(1.05);
    }

    .mega-promo-title {
        position: absolute;
        inset-inline: 0;
        bottom: 0;
        padding: 40px 16px 14px;
        background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
        color: #fff;
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .mega-view-all {
        flex: 0 0 100%;
        padding-top: 16px;
        border-top: 1px solid var(--secondary-color-alt4);
        color: var(--secondary-color-alt3);
        font-weight: 600;
    }

    /* Simple dropdown: a narrow panel under its own link instead of the full bar width. */
    .mega-style-dropdown ul.main-nav > li {
        position: relative;
    }

    .mega-menu-root.mega-style-dropdown ul.main-nav > li > div.sub-menu-block {
        left: auto;
        right: auto;
        inset-inline-start: 0;
        width: 240px;
        padding: 12px 20px;
        border-radius: 0 0 12px 12px;
    }

    /* The last two items open toward the start side so the 240px panel stays inside the container.
       Counts items fixMenu() hid with .d-none too; at worst a panel opens inward one item early. */
    .mega-menu-root.mega-style-dropdown ul.main-nav > li:nth-last-child(-n+2) > div.sub-menu-block {
        inset-inline-start: auto;
        inset-inline-end: 0;
    }

    .mega-dropdown-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mega-menu-root ul.main-nav .mega-dropdown-list a {
        display: block;
    }
}

/* Browsers without :has() (Safari < 15.4, Firefox < 121): keyboard opening falls back to :focus-within. */
@supports not selector(:has(*)) {
    @media (min-width: 992px) {
        .mega-menu-root:focus-within ~ .header-search-row {
            z-index: 1;
            transition-delay: 0s;
        }

        .mega-menu-root ul.main-nav > li.top-level-link:focus-within > a::after {
            transform: scaleX(1);
        }

        .mega-menu-root ul.main-nav > li:focus-within > a .mega-chevron {
            transform: rotate(180deg);
        }

        .mega-menu-root ul.main-nav > li:focus-within > div.sub-menu-block {
            background-color: #fff;
            opacity: 1;
            visibility: visible;
            transform: translate3d(0, 0, 0);
            transition: opacity .2s ease 80ms, transform .2s ease 80ms, visibility 0s linear 80ms;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-search-row,
    .mega-chevron,
    .mega-promo-img,
    .mega-menu-root ul.main-nav > li.top-level-link > a::after,
    .mega-menu-root ul.main-nav ul.sub-menu-lists a,
    .mega-menu-root ul.main-nav .mega-dropdown-list a {
        transition: none;
    }

    .mega-menu-root ul.main-nav > li > div.sub-menu-block,
    .mega-menu-root ul.main-nav > li:hover > div.sub-menu-block,
    .mega-menu-root ul.main-nav > li:focus-within > div.sub-menu-block {
        transform: none;
        transition: none;
    }

    .mega-menu-root ul.main-nav > li:has(:focus-visible) > div.sub-menu-block {
        transform: none;
        transition: none;
    }

    .mega-promo:hover .mega-promo-img,
    .mega-promo:focus-visible .mega-promo-img {
        transform: none;
    }
}

/* ===== Footer layouts (columns / centered). Classic is untouched. ===== */
.footer-modern {
    padding-block: 4rem 3rem;
}
.footer-modern a {
    color: inherit;
    opacity: 0.75;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.footer-modern a:focus-visible {
    opacity: 1;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
@media (hover: hover) {
    .footer-modern a:hover {
        opacity: 1;
    }
}
.footer-modern .social-icons a {
    opacity: 1;
    width: 36px;
    height: 36px;
    margin-inline-end: 0.6rem;
    margin-block-end: 0.6rem;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-modern .social-icons a > span,
.footer-modern .social-icons a > svg {
    width: 16px;
    height: 16px;
    font-size: 16px;
}
/* The X logo carries main.css's own ring (.x-icon-twitter); the link already draws one here, and the
   extra padding + border left no room for the logo at 16px. */
.footer-modern .social-icons a > svg {
    padding: 0;
    border: 0;
    border-radius: 0;
    fill: currentColor;
}
.footer-modern-logo img {
    display: block;
    height: 40px;
    width: auto;
}
.footer-modern a.footer-modern-logo {
    opacity: 1;
}
.footer-columns-about,
.footer-centered-about {
    opacity: 0.8;
    line-height: 1.7;
}
.footer-columns-brand .footer-modern-logo {
    margin-block-end: 1.2rem;
}
.footer-columns-brand-title,
.footer-centered-title {
    font-size: 1.2rem;
    margin-block-end: 0.6rem;
}
.footer-columns-social-title {
    font-size: 1rem;
    margin-block: 1.4rem 0.8rem;
}
.footer-columns-grid,
.footer-columns-groups {
    display: grid;
    gap: 2.5rem 2rem;
    grid-template-columns: 1fr;
}
/* Two columns on phones keep the footer short. */
@media (max-width: 575.98px) {
    .footer-columns-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.footer-columns-heading {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: inherit;
}
.footer-columns-links {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}
.footer-columns-links li {
    margin-block-end: 0.7rem;
}
.footer-columns-links p {
    margin: 0;
}
.footer-columns-hint {
    opacity: 0.7;
    font-size: 0.9rem;
    font-style: italic;
}
/* Link columns get their own grid so one to six of them wrap into even rows beside the brand
   column instead of spilling under it. */
@media (min-width: 576px) {
    .footer-columns-groups {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
@media (min-width: 992px) {
    .footer-columns-grid {
        grid-template-columns: minmax(220px, 1.4fr) minmax(0, 4fr);
    }
}
@media (max-width: 767.98px) {
    .footer-columns-col {
        border-block-start: var(--footer-col-line, var(--footer-line));
        padding-block-start: 1rem;
    }
    .footer-modern { padding-block: 3rem 2rem; }
}
/* Official badges row (components/footer-badges.jinja): cards under the link columns, side by side
   from 576px and stacked on phones. Card border follows the footer divider colour. */
.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 3rem 0 0;
    padding: 2.5rem 0 0;
    border-block-start: var(--footer-line);
}
.footer-badges-item {
    flex: 1 1 100%;
}
.footer-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1rem 1.4rem;
    border: 1px solid var(--footer-line-color, rgba(128, 128, 128, 0.25));
    border-radius: var(--footer-badge-radius, 10px);
    color: inherit;
}
.footer-modern a.footer-badge {
    opacity: 1;
}
.footer-badge-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 26px;
}
.footer-badge-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
}
.footer-badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.footer-badge-label {
    font-size: 0.95rem;
    opacity: 0.75;
}
.footer-badge-number {
    font-weight: 700;
    overflow-wrap: anywhere;
}
@media (min-width: 576px) {
    .footer-badges-item {
        flex: 0 1 260px;
    }
}
@media (hover: hover) {
    .footer-modern a.footer-badge:hover {
        border-color: currentColor;
    }
}
.footer-modern a.footer-badge:focus-visible {
    border-color: currentColor;
}
/* Centered layout */
.footer-centered {
    text-align: center;
}
.footer-centered-about {
    max-width: 640px;
    margin: 0.8rem auto 1.6rem;
}
.footer-centered-links {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 0;
}
.footer-centered-links li {
    display: inline-flex;
    align-items: center;
}
.footer-centered-links li + li::before {
    content: "\00b7";
    margin-inline: 0.8rem;
    opacity: 0.6;
}
.footer-centered-group-title {
    font-weight: 700;
}
.footer-centered .social-icons {
    justify-content: center;
}
.footer-centered-location {
    margin-block-start: 1rem;
}
/* Footer dividers (Footer > Dividers). One line definition on the <footer>: style and colour as
   variables, so the top line, the phone column lines and the copyright bar line always match. The bar
   carries .footer-divided; the width setting puts its line on the bar (full) or on its container. */
.footer-shell {
    --footer-line: 1px var(--footer-line-style, solid) var(--footer-line-color, rgba(128, 128, 128, 0.25));
}
.footer-lines--dashed {
    --footer-line-style: dashed;
}
.footer-lines--none {
    --footer-line: 0 none;
}
.footer-shell--top {
    border-block-start: var(--footer-line);
}
.footer-shell--no-col-lines {
    --footer-col-line: 0 none;
}
.footer-lines--full .footer-divided,
.footer-lines--contained .footer-divided-inner {
    border-block-start: var(--footer-line);
}

/* Payment / shipping icons (components/footer-pay-icons.jinja), wherever they are placed */
.footer-pay-bar {
    padding-block: 1.6rem;
}
.footer-pay {
    --footer-pay-chip-bg: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}
.footer-pay-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.7;
}
.footer-pay-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-pay-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-pay-item img {
    display: block;
    width: auto;
    height: 22px;
}
/* Chips: logos are drawn for white, so each sits on a small white tile with a soft outline */
.footer-pay--boxed .footer-pay-item {
    height: 34px;
    padding-inline: 0.8rem;
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: var(--theme-radius-sm);
    background-color: var(--footer-pay-chip-bg);
}
.footer-pay--boxed .footer-pay-item img {
    height: 18px;
}
.footer-pay-apps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}
.footer-pay-apps img {
    display: block;
}
/* Under the social icons the block aligns with its column; the centered layout stays centred */
.footer-columns-brand .footer-pay,
.footer-about-us-links-div .footer-pay {
    align-items: flex-start;
    margin-block-start: 1.4rem;
}
.footer-columns-brand .footer-pay-list,
.footer-about-us-links-div .footer-pay-list,
.footer-columns-brand .footer-pay-apps,
.footer-about-us-links-div .footer-pay-apps {
    justify-content: flex-start;
}
.footer-centered-social .footer-pay {
    margin-block-start: 1.4rem;
}
.footer-modern .footer-pay-item,
.footer-modern .footer-pay-apps a {
    opacity: 1;
}

/* Trust badges (components/product-trust.jinja) with the icon sprite (components/product-icons.jinja).
   Global because the product page and the cart both show them; the product page's --pd-* tokens
   win there, other pages fall back to the theme tokens. */
.pd-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.pd-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: .75rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}
.pd-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: .75rem .5rem;
    text-align: center;
    background: var(--pd-soft, var(--theme-surface));
    border-radius: var(--pd-radius, var(--theme-radius));
}
.pd-trust-icon {
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: var(--pd-ink, var(--theme-ink));
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pd-trust-img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}
.pd-trust-title {
    font-size: .95rem;
    color: var(--pd-ink, var(--theme-ink));
}
.pd-trust-sub {
    font-size: .8rem;
    line-height: 1.3;
    color: var(--pd-muted, var(--theme-muted));
}

/* Legal bar (components/footer-legal.jinja): copyright line from Footer > Copyright plus the VAT /
   commercial register details. Centred and stacked by default; start/end put the line beside the
   details from 992px. Colours come from --footer-legal-* on the root, set only when chosen. */
.footer-legal {
    background-color: var(--footer-legal-bg, transparent);
    color: var(--footer-legal-text, inherit);
}
.footer-legal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-block: 1.6rem;
    text-align: center;
}
.footer-legal-copy {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.footer-legal-text {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.02em;
    opacity: 0.7;
}
.footer-legal--medium .footer-legal-text {
    font-size: 1.15rem;
}
.footer-legal-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem 1.6rem;
    font-size: 0.95rem;
    opacity: 0.8;
}
.footer-legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
}
.footer-legal-badge:hover {
    color: inherit;
    text-decoration: none;
}
.footer-legal-badge img {
    width: auto;
}
@media (min-width: 992px) {
    .footer-legal--start .footer-legal-inner,
    .footer-legal--end .footer-legal-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: start;
    }
    .footer-legal--end .footer-legal-copy {
        order: 2;
        text-align: end;
    }
}

/* ===== Product card identity (components/product-card.jinja) =====
   Rounded card on --theme-surface. The photo is multiplied onto the card so white studio backgrounds
   melt into it, as in the design; transparent PNGs are unaffected.
   The look is driven by variables so it can be set store-wide and overridden per section: a
   .product-cards--* preset sits on <body> (Layout settings > Product card) and optionally on a section,
   and the nearest one wins. Each preset sets every variable, so a section fully replaces the store
   preset. --product-card-bg (transparent or a custom colour) is set on :root or a section; when unset
   the preset's own background applies. */
.product-cards--default,
.product-cards--bordered,
.product-cards--shadow {
    --product-card-base: var(--theme-surface);
    --product-card-border: 0;
    --product-card-shadow: none;
    --product-card-hover-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    --product-card-padding: 10px;
    --product-card-align: center;
    --product-card-media-bg: transparent;
    --product-card-media-radius: 0;
}

.product-cards--bordered {
    --product-card-border: 1px solid var(--theme-line);
}

.product-cards--shadow {
    --product-card-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

/* Minimal: no card chrome, the photo sits on its own rounded tile and the text aligns to start */
.product-cards--minimal {
    --product-card-base: transparent;
    --product-card-border: 0;
    --product-card-shadow: none;
    --product-card-hover-shadow: none;
    --product-card-padding: 0;
    --product-card-align: start;
    --product-card-media-bg: var(--theme-surface);
    --product-card-media-radius: var(--theme-radius);
}

.product-item {
    padding: var(--product-card-padding, 10px);
    border: var(--product-card-border, 0);
    border-radius: var(--theme-radius);
    background-color: var(--product-card-bg, var(--product-card-base, var(--theme-surface)));
    box-shadow: var(--product-card-shadow, none);
}

.product-item .box-1-1 {
    border-radius: var(--product-card-media-radius, 0);
    /* --product-card-image-bg (Layout settings) wins over the preset's own colour. */
    background-color: var(--product-card-image-bg, var(--product-card-media-bg, transparent));
}

.product-card-img {
    mix-blend-mode: multiply;
}

.product-item .product-title,
.product-item .product-crd-spec,
.product-item .product-card-rating-wrapper {
    text-align: var(--product-card-align, center);
}

.product-item .product-title {
    font-size: 1.167rem;
    font-weight: 500;
}

.product-item .product-price {
    color: var(--theme-ink);
}

.product-card-was {
    color: var(--theme-muted);
}

.product-card-discount {
    color: var(--theme-accent);
}

/* Discount style (Layout settings > Product card): the card carries both, the body class picks one. */
.product-card-badge {
    display: none;
}

.product-cards-discount--badge .product-card-media {
    position: relative;
}

.product-cards-discount--badge .product-card-badge {
    --product-card-badge-bg: #ffc20e;
    --product-card-badge-text: #111;
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 1;
    display: block;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--product-card-badge-bg);
    color: var(--product-card-badge-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.product-cards-discount--badge .product-item .section-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: var(--product-card-align, center);
    gap: 2px 8px;
}

.product-cards-discount--badge .product-card-discount:not(.product-card-discount--keep) {
    display: none;
}

.product-cards-note--hide .product-card-options {
    display: none;
}

/* The 81px is room for the discount line and the note; with both gone it is only empty space. */
.product-cards-discount--badge.product-cards-note--hide {
    --product-card-spec-height: 0;
}

.product-card-footer .btn {
    display: block;
    width: 100%;
    padding: 8px 10px;
    font-size: 1.083rem;
    line-height: 1.4;
    white-space: normal;
}

/* Card controls (Layout settings > Product card). The card markup carries every variant; the
   product-cards-{ratio,fit,cart,wish,reveal}--* classes on <body> pick one. Hover effects are passed
   down as variables from .product-item:hover so no rule needs a third class. */
.product-cards-ratio--portrait {
    --product-card-aspect: 3 / 4;
}

.product-cards-ratio--landscape {
    --product-card-aspect: 4 / 3;
}

.product-cards-fit--cover {
    --product-card-fit: cover;
}

.product-card-media {
    overflow: hidden;
    aspect-ratio: var(--product-card-aspect, 1 / 1);
}

/* The ratio comes from aspect-ratio above, not the padding hack of .box-1-1 */
.product-card-media::before {
    display: none;
}

.product-item .product-card-img {
    width: 100%;
    height: 100%;
    object-fit: var(--product-card-fit, contain);
    transform: scale(var(--product-card-img-scale, 1));
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.product-item {
    transition: transform .35s ease, box-shadow .35s ease;
}

@media (hover: hover) {
    .product-item:hover {
        --product-card-img-scale: 1.04;
        --product-card-actions-opacity: 1;
        --product-card-actions-shift: 0;
    }

    .products-list .product-item:hover {
        transform: translateY(-3px);
        box-shadow: var(--product-card-hover-shadow, none);
    }
}

.product-item:focus-within {
    --product-card-actions-opacity: 1;
    --product-card-actions-shift: 0;
}

/* Icon layer over the photo: same box as the media (top/inline padding + aspect ratio), wishlist at
   the top end, cart at the bottom end. Only its buttons take clicks; the rest falls through to the link. */
.product-card-actions {
    position: absolute;
    top: var(--product-card-padding, 10px);
    inset-inline: var(--product-card-padding, 10px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    aspect-ratio: var(--product-card-aspect, 1 / 1);
    padding: 8px;
    pointer-events: none;
    opacity: var(--product-card-actions-opacity, 1);
    transform: translateY(var(--product-card-actions-shift, 0));
    transition: opacity .25s ease, transform .25s ease;
}

.product-card-actions > * {
    pointer-events: auto;
}

/* Hover reveal only where there is a pointer; touch screens always show the icons. */
@media (hover: hover) and (min-width: 768px) {
    .product-cards-reveal--hover {
        --product-card-actions-opacity: 0;
        --product-card-actions-shift: 6px;
    }
}

/* Wishlist. Reuses .add-to-wishlist (main.js toggles its buttons), restyled for the card only. */
.product-card-wish {
    position: relative;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 50%;
    transition: background-color .25s ease, box-shadow .25s ease;
}

.product-card-wish > span {
    line-height: 0;
}

.product-cards-wish--circle .product-card-wish {
    background-color: color-mix(in srgb, var(--theme-bg) 90%, transparent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.product-cards-wish--hidden .product-card-wish {
    display: none;
}

.product-card-wish .icon-heart-mask {
    width: 18px;
    height: 16px;
    padding: 0;
    border: 0;
    cursor: pointer;
    transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}

.product-card-wish .icon-heart-mask.filled {
    animation: product-card-heart-pop .45s cubic-bezier(.3, 1.6, .5, 1);
}

.product-card-wish .loader {
    width: 16px;
    height: 16px;
}

/* The mask clips an outline, so the focus ring goes on the circle. */
.product-card-wish:has(:focus-visible) {
    box-shadow: 0 0 0 2px var(--theme-ink);
}

.product-card-wish .icon-heart-mask:focus {
    outline: 0;
}

/* Share (only where the caller sets card_share, i.e. the wishlist page). Same circle as the heart;
   the link menu opens toward the start side so it stays over the photo. */
.product-card-share {
    position: relative;
}

.product-card-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--theme-bg) 90%, transparent);
    color: var(--theme-ink);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
    cursor: pointer;
}

.product-card-share-btn:focus-visible {
    outline: 2px solid var(--theme-ink);
    outline-offset: 2px;
}

.product-card-share-icon {
    width: 17px;
    height: 17px;
}

.product-card-share-menu {
    position: absolute;
    top: 50%;
    inset-inline-end: calc(100% + 8px);
    display: flex;
    padding: 8px 12px;
    border-radius: 999px;
    background-color: var(--theme-bg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
    transform: translateY(-50%);
}

.product-card-share-menu[hidden] {
    display: none;
}

/* Cart icon */
.product-card-cart,
.product-card-notify {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-top: auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--theme-btn-bg);
    color: var(--theme-btn-text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card-cart:hover,
.product-card-cart:focus,
.product-card-notify:hover,
.product-card-notify:focus {
    color: var(--theme-btn-text);
    text-decoration: none;
}

.product-card-cart:focus-visible,
.product-card-notify:focus-visible {
    outline: 2px solid var(--theme-ink);
    outline-offset: 2px;
}

.product-card-cart-icon,
.product-card-cart-done {
    width: 18px;
    height: 18px;
    transition: opacity .2s ease, transform .3s ease;
}

.product-card-cart-done {
    position: absolute;
    opacity: 0;
    transform: scale(.4);
}

.product-card-cart.is-added .product-card-cart-icon {
    opacity: 0;
    transform: scale(.4);
}

.product-card-cart.is-added .product-card-cart-done {
    opacity: 1;
    transform: none;
}

.product-card-cart-spinner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: product-card-spin .7s linear infinite;
}

.product-card-cart-spinner:not(.d-none) ~ .product-card-cart-icon {
    opacity: 0;
}

@media (hover: hover) {
    .product-card-cart:hover,
    .product-card-notify:hover {
        transform: translateY(-2px) scale(1.06);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    }

    .product-card-wish .icon-heart-mask:hover {
        transform: scale(1.15);
    }
}

/* Small cards in phone sliders: slimmer icons */
@media (max-width: 575.98px) {
    .product-card-actions {
        padding: 6px;
    }

    .product-card-wish {
        width: 32px;
        height: 32px;
    }

    .product-card-cart {
        width: 34px;
        height: 34px;
    }
}

/* Out of stock: a light bell instead of the solid cart, so it reads as "notify", not "buy".
   It shows whatever the cart style is (only "hidden" removes it), so every card keeps the same height. */
.product-card-notify {
    background-color: var(--theme-bg);
    color: var(--theme-ink);
}

.product-card-notify:hover,
.product-card-notify:focus {
    color: var(--theme-ink);
}

.product-cards-cart--none .product-card-notify {
    display: none;
}

/* Which cart control shows: the icon on the photo, or the footer button (with or without its icon). */
.product-cards-cart--button .product-card-cart,
.product-cards-cart--button_icon .product-card-cart,
.product-cards-cart--none .product-card-cart,
.product-cards-cart--icon .product-card-buy,
.product-cards-cart--none .product-card-buy {
    display: none;
}

.product-card-footer .product-card-buy-icon {
    display: none;
    width: 18px;
    height: 18px;
    margin-inline-end: 6px;
    vertical-align: -4px;
}

.product-cards-cart--button_icon .product-card-buy-icon {
    display: inline-block;
}

.product-card-buy.is-added {
    opacity: .85;
}

@keyframes product-card-heart-pop {
    40% {
        transform: scale(1.3);
    }
}

@keyframes product-card-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-item,
    .product-item .product-card-img,
    .product-card-actions,
    .product-card-cart,
    .product-card-notify,
    .product-card-wish .icon-heart-mask {
        transition: none;
    }

    .product-card-wish .icon-heart-mask.filled {
        animation: none;
    }

    .product-item:hover {
        --product-card-img-scale: 1;
    }

    .products-list .product-item:hover {
        transform: none;
    }
}

/* ===== Try-on button on product cards (components/product-card.jinja, assets/tryon-grid.js) =====
   A layer with the same box as .product-card-actions, on the free side (top start). On hover or
   keyboard focus the yellow corners of the face-shape banner close in around the product, a scan
   line runs and a chip names the action. --product-card-tryon-in (0/1) drives it all. */
.product-card-tryon {
    --product-card-tryon-bg: #ffc20e;
    --product-card-tryon-ink: #111;
    --product-card-tryon-line: #ffc20e;
    position: absolute;
    top: var(--product-card-padding, 10px);
    inset-inline: var(--product-card-padding, 10px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    aspect-ratio: var(--product-card-aspect, 1 / 1);
    padding: 8px;
    pointer-events: none;
}

/* Home section cards render the button hidden until tryon-grid.js knows its mode;
   display:flex above would otherwise show it. */
.product-card-tryon[hidden],
.product-card-tryon-scan[hidden] {
    display: none;
}

.product-card-tryon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--product-card-tryon-bg);
    color: var(--product-card-tryon-ink);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    cursor: pointer;
    pointer-events: auto;
    transition: transform .25s ease;
}

/* Under the discount badge when the badge sits on the photo (same corner). */
.product-cards-discount--badge .product-card-tryon--badge .product-card-tryon-btn {
    margin-top: 30px;
}

.product-card-tryon-btn:focus-visible {
    outline: 2px solid var(--product-card-tryon-ink);
    outline-offset: 2px;
}

.product-card-tryon-icon {
    width: 20px;
    height: 20px;
}

.product-card-tryon-spinner {
    position: absolute;
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: product-card-spin .7s linear infinite;
}

.product-card-tryon.is-loading .product-card-tryon-spinner {
    display: block;
}

.product-card-tryon.is-loading .product-card-tryon-icon {
    opacity: 0;
}

.product-card-tryon-scan {
    position: absolute;
    top: var(--product-card-padding, 10px);
    inset-inline: var(--product-card-padding, 10px);
    z-index: 1;
    aspect-ratio: var(--product-card-aspect, 1 / 1);
    pointer-events: none;
}

.product-card-tryon-scan i {
    --product-card-tryon-y: calc(4% + var(--product-card-tryon-in, 0) * 18%);
    --product-card-tryon-x: calc(4% + var(--product-card-tryon-in, 0) * 8%);
    position: absolute;
    width: 26px;
    height: 26px;
    border: 0 solid var(--product-card-tryon-line, #ffc20e);
    opacity: var(--product-card-tryon-in, 0);
    transition: top .45s cubic-bezier(.2, .8, .2, 1), left .45s cubic-bezier(.2, .8, .2, 1), right .45s cubic-bezier(.2, .8, .2, 1), bottom .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}

/* Physical sides on purpose: the four corners are symmetric, so RTL needs nothing. */
.product-card-tryon-scan i:nth-child(1) {
    top: var(--product-card-tryon-y);
    left: var(--product-card-tryon-x);
    border-top-width: 3px;
    border-left-width: 3px;
    border-top-left-radius: 8px;
}

.product-card-tryon-scan i:nth-child(2) {
    top: var(--product-card-tryon-y);
    right: var(--product-card-tryon-x);
    border-top-width: 3px;
    border-right-width: 3px;
    border-top-right-radius: 8px;
}

.product-card-tryon-scan i:nth-child(3) {
    bottom: var(--product-card-tryon-y);
    left: var(--product-card-tryon-x);
    border-bottom-width: 3px;
    border-left-width: 3px;
    border-bottom-left-radius: 8px;
}

.product-card-tryon-scan i:nth-child(4) {
    bottom: var(--product-card-tryon-y);
    right: var(--product-card-tryon-x);
    border-bottom-width: 3px;
    border-right-width: 3px;
    border-bottom-right-radius: 8px;
}

.product-card-tryon-scan b {
    position: absolute;
    top: 24%;
    left: 18%;
    right: 18%;
    height: 2px;
    background: var(--product-card-tryon-line, #ffc20e);
    box-shadow: 0 0 12px var(--product-card-tryon-line, #ffc20e);
    opacity: 0;
}

/* Inside the layer, so positioned against the photo box. Clickable only while shown. */
.product-card-tryon-chip {
    position: absolute;
    top: 14px;
    left: 50%;
    padding: 4px 11px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: none;
    opacity: var(--product-card-tryon-in, 0);
    transform: translate(-50%, calc((1 - var(--product-card-tryon-in, 0)) * -6px));
    transition: opacity .35s ease, transform .35s ease;
}

/* Phones: the card is too narrow for the label over the photo; the icon
   button alone opens the try-on (it keeps its aria-label). */
@media (max-width: 767.98px) {
    .product-card-tryon-chip {
        display: none;
    }
}

.product-card-tryon:focus-within,
.product-card-tryon:focus-within ~ .product-card-tryon-scan {
    --product-card-tryon-in: 1;
}

.product-card-tryon:focus-within ~ .product-card-tryon-scan b {
    animation: product-card-tryon-scan 1.6s ease-in-out infinite alternate;
}

@media (hover: hover) {
    .product-item:hover {
        --product-card-tryon-in: 1;
    }

    .product-item:hover .product-card-tryon-btn {
        transform: scale(1.06);
    }

    .product-item:hover .product-card-tryon-chip {
        pointer-events: auto;
    }

    .product-item:hover .product-card-tryon-scan b {
        animation: product-card-tryon-scan 1.6s ease-in-out infinite alternate;
    }
}

@keyframes product-card-tryon-scan {
    from {
        top: 24%;
        opacity: 1;
    }
    to {
        top: 74%;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card-tryon-btn,
    .product-card-tryon-scan i,
    .product-card-tryon-chip {
        transition: none;
    }

    .product-item:hover .product-card-tryon-scan b,
    .product-card-tryon:focus-within ~ .product-card-tryon-scan b {
        animation: none;
    }
}

/* main.css colours the bar with --theme-ink; the close icon would otherwise inherit the same ink. */
.announcement-bar .ab-close {
    color: #fff;
}

/* ===== Listing toolbar + filter drawer (components/products-filter.jinja, products-filter-form.jinja) =====
   One row: filter and sort as matching pill buttons, the product count at the end, active filters as
   removable chips below. The price/discount filter opens as a side drawer (a Bootstrap modal). */
.plp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--theme-line);
}

.plp-toolbar-actions {
    display: flex;
    flex: 1 1 auto;
    gap: 8px;
}

.plp-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--theme-line);
    border-radius: 999px;
    background-color: var(--theme-bg);
    color: var(--theme-ink);
    font: inherit;
    font-size: 1.167rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.plp-toolbar-btn:focus-visible {
    outline: 2px solid var(--theme-ink);
    outline-offset: 2px;
}

.plp-toolbar-icon,
.plp-toolbar-chevron {
    flex: none;
    width: 18px;
    height: 18px;
}

.plp-toolbar-chevron {
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}

.plp-sort.show .plp-toolbar-chevron {
    transform: rotate(180deg);
}

.plp-toolbar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background-color: var(--theme-btn-bg);
    color: var(--theme-btn-text);
    font-size: 1rem;
    font-weight: 600;
}

.plp-sort-label {
    color: var(--theme-muted);
    font-weight: 400;
}

.plp-sort-menu {
    min-width: 200px;
    margin-top: 6px;
    padding: 6px;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
}

.plp-sort-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--theme-radius-sm);
    color: var(--theme-ink);
    font-size: 1.167rem;
    text-align: start;
    cursor: pointer;
}

.plp-sort-item:focus,
.plp-sort-item:active {
    background-color: var(--theme-surface);
    color: var(--theme-ink);
}

.plp-sort-check {
    width: 16px;
    height: 16px;
    visibility: hidden;
}

.plp-sort-item.is-active {
    font-weight: 600;
}

.plp-sort-item.is-active .plp-sort-check {
    visibility: visible;
}

.plp-toolbar-count {
    margin: 0;
    color: var(--theme-muted);
    font-size: 1.167rem;
}

.plp-toolbar-count-num {
    color: var(--theme-ink);
    font-weight: 600;
}

/* Active filters */
.plp-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.plp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 14px;
    border: 0;
    border-radius: 999px;
    background-color: var(--theme-surface);
    color: var(--theme-ink);
    font: inherit;
    font-size: 1.083rem;
    cursor: pointer;
    transition: background-color .2s ease;
}

.rtl .plp-chip {
    padding: 6px 14px 6px 10px;
}

.plp-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--theme-bg);
    font-size: 1.333rem;
    line-height: 1;
}

.plp-chips-clear {
    padding: 0;
    border: 0;
    background: none;
    color: var(--theme-ink);
    font: inherit;
    font-size: 1.083rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.plp-chip:focus-visible,
.plp-chips-clear:focus-visible {
    outline: 2px solid var(--theme-ink);
    outline-offset: 2px;
}

@media (hover: hover) {
    .plp-toolbar-btn:hover {
        border-color: var(--theme-ink);
    }

    .plp-sort-item:hover {
        background-color: var(--theme-surface);
        color: var(--theme-ink);
    }

    .plp-chip:hover {
        background-color: var(--theme-line);
    }
}

/* Phones: filter and sort split the row, the count sits above them. */
@media (max-width: 575.98px) {
    .plp-toolbar-count {
        order: -1;
        flex: 1 0 100%;
    }

    .plp-toolbar-actions > * {
        flex: 1 1 0;
        min-width: 0;
    }

    .plp-sort .plp-toolbar-btn {
        width: 100%;
    }

    .plp-sort-label {
        display: none;
    }

    .plp-sort-value {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Drawer: the modal dialog becomes a full-height panel on the inline-end side. Bootstrap's
   .modal.fade .modal-dialog transform is (0,3,0), so the slide rules repeat .fade/.show to win;
   the direction comes from --plp-drawer-from so RTL needs no extra selector depth. */
.plp-filter-drawer {
    --plp-drawer-from: 100%;
    padding: 0;
}

.rtl .plp-filter-drawer {
    --plp-drawer-from: -100%;
}

.plp-filter-drawer .modal-dialog {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    margin: 0;
}

.plp-filter-drawer.fade .modal-dialog {
    transform: translateX(var(--plp-drawer-from));
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.plp-filter-drawer.show .modal-dialog {
    transform: none;
}

.plp-filter-panel {
    height: 100%;
    border: 0;
    border-radius: 0;
}

.plp-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--theme-line);
}

.plp-filter-title {
    margin: 0;
    color: var(--theme-ink);
    font-size: 1.5rem;
    font-weight: 600;
}

.plp-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--theme-surface);
    color: var(--theme-ink);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.plp-filter-close:focus-visible {
    outline: 2px solid var(--theme-ink);
    outline-offset: 2px;
}

.plp-filter-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.plp-filter-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px;
}

.plp-filter-group {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.plp-filter-legend {
    margin-bottom: 12px;
    color: var(--theme-ink);
    font-size: 1.25rem;
    font-weight: 600;
}

.plp-price {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.plp-price-field {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.plp-price-label {
    display: block;
    margin-bottom: 6px;
    color: var(--theme-muted);
    font-size: 1.083rem;
}

.plp-price-input {
    position: relative;
    display: block;
}

.plp-price-input .form-control {
    height: 44px;
    padding-inline-end: 48px;
    -moz-appearance: textfield;
}

.plp-price-input .form-control::-webkit-outer-spin-button,
.plp-price-input .form-control::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.plp-price-currency {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    color: var(--theme-muted);
    font-size: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.plp-price-dash {
    flex: none;
    width: 10px;
    height: 1px;
    margin-bottom: 22px;
    background-color: var(--theme-line);
}

/* Discount toggle: a switch drawn over the real checkbox */
.plp-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius);
    cursor: pointer;
}

.plp-switch-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plp-switch-track {
    position: relative;
    flex: none;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background-color: var(--theme-line);
    transition: background-color .2s ease;
}

.plp-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .2s ease;
}

.plp-switch-input:checked + .plp-switch-track {
    background-color: var(--theme-btn-bg);
}

.plp-switch-input:checked + .plp-switch-track::after {
    transform: translateX(16px);
}

.rtl .plp-switch-input:checked + .plp-switch-track::after {
    transform: translateX(-16px);
}

.plp-switch-input:focus-visible + .plp-switch-track {
    outline: 2px solid var(--theme-ink);
    outline-offset: 2px;
}

.plp-switch-label {
    color: var(--theme-ink);
    font-size: 1.167rem;
}

.plp-filter-foot {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--theme-line);
}

.plp-filter-foot .btn {
    flex: 1 1 0;
    height: 46px;
    font-weight: 500;
}

.plp-filter-clear {
    border: 1px solid var(--theme-line);
    background-color: var(--theme-bg);
    color: var(--theme-ink);
}

/* Phones with store attribute filters: the same form opens inline under the toolbar. */
.plp-filter-inline {
    margin-top: 12px;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius);
}

@media (prefers-reduced-motion: reduce) {
    .plp-filter-drawer.fade .modal-dialog,
    .plp-toolbar-chevron,
    .plp-switch-track,
    .plp-switch-track::after {
        transition: none;
    }
}

/* ===== Page header + breadcrumb (components/breadcrumb.jinja) =====
   Products, category, categories and blog pages. Tunables live on the root so one line in the merchant CSS
   restyles the whole block. --i is the item index, used to stagger the entrance. */
.page-head {
    --page-head-bg: var(--theme-surface);
    --page-head-line: var(--theme-line);
    --page-head-ink: var(--theme-ink);
    --page-head-muted: var(--theme-muted);
    --page-head-accent: var(--theme-ink);
    position: relative;
    padding: 14px 0;
    background-color: var(--page-head-bg);
    background-image: radial-gradient(120% 160% at 100% 0, color-mix(in srgb, var(--page-head-ink) 5%, transparent), transparent 60%);
    border-bottom: 1px solid var(--page-head-line);
}

.rtl .page-head {
    background-image: radial-gradient(120% 160% at 0 0, color-mix(in srgb, var(--page-head-ink) 5%, transparent), transparent 60%);
}

.page-head--titled {
    padding: 22px 0 26px;
}

.page-head-trail {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1.083rem;
    line-height: 1.4;
    letter-spacing: .02em;
    color: var(--page-head-muted);
}

.page-head-crumb {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    animation: page-head-rise .5s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(var(--i, 0) * 60ms);
}

/* Thin chevron separator, drawn so it follows the text colour and flips for RTL. */
.page-head-crumb + .page-head-crumb::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    opacity: .45;
    transform: rotate(45deg);
}

.rtl .page-head-crumb + .page-head-crumb::before {
    transform: rotate(-135deg);
}

.page-head-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

/* Underline that draws in from the reading start on hover. */
.page-head-label {
    padding-bottom: 1px;
    background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
    transition: background-size .3s ease;
}

.rtl .page-head-label {
    background-position: 100% 100%;
}

.page-head-home-icon {
    width: 15px;
    height: 15px;
    transition: transform .25s ease;
}

.page-head-crumb.is-current {
    flex: 0 1 auto;
}

.page-head-current {
    overflow: hidden;
    max-width: 32ch;
    color: var(--page-head-ink);
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.page-head-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px 4px;
    border: 1px solid var(--page-head-line);
    border-radius: 999px;
    background-color: var(--theme-bg);
    color: inherit;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}

.page-head-title {
    margin: 14px 0 0;
    color: var(--page-head-ink);
    font-size: 2.333rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.01em;
    animation: page-head-rise .6s cubic-bezier(.2, .7, .2, 1) .12s both;
}

.page-head-title::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 14px;
    background-color: var(--page-head-accent);
    transform-origin: left center;
    animation: page-head-line .7s cubic-bezier(.2, .7, .2, 1) .35s both;
}

.rtl .page-head-title::after {
    transform-origin: right center;
}

.page-head-desc {
    max-width: 72ch;
    margin-top: 14px;
    animation: page-head-rise .6s cubic-bezier(.2, .7, .2, 1) .2s both;
}

.page-head-desc-text {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--page-head-muted);
    font-size: 1.167rem;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-head.is-desc-open .page-head-desc-text {
    display: block;
}

.page-head-toggle {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--page-head-ink);
    font: inherit;
    font-size: 1.083rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    cursor: pointer;
}

.page-head-link:focus-visible,
.page-head-more:focus-visible,
.page-head-toggle:focus-visible {
    outline: 2px solid var(--page-head-ink);
    outline-offset: 3px;
    border-radius: 4px;
}

.page-head-link:focus-visible .page-head-label {
    background-size: 100% 1px;
}

@media (hover: hover) {
    .page-head-link:hover {
        color: var(--page-head-ink);
    }

    .page-head-link:hover .page-head-label {
        background-size: 100% 1px;
    }

    .page-head-link:hover .page-head-home-icon {
        transform: translateY(-1px);
    }

    .page-head-more:hover {
        border-color: var(--page-head-ink);
        color: var(--page-head-ink);
    }
}

/* Phones: one calm line. The home crumb is icon-only and the middle of a long path folds into "…". */
@media (max-width: 767.98px) {
    .page-head-crumb--home .page-head-label {
        position: absolute;
        overflow: hidden;
        width: 1px;
        height: 1px;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .page-head-crumb {
        flex-shrink: 1;
    }

    .page-head-link {
        min-width: 0;
    }

    .page-head-label {
        overflow: hidden;
        max-width: 18ch;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .page-head-crumb--fold {
        display: none;
    }

    .page-head.is-expanded .page-head-trail {
        flex-wrap: wrap;
    }

    .page-head.is-expanded .page-head-crumb--fold {
        display: flex;
    }

    .page-head.is-expanded .page-head-crumb--more {
        display: none;
    }
}

@media (min-width: 768px) {
    .page-head-trail {
        flex-wrap: wrap;
    }

    .page-head-crumb--more {
        display: none;
    }

    .page-head-current {
        max-width: 48ch;
    }

    .page-head--titled {
        padding: 34px 0 38px;
    }

    .page-head-title {
        font-size: 3rem;
    }
}

/* Cover image (category cover, Layout settings > Product & category pages). The photo and the
   overlay sit under the text inside an isolated stack, and the text tokens turn light. */
.page-head--media {
    --page-head-ink: #fff;
    --page-head-muted: rgba(255, 255, 255, .82);
    --page-head-accent: #fff;
    --page-head-overlay: .5;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: 240px;
    border-bottom: 0;
    background-color: var(--theme-ink);
}

.page-head--overlay-light {
    --page-head-overlay: .3;
}

.page-head--overlay-strong {
    --page-head-overlay: .7;
}

.page-head--media > .container {
    width: 100%;
}

.page-head-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: page-head-settle 1.4s cubic-bezier(.2, .7, .2, 1) both;
}

.page-head--media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(0, 0, 0, var(--page-head-overlay)), rgba(0, 0, 0, calc(var(--page-head-overlay) * .35)));
}

.page-head--media .page-head-more {
    border-color: rgba(255, 255, 255, .4);
    background-color: rgba(255, 255, 255, .12);
}

/* A transparent header sits over this block, so keep the text clear of it. */
.app:has(.header--transparent) .page-head--media {
    padding-top: calc(var(--header-h) + 24px);
}

@media (min-width: 768px) {
    .page-head--media {
        min-height: 340px;
    }
}

@keyframes page-head-settle {
    from {
        transform: scale(1.06);
    }
}

@keyframes page-head-rise {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

@keyframes page-head-line {
    from {
        transform: scaleX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-head-crumb,
    .page-head-title,
    .page-head-title::after,
    .page-head-desc,
    .page-head-media {
        animation: none;
    }

    .page-head-label,
    .page-head-home-icon {
        transition: none;
    }
}


/* Contact page (components/contact-page.jinja), on when Layout settings > Contact page is enabled.
   One markup, three looks from the root class: --gallery (default), --concierge, --letterhead.
   Colours come from the settings as --contact-* on the root. */
.contact-page {
    --contact-radius: 18px;
    --contact-ease: cubic-bezier(.22, 1, .36, 1);
    padding-bottom: 5.5rem;
    background-color: var(--contact-bg, var(--theme-bg));
    color: var(--contact-text, var(--theme-ink));
}

.contact-page-head {
    padding-block: 5.5rem 3rem;
}

.contact-page--align-center .contact-page-head {
    text-align: center;
}

.contact-page-title {
    margin-bottom: .8rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--contact-title, var(--theme-ink));
}

.contact-page-subtitle {
    max-width: 60rem;
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--theme-muted);
}

.contact-page--align-center .contact-page-subtitle {
    margin-inline: auto;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.contact-page-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 13rem;
    padding: 1.6rem;
    overflow: hidden;
    border-radius: var(--contact-radius);
    background-color: var(--contact-card, var(--theme-surface));
    color: var(--contact-text, var(--theme-ink));
    text-decoration: none;
    transition: color .4s ease, transform .45s var(--contact-ease), box-shadow .45s var(--contact-ease), padding .45s var(--contact-ease);
}

.contact-page-card--link:hover {
    color: var(--contact-text, var(--theme-ink));
    text-decoration: none;
}

.contact-page-card-title {
    margin-top: auto;
    padding-top: 1.6rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.contact-page-card-value {
    font-size: 1.15rem;
    overflow-wrap: anywhere;
    white-space: pre-line;
    opacity: .75;
}

.contact-page-go {
    position: absolute;
    top: 1.6rem;
    inset-inline-end: 1.6rem;
    transition: inset-inline-end .45s var(--contact-ease), opacity .3s ease;
}

.ltr .contact-page-go .contact-page-ic {
    transform: scaleX(-1);
}

.contact-page-ic {
    display: block;
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Gallery: big cards, WhatsApp highlighted, black fill rises on hover */
.contact-page--gallery .contact-page-card--main {
    grid-column: 1 / -1;
    background-color: var(--contact-accent, #FFC20E);
    color: var(--theme-ink);
}

.contact-page--gallery .contact-page-card--link::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--theme-ink);
    transform: translateY(101%);
    transition: transform .55s var(--contact-ease);
}

.contact-page--gallery .contact-page-card--link:focus-visible {
    color: var(--theme-bg);
    text-decoration: none;
}

.contact-page--gallery .contact-page-card--link:focus-visible::before {
    transform: none;
}

/* Concierge: dark hero, white cards floating over its edge */
.contact-page--concierge .contact-page-head {
    padding-block: 5.5rem 12rem;
    background-color: var(--contact-hero, var(--theme-ink));
}

.contact-page--concierge .contact-page-title {
    color: var(--contact-title, var(--theme-bg));
}

.contact-page--concierge .contact-page-subtitle {
    color: var(--theme-bg);
    opacity: .72;
}

.contact-page--concierge .contact-page-grid {
    margin-top: -8rem;
}

.contact-page--concierge .contact-page-card {
    border: 1px solid var(--theme-line);
    background-color: var(--contact-card, var(--theme-bg));
    box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .28);
}

.contact-page--concierge .contact-page-card-ic {
    display: grid;
    place-items: center;
    align-self: flex-start;
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 50%;
    background-color: var(--theme-surface);
}

.contact-page--concierge .contact-page-card--link:focus-visible {
    transform: translateY(-4px);
}

/* Letterhead: large light type, contact methods as a directory list */
.contact-page--letterhead .contact-page-head {
    padding-block: 6rem 3.5rem;
    text-align: start;
}

.contact-page--letterhead .contact-page-title {
    font-size: 3.7rem;
    font-weight: 300;
}

.contact-page--letterhead .contact-page-subtitle {
    margin-inline: 0;
}

.contact-page--letterhead .contact-page-grid {
    display: block;
}

.contact-page--letterhead .contact-page-card {
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    min-height: 0;
    padding: 1.6rem 0;
    overflow: visible;
    border-top: 1px solid var(--theme-line);
    border-radius: 0;
    background-color: transparent;
}

.contact-page--letterhead .contact-page-card:last-child {
    border-bottom: 1px solid var(--theme-line);
}

.contact-page--letterhead .contact-page-card-title {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 400;
}

.contact-page--letterhead .contact-page-card-value {
    flex: 1;
    min-width: 0;
    text-align: end;
    color: var(--theme-muted);
    opacity: 1;
}

.contact-page--letterhead .contact-page-go {
    position: static;
    order: 3;
    opacity: 0;
}

.contact-page--letterhead .contact-page-card--link:focus-visible {
    padding-inline-start: 1rem;
}

.contact-page--letterhead .contact-page-card--link:focus-visible .contact-page-go {
    opacity: 1;
}

/* Branches (Layout settings > Contact page > Branches): list beside a Leaflet map; on phones the map sits above
   the list. Leaflet's own CSS is injected later at runtime, so overrides of its classes use two. */
.contact-branches {
    --contact-branch-bg: var(--contact-card, var(--theme-surface));
    --contact-branch-active-bg: var(--theme-ink);
    --contact-branch-active-text: var(--theme-bg);
    --contact-scroll-thumb: color-mix(in srgb, var(--theme-muted) 35%, transparent);
    --contact-scroll-thumb-hover: var(--theme-muted);
    margin-top: 4.5rem;
}

/* Editor-only note above the sample branches */
.contact-branches-demo {
    margin: 0 0 1.2rem;
    padding: .8rem 1.2rem;
    border: 1px dashed var(--theme-line);
    border-radius: 10px;
    color: var(--theme-muted);
    font-size: 1.2rem;
}

.contact-branches-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 1.6rem;
}

.contact-branches-title {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--contact-title, var(--theme-ink));
}

.contact-branches-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.contact-branches-chip {
    padding: .4rem 1.4rem;
    border: 1px solid var(--theme-line);
    border-radius: 999px;
    background-color: var(--theme-bg);
    color: var(--theme-ink);
    font: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.contact-branches-chip.is-active {
    border-color: var(--theme-ink);
    background-color: var(--theme-ink);
    color: var(--theme-bg);
}

.contact-branches-layout {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-branches-list {
    display: grid;
    align-content: start;
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Thin, arrowless scrollbar for the list beside the map (it only scrolls from 992px up).
   Chrome and Safari drop the ::-webkit-scrollbar rules once scrollbar-width is set,
   so the standard properties only go to browsers without them. */
.contact-branches-list::-webkit-scrollbar {
    width: 4px;
}

.contact-branches-list::-webkit-scrollbar-track {
    margin-block: .6rem;
    background: transparent;
}

.contact-branches-list::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: var(--contact-scroll-thumb);
}

@media (hover: hover) {
    .contact-branches-list::-webkit-scrollbar-thumb:hover {
        background: var(--contact-scroll-thumb-hover);
    }
}

@supports not selector(::-webkit-scrollbar) {
    .contact-branches-list {
        scrollbar-width: thin;
        scrollbar-color: var(--contact-scroll-thumb) transparent;
    }
}

.contact-branches--no-map .contact-branches-list {
    grid-template-columns: repeat(auto-fill, minmax(min(28rem, 100%), 1fr));
}

.contact-branches-map-box {
    position: relative;
    order: -1;
}

.contact-branches--no-map .contact-branches-map-box {
    display: none;
}

/* isolation keeps Leaflet's panes (z-index 400+) under the sticky header */
.contact-branches-map {
    position: relative;
    z-index: 0;
    isolation: isolate;
    height: 28rem;
    border-radius: var(--contact-radius);
    background-color: var(--contact-card, var(--theme-surface));
}

.contact-branches-map.leaflet-container {
    font-family: inherit;
}

.contact-branches-map .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .3);
}

.contact-branches-map .leaflet-popup-content {
    margin: .8rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--theme-ink);
}

/* Physical right: the map is dir="ltr" in both languages, so Leaflet's zoom buttons are always top-left */
.contact-branches-all {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 1;
    padding: .6rem 1.2rem;
    border: 0;
    border-radius: 10px;
    background-color: var(--theme-bg);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .3);
    color: var(--theme-ink);
    font: inherit;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
}

.contact-branch-pin {
    --contact-pin-body: var(--theme-ink);
    --contact-pin-dot: var(--contact-accent, #FFC20E);
}

.contact-branch-pin.is-active {
    --contact-pin-body: var(--contact-accent, #FFC20E);
    --contact-pin-dot: var(--theme-ink);
}

.contact-branch-pin svg {
    display: block;
    width: 30px;
    height: 38px;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3));
    transform-origin: 50% 100%;
    transition: transform .3s var(--contact-ease);
}

.contact-branch-pin.is-active svg {
    transform: scale(1.3);
}

.contact-branch-pin-body {
    fill: var(--contact-pin-body);
}

.contact-branch-pin-dot {
    fill: var(--contact-pin-dot);
}

.contact-branch {
    padding-bottom: 1.4rem;
    border-radius: 14px;
    background-color: var(--contact-branch-bg);
    color: var(--contact-text, var(--theme-ink));
    transition: background-color .3s ease, color .3s ease;
}

.contact-branch.is-active {
    background-color: var(--contact-branch-active-bg);
    color: var(--contact-branch-active-text);
}

.contact-branch-main {
    display: block;
    width: 100%;
    padding: 1.4rem 1.6rem 0;
    border: 0;
    border-radius: 14px;
    background: none;
    color: inherit;
    font: inherit;
    text-align: start;
}

.contact-branch-main[aria-controls] {
    cursor: pointer;
}

.contact-branch-main:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

/* The selected card's dark fill already marks it; a ring cut across its top half looked like a stray border. */
.contact-branch-main[aria-pressed="true"]:focus-visible {
    outline-color: transparent;
}

.contact-branch-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.contact-branch-name {
    font-size: 1.45rem;
    font-weight: 700;
}

.contact-branch-city {
    flex-shrink: 0;
    padding: 0 .8rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 1.05rem;
    opacity: .6;
}

.contact-branch-line {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-top: .6rem;
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: .8;
}

.contact-branch-line .contact-page-ic {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: .25rem;
}

.contact-branch-text {
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.contact-branch-actions {
    display: flex;
    gap: .6rem;
    padding: 1.2rem 1.6rem 0;
}

/* Branch buttons use the theme's tone drift (button rules near the top of this file):
   the call button fills with ink like an outline button, Directions drifts in the accent. */
.contact-branch-btn,
.contact-branch-btn:hover {
    color: var(--theme-ink);
    text-decoration: none;
}

.contact-branch-btn {
    --btn-drift: var(--theme-ink);
    --btn-drift-from: transparent;
    --btn-drift-tone: var(--btn-drift);
    --btn-drift-stop: 62%;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 3.6rem;
    padding: 0 1rem;
    border: 1px solid var(--theme-line);
    border-radius: 10px;
    background-color: var(--theme-bg);
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-branch-btn .contact-page-ic {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-branch-btn--go {
    --btn-drift: var(--contact-accent, #FFC20E);
    --btn-drift-from: var(--btn-drift);
    --btn-drift-tone: color-mix(in srgb, var(--btn-drift) 72%, #fff);
    --btn-drift-stop: 70%;
    border-color: var(--contact-accent, #FFC20E);
    background-color: var(--contact-accent, #FFC20E);
}

/* The call button turns ink as the fill arrives; Directions keeps dark text on the accent */
.contact-branch-btn:focus-visible {
    border-color: var(--theme-ink);
    color: var(--theme-bg);
}

.contact-branch-btn--go:focus-visible {
    border-color: var(--contact-accent, #FFC20E);
    color: var(--theme-ink);
}

.contact-page--concierge .contact-branches {
    --contact-branch-bg: var(--contact-card, var(--theme-bg));
}

.contact-page--concierge .contact-branch {
    border: 1px solid var(--theme-line);
    box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .28);
}

/* Letterhead: branches as ruled rows, the active one a soft fill instead of black */
.contact-page--letterhead .contact-branches {
    --contact-branch-bg: transparent;
    --contact-branch-active-bg: var(--contact-card, var(--theme-surface));
    --contact-branch-active-text: var(--theme-ink);
}

.contact-page--letterhead .contact-branches-list {
    gap: 0;
}

.contact-page--letterhead .contact-branch {
    border-top: 1px solid var(--theme-line);
    border-radius: 0;
}

.contact-page--letterhead .contact-branches-title {
    font-size: 1.7rem;
}

@media (min-width: 768px) {
    .contact-page-title {
        font-size: 3.7rem;
    }

    .contact-page--letterhead .contact-page-title {
        font-size: 6rem;
    }

    .contact-page-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .contact-page-card {
        min-height: 15.5rem;
    }

    .contact-page--gallery .contact-page-card--main {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .contact-branches-layout {
        display: grid;
        grid-template-columns: minmax(0, 36rem) minmax(0, 1fr);
        height: 52rem;
    }

    .contact-branches-list {
        /* No overscroll-behavior: contain. At the list's top or bottom the wheel must carry on
           to the page, or the page seems stuck while the list has nothing left to scroll. */
        overflow-y: auto;
        padding-inline-end: .4rem;
    }

    .contact-branches-map-box {
        order: 0;
    }

    .contact-branches-map {
        height: 100%;
    }

    .contact-branches--no-map .contact-branches-layout {
        display: block;
        height: auto;
    }
}

@media (hover: hover) {
    .contact-page--gallery .contact-page-card--link:hover {
        color: var(--theme-bg);
    }

    .contact-page--gallery .contact-page-card--link:hover::before {
        transform: none;
    }

    .contact-page--concierge .contact-page-card--link:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 40px -20px rgba(0, 0, 0, .35);
    }

    .contact-page--letterhead .contact-page-card--link:hover {
        padding-inline-start: 1rem;
    }

    .contact-page--letterhead .contact-page-card--link:hover .contact-page-go {
        opacity: 1;
    }

    .contact-page-card--link:hover .contact-page-go {
        inset-inline-end: 1rem;
    }

    .contact-branches-chip:hover {
        border-color: var(--theme-ink);
    }

    .contact-branch-btn:hover {
        border-color: var(--theme-ink);
        color: var(--theme-bg);
    }

    .contact-branch-btn--go:hover {
        border-color: var(--contact-accent, #FFC20E);
        color: var(--theme-ink);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-page-card,
    .contact-page--gallery .contact-page-card--link::before,
    .contact-page-go,
    .contact-branches-chip,
    .contact-branch,
    .contact-branch-pin svg {
        transition: none;
    }
}
