/* 
 * qzhop.com styles.css
 * Inspired by Lazada.com.ph styling
 * Theme Name: Mega Store WooCommerce Pro Child
 * Description: Child theme for qzhop.com with Lazada-like design
 */

/* Reset and Base Styles (Lazada-like clean slate) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}

/* Typography (Mimicking Lazada’s clean, bold text) */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
p { margin-bottom: 10px; }

a {
    color: #f57224; /* Lazada’s orange primary color */
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #d65e1e;
}

#main > * {
    background-color: #ffffff;
    padding: 10px;
}

/* Centering Main Content (Your Requirement) */
#content {
    max-width: 1500px;
    margin: 0 auto;
    float: none !important; /* Override theme floats */
    padding: 20px 0;
}

/* Child Containers (Bootstrap-compatible, Lazada-like) */
#content .container,
#content .container-fluid {
    max-width: 1500px;
    margin: 0 auto;
    float: none !important;
    padding-left: 15px;
    padding-right: 15px;
}

/* Header (Lazada-like sticky header with search) */
.header-menu,
#site-navigation {
    max-width: none;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#site-navigation .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}

#site-navigation .search-form {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 20px;
}

#site-navigation .search-form input[type="search"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#site-navigation .search-form button {
    background-color: #f57224;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

#site-navigation .search-form button:hover {
    background-color: #d65e1e;
}

.sidebar-area {
    max-width: 1500px;
    padding: 10px;
    background-color: #fff;
    padding: 10px;
    float: none;
    margin-left:auto;
    margin-right:auto;
}

/* Footer (Lazada-like multi-column footer) */
.footer-area {
    max-width: none;
    width: 100%;
    background-color: #f5f5f5;
    padding: 40px 0;
    color: #666;
}

.footer-area .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.footer-area h4 {
    font-size: 18px;
    color: #333;
}

.footer-area ul {
    list-style: none;
}

.footer-area ul li {
    margin-bottom: 10px;
}

.footer-area ul li a {
    color: #666;
    font-size: 14px;
}

.footer-area ul li a:hover {
    color: #f57224;
}

/* Buttons (Lazada-like call-to-action buttons) */
button, .button, input[type="submit"] {
    background-color: #f57224;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover, .button:hover, input[type="submit"]:hover {
    background-color: #d65e1e;
}

/* Product Grid (For future product cards, Lazada-like) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.product-card .price {
    color: #f57224;
    font-size: 18px;
    font-weight: 700;
}

/* Responsive Design (Lazada-like mobile-first) */
@media (max-width: 768px) {
    #content {
        padding: 10px 0;
    }

    #content .container,
    #content .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }

    #site-navigation .container {
        flex-direction: column;
        padding: 10px;
    }

    #site-navigation .search-form {
        margin: 10px 0;
        max-width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .footer-area .container {
        grid-template-columns: 1fr;
    }

    .product-card h3 {
        font-size: 10px;
    }

    .product-card .price {
        font-size: 10px;
    }
}

.gt_float_switcher img {
    width: 20px !important;
}

.gt_float_switcher .gt-selected .gt-current-lang {
    padding: 1px 4px !important;
}

@media (max-width: 768px) {
    .header-menu {
        position: relative; /* Non-sticky, scrolls with page */
        width: 100%;
        background-color: #ffffff; /* Maintain background */
    }
}

/* Ensure desktop behavior (if sticky is desired on larger screens) */
@media (min-width: 769px) {
    .header-menu {
        position: sticky; /* Or fixed, per your theme's fix-sticky class */
        top: 0;
        z-index: 1000;
        background-color: #ffffff;
    }
}