/* ==========================================================================
   Storefront. Theme-aware through the shared tokens.
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

.store-wordmark {
    color: var(--ss-ink);
    font-size: var(--ss-text-xl);
    font-weight: 700;
    white-space: nowrap;
}

.store-wordmark:hover {
    color: var(--ss-ink);
}

.store-wordmark strong {
    color: var(--ss-accent);
    font-weight: 700;
}

/* Navigation: settles into a floating bar once the page scrolls. */
.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1030;
    padding-block: var(--ss-3);
}

.site-nav__bar {
    padding: var(--ss-2) var(--ss-4);
    border: 1px solid transparent;
    border-radius: var(--ss-r-lg);
    transition: background-color var(--ss-base) var(--ss-ease),
        border-color var(--ss-base) var(--ss-ease),
        box-shadow var(--ss-base) var(--ss-ease);
}

.site-nav.scrolled .site-nav__bar,
.site-nav.is-open .site-nav__bar {
    background: var(--ss-surface);
    border-color: var(--ss-line);
    box-shadow: var(--ss-shadow-md);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ss-6);
}

.site-nav__links {
    display: flex;
    gap: var(--ss-6);
}

.site-nav__links a {
    position: relative;
    padding-block: var(--ss-1);
    color: var(--ss-ink-2);
    font-size: var(--ss-text-sm);
    font-weight: 500;
    transition: color var(--ss-fast) var(--ss-ease);
}

.site-nav__links a::after {
    position: absolute;
    inset-block-end: -2px;
    inset-inline: 0;
    height: 2px;
    background: var(--ss-accent-solid);
    border-radius: var(--ss-r-full);
    content: "";
    transform: scaleX(0);
    transition: transform var(--ss-base) var(--ss-ease);
}

.site-nav__links a:hover,
.site-nav__links a.active {
    color: var(--ss-ink);
}

.site-nav__links a.active::after {
    transform: scaleX(1);
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: var(--ss-2);
}

.site-nav__menu {
    display: none;
}

.site-nav__mobile {
    display: none;
    padding-top: var(--ss-2);
}

.site-nav__mobile.open {
    display: grid;
}

.site-nav__mobile a {
    padding: var(--ss-3) var(--ss-1);
    color: var(--ss-ink);
    border-top: 1px solid var(--ss-line);
    font-weight: 500;
}

/* Hero: the lamp actually lights the headline, and can be switched off. */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before,
.hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    transition: opacity 420ms var(--ss-ease);
}

.hero::before {
    background: radial-gradient(circle at 26% 46%, var(--store-glow), transparent 46%);
}

.hero::after {
    background: radial-gradient(420px circle at var(--hero-x, 50%) var(--hero-y, 50%), var(--store-glow), transparent 70%);
    opacity: 0;
}

.hero.is-pointer::after {
    opacity: 1;
}

.hero.lamp-off::before {
    opacity: 0;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: var(--ss-8);
    min-height: min(100dvh, 900px);
}

.hero__copy {
    position: relative;
    z-index: 1;
    padding-block: 7.5rem 4.5rem;
}

@keyframes store-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

.hero__copy > * {
    animation: store-rise 620ms var(--ss-ease) both;
}

.hero__copy > :nth-child(2) { animation-delay: 70ms; }
.hero__copy > :nth-child(3) { animation-delay: 140ms; }
.hero__copy > :nth-child(4) { animation-delay: 210ms; }
.hero__copy > :nth-child(5) { animation-delay: 280ms; }

.hero__eyebrow,
.section-eyebrow {
    color: var(--ss-accent);
    font-size: var(--ss-text-sm);
    font-weight: 600;
}

.hero__title {
    margin-top: var(--ss-3);
    font-size: clamp(2.625rem, 6vw, 5.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.hero__title strong {
    display: block;
    color: var(--ss-accent);
    font-weight: 700;
    transition: color 420ms var(--ss-ease);
}

.hero.lamp-off .hero__title strong {
    color: var(--ss-ink-3);
}

.hero__lead {
    max-width: 56ch;
    margin-top: var(--ss-5);
    color: var(--ss-ink-2);
    font-size: 1.125rem;
    line-height: 2;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ss-3);
    margin-top: var(--ss-6);
}

.hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ss-6);
    padding-top: var(--ss-6);
    padding-inline-start: 0;
    margin: var(--ss-8) 0 0;
    border-top: 1px solid var(--ss-line);
    list-style: none;
}

