/* Homepage product gallery. The original linked grid works without scripting. */
#main-content.alx-market .am-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    gap: clamp(14px, 2.6vw, 42px);
    padding: clamp(10px, 1.05vw, 17px);
    border: 1px solid #364238;
    border-radius: clamp(16px, 1.7vw, 27px);
    background: radial-gradient(ellipse at 3% 110%, #273b26 0%, transparent 59%), #172019;
}
#main-content.alx-market .am-hero::after { content: none; animation: none; }
#main-content.alx-market .am-intro {
    position: relative;
    z-index: 1;
    padding: clamp(16px, 2.9vw, 48px);
}
#main-content.alx-market .am-intro h1 {
    max-width: 13ch;
    font-size: clamp(3.15rem, 5.15vw, 5.3rem);
    line-height: .99;
    letter-spacing: -.055em;
    text-wrap: balance;
}
#main-content.alx-market .am-intro h1 em { color: #cef58e; }
#main-content.alx-market .am-intro p { color: #d5ded2; max-width: 37ch; }
#main-content.alx-market .am-actions { margin-top: clamp(18px, 2vw, 32px); }
#main-content.alx-market .alx-hero-delivery {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    margin-top: 12px;
    color: #cdd8c8;
    text-decoration: none;
    font: 500 clamp(.76rem,.94vw,.9rem)/1.45 var(--ax-ui,system-ui,sans-serif);
}
#main-content .alx-hero-delivery svg { flex: 0 0 19px; color: #c5df9d; }
#main-content .alx-hero-delivery strong { color: #eaf4e4; white-space: nowrap; }
#main-content .alx-hero-delivery:hover span:first-of-type { text-decoration: underline; text-underline-offset: 3px; }
#main-content .alx-delivery-dot { padding-inline: .14em; }
@media (max-width: 570px) {
    #main-content.alx-market .alx-hero-delivery { margin-top: 5px; }
}
#main-content.alx-market .am-actions .am-primary {
    background: #c9f878;
    border-radius: 999px;
    padding: 12px 21px;
    color: #182213;
}
#main-content.alx-market .am-actions .am-primary:hover { background: #deffa0; }
#main-content.alx-market .am-showcase {
    min-height: 0;
    height: clamp(340px, 31.5vw, 470px);
}
#main-content .am-showcase.am-gallery {
    position: relative;
    isolation: isolate;
    display: grid;
    overflow: hidden;
    grid-template: minmax(0, 1fr) auto / minmax(0, 1fr);
    gap: 0;
    border-radius: clamp(10px, 1.15vw, 18px);
    background: #ecf1e2;
}
#main-content .am-gallery .am-feature {
    display: grid;
    position: relative;
    grid-area: 1 / 1;
    grid-template: minmax(0, 1fr) auto / minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: clamp(13px, 1.6vw, 25px) clamp(18px, 2vw, 34px) clamp(11px, 1vw, 16px);
    color: #1b211a;
    border-radius: 0;
    --gallery-light: #f4f7e9;
    --gallery-deep: #c9d6b7;
    background: radial-gradient(ellipse at 55% 32%, var(--gallery-light) 0%, var(--gallery-light) 30%, var(--gallery-deep) 109%);
}
#main-content .am-gallery .am-kitchen { --gallery-light: #faf3e9; --gallery-deep: #d9c3ad; }
#main-content .am-gallery .am-photo { --gallery-light: #f1f6f9; --gallery-deep: #b7cbd1; }
#main-content .am-gallery .am-feature[hidden] { display: none; }
#main-content .am-gallery .am-feature-dept { display: none; }
#main-content .am-gallery .am-feature-photo {
    grid-area: 1 / 1;
    align-self: stretch;
    mix-blend-mode: multiply;
    display: block;
    position: relative;
    height: auto;
    min-height: 0;
    width: 100%;
    min-width: 0;
    margin: 0;
    isolation: isolate;
}
#main-content .am-gallery .am-feature-photo img {
    inset: 0;
    width: 90%;
    height: 98%;
    margin: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}
