/*--------------------------------------------------------------
 * xTheme - Responsive Styles
 *--------------------------------------------------------------*/

/* Large Desktop */
@media (max-width: 1200px) {
    .xtheme-sidebar {
        width: 260px;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    /* Header */
    .site-header__nav {
        display: none;
    }

    .site-header__toggle {
        display: flex;
    }

    .site-header__actions {
        display: none;
    }

    .site-header__inner--centered {
        flex-direction: row;
    }

    /* Content */
    .xtheme-row {
        flex-direction: column;
    }

    .sidebar-left .xtheme-row {
        flex-direction: column;
    }

    .xtheme-sidebar {
        width: 100%;
    }

    /* Blog */
    .xtheme-posts--grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xtheme-posts--list .xtheme-card {
        flex-direction: column;
    }

    .xtheme-posts--list .xtheme-card__image {
        width: 100%;
    }

    /* Related posts */
    .xtheme-related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .site-footer__grid--4-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    /* WooCommerce */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .xtheme-container {
        padding: 0 15px;
    }

    .site-main {
        padding: 30px 0;
    }

    /* Top bar */
    .site-topbar__inner {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    /* Blog */
    .xtheme-posts--grid {
        grid-template-columns: 1fr;
    }

    .xtheme-card__image img {
        height: 200px;
    }

    /* Single */
    .xtheme-single__title {
        font-size: 1.6rem;
    }

    .xtheme-single__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .xtheme-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* Related posts */
    .xtheme-related-posts__grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .site-footer__grid--3-cols,
    .site-footer__grid--4-cols {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .site-footer__menu {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Comments */
    .xtheme-comment__body {
        flex-direction: column;
    }

    .xtheme-comment .children {
        padding-left: 15px;
    }

    /* Post navigation */
    .post-navigation .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    /* WooCommerce */
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    /* 404 */
    .xtheme-404__number {
        font-size: 5rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .xtheme-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .xtheme-card__content {
        padding: 15px;
    }

    .xtheme-card__meta {
        flex-direction: column;
        gap: 5px;
    }

    .site-footer__widgets {
        padding: 40px 0 20px;
    }

    /* Scroll top */
    .xtheme-scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    /* Search */
    .xtheme-search-result__inner {
        flex-direction: column;
    }

    .xtheme-search-result__image {
        width: 100%;
    }

    .xtheme-search-result__image img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

    /* Footer grid */
    .site-footer__grid--2-cols {
        grid-template-columns: 1fr;
    }

    /* Social share */
    .xtheme-social-share {
        flex-wrap: wrap;
    }

    .xtheme-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.9rem;
    }
}