.hero__features li {
    display: flex;
    align-items: center;
    gap: var(--ss-3);
}

.hero__features .bi {
    color: var(--ss-accent);
    font-size: 1.25rem;
}

.hero__features strong,
.hero__features small {
    display: block;
}

.hero__features strong {
    font-size: var(--ss-text-sm);
    font-weight: 600;
}

.hero__features small {
    color: var(--ss-ink-3);
    font-size: var(--ss-text-xs);
}

/* Lamp ---------------------------------------------------------------------- */
.lamp {
    position: relative;
    align-self: start;
    height: min(100dvh, 900px);
    pointer-events: none;
    transform-origin: 50% 0;
    animation: store-sway 7s ease-in-out infinite alternate;
}

@keyframes store-sway {
    from { transform: rotate(-0.7deg); }
    to { transform: rotate(0.7deg); }
}

/* Same proportions as the artwork, so the cord stays attached at any width. */
.lamp__stage {
    position: relative;
    aspect-ratio: 420 / 660;
}

@keyframes store-lamp-on {
    0% { opacity: 0; }
    30% { opacity: 0.7; }
    42% { opacity: 0.15; }
    68% { opacity: 0.85; }
    100% { opacity: 1; }
}

.lamp__light {
    transition: opacity 320ms var(--ss-ease);
    animation: store-lamp-on 1100ms 260ms both;
}

.hero.lamp-off .lamp__light {
    opacity: 0;
    animation: none;
}

.hero.lamp-off .lamp__bulb {
    fill: var(--store-bulb-off);
}

.lamp__pull {
    position: absolute;
    inset-block-start: 49.5%;
    inset-inline-start: 62%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 44px;
    padding: 0;
    background: none;
    border: 0;
    cursor: grab;
    pointer-events: auto;
    transition: transform 160ms var(--ss-ease);
}

.lamp__pull:active,
.lamp__pull.is-pulled {
    transform: translateY(14px);
}

.lamp__string {
    width: 1.5px;
    height: 78px;
    background: var(--store-wire);
}

.lamp__bead {
    width: 13px;
    height: 13px;
    background: var(--ss-accent-solid);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--ss-accent-soft);
}

.lamp__hint {
    margin-top: var(--ss-2);
    color: var(--ss-ink);
    font-size: var(--ss-text-xs);
    font-weight: 500;
    white-space: nowrap;
    transition: opacity var(--ss-base) var(--ss-ease);
}

.lamp__pull.was-used .lamp__hint {
    opacity: 0;
}

/* Rail of real product photos ------------------------------------------------ */
.rail {
    padding-block: var(--ss-5);
    overflow: hidden;
    border-top: 1px solid var(--ss-line);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}

.rail__track {
    display: flex;
    width: max-content;
    animation: store-rail 70s linear infinite;
}

.rail:hover .rail__track {
    animation-play-state: paused;
}

@keyframes store-rail {
    to { transform: translateX(50%); }
}

.rail__group {
    display: flex;
    gap: var(--ss-3);
    padding-inline-end: var(--ss-3);
}

.rail__item {
    flex: none;
    width: 168px;
    height: 168px;
    overflow: hidden;
    background: var(--ss-surface-3);
    border-radius: var(--ss-r-lg);
}

.rail__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .rail__track,
    .lamp {
        animation: none !important;
    }
}

/* Sections ------------------------------------------------------------------- */
.section {
    padding-block: 5.5rem;
}

.section--alt {
    background: var(--ss-surface-2);
    border-block: 1px solid var(--ss-line);
}

.section--tight {
    padding-block: 4.5rem;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--ss-6);
    margin-bottom: var(--ss-8);
}

