/*
 * Shop index and shed range comparison page
 * Scope: .shop-index-page
 */

.shop-index-page {
    --shop-dark: #1d1e1f;
    --shop-charcoal: #313131;
    --shop-accent: #dcec96;
    --shop-accent-dark: #718220;
    --shop-surface: #ffffff;
    --shop-soft: #f4f5ef;
    --shop-line: rgba(0, 0, 0, 0.1);
    --shop-muted: #676b65;
    padding-bottom: 0 !important;
    color: var(--shop-charcoal);
    background: var(--shop-surface);
}

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

.shop-index-page p {
    line-height: 1.7;
}

.shop-index-page a:focus-visible {
    outline: 3px solid var(--shop-accent);
    outline-offset: 4px;
}

.shop-index-kicker {
    margin-bottom: 0.75rem;
    color: var(--shop-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shop-index-hero {
    padding: clamp(10rem, 15vw, 13rem) 0 clamp(4rem, 8vw, 7rem);
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(220, 236, 150, 0.2), transparent 29%),
        linear-gradient(135deg, #141614 0%, #30352f 58%, #171817 100%);
}

.shop-index-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.shop-index-hero h1 {
    max-width: 920px;
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    font-weight: 700;
    line-height: 0.98;
}

.shop-index-hero-lead {
    max-width: 790px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.shop-index-hero-actions,
.shop-index-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
}

.shop-index-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.75rem 1.15rem;
    color: #111;
    border: 2px solid transparent;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.shop-index-button:hover {
    color: #111;
    text-decoration: none;
    transform: translate(2px, 2px);
}

.shop-index-button-primary {
    background: var(--shop-accent);
    border-color: var(--shop-accent);
}

.shop-index-button-primary:hover {
    background: #fff;
    border-color: #fff;
}

.shop-index-button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.shop-index-button-secondary:hover {
    color: #111;
    background: #fff;
    border-color: #fff;
}

.shop-index-button-dark {
    color: #fff;
    background: var(--shop-charcoal);
    border-color: var(--shop-charcoal);
}

.shop-index-button-dark:hover {
    color: #111;
    background: var(--shop-accent);
    border-color: var(--shop-accent);
}

.shop-index-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    font-weight: 700;
}

.shop-index-assurance span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.shop-index-assurance i {
    color: var(--shop-accent);
}

.shop-index-hero-panel {
    padding: clamp(1.35rem, 3vw, 2.1rem);
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.shop-index-panel-label {
    margin-bottom: 1rem;
    color: var(--shop-accent);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shop-index-guidance-row {
    display: grid;
    grid-template-columns: 3.1rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.15rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.shop-index-guidance-row:first-of-type {
    border-top: 0;
}

.shop-index-guidance-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    color: #111;
    background: var(--shop-accent);
    border-radius: 50%;
}

.shop-index-guidance-row strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #fff;
}

.shop-index-guidance-row p {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.9rem;
}

.shop-index-range-section,
.shop-index-comparison-section,
.shop-index-extras-section,
.shop-index-buy-section,
.shop-index-help-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.shop-index-section-heading {
    max-width: 900px;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}

.shop-index-section-heading h2,
.shop-index-comparison-copy h2,
.shop-index-extras-intro h2,
.shop-index-help-card h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
}

.shop-index-section-heading > p:last-child,
.shop-index-comparison-copy > p:last-child,
.shop-index-extras-intro > p,
.shop-index-help-card > div:first-child > p:last-child {
    color: var(--shop-muted);
    font-size: 1.05rem;
}

.shop-index-range-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: stretch;
}

.shop-index-range-card {
    display: flex;
    min-width: 0;
    grid-column: span 2;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--shop-line);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.09);
}

.shop-index-range-card-recommended {
    border-color: rgba(127, 147, 47, 0.5);
    box-shadow: 0 22px 58px rgba(71, 83, 23, 0.15);
}

.shop-index-range-card:nth-child(4),
.shop-index-range-card:nth-child(5) {
    grid-column: span 3;
}

.shop-index-range-card-beast {
    border-color: rgba(220, 236, 150, 0.8);
    box-shadow: 0 22px 58px rgba(49, 49, 49, 0.16);
}

.shop-index-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ddd;
}

.shop-index-card-media a,
.shop-index-card-media img {
    display: block;
    width: 100%;
    height: 100%;
}

.shop-index-card-media img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shop-index-card-media:hover img {
    transform: scale(1.025);
}

.shop-index-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.45rem 0.7rem;
    color: #111;
    background: var(--shop-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.shop-index-card-body {
    display: flex;
    padding: clamp(1.35rem, 3vw, 2.1rem);
    flex: 1 1 auto;
    flex-direction: column;
}

.shop-index-card-eyebrow {
    margin-bottom: 0.4rem;
    color: var(--shop-accent-dark);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.shop-index-card-body h3,
.shop-index-buy-card h3,
.shop-index-extra-item h3 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    line-height: 1.12;
}

.shop-index-card-lead {
    margin-bottom: 1.35rem;
    color: var(--shop-muted);
    font-size: 1rem;
}

.shop-index-spec-list {
    margin: 0 0 1.25rem;
}

.shop-index-spec-list > div {
    display: grid;
    grid-template-columns: minmax(95px, 0.32fr) minmax(0, 0.68fr);
    gap: 0.85rem;
    padding: 0.72rem 0;
    border-top: 1px solid var(--shop-line);
}

.shop-index-spec-list dt {
    color: var(--shop-charcoal);
    font-size: 0.8rem;
    font-weight: 800;
}

.shop-index-spec-list dd {
    margin: 0;
    color: var(--shop-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.shop-index-benefit-list {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1.4rem;
    padding: 0;
}

.shop-index-benefit-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: var(--shop-charcoal);
    font-size: 0.9rem;
    font-weight: 700;
}

.shop-index-benefit-list i {
    margin-top: 0.2rem;
    color: var(--shop-accent-dark);
}

.shop-index-card-body > .shop-index-button,
.shop-index-buy-card > .shop-index-button {
    width: 100%;
    margin-top: auto;
}

.shop-index-comparison-section {
    background: var(--shop-soft);
}

.shop-index-comparison-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    background: #fff;
    border: 1px solid var(--shop-line);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.07);
}

