@media (max-width: 1100px) {
    .container,
    .header-inner {
        width: min(100% - 24px, var(--site-width, 1280px));
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 14px 0;
        min-height: auto;
    }

    .header-box {
        width: auto !important;
    }

    .header-left {
        flex: 1 1 100%;
        justify-content: center;
    }

    .header-center {
        flex: 1 1 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-right {
        flex: 1 1 100%;
        justify-content: center;
    }

    .main-layout,
    .main-layout.sidebar-right {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .main-layout.sidebar-right .sidebar {
        order: 0;
    }

    .sidebar {
        order: 0;
    }

    .content-area {
        order: 1;
    }

    .side-card {
        border-radius: 16px;
    }

    .footer-grid,
    .ad-2,
    .ad-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
        background: #eef6f1;
    }

    .container,
    .header-inner {
        width: min(100% - 18px, var(--site-width, 1280px));
    }

    .site-header {
        border-bottom-left-radius: 22px;
        border-bottom-right-radius: 22px;
        overflow: hidden;
    }

    .logo-box {
        justify-content: center;
        text-align: left;
    }

    .logo-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .logo-box strong {
        font-size: 20px;
    }

    .header-center {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .header-center a,
    .header-box a {
        background: rgba(255,255,255,.12);
        text-align: center;
        justify-content: center;
        padding: 10px;
        min-height: 42px;
    }

    .phone-btn {
        width: 100%;
    }

    .breadcrumb-row .container {
        padding: 10px 0;
    }

    .main-layout {
        padding: 16px 0;
    }

    .page-title {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 14px;
    }

    .page-title h1 {
        font-size: 23px;
    }

    .page-title p {
        font-size: 14px;
    }

    .product-list {
        gap: 14px;
    }

    .product-card {
        grid-template-columns: 1fr;
        padding: 12px;
        border-radius: 18px;
        gap: 13px;
    }

    .product-image {
        min-height: 210px;
        border-radius: 15px;
    }

    .product-info h2 {
        font-size: 21px;
    }

    .product-info p {
        font-size: 14px;
    }

    .tech-list {
        gap: 6px;
    }

    .tech-list li {
        padding: 9px;
        font-size: 14px;
    }

    .detail-btn,
    .form-btn {
        width: 100%;
    }

    .ad-row {
        padding-bottom: 18px;
    }

    .ad-box {
        min-height: 84px;
        border-radius: 16px;
    }

    .site-footer {
        border-top-left-radius: 22px;
        border-top-right-radius: 22px;
        padding: 24px 0;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .container,
    .header-inner {
        width: min(100% - 14px, var(--site-width, 1280px));
    }

    .header-inner {
        gap: 10px;
        padding: 12px 0;
    }

    .header-center {
        grid-template-columns: 1fr 1fr;
    }

    .header-center a,
    .header-box a {
        font-size: 14px;
        padding: 9px 8px;
        border-radius: 11px;
    }

    .side-card,
    .page-title,
    .product-card,
    .empty-box {
        box-shadow: 0 6px 16px rgba(15,45,31,.06);
    }

    .side-card {
        padding: 13px;
    }

    label,
    .side-card label {
        font-size: 12px;
    }

    input,
    select {
        min-height: 41px;
    }

    input[type="text"],
    input[type="search"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    input[type="tel"],
    input[type="url"],
    select,
    textarea {
        border-radius: 11px;
        padding: 9px 11px;
    }

    button,
    .side-card button {
        min-height: 42px;
    }

    .product-image {
        min-height: 185px;
    }

    .product-category {
        font-size: 12px;
    }

    .footer-grid {
        gap: 14px;
    }

    .site-footer h3 {
        font-size: 17px;
    }

    .site-footer p,
    .site-footer a {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .header-center {
        grid-template-columns: 1fr;
    }

    .logo-box {
        width: 100%;
    }

    .product-image {
        min-height: 165px;
    }

    .page-title h1 {
        font-size: 21px;
    }
}