.section-head h2,
.steps-head h2,
.about-copy h2,
.contact-band h2 {
    margin-top: var(--ss-2);
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    font-weight: 700;
}

.section-head h2 strong {
    color: var(--ss-accent);
    font-weight: 700;
}

.section-lead {
    max-width: 58ch;
    margin-top: var(--ss-3);
    color: var(--ss-ink-2);
    line-height: 1.9;
}

.product-tools {
    width: min(100%, 440px);
}

.product-tools__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--ss-2);
}

.product-tools__row .form-select {
    width: 168px;
}

.product-tools__count {
    margin-top: var(--ss-2);
    color: var(--ss-ink-3);
    font-size: var(--ss-text-xs);
}

/* Product cards -------------------------------------------------------------- */

/* Avoids a tall flash of every product before the script applies "load more". */
html.js #productsGrid:not(.is-ready) .product-column:nth-child(n + 13) {
    display: none;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--ss-surface);
    border: 1px solid var(--ss-line);
    border-radius: var(--ss-r-lg);
    transition: border-color var(--ss-base) var(--ss-ease),
        box-shadow var(--ss-base) var(--ss-ease),
        transform var(--ss-base) var(--ss-ease);
}

.product-card:hover {
    border-color: var(--ss-line-strong);
    box-shadow: var(--ss-shadow-md);
    transform: translateY(-3px);
}

.product-card__media {
    position: relative;
    overflow: hidden;
    background: var(--ss-surface-3);
    aspect-ratio: 4 / 5;
}

.product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms var(--ss-ease);
}

.product-card:hover .product-card__media img {
    transform: scale(1.04);
}

/* The whole photo opens the details, so it works by touch as well as hover. */
.product-card__open {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    padding: var(--ss-3);
    background: none;
    border: 0;
    cursor: zoom-in;
}

.product-card__open:focus-visible {
    outline-offset: -3px;
}

.product-card__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--ss-2);
    padding: var(--ss-1) var(--ss-3);
    color: var(--ss-ink);
    background: var(--ss-surface);
    border-radius: var(--ss-r-full);
    box-shadow: var(--ss-shadow-md);
    font-size: var(--ss-text-xs);
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--ss-base) var(--ss-ease),
        transform var(--ss-base) var(--ss-ease);
}

.product-card:hover .product-card__chip,
.product-card__open:focus-visible .product-card__chip {
    opacity: 1;
    transform: none;
}

.product-card__badge {
    position: absolute;
    inset-block-start: var(--ss-3);
    inset-inline-start: var(--ss-3);
    padding: var(--ss-1) var(--ss-2);
    color: var(--ss-on-accent);
    background: var(--ss-accent-solid);
    border-radius: var(--ss-r-sm);
    font-size: var(--ss-text-xs);
    font-weight: 600;
    pointer-events: none;
}

.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: var(--ss-4);
}

.product-card__body h3 {
    font-size: var(--ss-text-md);
    font-weight: 600;
}

.product-card__desc {
    display: -webkit-box;
    margin-top: var(--ss-1);
    overflow: hidden;
    color: var(--ss-ink-3);
    font-size: var(--ss-text-sm);
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ss-2);
    padding-top: var(--ss-3);
    margin-top: auto;
}

.product-card__price small {
    display: block;
    color: var(--ss-ink-3);
    font-size: var(--ss-text-xs);
}

.product-card__price strong {
    display: block;
    color: var(--ss-accent);
    font-weight: 700;
}

#noResults {
    margin-top: var(--ss-4);
}

.load-more {
    display: flex;
    justify-content: center;
    margin-top: var(--ss-8);
}

.load-more .btn {
    min-width: 200px;
}

/* Product details dialog ----------------------------------------------------- */
.quick-view .modal-content {
    position: relative;
    overflow: hidden;
}

.quick-view__close {
    position: absolute;
    inset-block-start: var(--ss-3);
    inset-inline-end: var(--ss-3);
    z-index: 2;
}

.quick-view__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-view__media {
    background: var(--ss-surface-3);
    aspect-ratio: 4 / 5;
}

