﻿/* =========================
   PRODUCT TABS PAGE
========================= */

.product-page-section {
    padding: 14px 24px 40px;
}

.product-page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Tabs */
.product-tabs {
    position: sticky;
    top: var(--header-h, 96px);
    background: #fff;
    z-index: 40;
    padding: 10px 0 8px;
    border-bottom: 2px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-tab {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 800;
    color: #222;
    position: relative;
    white-space: nowrap;
    transition: .25s ease;
}

    .product-tab:hover {
        color: #00b3b3;
    }

    .product-tab.active {
        color: #00b3b3;
    }

        .product-tab.active::after {
            content: "";
            position: absolute;
            left: 12px;
            right: 12px;
            bottom: -10px;
            height: 3px;
            background: #00b3b3;
        }

/* Panels */
.product-panels {
    margin: 0;
    padding: 0;
}

.product-panel {
    display: none;
}

    .product-panel.active {
        display: block;
    }

/* Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 4px;
}

/* Card */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
    transition: .25s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 34px rgba(0,0,0,.13);
    }

.product-card-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.product-card-body {
    padding: 16px;
}

    .product-card-body h3 {
        margin: 0 0 8px;
        font-size: 16px;
        font-weight: 900;
        line-height: 1.25;
    }

    .product-card-body p {
        margin: 0;
        line-height: 1.5;
        color: #555;
        font-size: 13.5px;
    }

/* Optional theme variants */
.product-tab.fanuc.active,
.product-tab.fanuc:hover {
    color: #f7c600;
}

    .product-tab.fanuc.active::after {
        background: #f7c600;
    }

.product-tab.siemens.active,
.product-tab.siemens:hover {
    color: #00b3b3;
}

    .product-tab.siemens.active::after {
        background: #00b3b3;
    }

/* Responsive */
@media (max-width: 900px) {
    .product-page-section {
        padding: 20px 18px 30px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card-image img {
        height: 190px;
    }

    .product-tabs {
        top: 0;
    }
}


/* =========================
   PRODUCT DETAIL TABS PAGE
========================= */

.product-detail-tabs-section {
    padding: 28px 24px 40px;
}

.product-detail-tabs-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.product-detail-tabs {
    position: sticky;
    top: var(--header-h, 96px);
    background: #fff;
    z-index: 40;
    padding: 10px 0 8px;
    border-bottom: 2px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-detail-tab {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 800;
    color: #222;
    position: relative;
    white-space: nowrap;
    transition: .25s ease;
}

    .product-detail-tab:hover {
        color: #00b3b3;
    }

    .product-detail-tab.active {
        color: #00b3b3;
    }

        .product-detail-tab.active::after {
            content: "";
            position: absolute;
            left: 12px;
            right: 12px;
            bottom: -10px;
            height: 3px;
            background: #00b3b3;
        }

    .product-detail-tab.fanuc.active,
    .product-detail-tab.fanuc:hover {
        color: #f7c600;
    }

        .product-detail-tab.fanuc.active::after {
            background: #f7c600;
        }

    .product-detail-tab.siemens.active,
    .product-detail-tab.siemens:hover {
        color: #00b3b3;
    }

        .product-detail-tab.siemens.active::after {
            background: #00b3b3;
        }

.product-detail-panels {
    margin: 0;
    padding: 0;
}

.product-detail-panel {
    display: none;
}

    .product-detail-panel.active {
        display: block;
    }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.product-detail-image {
    background: #f4f6f8;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

    .product-detail-image img {
        width: 100%;
        max-height: 420px;
        display: block;
        border-radius: 14px;
        object-fit: contain;
    }

.product-detail-content h2 {
    font-size: 32px;
    margin-bottom: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.product-detail-content p {
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 16px;
    color: #555;
}

.product-detail-features {
    list-style: none;
    padding: 0;
    margin: 14px 0 18px;
}

    .product-detail-features li {
        margin-bottom: 8px;
        font-size: 14px;
        color: #444;
    }

@media (max-width: 980px) {
    .product-detail-tabs-section {
        padding: 22px 18px 32px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .product-detail-tabs {
        top: 0;
    }

    .product-detail-image {
        padding: 16px;
    }

        .product-detail-image img {
            max-height: 320px;
        }

    .product-detail-content h2 {
        font-size: 28px;
    }

    .product-detail-content p {
        font-size: 15px;
    }
}