.store-shell {
    --store-bg: #09090b;
    --store-panel: #151517;
    --store-border: #303036;
    --store-text: #f0f0f5;
    --store-muted: #b9b9c5;
    --store-accent: #ff939d;
    --store-gutter: clamp(22px, 5vw, 84px);
    --store-sans: "Segoe UI", "Open Sans", Arial, sans-serif;
    --store-serif: Georgia, "Times New Roman", serif;
    background: var(--store-bg);
    color: var(--store-text);
    font-family: var(--store-sans);
}
.store-shell > table, .store-shell #content > table { width: 100%; table-layout: fixed; }
.store-shell #outside {
    box-sizing: border-box;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0;
    background: var(--store-bg);
}
.store-shell #content { margin: 0; }
:is(.home-store, .catalog-listing) *, :is(.home-store, .catalog-listing) *::before, :is(.home-store, .catalog-listing) *::after { box-sizing: border-box; }
:is(.home-store, .catalog-listing) a:focus-visible { outline: 3px solid var(--store-accent); outline-offset: 3px; }

/* The shop's search, bag and language controls share one masthead on the cover. */
.store-shell #header.site-header {
    grid-template-columns: auto minmax(308px, 1fr) minmax(200px, 340px) auto;
    grid-template-areas: "brand nav search cart";
    align-items: center;
    gap: clamp(12px, 2.2vw, 42px);
    margin: 0;
    padding: 17px var(--store-gutter);
    border: 0;
    border-radius: 0;
    background: #131619;
}
.store-shell #header #logo, .store-shell .store-mobile-wordmark {
    color: #ff6572;
    font: bold italic 36px/.95 var(--store-serif);
    letter-spacing: -.075em;
}
.store-shell #header #logo span { display: none; }
.store-shell .site-primary-nav { gap: 1px; align-items: center; padding: 0; border: 0; }
.store-shell .site-primary-nav > a { padding-inline: 10px; font-size: 13px; font-weight: 500; }
.store-shell .site-primary-nav > a[aria-current] { background: transparent; }
.store-shell .site-primary-nav > a[aria-current]::after { right: 12px; bottom: 4px; left: 12px; background: #f85a6b; }
.store-shell .shop-language { border-color: #494a4b; background: transparent; }
.store-shell .shop-language a[aria-current] { background: #3a3b3d; color: #fff; }
.store-shell .shop-language--desktop { margin-left: 9px; }
.store-shell .shop-language--desktop a { min-width: 31px; min-height: 31px; }
.store-shell .site-search { padding: 0 3px; border-color: #45474a; background: #202327; border-radius: 5px; }
.store-shell .site-search #search_input { font-family: var(--store-sans); }
.store-shell .site-search-submit { width: 42px; padding: 0; background: transparent; }
.store-shell .site-search-submit:hover { background: #34373a; }
.store-shell .site-search-submit span { display: none; }
.store-shell #header #cart { padding: 3px 0 3px 6px; min-height: 42px; border: 0; background: transparent; }
.store-shell #header #cart > svg { color: #f2e9e6; }
.store-shell .site-cart-copy { gap: 2px; }

/* Photography tiles used on the home page and in the catalogue. */
.store-collection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(9px, 1.4vw, 24px); }
.store-collection-tile {
    display: block;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    aspect-ratio: 1.74;
    border-radius: 4px;
    background: #14202d;
    color: #fff;
}
.store-collection-tile picture, .store-collection-tile img { display: block; width: 100%; height: 100%; }
.store-collection-tile img { object-fit: cover; object-position: 93% 50%; transition: transform .35s ease; }
.store-collection-tile::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(0deg, #06090dc9, transparent 58%);
    box-shadow: inset 0 0 0 1px #ffffff26;
    content: "";
    pointer-events: none;
}
.store-collection-caption {
    position: absolute;
    z-index: 1;
    inset: auto clamp(12px, 1.7vw, 28px) clamp(13px, 1.8vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    color: #fff;
}
.store-collection-caption strong { font: 400 clamp(22px, 2.7vw, 45px)/1 var(--store-serif); letter-spacing: -.035em; }
.store-collection-caption > span { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid #fff9; border-radius: 50%; font: 19px/1 Arial, sans-serif; }
@media (hover: hover) {
    .store-collection-tile:hover img { transform: scale(1.035); }
    .store-collection-tile:hover::after { box-shadow: inset 0 0 0 1px #ff939d99; }
    .store-collection-tile:hover .store-collection-caption > span { background: #fff; color: var(--store-bg); }
}

/* Product cards use the same presentation in both listings. */
.store-shell .catalog-product-grid {
    --store-card-gutter: clamp(10px, 1.2vw, 17px);
    display: grid;
    grid-template-columns: repeat(var(--store-product-columns, 4), minmax(0, 1fr));
    gap: clamp(14px, 1.7vw, 26px) clamp(10px, 1.4vw, 22px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.store-shell .catalog-product-grid > .flex-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: auto;
    margin: 0;
    padding-bottom: var(--store-card-gutter);
    border: 1px solid var(--store-border);
    border-radius: 10px;
    background: var(--store-panel);
    text-align: left;
}
.store-shell .flex-item > div[style^="height"] { display: none; }
.store-shell .flex-item table { width: 100%; }
.store-shell .prod_detail { height: auto; border: 0; background: transparent; }
.store-shell .catalog-photo { border-radius: 9px 9px 0 0; }
.store-shell .catalog-photo img { width: 100%; aspect-ratio: 1/1; height: auto; object-fit: contain; }
.store-shell .catalog-card-title, .store-shell .catalog-card-footer { padding-inline: var(--store-card-gutter); }
.store-shell .catalog-product-grid .catalog-card-title { min-height: 0; margin: 12px 0 10px; }
.store-shell .catalog-card-title a { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; color: var(--store-text); }
.store-shell .catalog-card-title a:hover .store-card-model { text-decoration: underline; text-underline-offset: 3px; }
.store-card-brand { color: var(--store-muted); font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: .09em; text-transform: uppercase; }
.store-card-model { font-size: clamp(14px, 1.2vw, 18px); font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.store-shell .catalog-card-footer { align-items: center; margin-top: auto; }
.store-shell .catalog-current-price { font-size: 18px; line-height: 1.4; }
.store-shell #footer.site-footer { margin: 0; padding: 36px var(--store-gutter); border: 0; border-radius: 0; background: var(--store-panel); }
.store-shell .site-footer + table { box-sizing: border-box; margin: 0 !important; padding: 0 var(--store-gutter) 18px; background: var(--store-panel); color: var(--store-muted); font: 12px/1.5 var(--store-sans); }

@media (min-width: 701px) and (max-width: 1000px) {
    .store-shell .catalog-product-grid { --store-product-columns: 3; }
}
@media (max-width: 1100px) and (min-width: 1001px) {
    .store-shell #header.site-header { gap: 12px; padding-inline: 24px; }
}
@media (max-width: 1000px) {
    .store-shell #header.site-header { display: block; margin: 0; padding: 6px var(--store-gutter) 12px; }
    .store-shell #header #logo, .store-shell #header #cart, .store-shell .site-primary-nav { display: none; }
    .store-shell .shop-mobile-bar { gap: 6px; padding-inline: var(--store-gutter); background: #131619; border-bottom: 0; }
    .store-shell .shop-mobile-menu { margin: 0; }
    .store-shell .shop-mobile-menu > summary { min-width: 44px; }
    .store-shell .shop-mobile-menu > summary svg { color: #f0eeea; }
    .store-shell .shop-mobile-bar > .store-mobile-wordmark { margin-right: auto; padding: 0 5px; color: #ff6572; font-size: 30px; }
    .store-shell .shop-mobile-bar > a[href="contacts.php"] { display: none; }
    .store-shell .shop-mobile-bar > .shop-search-shortcut { justify-content: center; min-width: 44px; margin-left: 0; }
    .store-shell .shop-mobile-bar > .shop-search-shortcut span, .store-shell .shop-mobile-menu > summary > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .store-shell .shop-mobile-bar > .shop-cart-shortcut { flex-basis: 44px; }
    .store-shell .shop-language--mobile a { min-width: 32px; }
}
@media (max-width: 700px) {
    .store-shell { --store-gutter: 16px; }
    .store-shell .shop-mobile-bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px 44px auto; gap: 2px; padding-inline: 10px; }
    .store-shell .shop-mobile-bar > .store-mobile-wordmark { padding: 0; font-size: clamp(20px, 6.4vw, 29px); }
    .store-shell .shop-mobile-menu > summary { justify-content: center; }
    .store-shell #header.site-header { padding-top: 0; }
    .store-collection-grid { gap: 7px; }
    .store-collection-tile { aspect-ratio: .79; }
    .store-collection-tile img { object-position: 78% 50%; }
    .store-collection-caption { inset: auto 9px 13px; }
    .store-collection-caption strong { font-size: clamp(18px, 4.7vw, 28px); }
    .store-collection-caption > span { width: auto; height: auto; border: 0; font-size: 17px; }
    .store-shell .catalog-product-grid { --store-product-columns: 2; }
    .store-shell .catalog-product-grid .catalog-card-title { margin: 9px 0 7px; }
    .store-card-brand { font-size: 10px; }
    .store-shell .catalog-current-price { font-size: 16px; }
    .store-shell .catalog-card-footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
    .store-shell .catalog-card-footer .catalog-card-preview { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .store-collection-tile img { transition: none; } }
