/* 1.14 - existing Elgrekko palette, typography and original product photography. */
.el-nav .el-nav__list > li > a.el-nav-custom-order {
  height: auto; min-height: 44px; padding: .6rem .85rem; border: 1px solid var(--el-hairline);
  border-radius: .2rem; background: var(--el-surface); color: var(--el-brown);
  font-size: clamp(.875rem, 1vw, 1rem); line-height: 1.25; text-align: center;
  transition: border-color .2s ease, background .2s ease;
}
.el-nav__list > li:has(> .el-nav-custom-order) { align-self: center; height: auto; }
.el-nav .el-nav__list > li > a.el-nav-custom-order::after { display: none; }
.el-nav .el-nav__list > li > a.el-nav-custom-order:hover,
.el-nav .el-nav__list > li > a.el-nav-custom-order:focus-visible { border-color: var(--el-gold); background: var(--el-paper); }
@media (min-width: 901px) and (max-width: 1250px) {
  .el-header__inner { padding-inline: 1.5rem; grid-template-columns: 15rem minmax(0, 1fr) 9rem; }
  .el-brand { --el-logo-size: 5rem; --el-logo-cutout-size: 5.5rem; gap: .7rem; }
  .el-brand__text strong { font-size: 1.5rem; }
  .el-brand__text small { font-size: .4rem; }
  .el-nav__list { gap: .8rem; }
  .el-nav__list > li > a { font-size: .9375rem; }
  .el-nav .el-nav__list > li > a.el-nav-custom-order { max-width: 10rem; padding-inline: .6rem; font-size: .8125rem; }
  .el-header__actions { gap: .6rem; }
}
.el-product-custom-order { display: flex; align-items: center; gap: .85rem; margin: 1.2rem 0; padding: 1rem; border: 1px solid var(--el-hairline); border-left: 2px solid var(--el-gold); background: var(--el-surface); text-decoration: none; transition: border-color .2s ease; }
.el-product-custom-order:hover { border-color: var(--el-gold); }
.el-product-custom-order__icon { flex: 0 0 2rem; color: var(--el-brown); }
.el-product-custom-order svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.25; }
.el-product-custom-order strong { display: block; font: 600 1.35rem/1.15 var(--el-font-serif); color: var(--el-brown); }
.el-product-custom-order strong + span { display: block; margin-top: .3rem; color: var(--el-muted); font: 400 .875rem/1.5 var(--el-font-sans); }
.el-product-custom-order__arrow { margin-left: auto; color: var(--el-brown); font-size: 1.4rem; }
.el-product-description-bespoke { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--el-hairline); }
.el-product-description-bespoke a { display: inline-block; padding-block: .5rem; color: var(--el-brown); text-decoration: underline; text-underline-offset: .25em; font-size: .9375rem; line-height: 1.6; }
@media (max-width: 900px) {
  .el-nav .el-nav__list > li > a.el-nav-custom-order { text-align: left; justify-content: flex-start; }
  .el-nav__list > li:has(> .el-nav-custom-order) { align-self: stretch; margin-top: .75rem; }
  .el-header__actions > .el-account-link { display: grid; }
}
@media (max-width: 400px) { .el-header__actions { gap: .25rem; } }
@media (max-width: 480px) {
  .el-brand__text { display: none; }
  .el-header__actions { gap: .3rem; }
  .el-header__actions .el-icon-button, .el-header__actions .el-menu-toggle { min-width: 44px; min-height: 44px; }
}

/* A tall, expanded category list scrolls inside its own panel, below the header. */
.woocommerce .el-commerce--archive .el-shop-filters { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--el-gold) var(--el-surface); }
@media (min-width: 1101px) {
  .woocommerce .el-commerce--archive:not(.is-constrained) .el-shop-filters { top: calc(var(--el-header-height) + var(--el-admin-offset, 0px) + 1rem); max-height: calc(100dvh - var(--el-header-height) - var(--el-admin-offset, 0px) - 2rem); z-index: 2; }
  .admin-bar { --el-admin-offset: 32px; }
}
.el-shop-filters .el-catalog-category-details > .el-shop-filter-links { position: static; margin-top: .5rem; }
/* Mobile drawer starts below the sticky header; it cannot cover the page at the top. */
@media (max-width: 1100px) {
  .woocommerce .el-commerce--archive .el-shop-filters { top: var(--el-filter-top, var(--el-header-height)); max-height: calc(100dvh - var(--el-filter-top, var(--el-header-height))); }
  .woocommerce .el-commerce--archive .el-shop-filter-backdrop { top: var(--el-filter-top, var(--el-header-height)); }
}
.woocommerce .el-commerce--archive.is-constrained .el-shop-filters { top: var(--el-filter-top, var(--el-header-height)); max-height: calc(100dvh - var(--el-filter-top, var(--el-header-height))); }
.woocommerce .el-commerce--archive.is-constrained .el-shop-filter-backdrop { top: var(--el-filter-top, var(--el-header-height)); }
@media (prefers-reduced-motion: reduce) { .el-nav-custom-order, .el-product-custom-order { transition: none !important; } }
/* Requested emphasis in navigation and shop introduction. */
.el-nav .el-nav__list > li > a { font-weight: 600; }
.el-nav .el-nav__list > li > a.el-nav-custom-order { font-weight: 600; border-radius: .5rem; }
.woocommerce .el-commerce--archive .el-shop-intro__description p { font-weight: 400; color: var(--el-muted); }

/* Preserve the complete product photo and a steady click target in the carousel. */
.el-featured .el-featured__track{scroll-snap-type:x proximity}
.el-featured .el-product-card__image{height:auto;aspect-ratio:1/1;background:#eee7dd}
.el-featured .el-product-card__image img{width:100%;height:100%;object-fit:contain;object-position:center}
.el-featured .el-product-card:hover .el-product-card__image img{transform:none}
.el-featured .el-product-card:hover{transform:none}
/* Align the payment logo with its caption as one footer block. */
.el-site-footer .el-payment-banner{display:flex;flex-direction:column;align-items:flex-end;text-align:right;gap:.65rem}
.el-site-footer .el-payment-banner img{flex:none;margin:0}
.el-site-footer .el-payment-banner figcaption{margin:0;max-width:26rem}
@media(max-width:640px){.el-site-footer__payments{align-items:center;text-align:center}.el-site-footer .el-payment-banner{align-items:center;text-align:center}}

/* The supplied Zippo photograph keeps both products clear of text and the seal. */
.el-hero__slide--zippo-duo .el-hero__image{object-position:right center}
.el-hero:has(.el-hero__slide--zippo-duo.is-active) .el-hero__mark>:not(em){visibility:hidden}

/* 1.18.19: readable mobile navigation, including nested categories. */
@media (max-width: 900px) {
  .el-nav .el-nav__list a {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .el-nav .el-nav__list > li > a,
  .el-nav .el-nav__list > li > a.el-nav-custom-order {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
  }
  .el-nav .el-nav__list .sub-menu a {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.45;
  }
}
@container (max-width: 56.25rem) {
  .el-nav .el-nav__list a {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .el-nav .el-nav__list > li > a,
  .el-nav .el-nav__list > li > a.el-nav-custom-order {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
  }
  .el-nav .el-nav__list .sub-menu a {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.45;
  }
}
