* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; display: flex; flex-direction: column; min-height: 100vh; }

/* HEADER */
.header { width: 100%; background-color: #2c3e50; color: #ffffff; position: relative; z-index: 1000;}

/* LINE 1 */
.line1 { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; }
.business-name { font-size: 1.5em; font-weight: bold; }
.faster-one-regular {
  font-family: "Faster One", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* ICONS */
.icons { display: flex; align-items: center; position: relative; }
.icon { margin-left: 20px; cursor: pointer; font-size: 1.5em; position: relative; }

/* LOGIN DROPDOWN */
.user-dropdown { position: relative; }
.user-dropdown-menu {
    display: none; position: absolute; top: 120%; right: 0;
    background-color: #ffffff; color: #000; border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); min-width: 150px; z-index: 1001;
}
.user-dropdown-menu a { display: block; padding: 10px 15px; text-decoration: none; color: #2c3e50; }
.user-dropdown-menu a:hover { background-color: #ecf0f1; }

/* LINE 2 (SEARCH) */
.line2 { display: flex; justify-content: center; align-items: center; background-color: #34495e; padding: 10px 20px; }
.search-container { width: 100%; max-width: 600px; }
.search-input { width: 100%; padding: 8px; border-radius: 25px; border: none; }

/* LINE 3 (CATEGORIES) */
.line3-wrapper { position: relative; background-color: #2c3e50; }
.line3 { display: flex; align-items: center; background-color: #34495e; padding: 10px 20px; }
.all-categories { display: flex; align-items: center; cursor: pointer; font-weight: bold; position: relative; }
.menu-icon { font-size: 1.5em; margin-right: 8px; }

/* MEGA MENU DROPDOWN */
.dropdown-mega { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: #ecf0f1; padding: 20px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 999; flex-wrap: wrap; justify-content: flex-start; }
.category-column { flex: 0 0 200px; margin: 0 15px; background: #fff; border-radius: 5px; padding-bottom: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.category-header h4 { margin: 0; padding: 12px 15px; background-color: #2c3e50; color: #fff; border-radius: 5px 5px 0 0; font-size: 15px; }
.subcategory-list { list-style: none; padding: 0; margin: 0; display: none; }
.category-column:hover .subcategory-list { display: block; }
.subcategory-item { position: relative; padding: 8px 15px; border-bottom: 1px solid #f1f1f1; font-size: 14px; }
.subcategory-item:last-child { border-bottom: none; }
.subcategory-item a { text-decoration: none; color: #333; display: block; }
.subcategory-item a:hover { color: #3498db; }
.itemtype-list { list-style: none; padding: 0; margin: 0; display: none; position: absolute; left: 100%; top: 0; width: 160px; background-color: #fff; border-radius: 5px; box-shadow: 2px 2px 8px rgba(0,0,0,0.1); border: 1px solid #ddd; }
.subcategory-item:hover .itemtype-list { display: block; }
.itemtype-list li a { padding: 8px 12px; font-size: 13px; color: #555; border-bottom: 1px solid #eee; display: block; text-decoration: none; }
.itemtype-list li:last-child a { border-bottom: none; }
.itemtype-list li a:hover { background-color: #f8f9fa; color: #2c3e50; }

/* CONTENT */
.content { padding: 20px; flex: 1; } /* ✅ flex: 1 pushes footer to bottom */

/* GLOBAL CARD GRID FIX */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card { border: 1px solid #ddd; background: white; padding: 0; border-radius: 8px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 200px; object-fit: cover; display: block; max-width: 100%; }

/* ================= FOOTER STYLES ================= */
.footer {
    background-color: #1e293b;
    color: #d1d5db;
    padding: 40px 20px 0 20px;
    margin-top: auto; /* Sticks to bottom */
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-col h4 {
    color: #ffffff;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 18px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
}
.footer-col ul li a:hover { color: #3b82f6; padding-left: 5px; }
.contact-item { margin-bottom: 15px; }
.contact-item strong { display: block; color: #3b82f6; margin-bottom: 4px; font-size: 15px; }
.contact-item p { margin: 0; color: #94a3b8; font-size: 14px; line-height: 1.5; }
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    background: #334155;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 14px;
}
.social-links a:hover { background: #3b82f6; }
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding: 15px 0;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 14px;
}

@media (max-width:768px){
  .line1 { flex-direction:column; align-items:flex-start; }
  .dropdown-mega { position: static; flex-direction: column; }
  .category-column { flex: 1 1 100%; margin-bottom: 10px; }
  .itemtype-list { position: static; width: 100%; box-shadow: none; border: none; background: #f9f9f9; margin-top: 5px; }
}