/* ==========================================================================
   Product Single — gallery, info, description, related
   ========================================================================== */

/* ==========================================================================
   27. Product Single — modular sections (spare parts / consumables)
   ========================================================================== */

/* --------------------------------------------------------------------------
   27.1 Hero — gallery + info
   -------------------------------------------------------------------------- */

.product-hero {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.product-hero__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 960px) {
    .product-hero__layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* -- Gallery ------------------------------------------------------------- */

.product-hero__gallery-main {
    position: relative;
    background-color: var(--color-light-blue);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: var(--space-m);
}

.product-hero__gallery {
    position: sticky;
    top: 75px;
}

.product-hero__gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: var(--space-xl);
}

.product-hero__gallery-arrows {
    position: absolute;
    bottom: var(--space-m);
    right: var(--space-m);
    display: flex;
    gap: var(--space-xs);
    z-index: 2;
}

.product-hero__gallery-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid transparent;
    background-color: var(--color-white);
    color: var(--color-black);
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.product-hero__gallery-arrow--prev {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    border-color: var(--color-light-grey);
}

.product-hero__gallery-arrow--prev:hover {
    border-color: var(--color-dark-blue);
}

.product-hero__gallery-arrow--next {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    border-color: var(--color-dark-blue);
}

.product-hero__gallery-arrow--next:hover {
    background-color: var(--color-electric-blue);
    border-color: var(--color-electric-blue);
}

.product-hero__gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-s);
}

.product-hero__gallery-thumb {
    padding: 0;
    background: var(--color-light-blue);
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: border-color var(--transition);
}

.product-hero__gallery-thumb.is-active,
.product-hero__gallery-thumb:hover {
    border-color: var(--color-electric-blue);
}

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

/* -- Info ---------------------------------------------------------------- */

.product-hero__info {
    position: relative;
    padding-right: 60px;
    /* room for favorite button at top-right */
}

.product-hero__favorite {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background-color: var(--color-light-blue);
    border: none;
    border-radius: 50%;
    color: var(--color-dark-blue);
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
}

.product-hero__favorite:hover,
.product-hero__favorite[aria-pressed="true"] {
    background-color: var(--color-electric-blue);
    color: var(--color-white);
}

.product-hero__favorite[aria-pressed="true"] svg {
    fill: var(--color-white);
}

.product-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-dark-blue);
    line-height: 1.1;
    margin: 0 0 var(--space-m);
    font-weight: 400;
}

.product-hero__title-main,
.product-hero__title-sub {
    display: block;
}

.product-hero__price {
    font-size: var(--text-lg);
    color: var(--color-black);
    margin-bottom: var(--space-l);
}

.product-hero__price .amount,
.product-hero__price ins {
    color: var(--color-black);
    text-decoration: none;
}

.product-hero__price del {
    opacity: 0.4;
    margin-right: var(--space-s);
}

.product-hero__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-l);
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.product-hero__benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    font-size: var(--text-sm);
    color: var(--color-black);
}

.product-hero__benefit-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: var(--color-light-blue);
    border-radius: 50%;
    color: var(--color-dark-blue);
    flex-shrink: 0;
}

.product-hero__divider {
    border-top: 1px solid var(--color-light-grey);
    margin: var(--space-l) 0;
}

.product-hero__shipping {
    font-size: var(--text-sm);
    color: var(--color-black);
    opacity: 0.8;
    margin: 0 0 var(--space-l);
}

/* Actions: quantity + add to cart */
.product-hero__actions {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(1rem, 2vw, 1.75rem);
    row-gap: var(--space-m);
    margin-bottom: var(--space-l);
}

.product-hero__qty {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.75rem, 1.6vw, 1.25rem);
    flex-shrink: 0;
    min-width: 0;
}

.product-hero__qty-label {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: var(--color-dark-blue);
    opacity: 1;
    white-space: nowrap;
}

/* Ghost variant of qty-pill (outline, no grey fill) */
.qty-pill--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    background-color: var(--color-white);
    border: 1px solid rgba(18, 19, 20, 0.28);
    border-radius: 50px;
    padding: 0.875rem 1.2rem;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.qty-pill--ghost .qty-pill__btn:hover {
    opacity: 0.7;
}

.qty-pill--ghost .qty-pill__btn {
    background: transparent;
    border: 0;
}

.product-hero__qty-symbol {
    font-size: 22px;
    font-weight: 100;
}

.qty-pill--ghost .qty-pill__input,
.qty-pill--ghost.quantity .qty.qty-pill__input {
    width: 1.75rem;
    min-width: 1.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    appearance: textfield;
}

.qty-pill--ghost .qty-pill__input::-webkit-outer-spin-button,
.qty-pill--ghost .qty-pill__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-hero__add-to-cart {
    flex: 1;
    min-width: 0;
    width: 100%;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 500;
}

@media (max-width: 760px) {
    .product-hero__actions {
        grid-template-columns: 1fr;
    }

    .product-hero__qty {
        justify-content: space-between;
        width: 100%;
        flex-wrap: wrap;
    }
}

/* Trust / Safe checkout box */
.product-hero__trust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    padding: var(--space-m) var(--space-l);
    background-color: var(--color-light-blue);
    border-radius: 16px;
    flex-wrap: wrap;
}