.shop-index-comparison-copy .shop-index-kicker,
.shop-index-extras-intro .shop-index-kicker,
.shop-index-help-card .shop-index-kicker {
    color: var(--shop-accent-dark);
}

.shop-index-comparison-table-wrap {
    overflow-x: auto;
}

.shop-index-comparison-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.shop-index-comparison-table th,
.shop-index-comparison-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--shop-line);
    text-align: left;
    vertical-align: top;
}

.shop-index-comparison-table thead th {
    color: #111;
    background: var(--shop-accent);
    font-size: 0.8rem;
    font-weight: 900;
}

.shop-index-comparison-table tbody th {
    width: 19%;
    color: var(--shop-charcoal);
    font-size: 0.85rem;
    font-weight: 800;
}

.shop-index-comparison-table td {
    color: var(--shop-muted);
    font-size: 0.86rem;
}

.shop-index-extras-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    background: #fff;
    border: 1px solid var(--shop-line);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
}

.shop-index-extras-intro > .shop-index-button {
    margin-top: 1.5rem;
}

.shop-index-extras-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.shop-index-extra-item {
    padding: 1.35rem;
    background: var(--shop-soft);
    border: 1px solid var(--shop-line);
}

.shop-index-extra-item > span {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #111;
    background: var(--shop-accent);
    border-radius: 50%;
}

.shop-index-extra-item h3 {
    font-size: 1.15rem;
}

.shop-index-extra-item p {
    color: var(--shop-muted);
    font-size: 0.9rem;
}

.shop-index-buy-section {
    color: #fff;
    background: var(--shop-dark);
}

.shop-index-section-heading-light h2 {
    color: #fff;
}

.shop-index-section-heading-light > p:last-child {
    color: rgba(255, 255, 255, 0.68);
}

.shop-index-buy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.shop-index-buy-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(1.4rem, 3vw, 2rem);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.shop-index-buy-number {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.08);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
}

.shop-index-buy-icon {
    display: inline-flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    color: #111;
    background: var(--shop-accent);
    border-radius: 50%;
}

.shop-index-buy-card .shop-index-card-eyebrow {
    color: var(--shop-accent);
}

.shop-index-buy-card h3 {
    color: #fff;
}

.shop-index-buy-card > p:not(.shop-index-card-eyebrow) {
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.68);
}

.shop-index-buy-card .shop-index-benefit-list li {
    color: rgba(255, 255, 255, 0.88);
}

.shop-index-buy-card .shop-index-benefit-list i {
    color: var(--shop-accent);
}

.shop-index-size-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.35rem 0 1.5rem;
}

.shop-index-size-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
    color: #111;
    background: var(--shop-accent);
    border: 2px solid var(--shop-accent);
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.shop-index-size-link:hover {
    color: #111;
    background: #fff;
    text-decoration: none;
    transform: translate(2px, 2px);
}

.shop-index-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    color: #fff;
    font-weight: 800;
    text-decoration-color: var(--shop-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.shop-index-text-link:hover {
    color: var(--shop-accent);
}

.shop-index-help-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    background: #fff;
    border: 1px solid var(--shop-line);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
}

.shop-index-help-actions {
    max-width: 390px;
    justify-content: flex-end;
}

@media (max-width: 1199px) {
    .shop-index-range-card,
    .shop-index-range-card:nth-child(4),
    .shop-index-range-card:nth-child(5) {
        grid-column: span 3;
    }

    .shop-index-range-card:last-child {
        grid-column: 2 / span 4;
    }
}

@media (max-width: 991px) {
    .shop-index-hero {
        padding-top: 9rem;
    }

    .shop-index-hero-grid,
    .shop-index-comparison-card,
    .shop-index-extras-card,
    .shop-index-help-card {
        grid-template-columns: 1fr;
    }

    .shop-index-buy-grid {
        grid-template-columns: 1fr;
    }

    .shop-index-help-actions {
        max-width: none;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .shop-index-range-grid {
        grid-template-columns: 1fr;
    }

    .shop-index-range-card,
    .shop-index-range-card:nth-child(4),
    .shop-index-range-card:nth-child(5),
    .shop-index-range-card:last-child {
        grid-column: auto;
    }

    .shop-index-extras-grid {
        grid-template-columns: 1fr;
    }

    .shop-index-hero h1 {
        font-size: clamp(2.45rem, 12vw, 4rem);
    }
}

@media (max-width: 540px) {
    .shop-index-hero {
        padding-top: 8rem;
    }

    .shop-index-hero-actions,
    .shop-index-help-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .shop-index-button {
        width: 100%;
    }

    .shop-index-assurance {
        display: grid;
        grid-template-columns: 1fr;
    }

    .shop-index-spec-list > div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .shop-index-size-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-index-comparison-card,
    .shop-index-extras-card,
    .shop-index-help-card {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-index-page *,
    .shop-index-page *::before,
    .shop-index-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Keep primary actions visible when they sit on a white card. */
.shop-index-range-card .shop-index-button-primary:hover,
.shop-index-help-card .shop-index-button-primary:hover {
    color: #fff;
    background: var(--shop-charcoal);
    border-color: var(--shop-charcoal);
}
