/* Shared shop UI (product list + product detail) — tokens on .ibidan-shop */
.ibidan-shop {
    /* Align with site theme: orange accent + cream/text from :root where available */
    --sage: var(--ibid-secondary, #d4842b);
    --sage-light: rgba(212, 132, 43, 0.12);
    --sage-mid: rgba(212, 132, 43, 0.28);
    --sage-dark: var(--ibid-secondary-dark, #b86e24);
    --warm: var(--ibid-cream, #faf8f5);
    --cream: #ffffff;
    --stone: var(--ibid-text-muted, #5a5a5a);
    --charcoal: var(--ibid-text, #2d2d2d);
    --gold: var(--ibid-secondary, #d4842b);
    --border: var(--ibid-border, #e8e4df);
    --ff-display: var(--ibid-font-sans);
    --ff-body: var(--ibid-font-sans);
    --radius-pill: 999px;
    font-family: var(--ff-body);
    -webkit-font-smoothing: antialiased;
}

/* ── HERO (list page) ─────────────────────────────────── */
.shop-hero-v2 {
    padding: 4rem 0 3rem;
    text-align: center;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}

.shop-hero-v2__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sage);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.shop-hero-v2__title {
    font-family: var(--ff-display);
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.shop-hero-v2__title em,
.shop-hero-v2__title-accent {
    color: var(--sage-dark);
    font-style: italic;
    font-weight: 700;
}

.shop-hero-v2__lead {
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    color: var(--stone);
    max-width: 36rem;
    margin: 0 auto 2.25rem;
    line-height: 1.65;
    font-weight: 400;
}

.shop-hero-v2__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-hero-v2__pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--sage-light);
    border: 1px solid var(--sage-mid);
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    font-size: 13px;
    color: var(--sage-dark);
    font-weight: 400;
}

.shop-hero-v2__pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sage);
    flex-shrink: 0;
    display: inline-block;
}

/* ── CATALOG (list) ───────────────────────────────────── */
.shop-catalog-v2 {
    padding: 3.5rem 0 5rem;
    background: var(--warm);
}

.shop-catalog-v2__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.shop-catalog-v2__label {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.shop-catalog-v2__title {
    font-family: var(--ff-display);
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    line-height: 1.2;
}

.shop-catalog-v2__lead {
    font-size: clamp(0.95rem, 1.1vw, 1.02rem);
    color: var(--stone);
    max-width: 28rem;
    line-height: 1.65;
    margin-top: 0.4rem;
    font-weight: 400;
}

.shop-product-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.shop-product-grid-v2--single {
    grid-template-columns: minmax(0, 360px);
}

/* ── Product card (list) ───────────────────────────────── */
.spcard {
    background: var(--cream);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.spcard__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--sage-light);
    overflow: hidden;
    display: block;
}

.spcard__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.spcard:hover .spcard__img {
    transform: scale(1.04);
}

.spcard__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 1;
}

.spcard__badge {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    line-height: 1;
}

.spcard__badge--new {
    background: var(--charcoal);
    color: #fff;
}

.spcard__badge--featured {
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    color: #fff;
}

.spcard__badge--offer {
    background: var(--ibid-accent, #c9a227);
    color: #fff;
}

.spcard__body {
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

.spcard__cat {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin: 0;
}

.spcard__title {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    line-height: 1.3;
    margin: 0;
}

.spcard__title a {
    color: inherit;
    text-decoration: none;
}

.spcard__title a:hover {
    color: var(--sage);
    text-decoration: none;
}

.spcard__spacer {
    flex: 1;
}

.spcard__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f0ebe4;
    gap: 0.75rem;
}

.spcard__price {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.spcard__price-current {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1;
}

.spcard__price-was {
    font-size: 12px;
    color: var(--stone);
    text-decoration: line-through;
    line-height: 1;
}

.spcard__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sage);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 8px 15px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--ff-body);
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.18s;
    flex-shrink: 0;
}

.spcard__btn:hover {
    background: var(--sage-dark);
    color: #fff;
}

.spcard__btn svg {
    width: 13px;
    height: 13px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ── Empty (list) ─────────────────────────────────────── */
.shop-empty-v2 {
    text-align: center;
    padding: 5rem 1.5rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.shop-empty-v2__icon {
    width: 56px;
    height: 56px;
    background: var(--sage-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.shop-empty-v2__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--sage);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shop-empty-v2__title {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.shop-empty-v2__text {
    font-size: 0.95rem;
    color: var(--stone);
    max-width: 28rem;
    margin: 0 auto 1.75rem;
    font-weight: 400;
    line-height: 1.65;
}

.shop-empty-v2__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sage);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 11px 24px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--ff-body);
    text-decoration: none;
    transition: background 0.18s;
}

.shop-empty-v2__btn:hover {
    background: var(--sage-dark);
    color: #fff;
}

.shop-pagination-v2 {
    padding: 0 0 3rem;
    background: var(--warm);
}

.ibidan-shop .shop-pagination-v2 .pagination > li > a:focus,
.ibidan-shop .shop-pagination-v2 .pagination > li > a:hover,
.ibidan-shop .shop-pagination-v2 .pagination > li > span:focus,
.ibidan-shop .shop-pagination-v2 .pagination > li > span:hover {
    color: var(--sage);
    border-color: rgba(212, 132, 43, 0.45);
}

.ibidan-shop .shop-pagination-v2 .pagination > .active > a,
.ibidan-shop .shop-pagination-v2 .pagination > .active > a:focus,
.ibidan-shop .shop-pagination-v2 .pagination > .active > a:hover,
.ibidan-shop .shop-pagination-v2 .pagination > .active > span,
.ibidan-shop .shop-pagination-v2 .pagination > .active > span:focus,
.ibidan-shop .shop-pagination-v2 .pagination > .active > span:hover {
    background-color: var(--sage);
    border-color: var(--sage);
}

/* ── Bottom CTA (list + detail) ────────────────────────── */
.shop-bottom-cta-v2 {
    padding: 0 0 4rem;
    background: var(--warm);
}

.shop-bottom-cta-v2__panel {
    background: var(--sage-dark);
    border-radius: 16px;
    padding: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.shop-bottom-cta-v2__title {
    font-family: var(--ff-display);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.shop-bottom-cta-v2__text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 28rem;
    line-height: 1.65;
    font-weight: 400;
    margin: 0;
}

.shop-bottom-cta-v2__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--sage-dark);
    border-radius: var(--radius-pill);
    padding: 13px 24px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--ff-body);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.18s, color 0.18s, opacity 0.18s;
}