.quick-view__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: var(--ss-6);
    padding-block-start: var(--ss-10);
}

.quick-view__body h2 {
    font-size: var(--ss-text-xl);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.quick-view__desc {
    flex: 1;
    max-height: 40vh;
    margin-top: var(--ss-3);
    overflow-y: auto;
    color: var(--ss-ink-2);
    line-height: 1.9;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.quick-view__foot {
    display: grid;
    gap: var(--ss-3);
    padding-top: var(--ss-4);
    margin-top: var(--ss-4);
    border-top: 1px solid var(--ss-line);
}

/* Steps ---------------------------------------------------------------------- */
.steps-head {
    margin-bottom: var(--ss-8);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ss-6);
    padding: 0;
    margin: 0;
    list-style: none;
}

.steps li {
    padding-top: var(--ss-4);
    border-top: 2px solid var(--ss-line);
}

.steps__num {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    margin-bottom: var(--ss-3);
    color: var(--ss-accent);
    background: var(--ss-accent-soft);
    border-radius: var(--ss-r-md);
    font-weight: 700;
}

.steps h3 {
    font-size: var(--ss-text-lg);
    font-weight: 600;
}

.steps p {
    margin-top: var(--ss-1);
    color: var(--ss-ink-2);
    font-size: var(--ss-text-sm);
    line-height: 1.8;
}

/* About ---------------------------------------------------------------------- */
.about-photo {
    position: relative;
    padding-block-end: var(--ss-4);
    padding-inline-end: var(--ss-4);
}

.about-photo::before {
    position: absolute;
    inset-block: var(--ss-8) 0;
    inset-inline: var(--ss-8) 0;
    background: var(--ss-accent-soft);
    border-radius: var(--ss-r-lg);
    content: "";
}

.about-photo picture {
    position: relative;
    display: block;
}

.about-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--ss-r-lg);
}

.about-photo__tag {
    position: absolute;
    inset-block-end: var(--ss-8);
    inset-inline-start: var(--ss-3);
    display: flex;
    align-items: center;
    gap: var(--ss-3);
    padding: var(--ss-3) var(--ss-4);
    color: var(--ss-ink);
    background: var(--ss-surface);
    border: 1px solid var(--ss-line);
    border-radius: var(--ss-r-md);
    box-shadow: var(--ss-shadow-md);
}

.about-photo__tag .bi {
    color: var(--ss-accent);
    font-size: 1.375rem;
}

.about-photo__tag strong,
.about-photo__tag small {
    display: block;
    font-size: var(--ss-text-sm);
}

.about-photo__tag strong {
    font-weight: 600;
}

.about-photo__tag small {
    color: var(--ss-ink-3);
    font-size: var(--ss-text-xs);
}

.about-copy h2 strong {
    display: block;
    margin-top: var(--ss-1);
    color: var(--ss-accent);
    font-size: var(--ss-text-xl);
    font-weight: 600;
}

.check-list {
    display: grid;
    gap: var(--ss-2);
    padding: 0;
    margin: var(--ss-5) 0 var(--ss-6);
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: var(--ss-2);
}

.check-list .bi {
    color: var(--ss-accent);
    font-size: 1.125rem;
}

/* Closing call to action ------------------------------------------------------ */
.contact-band {
    position: relative;
    padding-block: 6.5rem;
    overflow: hidden;
    color: var(--ss-ink);
    background: radial-gradient(ellipse 60% 90% at 50% 0, var(--store-glow), transparent 72%),
        var(--ss-bg);
    isolation: isolate;
}

.contact-band__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-band__cta {
    min-width: 240px;
    margin-top: var(--ss-6);
}

/* Footer ---------------------------------------------------------------------- */
/* The extra bottom space keeps the last row clear of the floating WhatsApp button. */
.site-footer {
    padding-block: var(--ss-8) 5.5rem;
    border-top: 1px solid var(--ss-line);
}

.site-footer__top,
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ss-5);
}

.site-footer__brand p {
    margin-top: var(--ss-1);
    color: var(--ss-ink-3);
    font-size: var(--ss-text-sm);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ss-5);
}

