/*
Theme Name:  MagOne Child
Theme URI:   http://sneeit.com/
Description: A child theme of MagOne
Author:      Tien Nguyen
Author URI:  http://portfolio.sneeit.com
Template:    magone
Version:     1.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  magone
*/
/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
#content > .content-inner {
    margin-right: 0;
}
/* Archive Title */
.archive-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Category Menu */
.category-menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin-bottom: 50px;
}

.category-menu li {
    position: relative;
}

.category-menu a {
    text-decoration: none;
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 5px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
}

.category-menu a:hover {
    background: #0073aa;
    color: #fff;
}

/* Child categories */
.child-categories {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    flex-direction: column;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-menu li:hover > .child-categories {
    display: flex;
}

/* Filter Buttons */
.filters {
    margin-bottom: 30px;
    text-align: center;
}

.filter-btn {
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 8px 18px;
    background: #0073aa;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.filter-btn:hover {
    background: #005f7a;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image img {
    width: 100%;
    height: auto;
}

.product-title {
    font-size: 1.2rem;
    margin: 15px;
    font-weight: 600;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: #555;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination a {
    padding: 6px 12px;
    margin: 0 3px;
    background: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background: #0073aa;
    color: #fff;
}

/* Top white bar */
.ai-main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}

.ai-main-menu > li {
    position: relative;
    padding: 15px 5px;
}

.ai-main-menu > li > a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

/* Child submenu (black dropdown) hidden by default */
.ai-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    padding: 20px;
    list-style: none;
    min-width: 250px;
    z-index: 999;
}

/* Show dropdown on hover of parent */
.ai-main-menu > li:hover > .ai-submenu {
    display: block;
}

/* Each child item in black dropdown */
.ai-submenu li {
    margin-bottom: 15px; /* space between children */
}

.ai-submenu li a {
    color: #bbb;
    text-decoration: none;
    display: block;
    padding: 6px 10px;
    font-weight: bold;
}

.ai-submenu li a:hover {
    color: #fff;
    background: #333;
}

/* Grandchild always visible under child */
.ai-subsubmenu {
    display: block; /* always visible */
    list-style: none;
    padding-left: 20px; /* indent to differentiate from child */
    margin-top: 5px;     /* small gap above grandchild list */
	margin-left: 5px !important;
}

.ai-subsubmenu li {
    margin-bottom: 5px; /* gap between grandchild items */
}

.ai-subsubmenu li a {
    color: #ccc;
    padding: 4px 10px;
    font-weight: normal; /* differentiate visually from child */
}

.ai-subsubmenu li a:hover {
    color: #fff;
    background: #444;
}

/* Show dropdown on parent hover */
.ai-main-menu > li.ai-menu-item:hover > .ai-submenu {
    display: block;
}

/* Arrow only for items that have children */
.ai-main-menu > li.has-children > a::after {
    content: "▼";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #000;
}

/* Rotate arrow on hover */
.ai-main-menu > li.has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
    transition: transform 0.3s;
}

/* Add padding so arrow does not overlap text */
.ai-main-menu > li.ai-menu-item > a {
    position: relative;
    padding-right: 20px;
}

/* Style Home separately if needed */
.ai-main-menu > li.home > a {
    font-weight: bold;
    color: #000;
    text-decoration: none;
    padding: 15px 20px;
	background-color: #ff6600;
}

.ai-main-menu > li.home > a:hover {
    color: #fff;
    background: #222; /* matches dropdown hover */
}

#content{
	width: 100% !important;
}

.branding-logo{
	max-width:30%;
}

input.mailchimp-btn {
    padding: 4px;
    background: #ff3d00;
    color: #fff;
    border: 1px solid #d43401;
}