/* ═════════════════════════════════════════════════
   TECJAC INDUSTRIAL — DESIGN SYSTEM v2.0
   ═════════════════════════════════════════════════ */

:root {
    --primary: #ff6600;
    --primary-dark: #e85d00;
    --navy: #001d51;
    --navy-light: #0a3a8a;
    --navy-deep: #001233;
    --dark-bg: #0a1628;
    --section-alt: #f5f7fa;
    --card-bg: #ffffff;
    --text-main: #1a1a2e;
    --text-muted: #6b7280;
    --border-color: #e8ecf1;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.4);
}

/* ═══ SECTION DEFAULTS ═══ */
section {
    padding: 0;
    /* Reset — each section controls its own padding */
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 48px;
    color: var(--navy);
    font-weight: 900;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--navy));
    margin: 14px auto 0;
    border-radius: 2px;
}

/* ═══ GENERIC GRID ═══ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* ═══ GENERIC CARD ═══ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}


/* ════════════════════════════════════════
   PRODUCT PAGE
   ════════════════════════════════════════ */
.product-container {
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    background: #fafbfc;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.product-image-main {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: #fff;
    padding: 20px;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.product-image-main:hover {
    transform: scale(1.02);
}

.product-thumbs {
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    background: var(--section-alt);
}

.thumb-item {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.thumb-item.active {
    border-color: var(--primary);
}

.product-info {
    padding-top: 16px;
}

.authorized-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.product-info h1,
.product-title {
    font-size: 2.2rem;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 900;
}

.product-sku {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.product-meta-item {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.product-meta-item strong {
    color: var(--navy);
    min-width: 100px;
}

.product-description-container {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-top: 40px;
    line-height: 1.8;
}

/* Specs Table */
.specs-table {
    width: 100%;
    margin-top: 40px;
    border-collapse: collapse;
}

.specs-table th {
    text-align: left;
    padding: 14px 16px;
    background: var(--section-alt);
    color: var(--navy);
    font-weight: 800;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--primary);
}

.specs-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.specs-table tr:hover {
    background: var(--section-alt);
}

.mobile-search-item {
    display: none;
    padding: 10px 15px;
}

@media (max-width: 992px) {
    .mobile-search-item {
        display: block;
    }

    .mobile-search-item input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
}


/* ════════════════════════════════════════
   CATALOG
   ════════════════════════════════════════ */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 32px 0;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    padding: 20px;
    background: #fafbfc;
    border-bottom: 2px solid var(--navy);
}

.product-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-sku {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.35;
}

.product-card-button {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 14px;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
}


/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-info h1,
    .product-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}