:root {
    --primary-color: #0056b3;
    --secondary-color: #00a8e8;
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --border-color: #ddd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
    background: var(--light-bg);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-contact a {
    margin-left: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.nav-menu {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: block;
    padding: 15px 20px;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-menu>li>a:hover {
    color: var(--primary-color);
}

/* Header Banner - After Menu */
.header-banner {
    width: 100%;
    max-height: 550px;
    overflow: hidden;
}

.header-banner img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 800px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%;
    left: 0;
    padding: 20px;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 3px solid var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: grid;
}

.dropdown-group strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.dropdown-group a {
    display: block;
    padding: 5px 0;
    font-size: 0.9rem;
    color: #555;
}

.dropdown-group a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 15px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
}

@media (max-width: 992px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
    }

    .header-contact a {
        margin: 0 10px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu>li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        min-width: 100%;
        display: none;
        grid-template-columns: 1fr;
        padding: 10px 20px;
    }

    .dropdown.active .dropdown-content {
        display: grid;
    }

    .dropbtn::after {
        content: ' +';
        float: right;
    }

    .header-banner img {
        max-height: 300px;
    }
}

/* Footer */
.main-footer {
    background: #222;
    color: #fff;
    padding: 50px 0 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

.footer-bottom {
    background: #111;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: #777;
    font-size: 0.9rem;
}

/* Layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    margin-bottom: 30px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* Grid/List Toggle */
.view-toggle {
    margin-bottom: 20px;
    text-align: right;
}

.view-toggle button {
    padding: 8px 15px;
    cursor: pointer;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    margin-left: 5px;
}

.view-toggle button.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Product Grid - 250x250 images */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--white);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.product-image img {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
    min-height: 40px;
}

.btn-view {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.btn-view:hover {
    background: #004494;
}

/* Product List View */
.product-grid.list-view {
    grid-template-columns: 1fr;
}

.product-grid.list-view .product-card {
    display: flex;
    align-items: center;
    padding: 20px;
}

.product-grid.list-view .product-image {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    margin-right: 30px;
}

.product-grid.list-view .product-info {
    text-align: left;
    flex-grow: 1;
}

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
    align-items: start;
}

.detail-image {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    background: #fff;
}

.detail-info h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.detail-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-inquiry {
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-inquiry:hover {
    background: #128C7E;
}

.btn-contact {
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-grid.list-view .product-card {
        flex-direction: column;
        text-align: center;
    }

    .product-grid.list-view .product-image {
        margin: 0 auto 20px;
    }

    .product-grid.list-view .product-info {
        text-align: center;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}