/*
 * Product detail pages.
 *
 * Shares the tokens and section rhythm of the category pages, in its own file
 * so a fresh drop of the design team's stylesheet cannot wipe it.
 *
 * Same constraint as the category grid: these photographs were taken over
 * twenty years at every aspect ratio, so nothing is cropped — images are
 * contained in a fixed window on a neutral panel.
 */

/* 56px of hero padding above 56px of section padding put 112px of nothing
   between the buy buttons and the specification. */
.prod-hero {
    background: linear-gradient(160deg, #fdf2f2 0%, #ffffff 65%);
    padding: 32px 0 32px;
}

.prod-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.prod-breadcrumb a { color: #6b7280; text-decoration: none; }
.prod-breadcrumb a:hover { color: var(--primary-red); }
.prod-breadcrumb span { margin: 0 0.35rem; }
.prod-breadcrumb span[aria-current] { margin-left: 0; color: #111827; }

.prod-hero h1 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.prod-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 1rem;
}

/* What comes in the box, and the "Limited Edition only" caveat. */
.prod-included {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin: 0 0 1rem;
    font-size: 0.93rem;
    line-height: 1.6;
    color: #4b5563;
}

.prod-included i { color: var(--primary-red); font-size: 0.85rem; }

.prod-code {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.prod-code strong {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    background: #eef2ff;
    color: #3f4a8a;
    font-weight: 600;
}

/* --------------------------------------------------------------- gallery */

.prod-gallery__main {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26rem;
    padding: 1.75rem;
    background: #f8f9fb;
    border: 1px solid #eceef1;
    border-radius: 14px;
}

.prod-gallery__main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.prod-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.prod-gallery__thumbs button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    padding: 0.4rem;
    background: #f8f9fb;
    border: 1px solid #eceef1;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.prod-gallery__thumbs button:hover { border-color: #f3d0d0; }
.prod-gallery__thumbs button.is-active { border-color: var(--primary-red); }

.prod-gallery__thumbs img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* ---------------------------------------------------- badges and actions */

.prod-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.prod-badges img { max-height: 3.25rem; width: auto; }

.prod-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid #f1f3f5;
}

.prod-actions__buy,
.prod-actions__catalogue {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.prod-actions__buy:hover,
.prod-actions__catalogue:hover { color: var(--primary-red); }

.prod-notes {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.prod-notes li {
    padding: 0.7rem 0 0.7rem 1.1rem;
    border-left: 3px solid var(--primary-red);
    margin-bottom: 0.6rem;
    font-size: 0.93rem;
    line-height: 1.6;
    color: #4b5563;
}

/* -------------------------------------------------------------- features */

.prod-features { padding: 40px 0 8px; }

.prod-features h2,
.prod-variants h2,
.prod-specs h2,
.prod-siblings h2,
.prod-cta h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 1.35rem;
}

.prod-features ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 0.35rem 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.prod-features li {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.96rem;
    line-height: 1.65;
    color: #4b5563;
}

.prod-features i {
    flex: 0 0 auto;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--primary-red);
}

/* -------------------------------------------------------------- variants */

.prod-variants { padding: 48px 0 8px; }

.variant-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 14px;
    overflow: hidden;
}

.variant-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 12rem;
    padding: 1rem;
    background: #f8f9fb;
}

.variant-card__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.variant-card__body { padding: 1.1rem 1.25rem 1.3rem; }

.variant-card__body h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.variant-card__code {
    margin: 0 0 0.75rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #3f4a8a;
    letter-spacing: 0.02em;
}

.variant-card__features {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.87rem;
    line-height: 1.6;
    color: #6b7280;
}

.variant-card__features li { margin-bottom: 0.3rem; }

/* ---------------------------------------------------------- spec tables */

.prod-specs { padding: 48px 0 8px; }

.spec-table {
    overflow-x: auto;
    margin: 0 0 1rem;
    border: 1px solid #eceef1;
    border-radius: 12px;
}

.spec-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.spec-table th,
.spec-table td {
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f1f3f5;
    line-height: 1.5;
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 0; }

.spec-table thead th {
    background: #f8f9fb;
    font-weight: 700;
    color: #111827;
}

.spec-table th[scope="row"] {
    width: 40%;
    font-weight: 600;
    color: #111827;
}

.spec-table td { color: #4b5563; }

.variant-card .spec-table { font-size: 0.85rem; }

/* -------------------------------------------------------------- siblings */

.prod-siblings { padding: 48px 0 8px; }

.sibling-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sibling-product:hover {
    color: inherit;
    border-color: #f3d0d0;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.sibling-product__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10rem;
    padding: 0.9rem;
    background: #f8f9fb;
}

.sibling-product__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.sibling-product__title {
    padding: 0.9rem 1rem 0;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
}

.sibling-product__summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0.35rem 1rem 1.1rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #6b7280;
}

.prod-siblings__all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-red);
    text-decoration: none;
}

.prod-siblings__all i { font-size: 0.7rem; }

/* --------------------------------------------------------------- enquiry */

/* The fields themselves are styled by contact.css, which this page loads —
   this is only the section around them. */

.prod-enquiry {
    padding: 56px 0;
    background: #fafbfc;
    border-top: 1px solid #f1f3f5;
    /* The hero button jumps here; keep the heading clear of the sticky nav. */
    scroll-margin-top: 90px;
}

.prod-enquiry h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 1.35rem;
}

.prod-enquiry__lead {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #4b5563;
    max-width: 26rem;
}

.prod-enquiry__contacts {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.prod-enquiry__contacts li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
    font-size: 0.93rem;
}

.prod-enquiry__contacts i {
    width: 1.25rem;
    text-align: center;
    color: var(--primary-red);
}

.prod-enquiry__contacts a {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

.prod-enquiry__contacts a:hover { color: var(--primary-red); }

.prod-enquiry__form {
    padding: 1.75rem;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

/* Says on the form which product it is about, because by the time someone has
   scrolled past the specification the page heading is long gone. */
.prod-enquiry__about {
    margin: 0 0 1.25rem;
    padding: 0.7rem 0.9rem;
    background: #fdf3f3;
    border-left: 3px solid var(--primary-red);
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
}

.prod-enquiry__about span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.prod-enquiry__about strong {
    font-size: 1rem;
    color: #111827;
}

.prod-enquiry__note {
    margin: 0.8rem 0 0;
    font-size: 0.82rem;
    color: #6b7280;
}

/* ------------------------------------------------------------------- cta */

.prod-cta { padding: 48px 0 72px; }

.prod-cta__panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.25rem 2.5rem;
    background: linear-gradient(160deg, #fdf2f2 0%, #ffffff 70%);
    border: 1px solid #f3d0d0;
    border-radius: 16px;
}

.prod-cta__panel h2 { margin-bottom: 0.6rem; }

.prod-cta__panel p {
    max-width: 44rem;
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.75;
    color: #4b5563;
}

.prod-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.prod-cta__secondary {
    font-weight: 600;
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.prod-cta__secondary:hover { color: var(--primary-red); }

/* ----------------------------------------------------------- small screens */

@media (max-width: 991.98px) {
    .prod-gallery__main { height: 20rem; }
    .prod-features { padding-top: 40px; }
}

@media (max-width: 575.98px) {
    .prod-gallery__main { height: 16rem; padding: 1rem; }
    .prod-gallery__thumbs button { width: 4rem; height: 4rem; }
    .prod-cta__panel { padding: 1.75rem 1.5rem; }
    .prod-enquiry__form { padding: 1.25rem 1.1rem; }
    .spec-table th[scope="row"] { width: 50%; }
}
