/* ══════════════════════════════════════════════════════════════════
   shop.css  |  Antologa – Shop landing + product detail
   Brand tokens: primary / secondary / terciary / contrast / surface-warm
   ══════════════════════════════════════════════════════════════════ */

.shop-page *,
.shop-page *::before,
.shop-page *::after {
    box-sizing: border-box;
}

.shop-page {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background: var(--antologa-surface-warm, #f4f5f3);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.shop-hero {
    position: relative;
    width: 100%;
    height: 42vh;
    min-height: 22rem;
    max-height: 36rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shop-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.04);
    animation: parallaxZoom var(--timing-parallax, 18s) var(--ease-standard, ease) infinite alternate;
    will-change: transform;
}

.shop-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 35, 55, 0.28) 0%,
        rgba(0, 50, 70, 0.45) 45%,
        rgba(0, 30, 48, 0.78) 100%
    );
    z-index: 1;
}

.shop-hero__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    max-width: 40rem;
    animation: fadeIn var(--timing-slow, 0.8s) var(--ease-bounce, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.shop-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: 7.65rem;
    animation: fadeUp var(--timing-slow, 0.8s) var(--ease-bounce, cubic-bezier(0.22, 1, 0.36, 1)) both;
    animation-delay: 0.1s;
}

.shop-hero__pill-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--antologa-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--antologa-primary) 35%, transparent);
    flex-shrink: 0;
}

.shop-hero__title {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    animation: fadeUp var(--timing-slow, 0.8s) var(--ease-bounce, cubic-bezier(0.22, 1, 0.36, 1)) both;
    animation-delay: 0.18s;
}

.shop-hero__sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    animation: fadeUp var(--timing-slow, 0.8s) var(--ease-bounce, cubic-bezier(0.22, 1, 0.36, 1)) both;
    animation-delay: 0.26s;
}

.shop-hero__cta {
    margin-top: 0.5rem;
    animation: fadeUp var(--timing-slow, 0.8s) var(--ease-bounce, cubic-bezier(0.22, 1, 0.36, 1)) both;
    animation-delay: 0.34s;
    font-weight: 700 !important;
}

/* ── Trust bar ──────────────────────────────────────────────────── */
.shop-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    background: var(--antologa-paper, #fff);
    border-bottom: 1px solid var(--antologa-light-gray, #e8e8e8);
}

.shop-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: fadeUp var(--timing-standard, 0.5s) var(--ease-bounce, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.shop-trust__item:nth-child(2) { animation-delay: 0.06s; }
.shop-trust__item:nth-child(3) { animation-delay: 0.12s; }
.shop-trust__item:nth-child(4) { animation-delay: 0.18s; }

.shop-trust__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--antologa-primary-tint-50, #eef6f6);
    color: var(--antologa-primary);
}

.shop-trust__title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--antologa-ink, #1a1a1a);
    margin: 0 0 0.15rem;
}

.shop-trust__text {
    font-size: 0.75rem;
    color: var(--antologa-gray, #757575);
    margin: 0;
    line-height: 1.35;
}

@media (max-width: 960px) {
    .shop-trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .shop-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Section chrome ─────────────────────────────────────────────── */
.shop-section {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 0;
    width: 100%;
}

.shop-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.shop-section__title {
    font-weight: 800;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    color: var(--antologa-ink, #1a1a1a);
    margin: 0;
}

.shop-section__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--antologa-primary);
    text-decoration: none;
    white-space: nowrap;
}

.shop-section__link:hover {
    color: var(--antologa-heading-ink);
}

/* ── Categories ─────────────────────────────────────────────────── */
.shop-cats {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.shop-cats__item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 5.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    scroll-snap-align: start;
    color: inherit;
    font: inherit;
    transition: transform var(--timing-quick, 0.2s) var(--ease-bounce, cubic-bezier(0.22, 1, 0.36, 1));
}

.shop-cats__item:hover { transform: translateY(-2px); }

.shop-cats__thumb {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: var(--antologa-primary-tint-50, #eef6f6);
    transition: border-color var(--timing-quick, 0.2s) var(--ease-standard, ease);
}

.shop-cats__item--on .shop-cats__thumb,
.shop-cats__item:hover .shop-cats__thumb {
    border-color: var(--antologa-primary);
}

.shop-cats__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: var(--antologa-ink, #1a1a1a);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-cats__item--on .shop-cats__label {
    color: var(--antologa-primary);
}

/* ── Featured ───────────────────────────────────────────────────── */
.shop-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1rem;
}

.shop-featured__card {
    position: relative;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 14rem;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
    transition: transform var(--timing-quick, 0.2s) var(--ease-bounce, cubic-bezier(0.22, 1, 0.36, 1));
}

.shop-featured__card:hover { transform: translateY(-3px); }

.shop-featured__card--tall { min-height: 18rem; }

.shop-featured__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--timing-slow, 0.8s) var(--ease-bounce, cubic-bezier(0.22, 1, 0.36, 1));
}

