/* ── Product tabs ───────────────────────────────────────────
   Figma: desktop 3033:85514 and the Information carousel
   3033:81935; tablet 3033:88323 and mobile 2996:37695 (the
   tabs are pills inside the card, scrolling sideways).
   ─────────────────────────────────────────────────────────── */

/* The tab row: inactive tabs sit on a grey strip, the active one
   is a white tab joined to the card. */
.product-tabs__list {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 0 32px;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-tabs__list::-webkit-scrollbar {
    display: none;
}

.product-tabs__list[hidden] {
    display: none;
}

.product-tabs__tab {
    position: relative;
    flex: none;
    padding: 14px 24px;
    border: 0;
    border-radius: 0;
    background: var(--color-border);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
}

.product-tabs__tab:first-child {
    border-top-left-radius: 8px;
}

.product-tabs__tab:last-child {
    border-top-right-radius: 8px;
}

.product-tabs__tab:hover {
    color: var(--color-text);
}

.product-tabs__tab.is-active {
    z-index: 0; /* behind the card, whose edge and shadow run over its base */
    padding: 16px 24px 18px;
    margin-bottom: -2px;
    border-radius: 12px 12px 0 0;
    background: var(--color-white);
    box-shadow: 0 -4px 8px rgb(0 0 0 / 0.06);
    color: var(--color-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.product-tabs__card {
    position: relative;
    z-index: 1;
    padding: 32px 32px 40px;
    border-radius: 12px;
    background: var(--color-white);
    box-shadow: 0 0 6px rgb(0 0 0 / 0.12);
}

.product-tabs__panel {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.product-tabs__panel[hidden] {
    display: none;
}

/* Without JavaScript the panels stack, with room between them */
.product-tabs__panel + .product-tabs__panel {
    margin-top: 48px;
}

[data-tabs-ready] .product-tabs__panel + .product-tabs__panel {
    margin-top: 0;
}

/* Heading row: title and text, and a button on the right */
.product-tabs__head {
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.product-tabs__head .product-tabs__intro {
    flex: 1;
}

.product-tabs__button {
    flex: none;
}

.product-tabs__intro {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-tabs__title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    line-height: 34px;
}

.product-tabs__subtitle {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.product-tabs__text {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
    color: var(--color-text-muted);
}

.product-tabs__block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-tabs__block--tight {
    gap: 4px;
}

.product-tabs__label {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.product-tabs__prose {
    line-height: 20px;
    color: var(--color-text-muted);
    overflow-wrap: anywhere; /* a long web address can't push the page sideways */
}

.product-tabs__prose > * + * {
    margin-top: 10px;
}

.product-tabs__prose strong {
    color: var(--color-text);
    font-weight: 500;
}

.product-tabs__prose h2,
.product-tabs__prose h3 {
    font-size: 16px;
    color: var(--color-text);
}

.product-tabs__small {
    font-family: var(--font-heading);
    font-size: 12px;
    line-height: 16px;
    color: var(--color-text-muted);
}

/* Key Specs: label over value, in columns split by rules */
.product-tabs__specs {
    display: flex;
}

.product-tabs__spec {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 0 24px;
    border-left: 1px solid var(--color-border);
}

.product-tabs__spec:first-child {
    padding-left: 0;
    border-left: 0;
}

.product-tabs__spec dt {
    font-family: var(--font-heading);
    font-size: 12px;
    line-height: 16px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.product-tabs__spec dd {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 25px;
    font-size: 20px;
}

/* Ideal For */
.product-tabs__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.product-tabs__tags a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--color-grey);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
    transition: background var(--transition);
}

.product-tabs__tags a:hover {
    background: var(--color-border);
}

/* Why Longwater's points and Gravel Guide's topics: columns split by rules */
.product-tabs__columns {
    display: flex;
    list-style: none;
}

.product-tabs__point {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 0 24px;
    border-left: 1px solid var(--color-border);
}

.product-tabs__point:first-child {
    padding-left: 0;
    border-left: 0;
}

.product-tabs__point:last-child {
    padding-right: 0;
}

.product-tabs__point strong {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
}

.product-tabs__point span {
    font-family: var(--font-heading);
    font-size: 12px;
    line-height: 16px;
    color: var(--color-text-muted);
}

/* The green "Need help before ordering?" strip */
.product-tabs__help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    border-radius: 8px;
    background: var(--color-primary);
    color: var(--color-white);
}

.product-tabs__call {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: inherit;
    text-decoration: none;
}

.product-tabs__call span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
    opacity: 0.75;
}

.product-tabs__call strong {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.product-tabs__hours {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
}

.product-tabs__hours div {
    display: flex;
    gap: 24px;
}

.product-tabs__hours dt {
    width: 140px;
}

.product-tabs__hours dd {
    margin: 0;
    white-space: nowrap;
}

/* Gravel Guide's list: green dots, two across */
.product-tabs__dots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 40px;
    list-style: none;
}

.product-tabs__dots li {
    position: relative;
    padding-left: 14px;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
}

.product-tabs__dots li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* Delivery & Vehicles' cards */
.product-tabs__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.product-tabs__vcard {
    overflow: hidden;
    border-radius: 14px;
    background: var(--color-white);
    box-shadow: 0 0 12px rgb(0 0 0 / 0.12);
}

.product-tabs__vcard h3 {
    padding: 16px 20px;
    background: var(--color-secondary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.product-tabs__vcard--green h3 {
    background: var(--color-primary);
}

.product-tabs__vcard > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.product-tabs__vcard p {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
    color: var(--color-text-muted);
}

.product-tabs__vcard ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.product-tabs__vcard li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
}

.product-tabs__vcard li svg {
    flex: none;
}

/* Trade Projects' grey list */
.product-tabs__features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
    background: var(--color-grey);
    list-style: none;
}

.product-tabs__features li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-tabs__features strong {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.product-tabs__features span {
    line-height: 20.8px;
}

/* ── Tablet and mobile: one card, the tabs as pills inside it ─ */
@media (max-width: 1024px) {
    .product-tabs__inner {
        padding: 20px;
        border-radius: 12px;
        background: var(--color-white);
        box-shadow: 0 0 6px rgb(0 0 0 / 0.12);
    }

    /* Room above and below for the active pill's shadow (a scrolling row
       clips its edges), pulled back so the pills stay put. */
    .product-tabs__list {
        gap: 6px;
        margin: -8px -20px 10px;
        padding: 8px 20px;
    }

    .product-tabs__tab,
    .product-tabs__tab:first-child,
    .product-tabs__tab:last-child,
    .product-tabs__tab.is-active {
        margin: 0;
        padding: 8px 12px;
        border-radius: 99px;
        background: var(--color-border);
        box-shadow: none;
        font-size: 16px;
        font-weight: 500;
        line-height: 20px;
    }

    .product-tabs__tab.is-active {
        background: var(--color-white);
        box-shadow: 0 0 6px rgb(0 0 0 / 0.16);
        color: var(--color-text);
    }

    .product-tabs__card {
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .product-tabs__panel {
        gap: 18px;
    }

    .product-tabs__title {
        font-size: 24px;
        line-height: 30px;
    }

    .product-tabs__head {
        flex-direction: column;
        align-items: stretch;
    }

    /* Specs as label / value rows */
    .product-tabs__specs {
        flex-direction: column;
    }

    .product-tabs__spec,
    .product-tabs__spec:first-child {
        flex-direction: row;
        justify-content: space-between;
        gap: 16px;
        padding: 8px 0;
        border-left: 0;
        border-top: 1px solid var(--color-border);
    }

    .product-tabs__spec:first-child {
        border-top: 0;
    }

    .product-tabs__spec dt {
        font-size: 14px;
        line-height: 18px;
        text-transform: none;
    }

    .product-tabs__spec dd {
        font-size: 14px;
        line-height: 18px;
        text-align: right;
    }

    .product-tabs__columns {
        flex-direction: column;
        gap: 16px;
    }

    .product-tabs__point,
    .product-tabs__point:first-child,
    .product-tabs__point:last-child {
        padding: 0;
        border-left: 0;
    }

    .product-tabs__help {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .product-tabs__hours dt {
        width: auto;
        flex: 1;
    }

    .product-tabs__hours {
        align-self: stretch;
    }

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

@media (max-width: 767px) {
    .product-tabs__tags a {
        font-size: 14px;
        line-height: 18px;
    }
}