.product-hero__trust-label {
    font-size: var(--text-sm);
    color: var(--color-black);
}

.product-hero__trust-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.product-hero__trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 8px;
    background-color: var(--color-white);
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-dark-blue);
    white-space: nowrap;
}

.product-hero__trust-badge--amex {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    font-size: 0.5625rem;
}

.product-desc--inline {
    padding-top: var(--space-l);
}

.product-desc--inline .product-desc__inner {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.product-desc--inline .product-desc__tab {
    margin-bottom: var(--space-m);
}

.product-desc--inline .product-desc__text {
    margin-bottom: var(--space-l);
}

/* --------------------------------------------------------------------------
   27.2 Description + Specs Table
   -------------------------------------------------------------------------- */

.product-desc {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.product-desc__inner {
    max-width: 760px;
    margin-left: auto;
    margin-right: 0;
    padding-right: var(--container-padding);
}

/* Account for outer container + push content to right column */
@media (min-width: 961px) {
    .product-desc__inner {
        width: calc(50% - var(--space-m));
        max-width: none;
        margin-left: auto;
        margin-right: calc((100vw - var(--container-width)) / 2 + var(--container-padding));
    }
}

@media (max-width: 1260px) and (min-width: 961px) {
    .product-desc__inner {
        margin-right: var(--container-padding);
    }
}

.product-desc__tab {
    display: inline-block;
    padding-bottom: var(--space-s);
    border-bottom: 2px solid var(--color-dark-blue);
    margin-bottom: var(--space-l);
}

.product-desc__tab-label {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-dark-blue);
    font-family: var(--font-heading);
}

.product-desc__text {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--color-black);
    opacity: 0.85;
    margin-bottom: var(--space-xl);
}

.product-desc__text p {
    margin-bottom: var(--space-s);
}

.product-desc__specs {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.product-desc__spec-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--space-m);
    align-items: center;
}

@media (max-width: 500px) {
    .product-desc__spec-row {
        grid-template-columns: 120px 1fr;
    }
}

.product-desc__spec-label {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--color-light-blue);
    border-radius: 50px;
    font-size: var(--text-sm);
    color: var(--color-dark-blue);
    width: fit-content;
}

.product-desc__spec-value {
    font-size: var(--text-sm);
    color: var(--color-black);
    border-bottom: 1px solid #a3b3bd55;
    padding: 10px 0 10px 10px;
}

/* --------------------------------------------------------------------------
   27.3 Related products ("Spare parts you may like")
   -------------------------------------------------------------------------- */

.product-related {
    padding: var(--space-2xl) 0;
}

.product-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-m);
}

@media (max-width: 960px) {
    .product-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .product-related__grid {
        grid-template-columns: 1fr;
    }
}

/* CTA card (dark blue gradient) */
.product-related__cta {
    position: relative;
    background: linear-gradient(180deg, var(--color-dark-blue) 0%, var(--color-electric-blue) 140%);
    color: var(--color-white);
    border-radius: 20px;
    padding: var(--space-l);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    overflow: hidden;
}

.product-related__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 120% 120%, rgba(255, 255, 255, 0.12), transparent 40%);
    pointer-events: none;
}

.product-related__cta-heading {
    color: var(--color-white);
    font-size: var(--text-lg);
    line-height: 1.2;
    margin-bottom: var(--space-s);
}

.product-related__cta-subtitle {
    color: var(--color-white);
    opacity: 0.85;
    font-size: var(--text-sm);
    margin: 0;
}

.product-related__cta-arrow {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #F5F7B2;
    color: var(--color-dark-blue);
    border-radius: 50%;
    margin-top: var(--space-l);
    transition: transform var(--transition), background-color var(--transition);
}

.product-related__cta-arrow:hover {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    transform: translateX(4px);
}

/* Product cards */
.product-related__card {
    position: relative;
    background-color: var(--color-light-blue-dark);
    border: 1px solid var(--color-light-grey);
    border-radius: 20px;
    overflow: hidden;
    padding: var(--space-m);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

.product-related__card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.product-related__fav {
    position: absolute;
    top: var(--space-m);
    right: var(--space-m);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: none;
    border: none;
    color: var(--color-black);
    opacity: 0.6;
    cursor: pointer;
    transition: color var(--transition), opacity var(--transition);
}

.product-related__fav:hover,
.product-related__fav[aria-pressed="true"] {
    color: var(--color-electric-blue);
    opacity: 1;
}

.product-related__card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: var(--space-m);
}

.product-related__card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-related__card-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-s);
    flex: 1;
}

.product-related__card-info {
    flex: 1;
    min-width: 0;
}

.product-related__card-name {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    margin: 0 0 var(--space-xs);
    color: var(--color-black);
}

.product-related__card-price {
    font-size: var(--text-sm);
    color: var(--color-black);
    opacity: 0.7;
}

.product-related__card-price .amount {
    color: var(--color-black);
}

.product-related__card-arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-light-grey);
    border-radius: 50%;
    color: var(--color-dark-blue);
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.product-related__card-arrow:hover {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    border-color: var(--color-dark-blue);
}

/* --------------------------------------------------------------------------