/* Mobile Styles - Max width 767px */

.container {
    padding: 0 16px;
}

.header-inner {
    flex-wrap: wrap;
}

.mobile-menu-toggle {
    display: block !important;
    order: 2;
}

.site-logo {
    order: 1;
}

.site-logo .custom-logo-link {
    display: inline-block;
    max-width: 150px;
}

.site-logo .custom-logo {
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 50px;
    object-fit: contain;
}

.main-navigation {
    display: none;
    order: 4;
    width: 100%;
    margin-top: 16px;
}

.main-navigation.active {
    display: block;
}

.main-navigation ul {
    flex-direction: column;
    width: 100%;
}

.header-cta-button {
    order: 3;
    margin-left: auto;
}

.layout-with-sidebars {
    display: block;
}

.sidebar {
    width: 100%;
}

.sidebar-left {
    display: none;
}

.sidebar-left.active {
    display: block;
}

.sidebar-right {
    display: none;
}

.sidebar-right.active {
    display: block;
}

.main-content {
    width: 100%;
}

.sidebar-toggle {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: white;
    border: none;
    margin-bottom: 16px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
}


.sidebar-post .sidebar-widget {
    margin-bottom: 12px;
}

.sidebar-post-stats {
    flex-direction: row !important;
    gap: 8px !important;
}

.sidebar-post-item {
    flex-direction: row;
}

.sidebar-post-thumb {
    width: 50px;
    height: 50px;
}

.colorpage-grid,
.featured-grid,
.search-results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.product-grid .product-card {
    width: 100%;
    margin: 0;
    padding: 0;
}

.product-grid .product-card img {
    width: 100%;
    height: auto;
    display: block;
}

.product-grid .product-card h4 {
    padding: 8px;
}

.product-grid .product-card:nth-child(n+3) {
    display: none;
}

.category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.search-input-wrapper {
    flex-direction: column;
}

.search-field {
    width: 100%;
}

.popular-searches {
    flex-wrap: wrap;
}

.colorpage-card-actions {
    flex-direction: column;
    gap: 8px;
}

.colorpage-card-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.product-content-wrapper {
    flex-direction: column;
}

.footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
}
