/* THL Shop styles */

.shop-hero {
    padding: 4rem 2rem 2.5rem;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-alt) 100%);
}

.shop-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.shop-hero p:last-child {
    max-width: 760px;
}

.shop-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.shop-pill {
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-size: 0.92rem;
}

.shop-shell {
    padding: 2.5rem 2rem 4rem;
}

.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    align-items: start;
}

.shop-controls {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.shop-search {
    width: 100%;
    border: 1px solid var(--border-light);
    background: var(--white);
    padding: 0.95rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-dark);
}

.shop-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.shop-filter-btn,
.shop-action-btn,
.shop-qty-btn,
.shop-checkout-btn,
.shop-promo-btn,
.shop-modal-close {
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-filter-btn {
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
}

.shop-filter-btn.is-active,
.shop-action-btn-primary,
.shop-checkout-btn,
.shop-promo-btn {
    background: var(--accent-burgundy);
    color: var(--white);
    border-color: var(--accent-burgundy);
}

.shop-filter-btn:hover,
.shop-action-btn:hover,
.shop-qty-btn:hover,
.shop-checkout-btn:hover,
.shop-promo-btn:hover,
.shop-modal-close:hover {
    transform: translateY(-1px);
}

.shop-status-note {
    color: var(--text-light);
    font-size: 0.95rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 1.25rem;
}

body[data-shop-variant="quiet-premium"] .shop-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.shop-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    min-width: 0;
    box-shadow: 0 10px 24px rgba(44, 36, 32, 0.05);
}

body[data-shop-variant="quiet-premium"] .shop-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
}

.shop-card-media {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f7f1eb 0%, #ede4db 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
}

body[data-shop-variant="quiet-premium"] .shop-card-media {
    background: #f3ece5;
    border-radius: 28px;
    padding: 1.5rem;
    flex: 0 0 auto;
}

.shop-media-button,
.shop-media-link {
    width: 100%;
    border: 0;
    cursor: pointer;
    text-align: inherit;
    -webkit-appearance: none;
    appearance: none;
    padding-block: 0;
}

/* link variant resets */
.shop-media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.shop-media-button:hover,
.shop-media-link:hover {
    filter: brightness(0.98);
}

.shop-media-button:focus-visible,
.shop-media-link:focus-visible {
    outline: 2px solid var(--accent-burgundy);
    outline-offset: -2px;
}

.shop-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body[data-shop-variant="quiet-premium"] .shop-card-media img {
    min-height: 0;
}

.shop-card-body {
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

body[data-shop-variant="quiet-premium"] .shop-card-body {
    padding: 1rem 0 0;
    flex: 0 0 auto;
}

.shop-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.86rem;
    color: var(--text-light);
}

body[data-shop-variant="quiet-premium"] .shop-card-meta {
    justify-content: flex-start;
    margin-bottom: -0.1rem;
}

.shop-card-badge {
    text-transform: capitalize;
    background: var(--accent-gold-light);
    color: var(--text-dark);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
}

.shop-card-title {
    margin: 0;
    font-size: 1.2rem;
}

body[data-shop-variant="quiet-premium"] .shop-card-title {
    font-size: 1.28rem;
}

.shop-card-title-button,
.shop-card-title-link {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline;
}

.shop-card-subtitle {
    margin: -0.4rem 0 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

body[data-shop-variant="quiet-premium"] .shop-card-subtitle {
    margin-top: 0.15rem;
}

.shop-card-copy {
    font-size: 0.92rem;
    color: var(--text-light);
    min-height: 4.5rem;
}

.shop-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    flex-wrap: nowrap;
}

.shop-price-row > * {
    flex-shrink: 0;
}

