/* LShome Custom Styles */

:root {
    --ls-primary: #CD4631;
    --ls-primary-dark: #a83828;
    --ls-dark: #1a1a2e;
    --ls-light: #f8f9fa;
}

/* Blurred background image */
body {
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('../images/bg_main.webp') center/cover no-repeat;
    filter: blur(6px) brightness(0.55);
}

/* Semi-transparent content sections */
section.py-5 {
    background-color: rgba(255, 255, 255, 0.64);
}
section.py-5.bg-light {
    background-color: rgba(245, 246, 248, 0.66) !important;
}
section.py-5.bg-primary {
    background-color: rgb(194, 45, 34) !important;
}

/* Bootstrap overrides */
.bg-primary, .btn-primary {
    background-color: var(--ls-primary) !important;
    border-color: var(--ls-primary) !important;
}
.btn-primary:hover {
    background-color: var(--ls-primary-dark) !important;
    border-color: var(--ls-primary-dark) !important;
}
.text-primary {
    color: var(--ls-primary) !important;
}
.btn-outline-primary {
    color: var(--ls-primary) !important;
    border-color: var(--ls-primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--ls-primary) !important;
    border-color: var(--ls-primary) !important;
    color: #fff !important;
}
.navbar-dark .navbar-nav .nav-link.active {
    font-weight: 600;
}
.navbar.bg-primary {
    background-color: rgb(194, 45, 34) !important;
    border-color: rgb(194, 45, 34) !important;
}

/* Dropdown hover (desktop only) */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }
    .navbar .dropdown > .dropdown-menu {
        margin-top: 0;
    }
}

/* Dropdown menu - dark animated style */
.navbar .dropdown-menu {
    background: rgb(194, 45, 34);
    border: none;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    animation: dropSlide 0.25s ease-out;
    transform-origin: top center;
    overflow: hidden;
}
@keyframes dropSlide {
    from { opacity: 0; transform: translateY(-8px) scaleY(0.95); }
    to   { opacity: 1; transform: translateY(0) scaleY(1); }
}
.navbar .dropdown-menu .dropdown-item {
    color: rgba(255,255,255,0.7);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background: rgba(0,0,0,0.15);
    color: #fff;
    font-weight: 600;
    padding-left: 1.8rem;
}
.navbar .dropdown-menu .dropdown-divider {
    border-color: rgba(255,255,255,0.2);
}
.navbar-ci,
.navbar-wordmark {
    filter: invert(1);
    mix-blend-mode: screen;
}
.navbar-company-name {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
    text-align: justify;
    text-align-last: justify;
}
.navbar-brand:hover .navbar-ci,
.navbar-brand:hover .navbar-wordmark {
    opacity: 0.85;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(22,33,62,0.85) 100%);
    color: #fff;
    padding: 5rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
}
.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Product cards */
.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.product-card .card-img-top {
    height: 220px;
    object-fit: contain;
    padding: 1rem;
    background: #fff;
}
.product-card .badge {
    font-size: 0.75rem;
}

/* Category buttons */
.category-btn {
    background: var(--ls-dark);
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.category-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    color: #fff;
}
.category-btn-icon {
    padding: 1.5rem 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-btn-icon img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    filter: invert(1);
}
.category-btn-icon i {
    font-size: 4rem;
}
.category-btn-label {
    background: var(--ls-primary);
    padding: 0.6rem 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
}

/* History timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ls-primary);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ls-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--ls-primary);
}
.timeline-year {
    font-weight: 700;
    color: var(--ls-primary);
    font-size: 1.1rem;
}

/* Section headings */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--ls-primary);
    margin-top: 0.5rem;
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(22,33,62,0.85) 100%);
    color: #fff;
    padding: 3rem 0;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
}
.page-header .breadcrumb {
    margin-bottom: 0;
}
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

/* Spec table */
.spec-table th {
    background: var(--ls-light);
    width: 35%;
    font-weight: 600;
}

/* Filter buttons */
.filter-btn.active {
    background-color: var(--ls-primary);
    border-color: var(--ls-primary);
    color: #fff;
}

/* YouTube overlay */
#ytOverlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#ytPlayBtn {
    width: 68px;
    height: 48px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
#ytPlayBtn:hover {
    background: var(--ls-primary);
    transform: scale(1.1);
}

/* Detail page */
.product-detail-img {
    max-height: 500px;
    object-fit: contain;
}
.dimension-diagram-img {
    max-height: 700px;
    object-fit: contain;
}

/* Footer */
footer.bg-dark {
    background-color: rgba(26, 26, 46, 0.88) !important;
}
footer a:hover {
    color: var(--ls-primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
        min-height: auto;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .product-card .card-img-top {
        height: 160px;
        padding: 0.75rem;
    }
    .category-btn-icon {
        padding: 1rem 0.5rem 0.5rem;
    }
    .category-btn-icon img {
        max-height: 80px;
    }
    .category-btn-label {
        font-size: 0.8rem;
        padding: 0.5rem 0.3rem;
    }
    .page-header {
        padding: 2rem 0;
    }
    .page-header h1 {
        font-size: 1.6rem;
    }
    .product-detail-img {
        max-height: 300px;
    }
    .dimension-diagram-img {
        max-height: 400px;
    }
    .spec-table th {
        width: 40%;
        font-size: 0.85rem;
    }
    .spec-table td {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    .category-btn-icon img {
        max-height: 60px;
    }
    .category-btn-label {
        font-size: 0.75rem;
        padding: 0.4rem 0.2rem;
    }
    .product-card .card-img-top {
        height: 140px;
    }
}
