/* =========================================================
   DUROMECH — products.css
   Styles for product detail pages
========================================================= */

/* ── Product Hero ── */
#product-hero {
    background: linear-gradient(135deg, #1C1917 55%, #2a1610);
    min-height: auto;
    display: block;
    padding-top: 7rem;
    padding-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}

/* ── Spec table ── */
.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #E7E5E4;
    border-radius: 1rem;
    overflow: hidden;
}
.spec-table th {
    background: #FFF7ED;
    padding: .85rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: .88rem;
    color: #1C1917;
    border-bottom: 1px solid #FED7AA;
}
.spec-table td {
    padding: .85rem 1.25rem;
    font-size: .92rem;
    color: #57534E;
    border-bottom: 1px solid #E7E5E4;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td { background: #FAFAF9; }

/* ── Product sidebar nav ── */
.product-sidebar {
    background: #fff;
    border: 1px solid #E7E5E4;
    border-radius: 1.25rem;
    padding: 1rem;
    position: sticky;
    top: 6rem;
}
.product-sidebar-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .85rem;
    border-radius: .65rem;
    color: #57534E;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.product-sidebar-link:hover,
.product-sidebar-link.active {
    background: #FFF7ED;
    color: #EA580C;
}
.product-sidebar-link.active {
    font-weight: 700;
}
.product-sidebar-link i {
    width: 16px;
    text-align: center;
    font-size: .7rem;
    color: #A8A29E;
    transition: color .2s;
}
.product-sidebar-link:hover i,
.product-sidebar-link.active i { color: #EA580C; }

/* ── Feature card (reuse from services with product-specific) ── */
.product-feature {
    background: #fff;
    border: 1px solid #E7E5E4;
    border-radius: 1.5rem;
    padding: 1.75rem;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.product-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.06);
    border-color: #FB923C;
}

/* ── Application badge ── */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem 1rem;
    border-radius: 9999px;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    font-size: .82rem;
    font-weight: 600;
    color: #EA580C;
}

/* ── Maintenance step ── */
.maint-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: #FAFAF9;
    border: 1px solid #E7E5E4;
    border-radius: 1rem;
    transition: border-color .2s;
}
.maint-step:hover { border-color: #FED7AA; }
.maint-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F97316, #EA580C);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: .8rem;
    flex-shrink: 0;
}

/* ── Light navbar override ── */
#navbar { background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); box-shadow: 0 2px 40px rgba(0,0,0,.08); }
#navbar::before { display: none; }
#navbar .logo-word-duro { color: #1C1917; }
#navbar .logo-word-mech { color: #EA580C; }
#navbar .logo-sup       { color: #EA580C; }
#navbar .ham-line       { background: #44403C; }
#navbar .nav-link       { color: #44403C; }
#navbar .phone-link     { color: #44403C; }
#navbar .phone-icon-wrap { background: #FFF7ED; }

/* ═══════════════════════════════════════════════════════════════
   UIVERSE.IO UPGRADES — products.css
═══════════════════════════════════════════════════════════════ */

/* ── Spring-Bounce App Badges ───────────────────────────────── */
.app-badge {
    cursor: default;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    overflow: hidden;
}
.app-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F97316, #EA580C);
    opacity: 0;
    transition: opacity .25s;
}
.app-badge:hover {
    border-color: transparent;
    color: #fff;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 24px rgba(234,88,12,.35);
}
.app-badge:hover::before { opacity: 1; }
.app-badge > * { position: relative; z-index: 1; }

/* ── Product Feature Card Glow ─────────────────────────────── */
.product-feature {
    position: relative;
    overflow: hidden;
}
.product-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,.5), transparent);
    opacity: 0;
    transition: opacity .35s;
}
.product-feature:hover::before { opacity: 1; }
.product-feature:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 48px rgba(234,88,12,.1) !important;
    border-color: rgba(249,115,22,.4) !important;
}

