@media (max-width: 700px) {
    header {
        height: 88px;
    }

    #adminBtn {
        left: 14px;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 14px;
    }

    #logo {
        width: 66px;
        height: 66px;
    }

    h1 {
        font-size: 32px;
        margin: 18px auto;
    }

    #box {
        gap: 12px;
        padding: 12px;
    }

    .card {
        box-sizing: border-box;

        width: calc(50% - 12px);
        max-width: 170px;
        min-width: 130px;

        padding: 14px;
        border-radius: 22px;
    }

    .card img {
        width: 100%;
        height: 150px;

        object-fit: contain;
        object-position: center;

        border-radius: 18px;
    }

    .card p {
        font-size: 20px;
        margin-top: 12px;
    }

    #adminContent,
    #productContent,
    #categoryEditContent,
    #singleProductContent {
        width: calc(100% - 24px);
        margin: 18px auto;
        padding: 22px;
        border-radius: 20px;
    }

    #adminContent div {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    #adminContent input,
    #adminContent button {
        width: 100%;
    }

    .adminTableImg {
        width: 48px;
        height: 48px;

        object-fit: contain;
        object-position: center;
    }

    .counterBox {
        font-size: 22px;
        padding: 18px;
        border-radius: 16px;
        margin-bottom: 22px;
    }

    .actionButtons {
        flex-direction: column;
        gap: 8px;

        width: 100%;
    }

    .actionButtons button {
        width: 100%;
        height: 42px;
    }

    th:last-child,
    td:last-child {
        width: 120px;
    }

    #editCategoryForm {
        gap: 18px;
    }

    #editCategoryForm .productFormGrid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    #editCategoryForm .formLeft,
    #editCategoryForm .formRight {
        width: 100%;
        align-items: center;
    }

    #editCategoryForm input[type="text"],
    #editCategoryForm input[type="file"] {
        max-width: 100%;
    }

    .productFormGrid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .formRight {
        order: -1;
    }

    #imagePreview {
        width: 260px;
        height: 260px;

        object-fit: contain;
        object-position: center;
    }

    #singleProductContent #productImage {
        width: 280px;
        height: 280px;
    }

    #productDescription {
        padding: 20px;
        font-size: 18px;
        line-height: 1.6;
    }

    input,
    select,
    textarea,
    button {
        font-size: 18px;
    }

    input,
    select,
    textarea {
        padding: 15px 16px;
        border-radius: 14px;
    }

    textarea {
        min-height: 160px;
    }

    button {
        padding: 14px 18px;
        border-radius: 14px;
    }

    .submitBtn {
        width: 100%;
        min-width: unset;
        margin-top: 28px;
    }

    table {
        font-size: 16px;
    }

    th, td {
        padding: 14px 10px;
    }
}

@media (max-width: 380px) {
    header {
        height: 82px;
    }

    #adminBtn {
        padding: 10px 12px;
        font-size: 15px;
    }

    #logo {
        width: 60px;
        height: 60px;
    }

    .card {
        width: calc(50% - 28px);
        min-width: 130px;
        padding: 12px;
    }

    .card img {
        height: 130px;
    }

    .card p {
        font-size: 18px;
    }

    #imagePreview,
    #singleProductContent #productImage {
        width: 230px;
        height: 230px;
    }

    #productDescription {
        font-size: 17px;
    }

    .actionButtons button {
        height: 40px;
        font-size: 15px;
    }

    .counterBox {
        font-size: 19px;
        padding: 16px;
    }
}
