/* ===========================
   PRODUCT PAGES - SHARED STYLES
   =========================== */

/* BREADCRUMB */
.breadcrumb {
    padding: 16px 0;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-top: 72px;
}

.breadcrumb a {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.breadcrumb span {
    color: var(--gray-text);
    font-size: 14px;
    margin: 0 8px;
}

.breadcrumb .current {
    color: var(--navy);
    font-weight: 600;
    margin: 0;
}

/* CATEGORY HERO */
.category-hero {
    background: var(--navy);
    padding: 64px 0;
    color: var(--white);
}

.category-hero-content {
    max-width: 700px;
}

.category-label {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.category-hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.category-hero .red-line {
    width: 60px;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
    margin-bottom: 20px;
}

.category-hero p {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.85;
    font-weight: 300;
}

/* FEATURES SECTION */
.product-features {
    padding: 72px 0;
    background: var(--white);
}

.product-features h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.product-features .red-line {
    width: 50px;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
    margin-bottom: 40px;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-light);
    border-radius: 10px;
}

.feature-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}

/* PRODUCTS SECTION */
.products-section {
    padding: 72px 0;
    background: var(--gray-light);
}

.products-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.products-section .red-line {
    width: 50px;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
    margin-bottom: 40px;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* PRODUCT GALLERY */
.product-gallery {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-main {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-light);
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-main img.hidden {
    display: none;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    z-index: 2;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
}

.gallery-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}

.gallery-thumb.active {
    border-color: var(--red);
}

.gallery-thumb:hover {
    border-color: var(--navy);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Legacy product-image (for otros.html small cards) */
.product-image {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.product-subtitle {
    font-size: 15px;
    color: var(--gray-text);
    margin-bottom: 20px;
    font-weight: 400;
}

.product-specs {
    margin-bottom: 24px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--gray-text);
    font-weight: 400;
}

.spec-value {
    color: var(--black);
    font-weight: 600;
}

.product-info .btn {
    width: 100%;
    text-align: center;
}

/* Small cards grid for otros.html */
.products-grid-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 800px;
    margin: 0 auto;
}

.products-grid-small .product-card {
    display: block;
}

/* COMPARISON TABLE */
.comparison-section {
    padding: 72px 0;
    background: var(--white);
}

.comparison-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.comparison-section .red-line {
    width: 50px;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
    margin-bottom: 40px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.comparison-table thead {
    background: var(--navy);
    color: var(--white);
}

.comparison-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.comparison-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.comparison-table tbody tr:hover {
    background: var(--gray-light);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--navy);
}

/* PRODUCT CTA */
.product-cta {
    background: var(--navy);
    padding: 72px 0;
    text-align: center;
    color: var(--white);
}

.product-cta h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.product-cta p {
    font-size: 17px;
    opacity: 0.85;
    font-weight: 300;
    margin-bottom: 32px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.product-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    background: transparent;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* PRODUCT PAGE FOOTER */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* SINGLE PRODUCT LAYOUT (for categories with 1 product) */
.single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.single-product-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    aspect-ratio: 1 / 1;
}

.single-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.single-product-info h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.single-product-info .product-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
}

.single-product-info .product-specs {
    margin-bottom: 28px;
}

.single-product-info .spec-row {
    padding: 12px 0;
    font-size: 15px;
}

.single-product-info .btn {
    font-size: 16px;
    padding: 16px 36px;
}

/* CUSTOM PRODUCT - for modular/custom products */
.custom-product-section {
    padding: 72px 0;
    background: var(--gray-light);
}

.custom-product-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.custom-product-section .red-line {
    width: 50px;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
    margin-bottom: 40px;
}

.custom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.custom-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    aspect-ratio: 1 / 1;
}

.custom-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.custom-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.custom-info p {
    font-size: 15px;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.applications-list {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
}

.applications-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--black);
    font-weight: 500;
}

.applications-list li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
}

/* OTHER CATEGORIES SECTION */
.other-categories {
    padding: 72px 0;
    background: var(--white);
}

.other-categories h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.other-categories .red-line {
    width: 50px;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
    margin-bottom: 40px;
}

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

.category-link-card {
    background: var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.category-link-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--white);
}

.category-link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.category-link-card:hover .category-link-image img {
    transform: scale(1.05);
}

.category-link-card h4 {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card {
        grid-template-columns: 1fr;
    }
    .single-product,
    .custom-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .single-product-image,
    .custom-image {
        max-width: 100%;
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-hero h1 {
        font-size: 30px;
    }
    .product-features h2,
    .products-section h2,
    .comparison-section h2,
    .product-cta h2,
    .custom-product-section h2 {
        font-size: 26px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .products-grid-small {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .gallery-thumb {
        width: 52px;
        height: 52px;
    }
    .product-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .other-categories h2 {
        font-size: 26px;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}
