/* ========================================
   Product page styles — PromBarrier
   ======================================== */

/* --- Product Hero --- */

.product-hero {
    background-color: var(--lighter-grey);
    padding: 2rem 0;
}

.product-hero__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero__image img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--light-grey);
    padding: 1rem;
}

.product-hero__title {
    font-family: 'Google Sans 17pt', 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.product-hero__desc {
    font-size: 1rem;
    color: var(--dark-grey);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-hero__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-hero__features li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--black);
}

.product-hero__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
}

.product-hero__cta .btn {
    font-weight: 600;
    padding: 0.85rem 2rem;
}
.product-hero__intro button {
    font-size: 1.2rem;
    font-weight: 600;
}
.product-hero__price {
    font-family: 'Google Sans 17pt', 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--dark-blue);
}

.product-hero__price-note {
    font-size: 0.8rem;
    color: var(--grey);
}

/* --- Product Specs --- */

.product-specs {
    padding: 2rem 0;
}

.product-specs h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--dark-blue);
}

.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.specs-table tr {
    border-bottom: 1px solid var(--light-grey);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 0.85rem 0;
    font-size: 0.95rem;
    vertical-align: top;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--dark-grey);
    width: 40%;
    padding-right: 2rem;
}

.specs-table td:last-child {
    font-weight: 500;
    color: var(--black);
    width: 60%;
}

.specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* --- Product CTA Inline --- */

.product-cta-inline {
    padding: 2rem 0;
}

.product-cta-inline__inner {
    background-color: var(--dark-blue);
    border-radius: 10px;
    padding: 2.5rem;
    color: var(--white);
}

.product-cta-inline__inner h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 0.5rem;
}

.product-cta-inline__inner p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 0;
    line-height: 1.6;
}

.product-cta-inline__inner .btn {
    font-weight: 600;
    padding: 0.85rem 2rem;
}

@media (max-width: 991.98px) {
    .product-cta-inline__inner .row {
        row-gap: 1.5rem;
    }

    .product-cta-inline__inner .justify-content-lg-end {
        justify-content: flex-start !important;
    }
}

/* --- Product Variants --- */

.product-variants {
    padding: 2rem 0;
    background-color: var(--lighter-grey);
}

.product-variants h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--dark-blue);
}

.variant-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--light-grey);
    height: 100%;
    transition: border-color 0.25s;
}

.variant-card:hover {
    border-color: var(--grey);
}

.variant-card__image {
    background: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.variant-card__image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.variant-card__body {
    padding: 0 1.5rem 1.5rem;
}

.variant-card__title {
    font-family: 'Google Sans 17pt', 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.variant-card__desc {
    font-size: 0.85rem;
    color: var(--dark-grey);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.variant-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.variant-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    background: rgba(var(--lighter-grey-rgb), 0.8);
    border: 1px solid var(--light-grey);
    border-radius: 6px;
    color: var(--dark-grey);
}

.variant-card__link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-blue);
    text-decoration: none;
    transition: opacity 0.2s;
}

.variant-card__link:hover {
    opacity: 0.7;
}

/* --- Product Description --- */

.product-description {
    padding: 2rem 0;
}

.product-description h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.product-description p {
    font-size: 1rem;
    color: var(--dark-grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-description ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.product-description ul li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.95rem;
    color: var(--black);
    line-height: 1.5;
}

.product-description ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
}

/* --- Product Gallery --- */

.product-gallery {
    padding: 2rem 0;
    background-color: var(--lighter-grey);
}

.product-gallery h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--dark-blue);
}

.product-gallery .row.g-3 img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--light-grey);
    transition: transform 0.25s;
    cursor: pointer;
}

.product-gallery .row.g-3 img:hover {
    transform: scale(1.03);
}

/* --- Product CTA --- */

.product-cta {
    padding: 2rem 0;
}

.product-cta__inner {
    background-color: var(--dark-blue);
    border-radius: 10px;
    padding: 2.5rem;
    color: var(--white);
}

.product-cta__inner h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 1rem;
}

.product-cta__inner p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 0;
    line-height: 1.6;
}

.product-cta__inner .btn {
    font-weight: 600;
    padding: 0.85rem 2rem;
}

.product-cta .upload-area {
    border-color: rgba(var(--white-rgb), 0.3);
    background: rgba(var(--white-rgb), 0.05);
    color: var(--white);
}

.product-cta .upload-area:hover {
    background: rgba(var(--white-rgb), 0.08);
}

.product-cta .upload-area__icon {
    color: var(--yellow);
}

.product-cta .form-floating label {
    color: var(--dark-grey);
}

/* --- Responsive --- */

@media (max-width: 991.98px) {
    .product-hero__image {
        margin-bottom: 2rem;
    }

    .product-hero__image img {
        max-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .specs-group {
        min-width: 100%;
    }

    .product-gallery .row.g-3 img {
        height: 160px;
    }

    .product-cta__inner {
        padding: 1.5rem;
    }

    .product-cta__inner .row {
        row-gap: 1.5rem;
    }

    .product-cta__inner .align-items-lg-end {
        align-items: flex-start !important;
    }
}
