/* Lockout Tagout Section Stylesheet - Fill Frame & Single Viewport Fit */
.lockout-section-wrapper {
    width: 100%;
    padding: 12px 0;
    background-color: #f7f8f9;
    box-sizing: border-box;
    font-family: inherit;
}

.lockout-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 16px;
    align-items: stretch;
}

/* Left Banner Column */
.lockout-banner-col {
    flex: 0 0 36%;
    max-width: 36%;
    display: flex;
}

.lockout-banner-card {
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    display: flex;
}

.lockout-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Right Products Column */
.lockout-products-col {
    flex: 0 0 64%;
    max-width: 64%;
    display: flex;
}

.lockout-products-card {
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Tabs Navigation */
.lockout-tabs-nav {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0 0 8px 0;
    border-bottom: 2px solid #f0f0f0;
    overflow-x: auto;
    flex-shrink: 0;
}

.lockout-tab-btn {
    font-size: 14px;
    font-weight: 600;
    color: #444444;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    padding-bottom: 6px;
    transition: all 0.2s ease;
}

.lockout-tab-btn:hover {
    color: #70b200;
}

.lockout-tab-btn.active {
    color: #70b200;
    font-weight: 700;
}

.lockout-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #70b200;
    border-radius: 3px 3px 0 0;
}

/* Tab Panes */
.lockout-tab-pane {
    display: none;
    width: 100%;
}

.lockout-tab-pane.active {
    display: flex !important;
    flex: 1;
    flex-direction: column;
}

/* Product Grid 3 columns x 2 rows - Fills Height */
.lockout-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    flex: 1;
}

/* Individual Product Card - Fills Available Height */
.lockout-prod-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    height: 100%;
    box-sizing: border-box;
}

.lockout-prod-card:hover {
    border-color: #70b200;
    box-shadow: 0 3px 10px rgba(112, 178, 0, 0.15);
}

.lockout-badge-banchay {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: #70b200;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 5;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.lockout-prod-img-wrap {
    flex: 1;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    padding: 2px;
}

.lockout-prod-img-wrap img {
    max-height: 155px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.lockout-prod-title {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 6px 0;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    text-align: left;
}

.lockout-prod-title a {
    color: #222222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lockout-prod-title a:hover {
    color: #70b200;
}

.lockout-prod-action {
    width: 100%;
    margin-top: auto;
}

.lockout-btn-xem {
    background-color: #70b200;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 7px 10px;
    border-radius: 4px;
    text-decoration: none !important;
    display: block;
    width: 100%;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    line-height: 1.2;
}

.lockout-btn-xem:hover {
    background-color: #5c9400;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(112, 178, 0, 0.25);
}

/* Responsive Tablet & Mobile */
@media (max-width: 991px) {
    .lockout-container {
        flex-direction: column;
    }
    .lockout-banner-col,
    .lockout-products-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .lockout-banner-card {
        height: auto;
        max-height: 360px;
    }
    .lockout-grid-3col {
        grid-template-rows: auto;
    }
}

@media (max-width: 640px) {
    .lockout-grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .lockout-products-card {
        padding: 12px;
    }
    .lockout-tabs-nav {
        gap: 12px;
    }
    .lockout-tab-btn {
        font-size: 13px;
    }
}