#main-content .am-gallery .am-feature-base {
    grid-area: 2 / 1;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    height: auto;
    gap: 10px;
    margin-top: 8px;
}
#main-content .am-gallery .am-feature-model { display: grid; gap: 3px; }
#main-content .am-gallery .am-feature-base strong {
    color: #1d281e;
    font-size: clamp(1.3rem, 2vw, 2.05rem);
    font-weight: 740;
    letter-spacing: -.035em;
}
#main-content .am-gallery .am-hero-price { color: #3c473c; font-size: clamp(.84rem, 1.02vw, 1rem); }
#main-content .am-gallery .am-feature-arrow {
    display: grid;
    flex: 0 0 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #6e7769;
    border-radius: 50%;
    color: #223020;
}
#main-content .am-gallery-nav {
    display: flex;
    gap: 5px;
    align-items: center;
    grid-area: 2 / 1;
    position: relative;
    padding: 5px clamp(7px, 1.1vw, 18px);
    background: #eff2e9;
    border-top: 1px solid #cbd3c7;
}
#main-content .am-gallery-nav button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    padding: 0 clamp(6px, 1vw, 16px);
    background: transparent;
    color: #465246;
    font: 680 clamp(.76rem,.93vw,.91rem)/1.2 var(--ax-ui,system-ui,sans-serif);
    text-transform: none;
    cursor: pointer;
}
#main-content .am-gallery-nav button[aria-pressed="true"] { color: #162117; background: #d9e3d1; }
#main-content .am-gallery-nav button:hover { background: #e0e7db; color: #19251a; }
#main-content .am-gallery-nav button:focus-visible { outline: 2px solid #324b2b; outline-offset: -2px; }
#main-content .am-gallery-nav .am-gallery-play {
    margin-left: auto;
    width: 44px;
    flex: 0 0 44px;
    padding: 0;
    color: #344431;
}
#main-content .am-gallery-play::before {
    content: '';
    width: 9px;
    height: 12px;
    box-sizing: border-box;
    border-inline: 3px solid currentColor;
}
#main-content .am-gallery-play.is-paused::before {
    width: 0;
    height: 0;
    border: solid transparent;
    border-width: 6px 0 6px 10px;
    border-left-color: currentColor;
}
#main-content .am-gallery-progress {
    position: absolute;
    inset: -2px 0 auto;
    pointer-events: none;
    height: 2px;
    background: #637c4b;
    transform: scaleX(0);
    transform-origin: left;
}
@media (max-width: 780px) {
    #main-content.alx-market .am-hero { grid-template-columns: minmax(0,1fr); gap: 10px; }
    #main-content.alx-market .am-intro { padding: 17px 14px 13px; }
    #main-content.alx-market .am-intro h1 { font-size: clamp(2.55rem,7.5vw,3.9rem); max-width: 18ch; }
    #main-content.alx-market .am-intro p { margin-top: 11px; max-width: 47ch; }
    #main-content.alx-market .am-showcase { height: clamp(260px,45vw,340px); }
    #main-content .am-gallery .am-feature-base strong { font-size: 1.35rem; }
}
@media (max-width: 420px) {
    #main-content.alx-market .am-actions { gap: 10px 14px; margin-top: 13px; }
    #main-content.alx-market .am-actions a { font-size: .83rem; }
    #main-content.alx-market .am-actions .am-primary { padding: 10px 15px; }
    #main-content .am-gallery-nav { gap: 2px; }
    #main-content .am-gallery .am-feature-photo img { width: 94%; }
}
@media (prefers-reduced-motion: no-preference) {
    #main-content .am-hero .am-intro h1 { animation: alx-intro-rise .9s cubic-bezier(.17,.79,.19,1) both; }
    #main-content .am-hero .am-intro p { animation: alx-intro-rise .82s .10s cubic-bezier(.17,.79,.19,1) both; }
    #main-content .am-hero .am-actions { animation: alx-intro-rise .8s .18s cubic-bezier(.17,.79,.19,1) both; }
    #main-content .am-gallery .am-feature-photo img { transition: transform .38s cubic-bezier(.2,.7,.2,1); }
}
@keyframes alx-intro-rise {
    from { opacity: .32; transform: translateY(27px); clip-path: inset(0 0 22% 0); }
    to { opacity: 1; transform: translateY(0); clip-path: inset(-8% -2% -8% -2%); }
}
@media (prefers-reduced-motion: reduce) {
    #main-content .am-gallery .am-feature img,
    #main-content .am-gallery .am-feature-arrow svg { transform: none; transition: none; }
}
