/* =========================================================================
   4. MODULE: MOBILE & TABLET RESPONSIVENESS (css/responsive.css)
   2-Column Mobile Grid (Zara Standard), Sticky Bottom Cart Bar & Touch UI
   ========================================================================= */

/* Sticky Bottom Cart Bar (Always visible when cart has items) */
.mobile-sticky-cart-bar {
    position: fixed;
    bottom: 14px;
    left: 16px;
    right: 16px;
    max-width: 560px;
    margin: 0 auto;
    z-index: 400;
    background: #141413;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.sticky-bar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}

.sticky-bar-badge {
    background: #10b981;
    color: #ffffff;
    padding: 2px 9px;
    border-radius: 99px;
    font-weight: 900;
    font-size: 0.8rem;
}

.sticky-bar-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    background: #d4af37;
    color: #111111;
    font-family: var(--font-ar);
    font-size: 0.85rem;
    font-weight: 900;
    cursor: pointer;
}

/* Tablet & Mobile Adjustments */
@media (max-width: 820px) {
    .cart-order-grid {
        grid-template-columns: 1fr;
    }

    .detail-split-layout {
        grid-template-columns: 1fr;
    }

    .detail-main-img {
        height: 330px;
    }
}

@media (max-width: 640px) {
    .header-main-row {
        flex-wrap: wrap;
        padding: 10px 14px;
        gap: 10px;
    }

    .brand-name-en {
        font-size: 1rem;
        letter-spacing: 0.8px;
    }

    .header-search-wrap {
        order: 3;
        max-width: 100%;
        width: 100%;
        flex-basis: 100%;
    }

    .header-cart-btn span:not(.cart-count-pill) {
        display: none;
    }

    .header-cart-btn {
        padding: 8px 12px;
    }

    .category-nav-bar {
        padding: 8px 14px;
        gap: 6px;
    }

    .cat-tab-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .catalog-main-container {
        padding: 16px 12px 95px;
    }

    .section-title-group h1 {
        font-size: 1.12rem;
    }

    /* 2-Column Mobile Grid (Zara / Shein Mobile App Standard) */
    .catalog-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-card-body {
        padding: 10px;
        gap: 6px;
    }

    .product-cat-label {
        font-size: 0.68rem;
    }

    .product-card-title {
        font-size: 0.84rem;
    }

    .price-current {
        font-size: 0.94rem;
    }

    .price-old {
        font-size: 0.75rem;
    }

    .card-sz-pill {
        min-width: 28px;
        padding: 3px 6px;
        font-size: 0.7rem;
    }

    .card-action-btns {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .btn-card-instant,
    .btn-card-bag {
        padding: 7px 8px;
        font-size: 0.76rem;
    }

    /* Polished Mobile Swatches & Badges Alignment */
    .card-color-swatches {
        gap: 5px;
        margin-top: 1px;
    }

    .color-swatch-dot {
        width: 19px;
        height: 19px;
    }

    .card-size-pills {
        gap: 4px;
        flex-wrap: wrap;
    }

    .stock-urgency-badge {
        font-size: 0.68rem;
        padding: 2px 6px;
        border-radius: 5px;
        margin-top: 1px;
        line-height: 1.3;
    }

    .modal-backdrop {
        padding: 10px;
        align-items: flex-end;
    }

    .modal-dialog {
        border-radius: 20px 20px 14px 14px;
        padding: 16px;
        max-height: 92vh;
    }
}
