/* ===================================
   PRODUCTS PAGE STYLES
   =================================== */

/* Page Header */
.page-header {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
}

.page-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 25px;
    color: rgba(255,255,255,0.95);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

/* Products Navigation */
.products-nav {
    position: sticky;
    top: 80px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 15px 0;
}

.products-nav-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.products-nav-link {
    padding: 10px 25px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    transition: all 0.3s;
    color: var(--text-dark);
}

.products-nav-link:hover,
.products-nav-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Product Section */
.product-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.product-section.alt {
    background-color: var(--bg-light);
}

.product-detail-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.product-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-badge.premium {
    background: linear-gradient(135deg, #c9a961 0%, #8b6f3a 100%);
}

.product-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.product-tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 300;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-detail-content.reverse {
    grid-template-columns: 1fr 1fr;
}

.product-detail-content.reverse .product-detail-info {
    order: -1;
}

.product-detail-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    height: fit-content;
}

.product-detail-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-detail-image:hover img {
    transform: scale(1.05);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-description h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-description p {
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Product Specs */
.product-specs {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-section.alt .product-specs {
    background-color: var(--bg-light);
}

.product-specs h4 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-item {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.spec-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.spec-item.highlight {
    border-color: var(--secondary-color);
    background-color: rgba(201, 169, 97, 0.05);
}

.spec-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.spec-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Product Features Box */
.product-features-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 12px;
    border-right: 4px solid var(--secondary-color);
}

.product-features-box h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.product-features-list {
    list-style: none;
}

.product-features-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-features-list li:last-child {
    border-bottom: none;
}

.product-features-list i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Product Typologies */
.product-typologies {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-section.alt .product-typologies {
    background-color: var(--bg-light);
}

.product-typologies h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.typologies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.typology-item {
    text-align: center;
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.product-section.alt .typology-item {
    background-color: white;
}

.typology-item:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.typology-item i {
    font-size: 1.2rem;
}

/* Product Highlights */
.product-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.product-section.alt .highlight-item {
    background-color: var(--bg-light);
}

.highlight-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-content h5 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.highlight-content p {
    font-size: 0.95rem;
    margin: 0;
}

/* Comparison Section */
.comparison-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.comparison-table-wrapper {
    overflow-x: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.comparison-table th {
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: var(--bg-light);
}

.comparison-table tbody tr:hover {
    background-color: rgba(201, 169, 97, 0.1);
}

.comparison-table td:first-child {
    text-align: right;
    font-weight: 600;
    background-color: #f8f9fa;
}

.comparison-table td strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.comparison-table i.fa-check {
    color: #28a745;
    font-size: 1.2rem;
}

.comparison-table i.fa-times {
    color: #dc3545;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        height: 300px;
    }

    .products-nav {
        top: 70px;
    }

    .product-detail-content,
    .product-detail-content.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-detail-content.reverse .product-detail-info {
        order: 0;
    }

    .product-detail-image img {
        height: 300px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .typologies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-table-wrapper {
        overflow-x: scroll;
    }

    .comparison-table {
        min-width: 800px;
    }

    .highlight-item {
        flex-direction: column;
        text-align: center;
    }

    .highlight-icon {
        margin: 0 auto;
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-detail-image {
    animation: slideInLeft 0.8s ease;
}

.product-detail-info {
    animation: slideInRight 0.8s ease;
}

.product-detail-content.reverse .product-detail-image {
    animation: slideInRight 0.8s ease;
}

.product-detail-content.reverse .product-detail-info {
    animation: slideInLeft 0.8s ease;
}