.shop-featured__card:hover .shop-featured__img { transform: scale(1.05); }

.shop-featured__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 30, 48, 0.85) 0%, rgba(0, 50, 70, 0.2) 55%, transparent 100%);
    z-index: 1;
}

.shop-featured__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.25rem;
}

.shop-featured__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--antologa-contrast);
    margin: 0 0 0.35rem;
}

.shop-featured__name {
    font-weight: 800;
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
}

.shop-featured__meta {
    font-size: 0.8rem;
    opacity: 0.85;
    margin: 0;
}

@media (max-width: 960px) {
    .shop-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .shop-featured__card--tall { min-height: 14rem; }
}

/* ── Filter + grid ──────────────────────────────────────────────── */
#shop-grid {
    scroll-margin-top: 5rem;
}

.shop-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.shop-filter__label {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    color: var(--antologa-ink, #1a1a1a);
}

.shop-filter__chip {
    border: 1px solid var(--antologa-light-gray, #e8e8e8);
    background: var(--antologa-paper, #fff);
    color: var(--antologa-ink, #1a1a1a);
    border-radius: 2rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--timing-quick, 0.2s), color var(--timing-quick, 0.2s), border-color var(--timing-quick, 0.2s);
}

.shop-filter__chip:hover {
    border-color: var(--antologa-primary);
    color: var(--antologa-primary);
}

.shop-filter__chip--on {
    background: var(--antologa-primary);
    border-color: var(--antologa-primary);
    color: #fff;
}

.shop-filter__search {
    margin-left: auto;
    max-width: 16rem;
    min-width: 12rem;
    flex: 1 1 12rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding-bottom: 3rem;
}

@media (max-width: 1280px) {
    .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap-sm, 0.75rem); }
}

.shop-card {
    display: flex;
    flex-direction: column;
    background: var(--antologa-paper, #fff);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--antologa-light-gray, #e8e8e8);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: box-shadow var(--timing-quick, 0.2s) var(--ease-standard, ease),
                transform var(--timing-quick, 0.2s) var(--ease-bounce, cubic-bezier(0.22, 1, 0.36, 1));
    animation: fadeUp var(--timing-standard, 0.5s) var(--ease-bounce, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.shop-card:hover {
    box-shadow: 0 8px 28px rgba(0, 50, 70, 0.12);
    transform: translateY(-3px);
}

.shop-card__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--antologa-primary-tint-50, #eef6f6);
}

.shop-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--timing-slow, 0.8s) var(--ease-bounce, cubic-bezier(0.22, 1, 0.36, 1));
}

.shop-card:hover .shop-card__img { transform: scale(1.05); }

.shop-card__sold-out {
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 48, 0.55);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-card__chip {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 30, 48, 0.7);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 0.35rem;
}

.shop-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    flex: 1;
}

.shop-card__name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--antologa-ink, #1a1a1a);
    margin: 0;
    line-height: 1.3;
}

.shop-card__seller {
    font-size: 0.75rem;
    color: var(--antologa-gray, #757575);
    margin: 0;
}

.shop-card__price {
    margin-top: auto;
    padding-top: 0.5rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--antologa-primary);
}