/* ── Spec Table Row Highlight ──────────────────────────────── */
.spec-table tr {
    transition: background .2s;
}
.spec-table tbody tr:hover td {
    background: linear-gradient(90deg, #FFF7ED 0%, #FFFBF6 100%) !important;
    border-color: #FED7AA;
}
.spec-table tbody tr:hover td:first-child {
    color: #EA580C;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE FIXES — products.css
═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    #product-hero { min-height: 34vh; padding-top: 4.5rem; }
    #product-hero h1 { font-size: clamp(1.6rem, 7vw, 2.5rem) !important; }
    .product-sidebar { display: none; }
    .grid.lg\:grid-cols-\[280px_1fr\] { grid-template-columns: 1fr !important; }
    .spec-table th, .spec-table td { padding: .6rem .85rem !important; font-size: .85rem !important; }
    .app-badge { font-size: .78rem !important; padding: .35rem .8rem !important; }
    .product-feature { padding: 1.25rem !important; }
}

/* ── PRODUCT PAGE ADDITIONAL FIXES ── */

/* Hero image wrapper — centered, max height */
#product-hero .relative.z-10 img {
    max-height: 340px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 24px 56px rgba(0,0,0,.5));
}

/* Breadcrumb spacing */
.breadcrumb {
    font-size: .82rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,.55);
}
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.breadcrumb a:hover { color: #F97316; }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: #F97316; font-weight: 600; }

/* Gallery / lightbox images — uniform height in grid */
.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.product-gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 1rem;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
}
.product-gallery-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

@media (max-width: 640px) {
    .product-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: .75rem;
    }
    .product-gallery-grid img { height: 130px; }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT PAGE LAYOUT — SIDEBAR + CONTENT GRID FIX
   Direct CSS (not Tailwind dependent) for reliable layout
═══════════════════════════════════════════════════════════════ */

/* ── Content section wrapper ── */
.product-content-section {
    padding: 5rem 0 7rem;
    background: #fff;
}

/* ── 2-column grid: sidebar (280px) + main content (1fr) ── */
.product-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 1023px) {
    .product-layout-grid {
        grid-template-columns: 1fr;
    }
    .product-sidebar-col {
        display: none;
    }
}

/* ── Sidebar box ── */
.product-sidebar {
    background: #fff;
    border: 1px solid #E7E5E4;
    border-radius: 1.25rem;
    padding: 1.25rem 1rem;
    position: sticky;
    top: 6rem;
    box-shadow: 0 2px 16px rgba(0,0,0,.04);
}

.product-sidebar .sidebar-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: .72rem;
    color: #A8A29E;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 0 .75rem;
    margin-bottom: 1rem;
    display: block;
}

.product-sidebar-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .85rem;
    border-radius: .75rem;
    color: #57534E;
    font-size: .875rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, color .2s, font-weight .1s;
    border-left: 3px solid transparent;
    margin-bottom: .15rem;
}
.product-sidebar-link:hover {
    background: #FFF7ED;
    color: #EA580C;
    border-left-color: #FED7AA;
}
.product-sidebar-link.active {
    background: #FFF7ED;
    color: #EA580C;
    font-weight: 700;
    border-left-color: #EA580C;
}
.product-sidebar-link i {
    font-size: .65rem;
    color: #A8A29E;
    transition: color .2s;
    flex-shrink: 0;
}
.product-sidebar-link:hover i,
.product-sidebar-link.active i {
    color: #EA580C;
}


/* ── About section images — proper height + shadow ── */
.product-layout-grid .grid img,
.product-layout-grid .lg\:grid-cols-2 img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    border: 1px solid #E7E5E4;
}

/* ── Product gallery grid — proper image sizing ── */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.product-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    cursor: pointer;
    border: 1px solid #E7E5E4;
    transition: transform .3s, box-shadow .3s;
}
.product-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
@media (max-width: 640px) {
    .product-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem;
    }
    .product-gallery img { height: 140px; }
}

