/* ==========================================================================
   Tribal Women Crafts — Responsive Stylesheet
   ALL mobile / tablet / WooCommerce breakpoints live here ONLY.
   Desktop styles remain in their source CSS files.
   ========================================================================== */

/* ==========================================================================
   1400px
   ========================================================================== */

@media (max-width: 1400px) {

    /* — Products — */
    .promo-banner {
        max-width: calc(100% - 40px);
    }

}

/* ==========================================================================
   1200px
   ========================================================================== */

@media (max-width: 1200px) {

    /* — Products — */
    .highlights-header h2 {
        font-size: 44px;
    }

    /* — Footer — */
    .twc-footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* ==========================================================================
   1024px
   ========================================================================== */

@media (max-width: 1024px) {

    /* — Products — */
    .promo-banner {
        margin: 25px auto;
    }

    /* — Product Page — */
    .twc-product-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .twc-product-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .twc-feature-strip,
    .twc-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ==========================================================================
   991px
   ========================================================================== */

@media (max-width: 991px) {

    /* — Global — */
    body {
        overflow-x: clip;
    }

    img,
    video,
    iframe,
    svg {
        max-width: 100%;
        height: auto;
    }

    input,
    select,
    textarea,
    button {
        max-width: 100%;
    }

    .container,
    .feature-strip-inner,
    .home-highlights .container {
        width: 92%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* — Header — */
    .top-header {
        display: none;
    }

    .main-header .container {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 75px;
        height: auto;
        gap: 15px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .logo {
        min-width: 0;
        gap: 10px;
    }

    .logo img {
        width: 75px;
    }

    .brand-text {
        min-width: 0;
        overflow: hidden;
    }

    .brand-text h2 {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-divider {
        width: 100%;
        max-width: 110px;
        margin: 4px 0;
    }

    .brand-text p {
        display: none;
    }

    .header-right {
        gap: 10px;
        flex-shrink: 0;
    }

    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 10000;
    }

    .trust-strip {
        display: none;
    }

    /* — Navigation — */
    .main-navigation {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9998;
        background: rgba(15, 15, 15, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .site-header.mobile-nav-open .main-navigation {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-navigation .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 80px 24px 32px;
        background: #fff;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s ease;
    }

    .site-header.mobile-nav-open .main-navigation .nav-menu {
        transform: translateX(0);
    }

    .main-navigation .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #efefef;
    }

    .main-navigation .nav-menu li a {
        display: block;
        padding: 16px 0;
        font-size: 16px;
        white-space: normal;
    }

    .main-navigation .nav-menu li::after {
        display: none;
    }

    body.mobile-nav-active {
        overflow: hidden;
    }

    /* — Hero — */
    .hero-section {
        min-height: 480px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        font-size: 18px;
    }

    /* — Services (Feature Strip) — */
    .feature-strip-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .feature-item {
        padding: 18px 20px;
        border-right: none !important;
        border-bottom: 1px solid #ececec;
    }

    .feature-item:last-child {
        border-bottom: none;
    }

    .feature-text h4 {
        font-size: 18px;
    }

    /* — About (Why Choose Us) — */
    .why-us {
        padding: 90px 30px;
    }

    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .section-title {
        margin-bottom: 50px;
    }

    .section-title h2 {
        font-size: 40px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .why-image {
        height: 230px;
    }

    .why-content {
        padding: 28px;
    }

    .why-content h3 {
        font-size: 26px;
    }

    .artisan-story {
        grid-template-columns: 1fr;
    }

    .artisan-content h2,
    .section-title h2,
    .newsletter-section h2 {
        font-size: 38px;
    }

    .highlight-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .highlight-top h3 {
        font-size: 28px;
    }

    /* — Products (Collections) — */
    .collection-body {
        grid-template-columns: 240px 1fr;
        gap: 18px;
    }

    .collection-banner img {
        height: 100%;
        min-height: 240px;
    }

    .collection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .collection-heading h2,
    .ff-section-title {
        font-size: 26px;
    }

    .ff-title-icon {
        width: 44px;
        height: 44px;
    }

    .collection-link {
        font-size: 15px;
        word-break: break-word;
    }

    .collection-left {
        min-width: 0;
        width: 100%;
    }

    .collection-left p {
        font-size: 14px;
        line-height: 1.5;
    }

    .product-content .button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* — Categories — */
    .categories-section {
        padding: 20px 24px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .category-card {
        height: 320px;
    }

    .category-overlay h3 {
        font-size: 20px;
    }

    /* — Contact (Wholesale) — */
    .twc-wholesale-card {
        grid-template-columns: 1fr;
    }

    .twc-left-inner,
    .twc-form-inner {
        padding: 40px 25px;
    }

    .twc-title {
        font-size: 36px;
    }

    .twc-feature-grid {
        grid-template-columns: 1fr;
    }

    .twc-badges {
        grid-template-columns: 1fr;
    }

    .tc-form-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* — Newsletter — */
    .newsletter-section {
        padding: 80px 24px;
    }

    .newsletter-section h2 {
        font-size: 38px;
    }

    /* — WooCommerce Shop — */
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        min-width: 0;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
        font-size: 15px;
        line-height: 1.35;
        word-break: break-word;
    }

    /* — Checkout — */
    .woocommerce-checkout .col2-set {
        display: block;
    }

    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 24px;
    }

    #order_review_heading,
    #order_review {
        width: 100% !important;
        float: none !important;
    }

}

/* ==========================================================================
   768px
   ========================================================================== */

@media (max-width: 768px) {

    /* — Header — */
    .main-header .container {
        min-height: 70px;
    }

    .logo img {
        width: 58px;
    }

    .brand-text h2 {
        font-size: 13px;
    }

    .brand-divider {
        max-width: 80px;
    }

    .wishlist-icon,
    .account-icon {
        display: none;
    }

    /* — Hero — */
    .hero-section {
        min-height: 420px;
    }

    .hero-content {
        padding: 16px;
    }

    .hero-content h1 {
        font-size: 34px;
        line-height: 1.15;
        margin: 16px 0;
    }

    .hero-content p {
        font-size: 16px;
        line-height: 1.6;
    }

    .hero-tagline {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 28px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0;
        text-align: center;
        box-sizing: border-box;
    }

    /* — Services (Feature Strip) — */
    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-icon img {
        width: 44px;
        height: 44px;
    }

    .feature-item {
        gap: 12px;
        padding: 16px;
    }

    .feature-text p {
        font-size: 14px;
    }

    /* — About (Why Choose Us) — */
    .why-us {
        padding: 70px 18px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title span {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .section-title h2 {
        font-size: 32px;
        line-height: 1.2;
    }

    .section-subtitle {
        font-size: 15px;
        line-height: 1.7;
    }

    .why-card {
        border-radius: 16px;
    }

    .why-image {
        height: 200px;
    }

    .why-content {
        padding: 22px 18px;
    }

    .why-icon {
        width: 60px;
        height: 60px;
        margin: -30px auto 18px;
        font-size: 24px;
        border-width: 5px;
    }

    .why-content h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .why-content p {
        font-size: 15px;
        line-height: 1.8;
    }

    /* — Products (Collections) — */
    .home-highlights {
        padding: 70px 0;
    }

    .highlights-header {
        margin-bottom: 50px;
    }

    .highlights-header h2 {
        font-size: 34px;
    }

    .highlights-header p {
        font-size: 16px;
    }

    .collection-section {
        margin-bottom: 48px;
    }

    .collection-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .collection-banner {
        max-height: 220px;
        overflow: hidden;
        border-radius: 16px;
    }

    .collection-banner img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        min-height: 0;
    }

    .collection-heading h2,
    .ff-section-title {
        font-size: 22px;
        flex-wrap: wrap;
    }

    .product-info {
        padding: 18px;
    }

    .product-info h4 {
        font-size: 18px;
        min-height: auto;
    }

    .product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .product-footer .price {
        font-size: 18px;
    }

    .product-content h3 {
        height: auto;
        min-height: 44px;
    }

    .collection-products .swiper-button-prev,
    .collection-products .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .collection-products .swiper-button-prev::after,
    .collection-products .swiper-button-next::after {
        font-size: 16px;
    }

    .promo-banner {
        margin: 20px auto;
        border-radius: 8px;
        height: auto;
        min-height: 180px;
        max-height: 260px;
        width: calc(100% - 32px);
    }

    .promo-banner img {
        height: 100%;
        min-height: 180px;
    }

    /* — Categories — */
    .categories-section {
        padding: 20px 16px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 260px;
        border-radius: 16px;
    }

    .category-overlay {
        padding: 20px;
    }

    .category-overlay h3 {
        font-size: 18px;
    }

    /* — Contact — */
    .tc-hero {
        min-height: 60vh;
        padding: 60px 18px;
    }

    .tc-hero p {
        font-size: 1rem;
    }

    .tc-info-strip {
        margin-top: -40px;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 0 14px;
    }

    .tc-info-card {
        padding: 24px 16px;
    }

    .tc-info-card h3 {
        font-size: 1rem;
    }

    .tc-info-card p {
        font-size: 0.85rem;
    }

    .tc-form-section {
        padding: 70px 18px;
    }

    .tc-story h2 {
        font-size: 1.8rem;
    }

    .tc-form-wrap {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .tc-form-wrap h2 {
        font-size: 1.5rem;
    }

    .tc-map iframe {
        height: 320px !important;
    }

    .twc-wholesale-section {
        padding: 24px 14px;
    }

    .twc-wholesale-card {
        border-radius: 16px;
    }

    .twc-left-inner,
    .twc-form-inner {
        padding: 32px 18px;
    }

    .twc-title {
        font-size: 30px;
    }

    .twc-lede {
        font-size: 15px;
    }

    .twc-form-title {
        font-size: 22px;
    }

    .twc-field input,
    .twc-field textarea {
        font-size: 16px;
    }

    /* — Newsletter — */
    .newsletter-section {
        padding: 60px 18px;
    }

    .newsletter-section h2 {
        font-size: 28px;
        line-height: 1.2;
    }

    .newsletter-section p {
        font-size: 16px;
    }

    .newsletter-btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 24px auto 0;
        box-sizing: border-box;
        text-align: center;
    }

    /* — WooCommerce Shop — */
    .woocommerce .button,
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button {
        white-space: normal;
        word-break: break-word;
    }

    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        padding: 12px 16px;
        font-size: 14px;
        line-height: 1.5;
        word-break: break-word;
    }

    .woocommerce .quantity {
        max-width: 100%;
    }

    .woocommerce-pagination {
        margin-top: 24px;
    }

    .woocommerce-result-count,
    .woocommerce-ordering {
        width: 100%;
        text-align: center;
        margin-bottom: 12px;
        float: none;
    }

    .woocommerce-ordering select {
        width: 100%;
        max-width: 100%;
    }

    /* — Product Page — */
    .twc-title {
        font-size: 30px;
    }

    .twc-price-block .price {
        font-size: 26px;
    }

    .twc-trust {
        grid-template-columns: repeat(2, 1fr);
    }

    .twc-feature-strip,
    .twc-why-grid {
        grid-template-columns: 1fr;
    }

    .twc-product-info {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 28px 0;
    }

    .twc-product-info .twc-box {
        padding: 18px;
    }

    .woocommerce-tabs .wc-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .woocommerce-tabs .wc-tab {
        padding: 24px 18px !important;
    }

    .twc-why-buy {
        padding: 48px 20px;
    }

    .twc-feature-strip {
        padding: 32px 18px;
        margin: 40px 0;
    }

    .twc-cart-area form.cart {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .twc-cart-area .quantity {
        margin-right: 0;
        align-self: flex-start;
    }

    .twc-cart-area .single_add_to_cart_button {
        width: 100%;
        margin-top: 0;
    }

    .twc-buy-now-btn {
        width: 100%;
        margin: 0;
        text-align: center;
        box-sizing: border-box;
    }

    .twc-extra-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    /* — Cart — */
    .woocommerce-cart .woocommerce {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .woocommerce table.shop_table {
        font-size: 14px;
    }

    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 10px 8px;
    }

    .woocommerce-cart-form .coupon {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .woocommerce-cart-form .coupon input[type="text"] {
        width: 100% !important;
        margin: 0 !important;
    }

    .woocommerce-cart-form .coupon button,
    .woocommerce-cart-form button[name="update_cart"] {
        width: 100%;
    }

    .cart-collaterals {
        margin-top: 24px;
    }

    .cart-collaterals .cart_totals {
        width: 100% !important;
        float: none !important;
    }

    .woocommerce .cart-collaterals .wc-proceed-to-checkout a.checkout-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .woocommerce-cart table.shop_table_responsive tr {
        margin-bottom: 16px;
        border: 1px solid #ececec;
        border-radius: 10px;
        overflow: hidden;
    }

    .woocommerce-cart table.shop_table_responsive td::before {
        font-weight: 600;
    }

    /* — Checkout — */
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .woocommerce-checkout .form-row {
        width: 100% !important;
        float: none !important;
        margin-bottom: 12px;
    }

    .woocommerce-checkout .form-row input.input-text,
    .woocommerce-checkout .form-row select,
    .woocommerce-checkout .form-row textarea {
        width: 100%;
        font-size: 16px;
        box-sizing: border-box;
    }

    .woocommerce-checkout #place_order {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }

    .woocommerce-checkout-review-order-table {
        font-size: 14px;
    }

    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        padding: 10px 8px;
        word-break: break-word;
    }

    /* — My Account — */
    .woocommerce-account .woocommerce {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
        float: none;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        margin: 0;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li a {
        display: block;
        padding: 12px 10px;
        text-align: center;
        font-size: 13px;
        line-height: 1.3;
        word-break: break-word;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
        min-width: 0;
        overflow-x: auto;
    }

    .woocommerce-account .woocommerce-orders-table,
    .woocommerce-account table.shop_table {
        font-size: 13px;
    }

    .woocommerce-account .woocommerce-EditAccountForm .form-row,
    .woocommerce-account .woocommerce-address-fields .form-row {
        width: 100% !important;
        float: none !important;
    }

    .woocommerce-account .woocommerce-EditAccountForm input,
    .woocommerce-account .woocommerce-address-fields input,
    .woocommerce-account .woocommerce-EditAccountForm select {
        width: 100%;
        font-size: 16px;
        box-sizing: border-box;
    }

    /* — Footer — */
    .twc-footer {
        margin-top: 50px;
    }

    .twc-footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 0;
        text-align: center;
    }

    .twc-divider {
        margin: 12px auto;
    }

    .twc-footer-brand img {
        margin: 0 auto 20px;
    }

    .twc-social {
        justify-content: center;
    }

    .twc-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .twc-footer-newsletter li {
        word-break: break-word;
    }

    .twc-footer-bottom-inner p {
        font-size: 13px;
        line-height: 1.5;
    }

}

/* ==========================================================================
   576px
   ========================================================================== */

@media (max-width: 576px) {

    /* — Contact — */
    .tc-row {
        grid-template-columns: 1fr;
    }

}

/* ==========================================================================
   480px
   ========================================================================== */

@media (max-width: 480px) {

    /* — Hero — */
    .hero-content h1 {
        font-size: 28px;
    }

    /* — Products — */
    .promo-banner {
        margin: 15px auto;
        border-radius: 6px;
        min-height: 140px;
        max-height: 200px;
        width: calc(100% - 24px);
    }

    .promo-banner img {
        min-height: 140px;
    }

    /* — Contact — */
    .tc-hero {
        min-height: 50vh;
        padding: 50px 16px;
    }

    .tc-info-strip {
        grid-template-columns: 1fr;
    }

    .tc-info-card {
        padding: 22px 18px;
    }

    .tc-form-section {
        padding: 50px 14px;
    }

    .tc-story h2 {
        font-size: 1.55rem;
    }

    .tc-form-wrap {
        padding: 22px 18px;
    }

    .tc-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .tc-eyebrow {
        font-size: 11px;
        letter-spacing: 0.18em;
    }

    /* — WooCommerce Shop — */
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr !important;
    }

    /* — My Account — */
    .woocommerce-account .woocommerce-MyAccount-navigation li {
        flex: 1 1 100%;
    }

    /* — Footer — */
    .twc-footer h3 {
        font-size: 20px;
    }

    .twc-footer h4 {
        font-size: 18px;
    }

}

/* ==========================================================================
   360px
   ========================================================================== */

@media (max-width: 360px) {

    /* — Header — */
    .brand-text {
        display: none;
    }

    .main-header .container {
        grid-template-columns: auto 1fr;
    }

    .logo img {
        width: 52px;
    }

    .header-right {
        gap: 6px;
    }

    .wishlist-icon,
    .account-icon,
    .cart-icon {
        width: 38px;
        height: 38px;
    }

    /* — Hero — */
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* — Categories — */
    .category-card {
        height: 220px;
    }

    .category-overlay h3 {
        font-size: 16px;
    }

    /* — Footer — */
    .twc-footer-container {
        padding: 40px 0;
    }

}