.shop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem 1rem;
    text-align: center;
    color: var(--antologa-gray, #757575);
}

.shop-empty__icon {
    font-size: 3.5rem;
    color: var(--antologa-light-gray, #e8e8e8);
}

.shop-bottom {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
    width: 100%;
}

/* ── Buy flow (PDP) ─────────────────────────────────────────────── */
.shop-buy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.shop-buy__qty,
.shop-buy__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.shop-buy__qty-label,
.shop-buy__total-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.shop-buy__qty-stepper {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.shop-buy__qty-value {
    min-width: 1.75rem;
    text-align: center;
    font-weight: 700;
}

.shop-buy__total-value {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--antologa-primary);
}

.shop-buy__cta {
    min-height: 3rem;
    font-weight: 700;
}

.shop-buy__error { margin: 0; }

/* ── Product detail page ────────────────────────────────────────── */
.shop-pdp {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
    width: 100%;
}

.shop-pdp__crumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--antologa-gray, #757575);
    margin-bottom: 1.5rem;
}

.shop-pdp__crumb a {
    color: var(--antologa-heading-ink);
    text-decoration: none;
    font-weight: 600;
}

.shop-pdp__crumb a:hover { color: var(--antologa-primary); }

.shop-pdp__layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

@media (max-width: 960px) {
    .shop-pdp__layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.shop-pdp__gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shop-pdp__main-img-wrap {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--antologa-primary-tint-50, #eef6f6);
}

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

.shop-pdp__thumbs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.shop-pdp__thumb {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: none;
    transition: border-color var(--timing-quick, 0.2s);
}

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

.shop-pdp__thumb--on,
.shop-pdp__thumb:hover {
    border-color: var(--antologa-primary);
}

.shop-pdp__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeUp var(--timing-standard, 0.5s) var(--ease-bounce, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.shop-pdp__badge {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    background: var(--antologa-primary-tint-50, #eef6f6);
    color: var(--antologa-primary);
}

.shop-pdp__title {
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    margin: 0;
    color: var(--antologa-ink, #1a1a1a);
}

.shop-pdp__seller {
    font-size: 0.875rem;
    color: var(--antologa-gray, #757575);
    margin: 0;
}

.shop-pdp__price {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--antologa-primary);
    margin: 0;
}

.shop-pdp__stock {
    font-size: 0.85rem;
    color: var(--antologa-gray, #757575);
    margin: 0;
}

.shop-pdp__stock--out {
    color: var(--antologa-terciary, #C45A32);
    font-weight: 600;
}

.shop-pdp__variants {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.shop-pdp__variants-label {
    font-weight: 700;
    font-size: 0.875rem;
    margin: 0;
}

.shop-pdp__variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shop-pdp__variant {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    border-radius: 2rem;
    border: 1.5px solid var(--antologa-light-gray, #e8e8e8);
    background: var(--antologa-paper, #fff);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    transition: border-color var(--timing-quick, 0.2s), background var(--timing-quick, 0.2s);
}

.shop-pdp__variant img {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    object-fit: cover;
}

.shop-pdp__variant--on {
    border-color: var(--antologa-primary);
    background: var(--antologa-primary-tint-50, #eef6f6);
    color: var(--antologa-primary);
}

.shop-pdp__variant:hover {
    border-color: var(--antologa-primary);
}

.shop-pdp__accordions {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--antologa-light-gray, #e8e8e8);
    margin-top: 0.5rem;
}

.shop-pdp__acc {
    border-bottom: 1px solid var(--antologa-light-gray, #e8e8e8);
}

.shop-pdp__acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--antologa-ink, #1a1a1a);
    text-align: left;
}

.shop-pdp__acc-body {
    padding: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--antologa-gray-650, #616161);
}

.shop-pdp__acc-body p { margin: 0 0 0.75rem; }
.shop-pdp__acc-body p:last-child { margin-bottom: 0; }

.shop-pdp__related {
    margin-top: 1rem;
}

.shop-pdp__missing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 1rem;
    text-align: center;
}
