/**
 * Ramesia Design System AIO v1.0
 * Layer: Responsive
 * Mode: Private Preview
 * Breakpoints:
 * Mobile  <= 549px
 * Tablet  <= 849px
 * Desktop >= 850px
 * Wide    >= 1280px
 */

/* =========================================================
   RESPONSIVE UTILITIES
   ========================================================= */

body.ramesia-ds-preview .rm-grid {
    display: grid;
    gap: var(--rm-space-6);
}

body.ramesia-ds-preview .rm-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.ramesia-ds-preview .rm-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.ramesia-ds-preview .rm-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.ramesia-ds-preview .rm-flex {
    display: flex;
    gap: var(--rm-space-4);
}

body.ramesia-ds-preview .rm-flex--center {
    align-items: center;
}

body.ramesia-ds-preview .rm-flex--between {
    align-items: center;
    justify-content: space-between;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 849px) {

    body.ramesia-ds-preview .rm-grid--3,
    body.ramesia-ds-preview .rm-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.ramesia-ds-preview .product-small .box-text {
        padding: 16px;
    }

    body.ramesia-ds-preview.single-product .product-main {
        padding-top: 40px;
        padding-bottom: 64px;
    }

    body.ramesia-ds-preview .cart_totals,
    body.ramesia-ds-preview .woocommerce-checkout-review-order {
        padding: 22px;
    }

    body.ramesia-ds-preview .woocommerce table.shop_table td,
    body.ramesia-ds-preview .woocommerce table.shop_table th {
        padding: 12px 14px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 549px) {

    body.ramesia-ds-preview .rm-grid,
    body.ramesia-ds-preview .rm-grid--2,
    body.ramesia-ds-preview .rm-grid--3,
    body.ramesia-ds-preview .rm-grid--4 {
        grid-template-columns: 1fr;
        gap: var(--rm-space-4);
    }

    body.ramesia-ds-preview .rm-stack-mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: var(--rm-space-3);
    }

    body.ramesia-ds-preview .rm-stack-mobile > .button,
    body.ramesia-ds-preview .rm-stack-mobile > .rm-btn {
        width: 100%;
    }

    body.ramesia-ds-preview .product-small .box {
        border-radius: var(--rm-radius-card);
    }

    body.ramesia-ds-preview .product-small .box-text {
        padding: 14px;
    }

    body.ramesia-ds-preview .product-small .product-title {
        font-size: 15px;
        line-height: 1.4;
    }

    body.ramesia-ds-preview .product-small .price {
        font-size: 15px;
    }

    body.ramesia-ds-preview.single-product .product-main {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    body.ramesia-ds-preview.single-product .product-info {
        padding-top: 24px;
    }

    body.ramesia-ds-preview.single-product .product-info .price {
        margin-block: 12px;
        font-size: 22px;
    }

    body.ramesia-ds-preview .quantity,
    body.ramesia-ds-preview .quantity input.qty {
        min-height: var(--rm-target-min);
    }

    body.ramesia-ds-preview .woocommerce-message,
    body.ramesia-ds-preview .woocommerce-info,
    body.ramesia-ds-preview .woocommerce-error {
        padding: 14px;
        border-radius: var(--rm-radius-control);
    }

    body.ramesia-ds-preview .woocommerce table.shop_table td,
    body.ramesia-ds-preview .woocommerce table.shop_table th {
        padding: 12px;
    }

    body.ramesia-ds-preview .cart_totals,
    body.ramesia-ds-preview .woocommerce-checkout-review-order {
        padding: 18px;
        border-radius: var(--rm-radius-card);
    }

    body.ramesia-ds-preview .form-row {
        margin-bottom: 16px;
    }

    body.ramesia-ds-preview input[type="text"],
    body.ramesia-ds-preview input[type="email"],
    body.ramesia-ds-preview input[type="tel"],
    body.ramesia-ds-preview input[type="url"],
    body.ramesia-ds-preview input[type="password"],
    body.ramesia-ds-preview input[type="search"],
    body.ramesia-ds-preview input[type="number"],
    body.ramesia-ds-preview input[type="date"],
    body.ramesia-ds-preview input[type="time"],
    body.ramesia-ds-preview select,
    body.ramesia-ds-preview textarea {
        font-size: 16px;
    }
}

/* =========================================================
   WIDE DESKTOP
   ========================================================= */

@media (min-width: 1280px) {

    body.ramesia-ds-preview .product-small .box-text {
        padding: 20px;
    }

    body.ramesia-ds-preview.single-product .product-main {
        padding-top: 64px;
        padding-bottom: 80px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    body.ramesia-ds-preview .product-small .box,
    body.ramesia-ds-preview .product-small .box-image img {
        transition: none !important;
        transform: none !important;
    }
}
