:root {
    --primary-color: #1a5276;
    --secondary-color: #e67e22;
    --accent-color: #2e86c1;
    --light-color: #f8f9f9;
    --dark-color: #2c3e50;
    --text-color: #333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f5f7fa;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: #f8f9fa;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}

.top-bar-left { display: flex; align-items: center; gap: 15px; }
.top-bar-right { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }

.top-bar a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.top-bar a:hover { color: var(--secondary-color); }

/* --- NAVIGATION --- */
.main-nav {
    background-color: var(--primary-color);
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.main-nav ul {
    display: flex;
    list-style: none;
    flex-wrap: nowrap;
    align-items: center;
}

.main-nav li { position: relative; }

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 20px 15px;
    display: block;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover { background-color: var(--accent-color); }

/* --- PRODUCT DROPDOWN (FIXED WIDTH) --- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    /* નામ આખું દેખાય તે માટે પહોળાઈ વધારી */
    min-width: 380px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 3px solid var(--secondary-color);
    border-radius: 0 0 4px 4px;
    left: 0;
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
    color: var(--dark-color) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    /* લખાણ એક જ લાઈનમાં રાખવા માટે */
    white-space: nowrap; 
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color) !important;
    padding-left: 25px;
}

/* --- GLOBAL PRESENCE (MEGA MENU 4 COLUMNS) --- */
.mega-dropdown { position: static !important; }

.mega-content {
    display: none;
    position: absolute;
    left: 5%;
    right: 5%;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 30px;
    border-top: 3px solid var(--secondary-color);
    border-radius: 0 0 8px 8px;
    max-height: 85vh;
    overflow-y: auto;
    /* 4 કોલમ ગ્રીડ સેટિંગ */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mega-dropdown:hover .mega-content { display: grid !important; }

.mega-column h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    text-transform: uppercase;
}

.mega-column a {
    color: var(--text-color) !important;
    padding: 6px 0;
    font-size: 0.88rem;
    font-weight: 500;
    display: block;
    text-decoration: none;
}

.mega-column a:hover {
    color: var(--secondary-color) !important;
    padding-left: 5px;
}

/* --- SEARCH BAR --- */
.search-item { flex-grow: 1; display: flex; justify-content: flex-end; }
#productSearch {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    width: 180px;
    transition: width 0.3s;
}
#productSearch:focus { width: 250px; background: white; color: black; outline: none; }

/* --- HERO & SECTIONS --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/banner/header.webp') center/cover;
    display: flex; align-items: center; justify-content: center; color: white; text-align: center;
}

section { padding: 80px 10%; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white; border-radius: 8px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column;
}

.product-img { height: 250px; display: flex; align-items: center; justify-content: center; padding: 15px; border-bottom: 1px solid #eee; }
.product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.product-content { padding: 20px; text-align: center; }
.product-link {
    background: var(--secondary-color); color: white !important;
    padding: 10px 20px; border-radius: 4px; text-decoration: none; font-weight: bold; display: inline-block;
}

/* --- FOOTER SECTION (NEW & FIXED) --- */
footer {
    background-color: var(--dark-color);
    color: #ffffff;
    padding: 60px 5% 0; /* આજુબાજુ 5% પેડિંગ */
    margin-top: 50px;
}

.footer-container {
    display: grid;
    /* ફુટર ની 4 કોલમ બનાવવા માટે */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    display: inline-block;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-column i {
    color: var(--secondary-color);
    margin-right: 12px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.footer-column a {
    color: #cccccc !important;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--secondary-color) !important;
    padding-left: 8px;
}

/* કોપીરાઈટ એરિયા */
.copyright {
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
    background-color: rgba(0,0,0,0.2); /* સહેજ અલગ દેખાય તે માટે */
}

/* મોબાઈલ માટે ફુટર સેટિંગ */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* મોબાઈલમાં એકની નીચે એક આવશે */
        text-align: left;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .main-nav ul { flex-direction: column; }
    .mega-content { grid-template-columns: 1fr; position: static; display: none !important; }
    .dropdown-content { position: static; min-width: 100%; }
}