* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background: #f2f2f2;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* ===== Header (same as index.css) ===== */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    height: 70px;
}

.logo {
    width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.logo a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav {
    margin-left: auto;
}

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-size: 19px;
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e60000;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: #e60000;
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active {
    color: #e60000;
}

.nav a.active::after {
    width: 100%;
}

/* ===== Mega Menu (same as index.css) ===== */
.nav-dropdown {
    display: inline-block;
    position: relative;
    margin-left: 20px;
}

.nav-dropdown-trigger {
    margin-left: 0 !important;
    cursor: pointer;
}

.mega-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #e60000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 200;
    padding: 30px 0 35px;
}

.nav-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-trigger {
    color: #e60000;
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
    width: 100%;
}

.mega-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.mega-col {
    display: flex;
    flex-direction: column;
}

.mega-img {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.mega-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.mega-col:hover .mega-img img {
    transform: scale(1.05);
}

.mega-cat-title {
    font-size: 16px;
    font-weight: 800;
    color: #222;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 10px;
}

.mega-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e60000, #ff6666);
    border-radius: 1px;
    margin-bottom: 12px;
}

.mega-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-links a {
    margin-left: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #555 !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    padding: 2px 0;
}

.mega-links a::after {
    display: none !important;
}

.mega-links a:hover {
    color: #e60000 !important;
    padding-left: 5px;
}

/* ===== Section Common ===== */
.section {
    background: #fff;
    padding: 60px 0;
}

/* ===== 1. Category Banner ===== */
.cat-banner {
    position: relative;
    overflow: hidden;
    background: #000;
}

.cat-banner-slider {
    display: grid;
}

.cat-banner-slider .slide {
    grid-area: 1 / 1;
    width: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1s ease;
}

.cat-banner-slider .slide-link {
    grid-area: 1 / 1;
    width: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1s ease;
    text-decoration: none;
}

.cat-banner-slider .slide-link img {
    width: 100%;
    display: block;
}

.cat-banner-slider .slide.active,
.cat-banner-slider .slide-link.active {
    opacity: 1;
}

.cat-banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.cat-banner-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cat-banner-dots .dot:hover {
    transform: scale(1.3);
}

.cat-banner-dots .dot.active {
    background: #fff;
}

/* ===== 2. Breadcrumb ===== */
.breadcrumb-bar {
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}

.breadcrumb-bar .container {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #999;
}

.breadcrumb-bar a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-bar a:hover {
    color: #e60000;
}

.breadcrumb-sep {
    margin: 0 10px;
    color: #ccc;
    font-size: 16px;
}

.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

/* ===== 3. Category Title ===== */
.cat-title-section {
    padding: 60px 0 30px;
    background: #fff;
}

.cat-main-title {
    text-align: center;
    font-size: 40px;
    font-weight: 900;
    color: #111;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 20px;
}

.cat-main-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #e60000, #ff6666);
    border-radius: 2px;
    margin: 18px auto 0;
}

/* ===== 4. Product Gallery ===== */
.cat-gallery-section {
    padding: 20px 0 60px;
    background: #fff;
}

.cat-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
}

a.cat-gallery-item {
    text-decoration: none;
    cursor: pointer;
}

.cat-gallery-item {
    width: 500px;
    height: 500px;
    background: #f8f8f8;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.cat-gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== 5. Category Description ===== */
.cat-desc-section {
    padding: 50px 0;
    background: #f8f8f8;
}

.cat-desc-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cat-desc-inner p {
    font-size: 18px;
    line-height: 2;
    color: #333;
    margin-bottom: 16px;
}

.cat-desc-inner p:last-child {
    margin-bottom: 0;
}

/* ===== 6. Product Cards Grid ===== */
.cat-products-section {
    padding: 80px 0;
    background: #fff;
}

.cat-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.cat-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.cat-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

a.cat-product-img {
    display: flex;
    text-decoration: none;
}

.cat-product-img {
    width: 100%;
    height: 260px;
    background: #f8f8f8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
    padding: 20px;
}

.cat-product-name {
    text-decoration: none;
    color: inherit;
}

.cat-product-card:hover .cat-product-img img {
    transform: scale(1.08);
}

.cat-product-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cat-product-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cat-product-card:hover .cat-product-body h3 {
    color: #e60000;
}

.cat-product-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
    flex: 1;
}

.btn-inquiry-now {
    display: block;
    text-align: center;
    background: transparent;
    color: #e60000;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #e60000;
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-inquiry-now:hover {
    background: #e60000;
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ===== Footer (same as index.css) ===== */
.footer {
    background: #000;
    color: #fff;
    padding: 60px 0 0;
    width: 100%;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h3 {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: capitalize;
    position: relative;
    padding-left: 20px;
}

.footer-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background-color: #e60000;
}

.footer-section p {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.footer-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #fff;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4d4;
}

.footer-section .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #fff;
    font-size: 14px;
}

.footer-section .contact-item .icon-wrapper {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.footer-section .contact-item svg {
    width: 14px;
    height: 14px;
    fill: #fff;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid #e60000;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* ===== Sidebar (same as index.css) ===== */
.sidebar-actions {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    width: 60px;
    background-color: rgba(158, 158, 158, 0.85);
    border-radius: 8px 0 0 8px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.side-item-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.side-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 50px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.side-item svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    transition: fill 0.3s ease;
}

.hover-panel {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2b5797;
    border-radius: 30px;
    padding: 12px 70px 12px 25px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    min-width: 200px;
}

.hover-panel-text {
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 1px;
}

.hover-panel-image {
    padding: 15px 70px 15px 15px;
    border-radius: 20px 30px 20px 20px;
}

.hover-panel-image img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
}

.side-item-wrapper:hover .hover-panel {
    opacity: 1;
    visibility: visible;
}

.side-item-wrapper:hover .side-item {
    background-color: #2b5797;
    border-radius: 0 8px 8px 0;
}

.side-item-wrapper:hover .side-item svg {
    fill: #fff;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
