/* =========================================================
   CUSTOM RESPONSIVE CSS
   This file contains step-by-step responsive fixes for all pages.
========================================================= */

/* =========================================================
   1. HOMEPAGE (index.php) RESPONSIVENESS
========================================================= */

/* --- TABLET (max-width: 991.99px) --- */
@media (max-width: 991.99px) {

    /* Section Headings */
    .section_heading h3 {
        font-size: 28px;
    }

    /* Product Grid - Tablet */
    .product_item_2 .product_text .title {
        font-size: 1rem;
    }

    .product_item_2 .price .current-price {
        font-size: 1.1rem;
    }

    /* Promotional Banners */
    .add_banner_item {
        margin-bottom: 30px;
    }

    .add_banner_item_text h2 {
        font-size: 28px;
    }
}

/* --- MOBILE LANDSCAPE (max-width: 767.99px) --- */
@media (max-width: 767.99px) {

    /* Padding/Margin Utility Overrides for Mobile */
    .pt_100 {
        padding-top: 50px !important;
    }

    .pb_70 {
        padding-bottom: 35px !important;
    }

    .pb_90 {
        padding-bottom: 45px !important;
    }

    .mt_100 {
        margin-top: 50px !important;
    }

    /* Section Headings */
    .section_heading {
        margin-bottom: 25px !important;
        text-align: center;
    }

    .section_heading h5 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .section_heading h3 {
        font-size: 24px;
    }

    /* Product Grid - 2 columns */
    .col-6 {
        padding-left: 8px;
        padding-right: 8px;
    }

    .product_item_2 {
        padding: 10px;
        border-radius: 8px;
    }

    .product_item_2 .badge-wrapper .badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .product_item_2 .action-buttons a {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem;
    }

    /* Beauty Categories */
    .beauty_category_item {
        margin-bottom: 20px;
    }

    .beauty_category_item .img {
        margin: 0 auto 10px;
    }

    .beauty_category_item h4 {
        font-size: 14px;
    }

    /* Promotional Banners */
    .add_banner_item_text {
        padding: 30px 20px;
    }

    .add_banner_item_text h4 {
        font-size: 16px;
    }

    .add_banner_item_text h2 {
        font-size: 24px;
    }

    .add_banner_item_text .common_btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* --- MOBILE PORTRAIT (max-width: 575.99px) --- */
@media (max-width: 575.99px) {

    /* Product Cards Mobile Optimization */
    .product_item_2 .product_text .title {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .product_item_2 .rating {
        margin-bottom: 5px !important;
    }

    .product_item_2 .rating i {
        font-size: 10px;
    }

    .product_item_2 .rating span {
        font-size: 10px;
        display: none;
        /* Hide review count on very small screens to save space */
    }

    .product_item_2 .price {
        margin-bottom: 10px !important;
    }

    .product_item_2 .price .current-price {
        font-size: 0.95rem;
    }

    .product_item_2 .price del {
        font-size: 0.75rem;
    }

    .product_item_2 .common_btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        min-height: 30px !important;
    }

    .product_item_2 .common_btn i {
        font-size: 0.75rem;
        margin-right: 4px !important;
    }

    /* Banners */
    .add_banner_item_text h2 {
        font-size: 20px;
        line-height: 1.3;
    }

    /* View All Button */
    .view_all_btn {
        font-size: 14px;
        display: block;
        text-align: center;
        margin-top: -15px;
        margin-bottom: 25px;
    }
}

/* =========================================================
   2. SHOP & PRODUCT PAGES RESPONSIVENESS
========================================================= */

/* --- TABLET (max-width: 991.99px) --- */
@media (max-width: 991.99px) {

    /* Shop Filter Sidebar */
    .shop_filter_area {
        display: none;
        margin-bottom: 30px;
    }

    .shop_filter_area.show {
        display: block;
    }

    /* Product Details - Thumbnails */
    .thumbnails-wrapper {
        justify-content: center;
    }
}

/* --- MOBILE (max-width: 767.99px) --- */
@media (max-width: 767.99px) {

    /* Shop Sorting/Pagination */
    .product_page_top_button .row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .product_page_sorting {
        justify-content: center !important;
    }

    .category_stats .col-md-6:first-child {
        margin-bottom: 15px;
        text-align: center;
    }

    .category_stats .col-md-6:last-child {
        display: flex;
        justify-content: center;
    }

    /* Product Details Page */
    .shop_details_text {
        margin-top: 30px;
        text-align: center;
    }

    .shop_details_text .details_title {
        font-size: 24px;
    }

    .details_btn_area .row>div {
        margin-bottom: 10px;
    }

    .details_list_btn {
        justify-content: center;
    }

    /* Reviews Summary */
    .review_summary .col-md-3 {
        margin-bottom: 20px;
    }

    .shop_details_des_area .nav-pills {
        justify-content: center;
    }

    .shop_details_des_area .nav-pills .nav-item {
        margin: 5px;
    }

    /* List View Products */
    .product_list_item {
        flex-direction: column;
        text-align: center;
    }

    .product_list_item .product_img {
        margin-right: 0 !important;
        margin-bottom: 15px;
        width: 100% !important;
        max-width: 150px;
        margin-left: auto;
        margin-right: auto;
    }

    .product_list_item .actions {
        justify-content: center;
    }
}

/* --- MOBILE PORTRAIT (max-width: 575.99px) --- */
@media (max-width: 575.99px) {

    /* Product Quick Actions Mobile */
    .pagination_area .page-link {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        margin: 0 2px;
    }

    .details_single_variant ul {
        justify-content: center;
    }

    .details_qty_area .row>div {
        margin-bottom: 15px;
        text-align: center;
    }

    .details_qty_area .d-flex {
        justify-content: center;
    }

    /* Review Section */
    .single_review .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .single_review .reviewer_img {
        margin-right: 0 !important;
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
    }

    .single_review .d-flex.justify-content-between {
        flex-direction: column;
        gap: 5px;
    }
}

/* =========================================================
   3. CART & CHECKOUT PAGES RESPONSIVENESS
========================================================= */

@media (max-width: 575.99px) {


    /* Fix checkout options layout */
    .shipping_option_content,
    .payment_option_content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .payment_option_content {
        text-align: center;
        align-items: center;
    }

    .payment_option_content i {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
}

/* =========================================================
   4. BLOG, AUTH & OTHER PAGES
========================================================= */

@media (max-width: 991.99px) {

    /* Blog Sidebar Margin */
    .blog_details_right {
        margin-top: 40px;
    }
}

@media (max-width: 767.99px) {

    /* Blog Items */
    .blog_item {
        margin-bottom: 30px;
    }

    /* Blog Post Navigation */
    .blog_post_navigation {
        flex-direction: column;
        gap: 15px;
    }

    .blog_post_navigation a {
        width: 100%;
        text-align: center !important;
    }

    /* Author Box */
    .blog_author_box .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .author_img {
        margin-right: 0 !important;
        margin-bottom: 20px;
    }

    .author_social {
        justify-content: center;
        display: flex;
    }

    /* Authentication Pages (Sign in/Sign up) */
    .sign_in_form {
        padding: 30px 20px !important;
    }

    /* Dashboard */
    .dashboard_sidebar {
        margin-bottom: 30px;
    }

    .dashboard_content {
        padding: 20px !important;
    }
}

@media (max-width: 575.99px) {

    /* Blog Shear Area */
    .blog_shear_area {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    /* Comments */
    .blog_comment {
        flex-direction: column;
        text-align: center;
    }

    .blog_comment_img {
        margin: 0 auto 15px auto;
    }

    .quick-view-container h4 {
        margin-top: 20px !important;
    }
}

/* =========================================================
   5. STANDARD PAGES (ABOUT, CONTACT, POLICIES)
========================================================= */

@media (max-width: 767.99px) {

    /* Policy Pages */
    .policy_content {
        padding: 20px !important;
    }

    .policy_content h3 {
        font-size: 22px;
    }

    .policy_content h4 {
        font-size: 18px;
    }

    /* Contact Page */
    .contact_info {
        margin-bottom: 25px;
    }

    .contact_img {
        margin-bottom: 30px;
    }

    .contact_form {
        padding: 20px !important;
    }

    /* About Page */
    .about_us_img {
        margin-bottom: 30px;
    }

    .about_choose_text_box {
        padding: 20px !important;
    }

    /* General Spacing Overrides */
    .pt_75 {
        padding-top: 40px !important;
    }

    .pb_100 {
        padding-bottom: 50px !important;
    }

    .mt_65 {
        margin-top: 35px !important;
    }

    .pt_100 {
        padding-top: 50px !important;
    }
}

@media (max-width: 575.99px) {
    .policy_content {
        padding: 15px !important;
    }

    .policy_content h3 {
        font-size: 20px;
    }

    .contact_form h2 {
        font-size: 24px;
    }
}