.shop-bottom-cta-v2__btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sage);
}

.shop-bottom-cta-v2__btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--sage-dark);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Product detail (aligned with list v2) ─────────────── */
.shop-detail-top {
    padding: 1rem 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}

.shop-detail-top .events-detail-breadcrumb__list {
    font-size: 0.82rem;
    color: var(--stone);
}

.shop-detail-top .events-detail-breadcrumb__list a {
    color: var(--sage);
    font-weight: 600;
    text-decoration: none;
}

.shop-detail-top .events-detail-breadcrumb__list a:hover {
    color: var(--sage-dark);
}

.shop-detail-main {
    padding: 2.5rem 0 4rem;
    background: var(--warm);
}

.shop-detail-gallery__frame {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--sage-light);
    border: 1px solid var(--border);
}

.shop-detail-gallery__frame .spcard__badges {
    top: 14px;
    left: 14px;
}

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

.shop-detail-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.shop-detail-thumb {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    opacity: 0.65;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.shop-detail-thumb.is-active {
    opacity: 1;
}

.shop-detail-thumb:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 2px;
}

.shop-detail-thumb-frame {
    display: block;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--cream);
}

.shop-detail-thumb.is-active .shop-detail-thumb-frame {
    border-color: var(--sage);
    box-shadow: 0 4px 14px rgba(74, 103, 65, 0.2);
}

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

.shop-detail-panel {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    height: 100%;
}

.shop-detail-title {
    font-family: var(--ff-display);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.shop-detail-cat {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.shop-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.shop-detail-sku {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--stone);
    border: 1px solid var(--border);
    background: var(--warm);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.shop-detail-sku__k {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--sage);
}

.shop-detail-sku__v {
    font-weight: 500;
    color: var(--charcoal);
}

.shop-detail-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.85rem;
    padding: 1rem 0;
    margin-bottom: 0.25rem;
    border-top: 1px solid #f0ebe4;
    border-bottom: 1px solid #f0ebe4;
}

.shop-detail-price__sale {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--charcoal);
}

.shop-detail-price__was {
    font-size: 13px;
    color: var(--stone);
    text-decoration: line-through;
}

.shop-detail-price__regular {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--charcoal);
}

.shop-detail-lead {
    font-size: 14px;
    color: var(--stone);
    line-height: 1.7;
    font-weight: 300;
    margin: 1rem 0 1.25rem;
}

.shop-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.shop-detail-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.18s, background 0.18s;
}

.shop-detail-btn-outline:hover {
    border-color: var(--sage-mid);
    background: var(--sage-light);
    color: var(--sage-dark);
}

.shop-detail-note {
    font-size: 12px;
    color: var(--stone);
    margin-top: 1.25rem;
    font-weight: 300;
}

.shop-detail-content-wrap {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.shop-detail-content {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.shop-detail-content-heading {
    font-family: var(--ff-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .shop-catalog-v2__intro {
        flex-direction: column;
    }

    .shop-bottom-cta-v2__panel {
        padding: 2rem 1.5rem;
    }

    .shop-bottom-cta-v2 .shop-bottom-cta-v2__btn {
        width: 100%;
        justify-content: center;
    }

    .shop-detail-thumbs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
    }
}
