/* =======================================================
   GLOBAL — Prevent horizontal overflow on all devices
========================================================== */

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100%;
}

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}


/* =======================================================
   RESPONSIVE — Large Tablet (max 1200px)
========================================================== */

@media (max-width: 1200px) {

    .section {
        padding: 40px 40px;
    }

    .section h2 {
        font-size: 30px;
    }

    .showroom {
        margin: 0 40px;
    }

    .category-products {
        grid-template-columns: repeat(3, 1fr);
    }

    .related.products ul.products,
    .up-sells ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
    }

    .categories-grid {
        gap: 24px;
    }

    .category-card {
        width: 220px;
        font-size: 18px;
    }

}


/* =======================================================
   RESPONSIVE — Tablet (max 1024px)
========================================================== */

@media (max-width: 1024px) {

    /*------- HEADER --------------*/

    .header-top {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        padding: 12px 30px;
        gap: 14px 20px;
    }

    .header-contact-left {
        grid-column: 1;
        grid-row: 1;
        gap: 14px;
        flex-wrap: wrap;
    }

    .logo {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
    }

    .header-contact-right {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
        white-space: normal;
        text-align: right;
        font-size: 12px;
    }

    .header-right {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: center;
        gap: 16px;
    }

    .header-contact-left a {
        font-size: 13px;
    }

    img.custom-logo {
        width: 170px;
    }

    .main-nav a {
        margin: 0 10px;
        font-size: 14px;
    }

    /*--------------- HERO ----------------------*/

    .hero {
        min-height: 550px;
        padding: 0 30px;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero p {
        margin: 15px 0 40px;
        font-size: clamp(16px, 3vw, 28px);
    }

    .hero .btn {
        padding: 12px 28px;
    }

    /*--------------- CLEARANCE -----------------*/

    .ms-clearance-section {
        padding: 60px 20px;
        margin-top: -120px;
    }

    .ms-clearance-wrapper {
        padding: 35px;
    }

    .ms-clearance-header h2 {
        font-size: 34px;
    }

    /*--------------- SECTIONS ------------------*/

    .section {
        padding: 40px 30px;
    }

    .best-sellers .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .image-wrap {
        height: 350px;
    }

    .section-title {
        margin-bottom: 25px;
    }

    .showroom {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0;
        margin: 0 20px;
    }

    .showroom-left {
        padding: 50px 35px;
        gap: 30px;
    }

    .showroom-right {
        height: 500px;
    }

    .showroom-right img {
        width: 100%;
        height: 100%;
    }

    .wws-section {
        padding: 60px 20px;
    }

    .wws-card {
        padding: 40px 30px;
    }

    .wws-save-badge {
        width: 100px;
        height: 100px;
        top: 25px;
        right: 25px;
    }

    .wws-title {
        font-size: 38px;
    }

    .wws-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .wws-hero {
        min-height: 420px;
    }

    .wws-product {
        --visible: 2;
    }

    .wws-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .aussie {
        padding: 80px 20px;
    }

    .aussie .top-title {
        margin-bottom: 60px;
    }

    .aussie .top-title h2 {
        font-size: 42px;
    }

    .aussie .top-title p {
        font-size: 16px;
    }

    .aussie .grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .aussie .badge {
        position: static;
        margin: 25px auto 0;
    }

    .categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .category img {
        height: 16rem;
    }

    .ergocraft-footer {
        padding: 50px 30px;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-divider {
        display: none;
    }

    .footer-bottom {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-copy {
        text-align: left;
    }

    /*--------------- ABOUT PAGE ----------------*/

    .about-block {
        grid-template-columns: 1fr;
        padding: 50px 30px;
        gap: 50px;
    }

    .about-hero {
        height: 360px;
        padding-top: 100px;
    }

    .about-hero h1 {
        font-size: 28px;
        padding: 0 20px;
    }

    /*--------------- SHOP / CATEGORY -------------*/

    .category-page {
        padding: 100px 20px 50px;
    }

    .category-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .category-title {
        font-size: 28px;
    }

    .category-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /*--------------- SINGLE PRODUCT --------------*/

    .custom-single-product-container {
        margin-top: 130px;
        padding: 0 24px;
    }

    .product-title {
        font-size: 26px;
    }

    .related.products ul.products,
    .up-sells ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .categories-grid {
        gap: 20px;
    }

    .category-card {
        width: 200px;
        height: 80px;
        font-size: 17px;
    }

    /*--------------- REVIEWS -------------------*/

    .ww-reviews {
        padding: 100px 0 80px;
    }

    .ww-title {
        font-size: 38px;
    }

    .ww-stage {
        height: 400px;
    }

    .ww-card {
        width: 340px;
    }

    /*--------------- MY ACCOUNT ----------------*/

    .woocommerce-account .site-main,
    .woocommerce-account main {
        padding-top: 100px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 30px;
    }

    .dashboard-header h2 {
        font-size: 26px;
    }

    .auth-tabs-wrapper {
        margin: 40px 20px;
        max-width: 100%;
    }

}


/* =======================================================
   RESPONSIVE — Mobile (max 768px)
========================================================== */

@media (max-width: 768px) {

    /*--------------- MOBILE HEADER ---------------*/

    header {
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    }

    .header-top {
        display: grid;
        grid-template-areas:
            "logo actions"
            "contacts contacts"
            "address address";
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        align-items: center;
        padding: 8px 14px 6px;
        gap: 0;
    }

    .logo {
        grid-area: logo;
        justify-self: start;
        align-self: center;
        line-height: 0;
    }

    .logo a {
        display: inline-flex;
        align-items: center;
    }

    .logo img,
    img.custom-logo {
        width: auto !important;
        max-width: 64px;
        max-height: 26px;
        height: auto;
        object-fit: contain;
    }

    .header-right {
        grid-area: actions;
        width: auto;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .header-icon {
        min-width: 28px;
        min-height: 28px;
        justify-content: center;
    }

    .header-icon svg {
        width: 17px;
        height: 17px;
    }

    .header-search-wrapper {
        min-width: 28px;
        min-height: 28px;
        justify-content: center;
    }

    .search-toggle {
        min-width: 28px;
        min-height: 28px;
        justify-content: center;
    }

    .hamburger-btn {
        display: flex;
        width: 28px;
        height: 28px;
        gap: 4px;
        padding: 0;
        margin-left: 2px;
    }

    .hamburger-btn span {
        width: 18px;
    }

    .cart-icon .cart-count {
        top: -4px;
        right: -5px;
        font-size: 9px;
        width: 13px;
        height: 13px;
    }

    .header-contact-left {
        grid-area: contacts;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 100%;
        margin-top: 6px;
        padding: 5px 0 4px;
        border-top: 1px solid #f0f0f0;
    }

    .header-contact-left a {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 10px;
        font-weight: 500;
        line-height: 1.25;
        padding: 2px 10px;
        color: #333;
    }

    .header-contact-left a + a {
        border-left: 1px solid #e0e0e0;
        padding-left: 12px;
        margin-left: 2px;
    }

    .header-contact-left i,
    .header-contact-right i {
        font-size: 10px;
        flex-shrink: 0;
    }

    .header-contact-right {
        grid-area: address;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        text-align: center;
        gap: 4px;
        width: 100%;
        padding: 2px 0 4px;
        font-size: 10px;
        line-height: 1.35;
        color: #666;
        white-space: normal;
    }

    .header-contact-right span {
        max-width: 100%;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu li a {
        padding: 12px 16px;
        font-size: 14px;
    }

    .inline-search-form {
        display: none;
    }

    /*--------------- HERO ----------------------*/

    .hero {
        min-height: 400px;
        padding: 108px 20px 32px;
        box-sizing: border-box;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-heading {
        line-height: 1.15;
    }

    .hero p {
        margin: 15px 0 30px;
        font-size: clamp(15px, 4.5vw, 22px);
        line-height: 1.6;
    }

    .hero .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    /*--------------- CLEARANCE -----------------*/

    .ms-clearance-section {
        padding: 40px 15px;
        margin-top: -60px;
    }

    .ms-clearance-wrapper {
        padding: 25px;
        border-radius: 16px;
    }

    .ms-clearance-header h2 {
        font-size: 28px;
    }

    .ms-clearance-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ms-clearance-image {
        height: 220px;
    }

    /*--------------- SECTIONS ------------------*/

    .section {
        padding: 40px 20px;
    }

    .section h2 {
        font-size: 26px;
    }

    .best-sellers .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .image-wrap {
        height: 300px;
    }

    .info {
        padding: 15px 8px;
    }

    .title-price h3 {
        font-size: 14px;
    }

    .title-price span,
    .amount {
        font-size: 13px;
    }

    .info p {
        font-size: 12px;
    }

    .showroom {
        margin: 0 15px;
    }

    .showroom-left {
        padding: 40px 25px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .showroom-heading,
    .showroom h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    .showroom p {
        font-size: 15px;
        line-height: 1.6;
    }

    .showroom button {
        width: 160px;
        margin-top: 25px;
    }

    .showroom-right {
        height: 400px;
    }

    .showroom-btns {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .visit-btn,
    .call-btn {
        flex: 1 1 auto;
        min-width: 140px;
        padding: 15px 25px !important;
        font-size: 14px;
        text-align: center;
        white-space: nowrap;
    }

    .call-btn i {
        font-size: 13px;
    }

    .wws-section {
        padding: 50px 15px;
    }

    .wws-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .wws-save-badge {
        width: 85px;
        height: 85px;
        top: 18px;
        right: 18px;
    }

    .wws-save-badge .save-pct {
        font-size: 22px;
    }

    .wws-title {
        font-size: 32px;
    }

    .wws-subtitle {
        font-size: 14px;
    }

    .wws-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .wws-hero {
        min-height: 360px;
    }

    .wws-hero-overlay {
        padding: 25px;
    }

    .wws-hero-title {
        font-size: 24px;
        max-width: 100%;
    }

    .wws-hero-desc {
        font-size: 13px;
        max-width: 100%;
    }

    .wws-product {
        --visible: 1;
    }

    .wws-features {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .wws-feature {
        padding: 0;
    }

    .wws-feature::after {
        display: none;
    }

    .aussie {
        padding: 60px 15px;
    }

    .aussie .top-title {
        margin-bottom: 45px;
    }

    .aussie .top-title span {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .aussie .top-title h2 {
        font-size: 32px;
    }

    .aussie .top-title p {
        font-size: 15px;
        line-height: 1.8;
    }

    .aussie .item {
        gap: 18px;
    }

    .aussie .text h3 {
        font-size: 20px;
    }

    .aussie .text p {
        font-size: 15px;
    }

    .aussie .visit {
        padding: 22px;
    }

    .aussie .visit strong {
        font-size: 20px;
    }

    .aussie .badge {
        width: 140px;
        height: 140px;
        font-size: 13px;
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category img {
        height: 14rem;
    }

    .category p {
        font-size: 14px;
    }

    .ergocraft-footer {
        padding: 40px 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newsletter h4 {
        max-width: 100%;
    }

    .newsletter-box {
        max-width: 100%;
    }

    .footer-col {
        text-align: center;
    }

    .footer-bottom {
        margin-top: 40px;
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-brand,
    .footer-contact,
    .footer-social,
    .footer-copy {
        text-align: center;
    }

    .footer-contact a {
        margin-bottom: 8px;
    }

    .footer-social {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .footer-social a {
        margin-right: 0;
        font-size: 18px;
    }

    .footer-copy {
        font-size: 12px;
        line-height: 1.6;
    }

    /*--------------- ABOUT PAGE ----------------*/

    .about-block {
        padding: 40px 20px;
        gap: 35px;
    }

    .about-hero {
        height: 300px;
        padding-top: 90px;
    }

    .about-hero h1 {
        font-size: 24px;
    }

    /*--------------- SHOP / CATEGORY -------------*/

    .category-page {
        padding: 90px 15px 40px;
    }

    .category-title {
        font-size: 24px;
    }

    .category-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .category-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /*--------------- SINGLE PRODUCT --------------*/

    .custom-single-product-container {
        margin-top: 110px;
        padding: 0 15px;
    }

    .product-top {
        gap: 30px;
    }

    .product-title {
        font-size: 22px;
    }

    .product-price {
        font-size: 18px;
    }

    .product-det-info .cart {
        flex-wrap: wrap;
        width: 100%;
    }

    .product-det-info .single_add_to_cart_button {
        width: 100%;
        padding: 0 20px !important;
    }

    .related.products ul.products,
    .up-sells ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .categories-grid {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .category-card {
        width: 100%;
        max-width: 320px;
        height: 70px;
        font-size: 16px;
    }

    /*--------------- WISHLIST --------------------*/

    .wishlist-title h2 {
        font-size: 32px;
    }

    .ergo-wishlist-table,
    .ergo-wishlist-table tbody,
    .ergo-wishlist-table tr,
    .ergo-wishlist-table td {
        display: block;
        width: 100%;
    }

    .ergo-wishlist-table tr {
        padding: 25px 0;
        position: relative;
    }

    .ergo-wishlist-table td {
        padding: 8px 0;
        text-align: left;
    }

    .ergo-remove {
        position: absolute;
        top: 20px;
        right: 0;
        width: auto;
    }

    .ergo-thumb {
        width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 10px;
    }

    .ergo-thumb img {
        width: 100px !important;
    }

    .ergo-action {
        width: 100%;
        text-align: left;
    }

    .ergo-action .button {
        width: 100%;
        padding: 14px 20px !important;
    }

    article#post-20022 {
        padding-top: 100px !important;
    }

    /*--------------- REVIEWS -------------------*/

    .ww-reviews {
        padding: 80px 0 70px;
    }

    .ww-top {
        margin-bottom: 50px;
    }

    .ww-title {
        font-size: 32px;
    }

    .ww-desc {
        font-size: 15px;
        padding: 0 15px;
    }

    .ww-stage {
        height: 380px;
    }

    .ww-card {
        width: 300px;
        padding: 30px 24px;
    }

    .ww-quote-text {
        font-size: 17px;
    }

    .ww-card.is-center .ww-quote-text {
        font-size: 18px;
    }

    /*--------------- CONTACT PAGE --------------*/

    .contact-hero {
        padding: 100px 20px;
    }

    .contact-hero h1 {
        font-size: 34px;
    }

    .contact-grid,
    .extra-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-intro h2 {
        font-size: 26px;
    }

    /*--------------- PRIVACY / TERMS -------------*/

    .privacy-hero,
    .terms-hero {
        padding: 100px 20px 40px;
    }

    .privacy-hero h1,
    .terms-hero h1 {
        font-size: 30px;
    }

    .privacy-content,
    .terms-content {
        padding: 40px 0;
    }

    .privacy-note,
    .terms-note {
        padding: 25px;
        margin-top: 40px;
    }

    /*--------------- TRACK ORDER ---------------*/

    .track-wrapper {
        padding: 90px 15px 30px !important;
    }

    .track-wrapper .page-title {
        font-size: 30px;
    }

    /*--------------- MY ACCOUNT ----------------*/

    .woocommerce-account .site-main,
    .woocommerce-account main {
        padding-top: 90px;
    }

    .account-dashboard {
        margin: 0 15px;
    }

    .auth-tabs-wrapper {
        margin: 30px 15px;
        padding: 24px 20px;
    }

    .account-content form h2 {
        font-size: 28px;
    }

    /*--------------- CART TABLE ----------------*/

    .woocommerce table.shop_table {
        font-size: 13px;
    }

    .woocommerce table.shop_table td,
    .woocommerce table.shop_table th {
        padding: 10px 8px;
    }

    .woocommerce-cart .woocommerce {
        margin: 80px 15px 60px;
        padding: 30px 15px;
    }

    /*--------------- BLOG / SITE CONTENT -------*/

    .site-content {
        margin: 40px auto;
        padding: 0 15px;
        gap: 30px;
    }

}


/* =======================================================
   RESPONSIVE — Small Mobile (max 480px)
========================================================== */

@media (max-width: 480px) {

    /*--------------- MOBILE HEADER ---------------*/

    .header-top {
        padding: 6px 12px 5px;
    }

    .logo img,
    img.custom-logo {
        max-width: 56px;
        max-height: 24px;
    }

    .header-right {
        gap: 6px;
    }

    .header-icon svg {
        width: 16px;
        height: 16px;
    }

    .header-icon,
    .header-search-wrapper,
    .search-toggle {
        min-width: 26px;
        min-height: 26px;
    }

    .hamburger-btn {
        width: 26px;
        height: 26px;
    }

    .hamburger-btn span {
        width: 16px;
    }

    .header-contact-left {
        margin-top: 5px;
        padding: 4px 0 3px;
    }

    .header-contact-left a {
        font-size: 12px !important;
        padding: 2px 8px;
        gap: 3px;
    }

    .header-contact-left a + a {
        padding-left: 10px;
    }

    .header-contact-left i,
    .header-contact-right i {
        font-size: 9px;
    }

    .header-contact-right {
        font-size: 12px !important;
        line-height: 1.3;
        padding-bottom: 3px;
    }

    .mobile-menu li a {
        font-size: 13px;
        padding: 12px 15px;
    }

    /*--------------- HERO ----------------------*/

    .hero {
        min-height: 370px;
        padding: 100px 15px 28px;
        box-sizing: border-box;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero p {
        margin: 12px 0 25px;
        font-size: 15px;
    }

    .hero .btn {
        display: inline-block;
        width: 100%;
        max-width: 220px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .section {
        padding: 30px 15px;
    }

    .section h2 {
        font-size: 22px;
    }

    /*--------------- CLEARANCE -----------------*/

    .ms-clearance-section {
        margin-top: -30px;
        padding: 30px 10px;
    }

    .ms-clearance-wrapper {
        padding: 20px 15px;
    }

    .ms-clearance-header h2 {
        font-size: 24px;
    }

    .ms-clearance-new-price {
        font-size: 22px;
    }

    /*--------------- PRODUCTS ------------------*/

    .best-sellers .products {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-wrap {
        height: 280px;
    }

    .product-info {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .title-price h3 {
        font-size: 15px;
    }

    .title-price span,
    .amount {
        font-size: 14px;
    }

    .info {
        padding: 15px 5px;
    }

    .info p {
        font-size: 13px;
    }

    .showroom-left {
        padding: 30px 15px;
    }

    .showroom-heading,
    .showroom h2 {
        font-size: 22px;
    }

    .showroom-right {
        height: 250px;
    }

    .showroom-btns {
        flex-direction: column;
    }

    .visit-btn,
    .call-btn {
        width: 100%;
        min-width: 0;
    }

    .wws-section {
        padding: 40px 10px;
    }

    .wws-card {
        padding: 70px 16px 24px;
    }

    .wws-save-badge {
        width: 72px;
        height: 72px;
        top: 12px;
        right: 12px;
    }

    .wws-save-badge .save-pct {
        font-size: 18px;
    }

    .wws-save-badge .save-label,
    .wws-save-badge .save-off {
        font-size: 8px;
    }

    .wws-title {
        font-size: 26px;
    }

    .wws-eyebrow {
        font-size: 11px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .wws-hero {
        min-height: 300px;
    }

    .wws-hero-overlay {
        padding: 18px;
        background: linear-gradient(180deg, rgba(250, 246, 240, .96) 0%, rgba(250, 246, 240, .85) 60%, rgba(250, 246, 240, .4) 100%);
    }

    .wws-hero-title {
        font-size: 20px;
    }

    .wws-hero-desc {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .wws-hero-btn {
        width: 100%;
        justify-content: center;
    }

    .wws-product-body {
        padding: 15px;
    }

    .wws-product-name {
        font-size: 14px;
    }

    .wws-price-new {
        font-size: 15px;
    }

    .aussie .top-title {
        margin-bottom: 35px;
    }

    .aussie .top-title h2 {
        font-size: 26px;
    }

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

    .aussie .item {
        flex-direction: column;
        gap: 12px;
    }

    .aussie .no {
        min-width: auto;
    }

    .aussie .no::after {
        width: 30px;
    }

    .aussie .text h3 {
        font-size: 18px;
    }

    .aussie .text p {
        font-size: 14px;
    }

    .aussie .visit {
        padding: 18px;
    }

    .aussie .visit strong {
        font-size: 18px;
    }

    .aussie .badge {
        width: 120px;
        height: 120px;
        font-size: 12px;
        padding: 18px;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category img {
        height: 180px;
    }

    .category p {
        font-size: 14px;
        margin-top: 8px;
    }

    .ergocraft-footer {
        padding: 35px 15px;
    }

    .footer-col h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .footer-col p,
    .footer-col a,
    .footer-col li a {
        font-size: 13px;
    }

    .newsletter-box {
        flex-direction: column;
        gap: 10px;
        border-bottom: none;
        padding-bottom: 0;
    }

    .newsletter-box input {
        width: 100%;
        border: 1px solid #ddd;
        padding: 12px;
    }

    .newsletter-box button {
        width: 100%;
        padding: 12px;
    }

    /*--------------- ABOUT PAGE ----------------*/

    .about-block {
        padding: 30px 15px;
        gap: 25px;
    }

    .about-hero {
        height: 260px;
        padding-top: 80px;
    }

    .about-hero h1 {
        font-size: 20px;
    }

    .about-block h2 {
        font-size: 20px;
    }

    .about-block p {
        font-size: 15px;
    }

    /*--------------- SHOP / CATEGORY -------------*/

    .category-page {
        padding: 85px 12px 30px;
    }

    .category-title {
        font-size: 22px;
    }

    .category-products {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    /*--------------- SINGLE PRODUCT --------------*/

    .custom-single-product-container {
        margin-top: 100px;
        padding: 0 12px;
    }

    .product-title {
        font-size: 20px;
    }

    .gallery-thumbs img {
        width: 60px;
    }

    .related.products ul.products,
    .up-sells ul.products {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .product-det-info .qty {
        width: 100%;
    }

    /*--------------- WISHLIST --------------------*/

    .wishlist-title h2 {
        font-size: 26px;
    }

    /*--------------- REVIEWS -------------------*/

    .ww-reviews {
        padding: 70px 0 60px;
    }

    .ww-title {
        font-size: 26px;
    }

    .ww-stage {
        height: 340px;
    }

    .ww-card {
        width: 85vw;
        max-width: 280px;
        padding: 24px 18px;
    }

    .ww-quote-mark {
        font-size: 36px;
    }

    .ww-quote-text {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .ww-card.is-center .ww-quote-text {
        font-size: 16px;
    }

    /*--------------- CONTACT PAGE --------------*/

    .contact-hero {
        padding: 90px 15px;
    }

    .contact-hero h1 {
        font-size: 28px;
    }

    .contact-hero p {
        font-size: 15px;
    }

    .contact-intro {
        padding: 40px 0 30px;
    }

    .contact-intro h2 {
        font-size: 22px;
    }

    .contact-section {
        padding: 40px 0;
    }

    .extra-info {
        padding: 50px 0;
    }

    /*--------------- PRIVACY / TERMS -------------*/

    .privacy-hero h1,
    .terms-hero h1 {
        font-size: 26px;
    }

    .privacy-content h2,
    .terms-content h2 {
        font-size: 18px;
        margin-top: 30px;
    }

    /*--------------- TRACK ORDER ---------------*/

    .track-wrapper .page-title {
        font-size: 26px;
    }

    /*--------------- MY ACCOUNT ----------------*/

    .dashboard-header h2 {
        font-size: 22px;
    }

    .dashboard-card {
        padding: 24px 16px;
    }

    .auth-tabs-wrapper {
        margin: 20px 10px;
        padding: 20px 15px;
    }

    .auth-tab {
        font-size: 13px;
        padding: 12px 8px;
    }

    .woocommerce-account .woocommerce-EditAccountForm {
        padding: 20px 15px;
    }

    .account-content form {
        padding: 25px 15px;
    }

    .account-content form h2 {
        font-size: 24px;
    }

    /*--------------- CART ----------------------*/

    .woocommerce-cart .woocommerce {
        margin: 70px 10px 40px;
        padding: 25px 12px;
    }

    .woocommerce-cart .cart-empty {
        font-size: 17px;
    }

    .woocommerce-cart .cart-empty::before {
        position: static;
        display: block;
        transform: none;
        margin-bottom: 15px;
    }

}


/* =======================================================
   RESPONSIVE — Extra Small (max 360px)
========================================================== */

@media (max-width: 360px) {

    /*--------------- MOBILE HEADER ---------------*/

    .header-top {
        padding: 5px 10px 4px;
    }

    .logo img,
    img.custom-logo {
        max-width: 50px;
        max-height: 22px;
    }

    .header-right {
        gap: 5px;
    }

    .header-contact-left a {
        font-size: 10px !important;
        padding: 2px 6px;
    }

    .header-contact-left i,
    .header-contact-right i {
        font-size: 8px;
    }

    .header-contact-right {
        font-size: 10px !important;
    }

    .hero {
        padding-top: 96px;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero p {
        font-size: 14px;
    }

    .section h2 {
        font-size: 20px;
    }

    .wws-title {
        font-size: 22px;
    }

    .aussie .top-title h2 {
        font-size: 22px;
    }

}


/* =======================================================
   PRODUCT FILTER UI — Mobile Only (category page)
========================================================== */

@media (max-width: 768px) {

    .category-page .filters {
        border: none;
        padding: 0;
        margin: 0 0 16px;
        width: 100%;
    }

    .category-page .filters .wp-block-woocommerce-product-filters,
    .category-page .filters .wc-block-product-filters {
        display: block;
        width: 100%;
    }

    /* Restore mobile filter trigger (hidden by theme on all screens) */
    .category-page .wc-block-product-filters__open-overlay {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        min-height: 48px;
        padding: 14px 20px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        color: #222;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .category-page .wc-block-product-filters__open-overlay svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Restore slide-up overlay (theme forces filters inline) */
    .category-page .wc-block-product-filters__overlay {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        z-index: 10001 !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        pointer-events: none !important;
    }

    .category-page .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay {
        background-color: rgba(0, 0, 0, 0.45) !important;
        pointer-events: auto !important;
    }

    .category-page .wc-block-product-filters__overlay-wrapper {
        display: block !important;
        height: 100% !important;
        position: relative !important;
        width: 100% !important;
    }

    .category-page .wc-block-product-filters__overlay-dialog {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        max-height: 90vh !important;
        background: #fff !important;
        border-radius: 16px 16px 0 0 !important;
        transform: translateY(100%) !important;
        transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1) !important;
        overflow: hidden !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
    }

    .category-page .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-dialog {
        transform: translateY(0) !important;
    }

    .category-page .wc-block-product-filters__overlay-header,
    .category-page .wc-block-product-filters__overlay-footer {
        display: flex !important;
        flex-shrink: 0;
    }

    .category-page .wc-block-product-filters__overlay-header {
        padding: 14px 20px;
        border-bottom: 1px solid #eee;
        flex-flow: row-reverse;
        align-items: center;
    }

    .category-page .wc-block-product-filters__close-overlay {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        min-height: 44px;
        padding: 0;
        background: transparent;
        border: none;
        color: #222;
        cursor: pointer;
    }

    .category-page .wc-block-product-filters__overlay-content {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 8px 20px 20px !important;
        -webkit-overflow-scrolling: touch;
    }

    .category-page .wc-block-product-filters__overlay-footer {
        padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #eee;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
        background: #fff;
    }

    .category-page .wc-block-product-filters__apply {
        width: 100%;
        min-height: 48px;
        background: #222;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }

    .category-page .wc-block-product-filters__apply:hover {
        background: #000;
    }

    /* Filter sections inside drawer */
    .category-page .wc-block-product-filters__overlay-content [data-block-name^="woocommerce/product-filter"] {
        border-bottom: 1px solid #eee;
        padding: 12px 0;
    }

    .category-page .wc-block-product-filters__overlay-content .wp-block-heading {
        padding: 10px 32px 10px 0;
        font-size: 15px;
        font-weight: 600;
        margin: 0;
        border-bottom: none;
    }

    /* Expand all filter groups inside the drawer */
    .category-page .wc-block-product-filters__overlay-content .wc-block-product-filter-checkbox-list,
    .category-page .wc-block-product-filters__overlay-content .wc-block-product-filter-price-slider,
    .category-page .wc-block-product-filters__overlay-content .wc-block-product-filter-removable-chips {
        display: block !important;
        margin-top: 0;
        padding-bottom: 8px;
    }

    .category-page .wc-block-product-filters__overlay-content .wc-block-product-filter-removable-chips {
        padding-top: 8px;
    }

    .category-page .wc-block-product-filters__overlay-content .wp-block-heading::after {
        display: none;
    }

    /* Checkbox touch targets */
    .category-page .filters .wc-block-product-filter-checkbox-list__item {
        margin-bottom: 0;
    }

    .category-page .filters .wc-block-product-filter-checkbox-list__label {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        font-size: 15px;
        min-height: 44px;
        line-height: 1.4;
    }

    .category-page .filters .wc-block-product-filter-checkbox-list__input {
        width: 20px;
        height: 20px;
        min-width: 20px;
        flex-shrink: 0;
    }

    /* Price slider */
    .category-page .filters .wc-block-product-filter-price-slider {
        padding: 8px 4px 12px;
        max-width: 100%;
    }

    .category-page .filters .wc-block-product-filter-price-slider__range {
        margin: 16px 10px;
    }

    .category-page .filters .wc-block-product-filter-price-slider input[type="range"]::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
    }

    .category-page .filters .wc-block-product-filter-price-slider__left input,
    .category-page .filters .wc-block-product-filter-price-slider__right input {
        width: 100%;
        max-width: 100px;
        font-size: 14px;
    }

    /* Clear filters button */
    .category-page .filters .wc-block-product-filter-clear-button {
        margin: 8px 0 4px;
    }

    .category-page .filters .wc-block-product-filter-clear-button .wp-block-button__link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    /* Legacy widget filters (non-block sidebar widgets) */
    .category-page .filters .widget {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 0 16px;
        margin-bottom: 12px;
        overflow: hidden;
    }

    .category-page .filters .widget-title {
        position: relative;
        padding: 16px 32px 16px 0;
        font-size: 15px;
        font-weight: 600;
        margin: 0;
        cursor: pointer;
        border-bottom: 1px solid #eee;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .category-page .filters .widget:not(.active) .widget-title ~ * {
        display: none;
    }

    .category-page .filters .widget.active .widget-title {
        border-bottom: 1px solid #eee;
    }

    .category-page .filters .widget.active > ul,
    .category-page .filters .widget.active > div,
    .category-page .filters .widget.active > form {
        padding: 12px 0 16px;
    }

}

@media (max-width: 480px) {

    .category-page .wc-block-product-filters__open-overlay {
        font-size: 14px;
        padding: 12px 16px;
    }

    .category-page .wc-block-product-filters__overlay-dialog {
        max-height: 92vh !important;
        border-radius: 14px 14px 0 0 !important;
    }

    .category-page .wc-block-product-filters__overlay-content {
        padding: 4px 16px 16px !important;
    }

    .category-page .wc-block-product-filters__overlay-header,
    .category-page .wc-block-product-filters__overlay-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .category-page .filters .wc-block-product-filter-checkbox-list__label {
        font-size: 14px;
        padding: 8px 0;
        min-height: 40px;
    }

}
