/**
 * Products Page Styles
 * Matches Fiorentini.com design
 */

/* ==========================================================================
   PAGE HEADER - PRODUCTS
   ========================================================================== */
.page-header--products {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}

.page-header--products .page-header__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 70%;
    z-index: 0;
}

.page-header--products .page-header__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.page-header--products .page-header__content {
    position: relative;
    z-index: 2;
}

.page-header--products .breadcrumb {
    justify-content: flex-start;
    margin-bottom: 15px;
}

/* Product Categories Nav */
.pf-product-categories {
    padding: 40px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.pf-product-categories__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pf-product-nav__btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-secondary);
    background: var(--pf-white);
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pf-product-nav__btn:hover,
.pf-product-nav__btn.active {
    background: var(--pf-primary);
    border-color: var(--pf-primary);
    color: var(--pf-white);
}

/* Products Main Section */
.pf-products-main {
    padding: 80px 0;
    background: var(--pf-white);
}

.pf-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

/* Product Card */
.pf-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--pf-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--pf-primary);
}

.pf-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--pf-primary);
}

.pf-product-card__image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pf-product-card__image img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pf-product-card:hover .pf-product-card__image img {
    transform: scale(1.05);
}

.pf-product-card__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pf-white);
    background: var(--pf-primary);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pf-product-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pf-product-card__content .pf-btn {
    margin-top: auto;
    align-self: flex-start;
}

.pf-product-card__category {
    font-size: 12px;
    font-weight: 600;
    color: var(--pf-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pf-product-card__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--pf-secondary);
    margin: 10px 0 15px;
}

.pf-product-card__desc {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.pf-product-card__specs {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pf-product-card__specs li {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.pf-product-card__specs li strong {
    color: var(--pf-secondary);
}

/* Buttons */
.pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.pf-btn--small {
    padding: 10px 20px;
    font-size: 14px;
}

.pf-btn--outline {
    background: transparent;
    border: 2px solid var(--pf-primary);
    color: var(--pf-primary);
}

.pf-btn--outline:hover {
    background: var(--pf-primary);
    color: var(--pf-white);
}

.pf-btn--white {
    background: var(--pf-white);
    color: var(--pf-primary);
}

.pf-btn--white:hover {
    background: var(--pf-secondary);
    color: var(--pf-white);
}

/* Catalog Download Section */
.pf-catalog-download {
    padding: 60px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.pf-catalog-download__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.pf-catalog-download__text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--pf-secondary);
    margin-bottom: 10px;
}

.pf-catalog-download__text p {
    font-size: 16px;
    color: #555;
}

/* Catalog Download Button - Same outline style */
.pf-catalog-download .pf-btn,
.pf-catalog-download .pf-btn--white {
    padding: 14px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    border: 2px solid var(--pf-primary) !important;
    color: var(--pf-primary) !important;
}

.pf-catalog-download .pf-btn:hover,
.pf-catalog-download .pf-btn--white:hover {
    background: var(--pf-primary) !important;
    color: var(--pf-white) !important;
}

.pf-catalog-download .pf-btn svg,
.pf-catalog-download .pf-btn--white svg {
    stroke: var(--pf-primary);
    transition: stroke 0.3s ease;
}

.pf-catalog-download .pf-btn:hover svg,
.pf-catalog-download .pf-btn--white:hover svg {
    stroke: var(--pf-white);
}

/* CTA Section */
.pf-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.pf-cta__content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--pf-secondary);
    margin-bottom: 15px;
}

.pf-cta__content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

/* CTA Button - Same outline style */
.pf-cta .pf-btn,
.pf-cta .pf-btn--white {
    padding: 14px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    border: 2px solid var(--pf-primary) !important;
    color: var(--pf-primary) !important;
}

.pf-cta .pf-btn:hover,
.pf-cta .pf-btn--white:hover {
    background: var(--pf-primary) !important;
    color: var(--pf-white) !important;
}

/* Regulator Section Title (used on detail pages) */
.pf-regulator-section__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--pf-primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--pf-primary);
    display: inline-block;
}

/* Subsection & Group Headers (within grid) */
.pf-products__subsection-header {
    grid-column: 1 / -1;
    padding: 40px 0 15px;
    border-bottom: 2px solid var(--pf-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.pf-products__subsection-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pf-primary);
    margin: 0;
}

.pf-products__group-header {
    grid-column: 1 / -1;
    padding: 15px 0 5px;
}

.pf-products__group-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--pf-secondary);
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 1199px) {
    .pf-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .page-header--products {
        min-height: 400px;
        padding-bottom: 60px;
    }

    .pf-product-categories {
        position: relative;
        top: 0;
    }

    .pf-catalog-download__content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .page-header--products {
        min-height: 350px;
        padding-bottom: 40px;
    }

    .pf-product-categories {
        padding: 20px 0;
    }

    .pf-product-categories__nav {
        gap: 8px;
    }

    .pf-product-nav__btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .pf-products-main {
        padding: 40px 0;
    }

    .pf-products__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pf-catalog-download {
        padding: 40px 0;
    }

    .pf-catalog-download__text h2 {
        font-size: 24px;
    }

    .pf-cta__content h2 {
        font-size: 28px;
    }
}