body[data-shop-variant="quiet-premium"] .shop-price-row {
    margin-top: 0.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.shop-price {
    font-size: 1.45rem;
    color: var(--accent-burgundy);
    font-weight: 700;
}

.shop-card-pack {
    font-size: 0.92rem;
    color: var(--text-light);
}

.shop-add-inline-btn {
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    padding: 0.6rem 1rem;
}

body[data-shop-variant="quiet-premium"] .shop-add-inline-btn {
    width: 100%;
    text-align: center;
}

.shop-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.shop-action-btn {
    padding: 0.78rem 0.9rem;
    font-size: 0.92rem;
}

.shop-empty {
    padding: 2rem;
    background: var(--white);
    border: 1px dashed var(--border-light);
    border-radius: 18px;
    color: var(--text-light);
}

.shop-basket {
    position: sticky;
    top: 100px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 12px 28px rgba(44, 36, 32, 0.08);
    display: grid;
    gap: 1rem;
}

.shop-basket-title {
    margin-bottom: 0;
}

.shop-basket-items {
    display: grid;
    gap: 0.85rem;
    max-height: 360px;
    overflow: auto;
}

.shop-basket-item {
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 0.85rem;
    display: grid;
    gap: 0.55rem;
}

.shop-basket-item-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.shop-basket-name {
    font-weight: 600;
    color: var(--text-dark);
}

.shop-basket-pack {
    font-size: 0.88rem;
    color: var(--text-light);
}

.shop-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.shop-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.shop-qty-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.shop-remove-btn {
    border: none;
    background: transparent;
    color: var(--accent-burgundy);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.shop-summary {
    display: grid;
    gap: 0.55rem;
    font-size: 0.95rem;
}

.shop-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-light);
}

.shop-summary-row strong,
.shop-summary-row.shop-summary-total {
    color: var(--text-dark);
}

.shop-summary-row.shop-summary-total {
    font-size: 1.05rem;
    font-weight: 700;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border-light);
}

.shop-promo-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
}

.shop-promo-input {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
}

.shop-promo-status,
.shop-basket-note,
.shop-policy-list,
.shop-mini-note {
    color: var(--text-light);
    font-size: 0.9rem;
}

.shop-basket-note {
    margin: 0;
    transition: color 0.3s;
}

.shop-basket-note.is-highlight {
    animation: note-pulse 1.5s ease;
}

@keyframes note-pulse {
    0%, 100% { color: var(--text-light); }
    15%, 60% { color: #c0392b; font-weight: 600; }
}

.shop-checkout-btn {
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.shop-policy-section {
    padding: 0 2rem 4rem;
}

.shop-policy-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.shop-policy-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 10px 24px rgba(44, 36, 32, 0.05);
}

.shop-policy-list {
    padding-left: 1rem;
}

.shop-policy-list li {
    margin-bottom: 0.45rem;
}

.shop-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(44, 36, 32, 0.55);
    padding: 1rem;
    z-index: 300;
}

.shop-modal.is-open {
    display: flex;
}

.shop-modal-dialog {
    width: min(1040px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: var(--white);
    border-radius: 22px;
    padding: 1.25rem;
}

.shop-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.shop-modal-close {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}

.shop-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.5rem;
}

.shop-modal-gallery {
    display: grid;
    gap: 1rem;
}

.shop-modal-image-wrap {
    background: #f6f1eb;
    border-radius: 18px;
    padding: 1rem;
    border: 1px solid var(--border-light);
}

.shop-modal-image-wrap img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.shop-modal-copy h2 {
    margin-bottom: 0.4rem;
}

.shop-modal-meta {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.shop-modal-section {
    margin-bottom: 1rem;
}

.shop-modal-section h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.shop-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--text-dark);
    color: var(--white);
    padding: 0.9rem 1rem;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(44, 36, 32, 0.25);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 350;
}

.shop-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .shop-layout,
    .shop-modal-grid,
    .shop-policy-grid {
        grid-template-columns: 1fr;
    }

    .shop-basket {
        position: static;
    }

    .shop-shell {
        padding-bottom: 6rem;
    }
}

