/* =========================================================
   YELLOW OCEAN - MASTER CORPORATE THEME (OPTIMIZED)
   ========================================================= */

:root { 
    --primary-blue: #003366; 
    --hover-blue: #005599; 
    --light-bg: #f4f7f9; 
    --text-color: #333; 
    --white: #ffffff;
    --highlight-bg: #fff8e1;
    --highlight-border: #ffd54f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Segoe UI', Arial, sans-serif; background: var(--light-bg); color: var(--text-color); line-height: 1.6; }

.container { width: 95%; max-width: 1450px; margin: auto; }

/* --- HEADER & NAVIGATION --- */
.main-header { background: var(--white); padding: 15px 0; border-bottom: 2px solid #eee; width: 100%; }
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo img { height: 50px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-blue); }

/* --- TRADEMARK HIGHLIGHT --- */
.trademark-box { 
    margin: 20px auto; padding: 20px; background: var(--highlight-bg); 
    border: 1px solid var(--highlight-border); border-radius: 10px; 
    display: flex; align-items: center; gap: 20px; 
}

/* --- CATEGORY TABS (GRID SYSTEM) --- */
.category-tabs { 
    display: grid !important; grid-template-columns: repeat(4, 1fr) !important; 
    gap: 20px !important; padding: 20px 0 !important; width: 100% !important; 
}
.cat-card { 
    display: flex !important; flex-direction: column !important; align-items: center !important; 
    text-decoration: none !important; color: var(--text-color) !important; 
    background: #ffffff !important; padding: 15px !important; border-radius: 10px !important; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important; transition: 0.3s !important; 
}
.cat-card:hover { transform: translateY(-5px); }
.cat-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.cat-card span { font-weight: bold; }

/* --- HERO & GRID --- */
.hero-section { background: var(--primary-blue); padding: 80px 0; text-align: center; color: white; }
.machine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; margin-top: 30px; }
.machine-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.machine-image img { width: 100%; height: 250px; object-fit: cover; }
.machine-content { padding: 20px; }
.view-btn { display: block; margin-top: 15px; background: var(--primary-blue); color: var(--white); text-decoration: none; padding: 10px; text-align: center; border-radius: 6px; font-weight: bold; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) { .category-tabs { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 768px) { .category-tabs { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .category-tabs { grid-template-columns: 1fr !important; } }

/* FORCE IMAGE CONSISTENCY */
.machine-card img, 
.cat-card img { 
    width: 100% !important; 
    height: 200px !important; 
    object-fit: cover !important; /* This prevents stretching */
    display: block !important;
}
/* Fix for Product Page Images */
.product-featured-image { 
    max-height: 400px; 
    object-fit: contain; 
    width: 100%; 
}

/* FORCE RESET - ENSURE UNIFORM IMAGES */
.machine-card img, 
.cat-card img { 
    width: 100% !important; 
    height: 200px !important; 
    object-fit: cover !important; 
    display: block !important;
}

/* Fix visibility */
.nav-links a { color: #333 !important; font-weight: 600; text-decoration: none; }
.nav-links a:hover { color: var(--primary-blue) !important; }

/* Register Button Styling */
.register-btn { 
    background: var(--primary-blue) !important; 
    color: white!important; 
    padding: 10px 20px !important; 
    border-radius: 5px !important; 
}

/* Force the header container to hold items */
.header-content {
    display: flex !important;
    flex-wrap: nowrap !important; /* Prevents wrapping to new lines */
    align-items: center !important;
    justify-content: space-between !important;
}

/* Force links to stay on one line */
.nav-links {
    flex-grow: 1 !important;
    justify-content: center !important;
    gap: 25px !important;
}

/* Ensure Logo doesn't shrink */
.logo { flex-shrink: 0; }

/* Ensure Auth links don't shrink */
.nav-auth { flex-shrink: 0; }