/* ==========================================================================
   MMD RUSSIA STEEL – PRODUCTS CATALOG STYLES (css/products.css)
   Technical specifications tables, master-detail layout, and bar marking diagrams
   ========================================================================== */

/* ─── PRODUCTS HERO & HEADER ─────────────────────────────────────── */
.products-hero {
    position: relative;
    background: linear-gradient(135deg, #070d18 0%, #0f1c33 60%, #172a4a 100%);
    padding: 75px 0 65px;
    color: #ffffff;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 91, 181, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 40%);
    pointer-events: none;
}

.products-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.products-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 16px;
}

.products-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.products-breadcrumb a:hover {
    color: #ffffff;
}

.products-main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.products-hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
}


/* ─── 2-COLUMN MASTER-DETAIL CATALOG LAYOUT (Direct Reference Match) */
.product-catalog-section {
    padding: 70px 0 90px;
    background-color: #ffffff;
}

.catalog-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: start;
}

/* Left Sidebar: Selector Cards */
.catalog-sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-products-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

.sidebar-product-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.sidebar-product-card:hover {
    background: #ffffff;
    border-color: #005bb5;
    box-shadow: 0 6px 20px rgba(0, 91, 181, 0.1);
}

.sidebar-product-card.active {
    background: #ffffff;
    border-color: #005bb5;
    box-shadow: 0 8px 24px rgba(0, 91, 181, 0.16);
}

.sidebar-product-card.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #005bb5;
    border-radius: 12px 0 0 12px;
}

.sidebar-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #b45309;
}

.sidebar-product-card.active .sidebar-card-title,
.sidebar-product-card:hover .sidebar-card-title {
    color: #005bb5;
}

.sidebar-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-card-badge {
    align-self: flex-end;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: #070d18;
    padding: 3px 10px;
    border-radius: 4px;
}

/* Sidebar Pagination controls */
.sidebar-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.catalog-page-btn {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #e2e8f0;
    color: #64748b;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.catalog-page-btn:hover {
    background: #ffffff;
    border-color: #005bb5;
    color: #005bb5;
}

.catalog-page-btn.active {
    background: #005bb5;
    border-color: #005bb5;
    color: #ffffff;
}


/* Right Main Details View */
.catalog-details-container {
    display: flex;
    flex-direction: column;
}

.details-header-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #005bb5;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.details-header-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: #005bb5;
    margin-top: 10px;
    border-radius: 2px;
}

.details-summary-p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    margin: 24px 0 30px;
}

.details-banner-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 45px;
}

.details-banner-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.details-specs-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #005bb5;
    margin-bottom: 25px;
}


/* ─── SPECIFICATION CARDS & DATA TABLES ─────────────────────────── */
.spec-card-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Gold Accent Frame Box (Inspired by Reference Image Overlay Lines) */
.spec-card-box::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 70px;
    height: 70px;
    border: 2px solid rgba(217, 119, 6, 0.4);
    border-radius: 4px;
    pointer-events: none;
}

.spec-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0f172a;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-card-title i {
    color: #005bb5;
}

/* Data Table Styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.spec-table th,
.spec-table td {
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
}

.spec-table th {
    background: #005bb5;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.spec-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.spec-table tbody tr:hover {
    background-color: #e6f0fa;
}


/* ─── BAR MARKING DIAGRAM BOX (Direct Reference Diagram Component) ─ */
.bar-marking-box {
    background: linear-gradient(135deg, #070d18 0%, #0f1c33 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 35px;
    position: relative;
    border-left: 6px solid #005bb5;
}

.bar-marking-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 20px;
}

.rebar-diagram-graphic {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.rebar-bar-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1e293b;
    padding: 18px 24px;
    border-radius: 8px;
    border: 2px dashed #38bdf8;
    font-family: 'Space Grotesk', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin-bottom: 20px;
}

.rebar-stamp {
    color: #38bdf8;
    border: 1px solid #38bdf8;
    padding: 2px 10px;
    border-radius: 4px;
}

.diagram-callouts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}

.callout-item {
    background: rgba(255, 255, 255, 0.06);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.callout-key {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.callout-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}


/* ─── RESPONSIVE BREAKPOINTS ────────────────────────────────────── */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .catalog-sidebar {
        max-width: 500px;
    }

    .diagram-callouts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: 50px 0;
    }

    .products-main-title {
        font-size: 2.5rem;
    }

    .details-banner-img {
        height: 220px;
    }

    .spec-card-box {
        padding: 20px 16px;
    }

    .diagram-callouts-grid {
        grid-template-columns: 1fr;
    }
}