/* Floating basket bar — mobile only (when basket is static) */
.shop-basket-fab {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    padding: 0.7rem 1rem;
    z-index: 200;
    box-shadow: 0 -4px 16px rgba(44, 36, 32, 0.10);
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 1080px) {
    .shop-basket-fab.is-visible {
        display: flex;
    }
}

.shop-basket-fab-info {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.shop-basket-fab-btn {
    -webkit-appearance: none;
    appearance: none;
    background: var(--accent-burgundy);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    transition: background-color 0.2s ease;
}

.shop-basket-fab-btn:hover {
    background: var(--text-dark);
}

@media (max-width: 680px) {
    .shop-shell,
    .shop-policy-section,
    .shop-hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .shop-card-actions,
    .shop-promo-row {
        grid-template-columns: 1fr;
    }

    body[data-shop-variant="quiet-premium"] .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    body[data-shop-variant="quiet-premium"] .shop-card-media {
        border-radius: 14px;
        padding: 0.6rem;
        aspect-ratio: 4 / 5;
    }

    body[data-shop-variant="quiet-premium"] .shop-card-media img {
        min-height: 0;
    }

    body[data-shop-variant="quiet-premium"] .shop-card-body {
        padding: 0.6rem 0 0;
        gap: 0.4rem;
    }

    body[data-shop-variant="quiet-premium"] .shop-card-title {
        font-size: 1rem;
    }

    body[data-shop-variant="quiet-premium"] .shop-card-subtitle {
        font-size: 0.82rem;
    }

    body[data-shop-variant="quiet-premium"] .shop-price {
        font-size: 1.1rem;
    }

    body[data-shop-variant="quiet-premium"] .shop-card-pack {
        font-size: 0.8rem;
    }

    body[data-shop-variant="quiet-premium"] .shop-price-row {
        gap: 0.35rem;
    }

    body[data-shop-variant="quiet-premium"] .shop-add-inline-btn {
        font-size: 0.8rem;
        min-height: 44px;
        padding: 0.4rem 0.6rem;
        width: 100%;
        text-align: center;
    }

    body[data-shop-variant="quiet-premium"] .shop-card-actions {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    body[data-shop-variant="quiet-premium"] .shop-action-btn {
        font-size: 0.8rem;
        padding: 0.55rem 0.6rem;
    }
}

/* ── Skeleton / loading state ── */

@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.shop-skeleton-pulse {
    background: linear-gradient(90deg, #efe9e3 25%, #f5f0eb 37%, #efe9e3 63%);
    background-size: 800px 100%;
    animation: shimmer 1.6s ease-in-out infinite;
    border-radius: 6px;
}

.shop-skeleton-card {
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

body[data-shop-variant="quiet-premium"] .shop-skeleton-card {
    border-radius: 0;
}

.shop-skeleton-image {
    aspect-ratio: 1 / 1;
    border-radius: 18px 18px 0 0;
}

body[data-shop-variant="quiet-premium"] .shop-skeleton-image {
    border-radius: 0;
}

.shop-skeleton-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.shop-skeleton-line {
    height: 0.85rem;
    border-radius: 4px;
}

.shop-skeleton-line.short {
    width: 40%;
}

.shop-skeleton-line.medium {
    width: 70%;
}

.shop-skeleton-filter {
    height: 2.2rem;
    width: 6.5rem;
    border-radius: 999px;
    display: inline-block;
}

/* Basket progress bar */
.shop-basket-progress {
    margin: 0.85rem 0 0.25rem;
}

.shop-basket-progress-track {
    position: relative;
    height: 6px;
    background: var(--border-light);
    border-radius: 999px;
    overflow: visible;
    margin-bottom: 0.5rem;
}

.shop-basket-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--accent-burgundy);
    border-radius: 999px;
    transition: width 0.45s ease;
    max-width: 100%;
}

.shop-basket-progress.is-warning .shop-basket-progress-fill {
    background: #c0392b;
    opacity: 0.7;
}

.shop-basket-progress.is-success .shop-basket-progress-fill {
    background: #27695c;
}

/* Milestone tick at 40% = £20 of £50 */
.shop-basket-progress-milestone {
    position: absolute;
    left: 40%;
    top: -3px;
    width: 2px;
    height: 12px;
    background: var(--border-light);
    border-radius: 1px;
}

.shop-basket-nudge {
    font-size: 0.87rem;
    color: var(--text-light);
    margin: 0;
    transition: color 0.3s;
}

.shop-basket-progress.is-warning .shop-basket-nudge {
    color: #c0392b;
}

.shop-basket-progress.is-success .shop-basket-nudge {
    color: #27695c;
}

/* Mobile FAB nudge line */
.shop-basket-fab-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.shop-basket-fab-nudge {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-light);
}

.shop-basket-fab-nudge.is-success {
    color: #27695c;
}

/* Order confirmation page */
.shop-confirmation-section {
    padding: 4rem 2rem 5rem;
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.shop-confirmation-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 22px;
    padding: 2.5rem 2rem;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 10px 32px rgba(44, 36, 32, 0.07);
    text-align: center;
}

.shop-confirmation-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-burgundy);
    color: var(--white);
    font-size: 2.2rem;
    line-height: 72px;
    margin: 0 auto 1.5rem;
}

