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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
}

/* Top Bar */
.top-bar {
    background: #125170;
    color: #e2e8f0;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
}

.top-left {
    display: flex;
    gap: 1.5rem;
}

.top-left div i,
.top-right a i {
    margin-right: 0.5rem;
}

.top-right {
    display: flex;
    gap: 1.5rem;
}

.top-right a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s;
}

.top-right a:hover {
    color: #f97316;
}

/* Navbar */
.navbar {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #f97316;
}

.logo i {
    font-size: 1.5rem;
}

.logo img{
	height: 56px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #164D6B;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #f97316;
}

.cta-btn {
    background: #77C3B7;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn:hover {
    background: #B0D4A8;
}


/* Bento Grid */
/* bento grid banner */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    transition: 0.2s;
    border: 1px solid #eef2f6;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(145deg, #164D6B, #164D6B), url('///https://placehold.co/800x600/1e2a44/white?text=⚙️+Heavy+Parts');
    color: white;
    background-blend-mode: overlay;
}

.bento-item.medium {
    background: linear-gradient(145deg, #ae4e3b, #faa05a), url('https://placehold.co/600x400/ae4e3b/white?text=🔩+Engine');
    color: white;
}

.bento-item.small {
    background: #ffffff;
}

.bento-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bento-item p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.bento-btn {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.6);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.white-link {
    color: #ae4e3b;
    background: white;
    border: none;
    color: #0f172a;
}


/* Section Header */
.section-header {
    text-align: center;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #64748b;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card,
.product-card,
.post-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover,
.product-card:hover,
.post-card:hover {
    transform: translateY(0px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-card img,
.product-card img,
.post-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.category-card h4,
.product-card h4,
.post-card h4 {
    padding: 1rem;
    font-size: 1.125rem;
}

.product-card {
    position: relative;
}

.tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #f97316;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.rating {
    padding: 0 1rem;
    color: #fbbf24;
    font-size: 0.875rem;
}

.price {
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: #f97316;
}

.old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.post-meta {
    padding: 1rem 1rem 0;
    color: #64748b;
    font-size: 0.875rem;
}

/* Testimonial Grid */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.quote {
    margin: 1rem 0;
    font-style: italic;
    color: #334155;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #e2e8f0;
    margin-top: 0rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f97316;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: #cbd5e1;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #f97316;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Admin Panel Styles */
.admin-wrapper {
    display: flex;
}

.admin-sidebar {
    width: 220px;
    background: #125170;
    color: white;
    min-height: 100vh;
}

.admin-sidebar .logo {
    padding: 1.5rem;
    border-bottom: 1px solid #AFD2A6;
}


.admin-sidebar .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
}

.admin-sidebar .nav-menu a {
    display: block;
    padding: 0.75rem 2rem;
    color: #cbd5e1;
}

.admin-sidebar .nav-menu a:hover,
.admin-sidebar .nav-menu a.active {
    background: #1e293b;
    color: #AFD2A6;
}

.admin-content {
    flex: 1;
    padding: 1.5rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    background: #f1f5f9;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.btn-primary {
    background: #155473;
    color: white;
}

.btn-primary:hover {
    background: #76C2B5;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7EC1B8 0%, #7EC1B8 100%);
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0f172a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar,
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .bento-item.large {
        grid-column: span 1;
    }
    
    .search-wrapper {
        flex-direction: column;
		flex-wrap: wrap;
        border-radius: 0.5rem;
		text-align: center;
    }
    
    .search-filter select,
    .search-input-wrapper input,
    .search-wrapper button {
        width: 80%;
        border-radius: 0.5rem;
		text-align: center;
    }
    
    .search-wrapper button {
		margin: 0 auto;
    }
    
    .category-dropdown {
        justify-content: center;
    }
    
    .search-wrapper button {
        border-radius: 0.5rem;
    }
    
    .admin-wrapper {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        min-height: auto;
    }
    
    .admin-sidebar .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .admin-table {
        font-size: 0.875rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}