.site-footer__links a {
    color: var(--ss-ink-2);
    font-size: var(--ss-text-sm);
}

.site-footer__links a:hover {
    color: var(--ss-ink);
}

.site-footer__bottom {
    padding-top: var(--ss-4);
    margin-top: var(--ss-6);
    color: var(--ss-ink-3);
    border-top: 1px solid var(--ss-line);
    font-size: var(--ss-text-xs);
}

.site-footer__bottom a {
    color: var(--ss-ink-2);
}

.social-links {
    display: flex;
    gap: var(--ss-2);
}

.social-links a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--ss-ink-2);
    border: 1px solid var(--ss-line-strong);
    border-radius: var(--ss-r-md);
    transition: color var(--ss-fast) var(--ss-ease),
        border-color var(--ss-fast) var(--ss-ease);
}

.social-links a:hover {
    color: var(--ss-accent);
    border-color: var(--ss-accent-solid);
}

.whatsapp-fab {
    position: fixed;
    inset-block-end: var(--ss-5);
    inset-inline-end: var(--ss-5);
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: var(--ss-2);
    min-height: 48px;
    padding-inline: var(--ss-4);
    color: var(--ss-on-accent);
    background: var(--ss-accent-solid);
    border-radius: var(--ss-r-full);
    box-shadow: var(--ss-shadow-md);
    font-size: var(--ss-text-sm);
    font-weight: 600;
}

.whatsapp-fab:hover {
    color: var(--ss-on-accent);
    background: var(--ss-accent-solid-hover);
}

.whatsapp-fab .bi {
    font-size: 1.25rem;
}

/* Scroll reveal only hides content once scripts are confirmed running. */
html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 480ms var(--ss-ease), transform 480ms var(--ss-ease);
}

html.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

.steps li:nth-child(2) { transition-delay: 90ms; }
.steps li:nth-child(3) { transition-delay: 180ms; }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
    .site-nav__links {
        display: none;
    }

    .site-nav__menu {
        display: inline-flex;
    }

    /* The lamp moves above a centred headline and shines down onto it. */
    .hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        min-height: 0;
    }

    .lamp {
        order: -1;
        justify-self: center;
        width: 220px;
        height: 250px;
    }

    .lamp__string {
        height: 40px;
    }

    .hero__copy {
        padding-block: var(--ss-4) 3.5rem;
        text-align: center;
    }

    .hero__lead {
        margin-inline: auto;
    }

    .hero__actions,
    .hero__features {
        justify-content: center;
    }

    .hero::before {
        background: radial-gradient(circle at 50% 22%, var(--store-glow), transparent 58%);
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ss-4);
    }

    .steps li:nth-child(n) {
        transition-delay: 0ms;
    }
}

@media (max-width: 767.98px) {
    .quick-view__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .quick-view__media {
        aspect-ratio: 4 / 3;
    }

    .quick-view__body {
        padding: var(--ss-5);
    }

    .quick-view__desc {
        max-height: 26vh;
    }
}

@media (max-width: 575.98px) {
    .site-nav__bar {
        padding-inline: var(--ss-3);
    }

    .site-nav__cta span,
    .whatsapp-fab span {
        display: none;
    }

    .site-nav__cta {
        width: 38px;
        padding: 0;
    }

    .whatsapp-fab {
        justify-content: center;
        width: 52px;
        height: 52px;
        padding: 0;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__features {
        flex-direction: column;
        align-items: center;
        gap: var(--ss-4);
    }

    .hero__features li {
        width: 200px;
        text-align: start;
    }

    .rail__item {
        width: 120px;
        height: 120px;
    }

    .section {
        padding-block: 3.5rem;
    }

    .contact-band {
        padding-block: 4.5rem;
    }

    .product-tools {
        width: 100%;
    }

    .product-tools__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-tools__row .form-select {
        width: 100%;
    }

    .product-card__foot .btn {
        width: 100%;
    }

    .contact-band__cta {
        width: 100%;
    }
}