.shop-confirmation-card h1 {
    margin-bottom: 0.6rem;
}

.shop-confirmation-card > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.shop-confirmation-steps {
    text-align: left;
    background: var(--bg-alt);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.shop-confirmation-steps h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.shop-confirmation-steps ol {
    padding-left: 1.4rem;
    margin: 0;
}

.shop-confirmation-steps li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.96rem;
    line-height: 1.55;
}

.shop-confirmation-contact {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.shop-confirmation-contact a {
    color: var(--accent-burgundy);
    text-decoration: none;
}

.shop-confirmation-contact a:hover {
    text-decoration: underline;
}

.shop-confirmation-btn {
    display: inline-block;
    background: var(--accent-burgundy);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 0.95rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.shop-confirmation-btn:hover {
    transform: translateY(-1px);
    background: var(--text-dark);
    color: var(--white);
}

@media (max-width: 680px) {
    .shop-confirmation-section {
        padding: 2.5rem 1rem 4rem;
    }
    .shop-confirmation-card {
        padding: 2rem 1.25rem;
    }
}

/* ── Product Detail Page (PDP) ─────────────────────────────────── */
.page-hero-breadcrumb {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.page-hero-breadcrumb a {
    color: var(--gold);
    text-decoration: none;
}
.page-hero-breadcrumb a:hover {
    text-decoration: underline;
}

.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 2rem 0;
}

.pdp-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pdp-copy h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.pdp-stock {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}
.pdp-in-stock    { background: #d4f5e2; color: #1a6635; }
.pdp-out-of-stock { background: #fde8e8; color: #9b2222; }

.pdp-add-btn {
    margin-top: 1.5rem;
    width: 100%;
}

.pdp-basket-note {
    margin-top: 0.5rem;
    text-align: center;
    color: var(--gold);
    min-height: 1.4em;
}

/* ── Sulphur-free badges (PDPs + shop cards) ───────────────── */
.pdp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.pdp-sulphur-badge,
.shop-card-sulphur-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #d4f5e2;
    color: #1a6635;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.shop-card-sulphur-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
}

/* ── ISO trust line on PDPs ────────────────────────────── */
.pdp-iso-trust {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-light);
    border-top: 1px solid var(--border, #e0d5c5);
    padding-top: 0.75rem;
    line-height: 1.5;
}

.pdp-iso-trust a {
    color: var(--gold);
    text-decoration: none;
}

.pdp-iso-trust a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .pdp-grid {
        grid-template-columns: 1fr;
    }
}
