/* Mobile specific styles */
@media (max-width: 992px) {

    /* --- HIDE DESKTOP ELEMENTS --- */
    .desktop-header {
        display: none !important;
    }

    /* --- SHOW MOBILE ELEMENTS --- */
    .mobile-header {
        display: block !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }

    /* Adjust main content spacing */
    .main-content {
        margin-top: 130px;
        /* Increased to fix overlap with header */
        padding-bottom: 140px;
        /* Space for bottom nav + action bar */
    }

    /* --- MOBILE HEADER --- */
    .mobile-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: #fff;
        z-index: 10000 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-header.scrolled {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .mobile-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1rem 0.5rem;
        height: auto;
        max-height: 100px;
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 1;
        overflow: hidden;
    }

    .mobile-header.scrolled .mobile-top-row {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
        pointer-events: none;
        margin-bottom: 0;
    }

    .logo-text {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-main);
        text-decoration: none;
        letter-spacing: -0.5px;
    }

    .logo-text .highlight {
        color: var(--primary);
    }

    .mobile-search-row {
        display: flex !important;
        padding: 0.5rem 1rem 1rem;
        background: #fff;
        gap: 0;
        /* Remove gap to allow full width search */
        align-items: center;
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-header.scrolled .mobile-search-row {
        padding: 0.75rem 1rem;
    }

    .mobile-search-container {
        flex: 1;
        position: relative;
    }

    .mobile-search-form {
        display: flex;
        background: #f1f5f9;
        border-radius: 12px;
        padding: 2px 4px;
        border: 1px solid #e2e8f0;
        transition: all 0.3s;
    }

    .mobile-search-form:focus-within {
        border-color: var(--primary);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    }

    .mobile-search-form input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 10px 12px;
        font-size: 0.95rem;
        outline: none;
        color: var(--text-main);
        width: 100%;
    }

    .mobile-search-form button {
        background: none;
        border: none;
        padding: 0 12px;
        color: #64748b;
        font-size: 1.1rem;
    }

    .search-row-wishlist {
        display: flex !important;
        width: 0 !important;
        height: 38px !important;
        opacity: 0;
        margin-left: 0 !important;
        overflow: hidden;
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        transform: scale(0.8);
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        align-items: center;
        justify-content: center;
    }

    .mobile-header.scrolled .search-row-wishlist {
        width: 36px !important;
        opacity: 1;
        margin-left: 12px !important;
        transform: scale(1);
    }

    .mobile-header.scrolled .top-row-wishlist {
        opacity: 0 !important;
        transform: translateY(-10px) scale(0.8) !important;
        pointer-events: none !important;
    }

    /* Style for wishlist heart in top row - No container */
    .top-row-wishlist {
        background: transparent !important;
        width: auto !important;
        height: auto !important;
        border-radius: 0 !important;
        padding: 4px !important;
        color: var(--text-main) !important;
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .top-row-wishlist i {
        font-size: 1.4rem !important;
    }

    .top-row-wishlist .cart-badge-wish {
        top: -2px !important;
        right: -6px !important;
    }

    .nav-icon-btn {
        position: relative;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f1f5f9;
        border-radius: 12px;
        color: var(--text-main);
        text-decoration: none;
        transition: all 0.2s;
    }

    .nav-icon-btn i {
        font-size: 1.2rem;
    }

    .nav-icon-btn:active {
        transform: scale(0.9);
        background: #e2e8f0;
    }

    .cart-badge-wish {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #ef4444;
        /* Standard Red */
        color: white;
        font-size: 0.65rem;
        padding: 2px 6px;
        border-radius: 10px;
        min-width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: #fff;
        border-top: 1px solid #f1f5f9;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    }

    .bottom-nav-item {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #64748b;
        background: none;
        border: none;
        position: relative;
        text-decoration: none;
        gap: 4px;
        transition: all 0.2s ease;
    }

    .bottom-nav-item i {
        font-size: 1.3rem;
        transition: transform 0.2s ease;
    }

    .bottom-nav-item span {
        font-size: 0.7rem;
        font-weight: 500;
        letter-spacing: 0.2px;
    }

    .bottom-nav-item.active {
        color: var(--primary);
    }

    .bottom-nav-item.active i {
        transform: translateY(-2px);
    }

    .icon-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-cart-badge {
        position: absolute;
        top: -4px;
        /* Move to top right of icon */
        right: -6px;
        background: #ef4444;
        color: white;
        font-size: 0.65rem;
        min-width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 700;
        border: 2px solid #fff;
        padding: 2px;
        z-index: 10;
        /* Remove translate that centered it */
    }

    /* --- FULL SCREEN MODALS --- */
    .full-screen-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        /* Modern dynamic viewport height */
        background: #fff;
        z-index: 10001;
        display: flex !important;
        /* Override base.css display: none !important */
        flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
        visibility: hidden;
        pointer-events: none;
        overscroll-behavior: contain;
    }

    #mobile-cart-modal {
        transform: translateX(100%);
    }

    /* Profile Partial Modal (Laptop/App Style) */
    .full-screen-modal.profile-partial {
        background: rgba(0, 0, 0, 0);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s, background 0.6s;
    }

    .full-screen-modal.profile-partial.active {
        background: rgba(0, 0, 0, 0.5);
    }

    .full-screen-modal.profile-partial .modal-header,
    .full-screen-modal.profile-partial .modal-content {
        background: #fff;
        width: 100%;
    }

    .full-screen-modal.profile-partial .modal-header {
        margin-top: 0;
        /* Changed from auto */
        border-radius: 0;
        /* Full screen style */
        padding: 1.25rem 1.5rem;
    }

    .full-screen-modal.profile-partial .modal-content {
        height: 100%;
        /* Full height */
        max-height: 100vh;
        padding-bottom: calc(env(safe-area-inset-bottom) + 2rem);
    }

    .full-screen-modal.active {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    #mobile-cart-modal.active {
        transform: translateX(0);
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
        background: #fff;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .modal-header h3 {
        font-size: 1.35rem;
        font-weight: 700;
        color: var(--text-main);
        margin: 0;
    }

    .close-modal-btn {
        background: #f1f5f9;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 1.5rem;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
    }

    .modal-content {
        flex: 1;
        overflow-y: auto;
        padding: 1.5rem;
        background: #fff;
        -webkit-overflow-scrolling: touch;
    }

    /* Categories Styling inside Modal */
    .mobile-cat-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-cat-item {
        margin-bottom: 0.75rem;
        border-radius: 12px;
        border: 1px solid #f1f5f9;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .cat-main {
        padding: 1.25rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        color: var(--text-main);
        background: #fff;
        cursor: pointer;
    }

    .cat-main i {
        color: #94a3b8;
        font-size: 0.9rem;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-cat-item.open {
        background: #f8fafc;
        border-color: var(--primary-light);
    }

    .mobile-cat-item.open .cat-main i {
        transform: rotate(90deg);
        color: var(--primary);
    }

    .mobile-subcat-list {
        max-height: 0;
        overflow: hidden;
        list-style: none;
        padding: 0 1.25rem;
        background: #f8fafc;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-cat-item.open .mobile-subcat-list {
        max-height: 500px;
        padding-bottom: 1.25rem;
    }

    .mobile-subcat-list li a {
        display: block;
        padding: 0.85rem 0;
        color: #64748b;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.95rem;
        text-decoration: none;
    }

    .mobile-subcat-list li:last-child a {
        border-bottom: none;
    }

    /* Profile Styling inside Modal */
    .user-info-card {
        background: #f8fafc;
        padding: 1.25rem;
        border-radius: 12px;
        display: flex;
        flex-direction: row;
        /* Horizontal for less height */
        align-items: center;
        gap: 1rem;
        text-align: left;
        margin: 1rem;
        color: var(--text-main);
        border: 1px solid #f1f5f9;
        box-shadow: none;
    }

    .avatar-circle {
        width: 60px;
        /* Smaller */
        height: 60px;
        background: var(--primary-light);
        color: var(--primary);
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin: 0;
        border: none;
        flex-shrink: 0;
    }

    .user-details {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .user-info-card h4 {
        margin-bottom: 0;
        font-weight: 700;
        font-size: 1rem;
        line-height: 1.2;
    }

    .user-info-card p {
        margin-bottom: 0;
        opacity: 0.7;
        font-size: 0.8rem;
    }

    /* --- NEW MOBILE CART MODAL STYLES --- */
    .mobile-cart-items-list {
        padding: 1rem;
        flex: 1;
        overflow-y: auto;
    }

    .modal-items-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 1rem;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 1rem;
    }

    .items-count-badge-mobile {
        font-weight: 700;
        color: var(--text-main);
        font-size: 0.9rem;
    }

    .btn-clear-mini {
        background: transparent;
        border: none;
        color: #ef4444;
        font-weight: 600;
        font-size: 0.85rem;
    }

    .mobile-mini-cart-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f8fafc;
        gap: 0.75rem;
    }

    .item-main {
        display: flex;
        gap: 0.75rem;
        flex: 1;
        min-width: 0;
    }

    .item-img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        background: #f8fafc;
        border-radius: 8px;
        padding: 4px;
        border: 1px solid #f1f5f9;
    }

    .item-info {
        flex: 1;
        min-width: 0;
    }

    .item-name {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        color: var(--text-main);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .item-meta {
        display: flex;
        gap: 4px;
        margin-bottom: 0.25rem;
    }

    .meta-tag {
        font-size: 0.65rem;
        padding: 0 4px;
        background: #f1f5f9;
        color: #64748b;
        border-radius: 4px;
        font-weight: 500;
    }

    .meta-tag.cat {
        background: var(--primary-light);
        color: var(--primary);
    }

    .item-price-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .price-stack {
        display: flex;
        flex-direction: column;
    }

    .price-curr {
        font-weight: 700;
        color: var(--text-main);
        font-size: 0.9rem;
    }

    .price-old {
        font-size: 0.75rem;
        color: #94a3b8;
        text-decoration: line-through;
    }

    .item-qty-selector {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: #f1f5f9;
        border-radius: 6px;
        padding: 2px 4px;
    }

    .item-qty-selector button {
        width: 24px;
        height: 24px;
        border: none;
        background: transparent;
        font-size: 1rem;
        color: var(--text-main);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .qty-val {
        font-size: 0.85rem;
        font-weight: 700;
        min-width: 15px;
        text-align: center;
    }

    .item-remove-btn {
        background: transparent;
        border: none;
        color: #cbd5e1;
        font-size: 1.1rem;
        padding: 0.25rem;
    }

    .modal-footer-cart {
        padding: 1.25rem;
        background: #fff;
        border-top: 1px solid #f1f5f9;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    }

    .summary-details {
        margin-bottom: 1rem;
    }

    .summary-line {
        display: flex;
        justify-content: space-between;
        font-size: 0.9rem;
        color: #64748b;
        margin-bottom: 0.25rem;
    }

    .summary-line.total {
        color: var(--text-main);
        font-weight: 700;
        font-size: 1.1rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px dotted #e2e8f0;
    }

    .grand-total {
        color: var(--primary);
        font-size: 1.2rem;
        font-weight: 800;
    }

    .footer-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .btn-view-cart-link {
        text-align: center;
        color: #64748b;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
    }

    .btn-checkout-primary {
        background: var(--primary);
        color: white;
        text-align: center;
        padding: 1rem;
        border-radius: 12px;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
    }

    .empty-cart-state-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4rem 2rem;
        text-align: center;
    }

    .icon-circle {
        width: 80px;
        height: 80px;
        background: #f1f5f9;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .icon-circle i {
        font-size: 2.5rem;
        color: #cbd5e1;
    }

    .btn-primary-mobile {
        background: var(--primary);
        color: white;
        border: none;
        padding: 0.85rem 2rem;
        border-radius: 10px;
        font-weight: 600;
        margin-top: 1rem;
    }

    .mobile-profile-links {
        list-style: none;
        padding: 0 0.5rem;
    }

    .mobile-profile-links li {
        margin-bottom: 0;
    }

    .mobile-profile-links li a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.25rem;
        background: transparent;
        border-radius: 0;
        color: var(--text-main);
        text-decoration: none;
        font-weight: 500;
        border: none;
        border-bottom: 1px solid #f8fafc;
        transition: all 0.2s ease;
        box-shadow: none;
    }

    .mobile-profile-links li a i {
        font-size: 1.2rem;
        color: var(--primary);
        width: 24px;
        text-align: center;
    }

    .mobile-profile-links li a:active {
        background: #f8fafc;
        transform: scale(0.98);
        border-color: var(--primary-light);
    }

    .mobile-profile-links li.admin-item a {
        border-left: none !important;
        justify-content: flex-start !important;
        color: var(--text-muted) !important;
        font-weight: 500 !important;
    }

    .mobile-profile-links li.admin-item a i {
        color: var(--primary) !important;
        font-size: 1.2rem !important;
        width: 24px !important;
        text-align: center !important;
        margin-right: 0 !important;
    }


    .mobile-profile-links li:last-child a {
        color: #ef4444;
    }

    .mobile-profile-links li:last-child a i {
        color: #ef4444;
    }

    .not-logged-in-state {
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .not-logged-in-state i {
        font-size: 4rem;
        color: #e2e8f0;
        margin-bottom: 1.5rem;
    }

    .not-logged-in-state p {
        color: #64748b;
        margin-bottom: 2rem;
        font-size: 1.1rem;
    }

    .btn-primary-mobile,
    .btn-secondary-mobile {
        display: block;
        width: 100%;
        padding: 1.25rem;
        border-radius: 12px;
        font-weight: 600;
        text-decoration: none;
        margin-bottom: 1rem;
        transition: all 0.2s;
    }

    .btn-primary-mobile {
        background: var(--primary);
        color: #fff;
    }

    .btn-secondary-mobile {
        background: #f1f5f9;
        color: var(--text-main);
    }

    /* --- MOBILE CART MODAL SPECIFIC --- */
    .items-count-badge-mobile {
        background: var(--primary-light);
        color: var(--primary);
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
        border-radius: 20px;
        font-weight: 600;
        margin-left: 0.5rem;
    }

    .mobile-mini-cart-header {
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: flex-end;
    }

    .clear-cart-link-mobile {
        color: #ef4444;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .mobile-cart-items-list {
        padding: 0 1rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-mini-cart-item {
        display: grid;
        grid-template-columns: 80px 1fr 40px;
        gap: 1rem;
        padding: 1rem;
        background: #fff;
        border: 1px solid #f1f5f9;
        border-radius: 16px;
        align-items: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    }

    .mobile-mini-cart-img {
        width: 80px;
        height: 80px;
        background: #f8fafc;
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-mini-cart-img img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
    }

    .mobile-mini-cart-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .mobile-mini-cart-info .name {
        font-weight: 600;
        color: var(--text-main);
        font-size: 0.95rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mobile-mini-cart-info .price {
        color: var(--primary);
        font-weight: 700;
        font-size: 1.05rem;
    }

    .qty-control-mobile {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-top: 0.5rem;
        background: #f1f5f9;
        width: fit-content;
        padding: 2px;
        border-radius: 10px;
    }

    .qty-control-mobile .qty-btn {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        border: none;
        background: #fff;
        color: var(--text-main);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .qty-control-mobile .qty-val {
        font-weight: 700;
        font-size: 0.9rem;
        min-width: 20px;
        text-align: center;
    }

    .mobile-mini-cart-item .remove-btn {
        background: transparent;
        border: none;
        color: #94a3b8;
        font-size: 1.1rem;
        cursor: pointer;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .empty-cart-state-mobile {
        text-align: center;
        padding: 4rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .empty-cart-state-mobile .icon-circle {
        width: 100px;
        height: 100px;
        background: #f1f5f9;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
        color: #cbd5e1;
        margin-bottom: 0.5rem;
    }

    .empty-cart-state-mobile h4 {
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0;
    }

    .empty-cart-state-mobile p {
        color: #64748b;
        font-size: 0.95rem;
        margin: 0;
    }

    .modal-footer-cart {
        padding: 1.5rem;
        background: #fff;
        border-top: 1px solid #f1f5f9;
        position: sticky;
        bottom: 0;
        z-index: 10;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    }

    .total-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.25rem;
    }

    .total-row span {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-muted);
    }

    .total-row .total-price {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--text-main);
    }

    .btn-checkout-mobile {
        display: block;
        width: 100%;
        padding: 1.25rem;
        background: var(--primary);
        color: #fff;
        text-align: center;
        text-decoration: none;
        font-weight: 700;
        border-radius: 16px;
        font-size: 1.1rem;
        box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3);
    }

    .mobile-profile-links li {
        margin-bottom: 0.75rem;
    }

    .mobile-profile-links a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.25rem;
        background: #fff;
        border-radius: 12px;
        font-weight: 500;
        color: var(--text-muted);
        box-shadow: var(--shadow-sm);
        transition: transform 0.2s;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .mobile-profile-links a:active {
        transform: scale(0.98);
    }

    .mobile-profile-links a i {
        color: var(--primary);
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
    }

    .text-danger {
        color: #e11d48 !important;
    }

    .text-danger i {
        color: #e11d48 !important;
    }

    .not-logged-in-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 70vh;
        gap: 1.5rem;
        text-align: center;
    }

    .not-logged-in-state i {
        font-size: 4rem;
        color: #cbd5e1;
    }

    .not-logged-in-state p {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text-muted);
    }

    .btn-primary-mobile {
        width: 100%;
        padding: 1rem;
        background: var(--primary);
        color: white;
        text-align: center;
        border-radius: var(--radius-full);
        font-weight: 600;
        box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.4);
    }

    .btn-secondary-mobile {
        width: 100%;
        padding: 1rem;
        background: #e2e8f0;
        color: var(--text-muted);
        text-align: center;
        border-radius: var(--radius-full);
        font-weight: 600;
    }

    /* --- Rest of Mobile Styles (Product Grids etc) --- */

    /* Hero Section Fixes */
    .hero {
        padding: 2rem 0 3rem !important;
        /* Reduced padding */
        overflow: hidden !important;
    }

    .hero-container {
        flex-direction: column-reverse !important;
        /* Text top, Image bottom */
        gap: 1.5rem !important;
        text-align: center;
        padding: 0 1rem !important;
    }

    .hero-text {
        flex: auto !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 1.8rem !important;
        /* Much smaller as requested */
        margin-bottom: 0.75rem !important;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 0.9rem !important;
        /* Smaller text */
        margin-bottom: 1.5rem !important;
        line-height: 1.5;
        padding: 0 0.5rem;
    }

    .hero-btns {
        width: 100%;
        justify-content: center;
        gap: 0.75rem !important;
        flex-wrap: wrap;
    }

    .hero-btns .btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
        height: auto !important;
    }

    /* Hero Search Fixes */
    .hero-search-container {
        margin: 1rem 0 1.5rem !important;
        max-width: 95% !important;
        /* Limit width */
        position: relative;
        /* Ensure dropdown is relative to this */
    }

    .search-wrapper input {
        height: 42px !important;
        /* Smaller search bar */
        font-size: 16px !important;
        /* Force 16px to stop zoom */
        padding: 0.4rem 1rem 0.4rem 2.5rem !important;
    }

    .search-wrapper i {
        left: 0.8rem !important;
        font-size: 0.9rem !important;
    }

    /* Fixed Search Preview Dropdown */
    .search-preview-dropdown {
        width: 100% !important;
        left: 0 !important;
        max-height: 40vh !important;
        /* Limit height */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        /* Prevent horizontal scroll */
        border-radius: 12px !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    }

    .preview-item {
        padding: 0.4rem !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }

    .preview-item img {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        /* Prevent squishing */
        object-fit: contain !important;
        /* Changed to contain */
        border-radius: 6px !important;
    }

    .preview-item div {
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        /* Left align text */
        text-align: left !important;
    }

    /* Force Price single line layout */
    .preview-price {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin-top: 0.1rem !important;
    }

    .preview-item h4 {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.1 !important;
        margin-bottom: 0 !important;
    }

    .preview-item p {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
    }

    .hero-image {
        width: 100%;
        justify-content: center;
        margin-bottom: 0 !important;
        height: auto !important;
    }

    .hero-blob {
        width: 280px !important;
        height: 280px !important;
        margin-top: 0 !important;
    }

    /* Stores/Products Search Fixes - Apply same rules */
    .filter-bar {
        padding: 0.4rem !important;
    }

    .filter-bar .search-wrapper input {
        height: 42px !important;
    }

    /* ALIGN NAVBAR ITEMS CENTER except close button */
    .nav-links {
        align-items: center !important;
        /* Center items */
        text-align: left;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        /* Separator lines */
    }

    .nav-links a {
        justify-content: flex-start !important;
        /* Keep icons/text left aligned within the item */
        width: 100%;
        padding: 1rem 0.5rem !important;
        /* Tap targets */
    }

    /* Fix Cart/Profile being stuck left/right */
    .cart-icon,
    .profile-icon {
        display: flex !important;
        width: 100% !important;
        justify-content: flex-start !important;
        /* Align left */
        color: var(--text-muted) !important;
    }

    /* Cart Badge Position Fix */
    .cart-icon {
        position: relative;
    }

    .cart-badge {
        position: absolute !important;
        left: 20px !important;
        /* Position relative to icon (which is left aligned) */
        top: -5px !important;
        right: auto !important;
        /* Cancel right: -10px from desktop */
    }

    .nav-label {
        font-weight: 500 !important;
    }

    .sub-title {
        font-size: 0.75rem !important;
        /* Smaller sub-titles */
        margin-bottom: 0.25rem !important;
    }

    .section-header,
    .section-center-header {
        margin-bottom: 1.5rem !important;
        flex-direction: row;
        /* Keep row for title + view all */
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .section-center-header {
        text-align: center;
        flex-direction: column;
    }

    .view-all {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
        gap: 0.4rem !important;
    }

    /* Product Grid - Full Width & Symmetrical */
    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        max-width: 100% !important;
    }

    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        /* Strictly 2 columns */
        grid-auto-rows: 1fr !important;
        /* Force equal heights */
        align-items: stretch !important;
        gap: 0.5rem !important;
        /* Small uniform gap */
        margin-bottom: 2rem !important;
    }

    .product-card {
        padding: 0.5rem !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-self: stretch !important;
    }

    .product-image {
        aspect-ratio: 1 / 1 !important;
        /* Square */
        height: auto !important;
        width: 100% !important;
        margin-bottom: 0.5rem !important;
        background: transparent !important;
    }

    .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        /* Center and fit fully */
        object-position: center !important;
        padding: 0.25rem !important;
    }

    .product-info {
        padding: 0 !important;
    }

    .product-card .product-category {
        font-size: 0.65rem !important;
        margin-bottom: 0.15rem !important;
        font-weight: 800 !important;
    }

    .product-card .product-title {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
        /* Slightly tighter */
        margin-bottom: 0.2rem !important;
        height: 2.05rem !important;
        /* Exactly 2 lines at 0.85 x 1.2 = 1.02 each */
        min-height: 2.05rem !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        text-overflow: ellipsis !important;
    }

    .product-card .product-size {
        display: block !important;
        font-size: 0.75rem !important;
        color: #64748b !important;
        margin-bottom: 0.4rem !important;
        font-weight: 500 !important;
    }

    .price-container {
        margin-bottom: 0 !important;
        gap: 0.4rem !important;
    }

    .price {
        font-size: 0.9rem !important;
    }

    .price.discounted {
        font-size: 0.95rem !important;
    }

    .price.original {
        font-size: 0.75rem !important;
    }

    /* Smaller Badges & Discount Labels */
    .discount-badge {
        font-size: 0.65rem !important;
        padding: 1px 4px !important;
        margin-left: 2px !important;
        white-space: nowrap !important;
    }

    .special-offer-badge,
    .best-seller-badge {
        font-size: 0.5rem !important;
        padding: 2px 6px !important;
        top: 4px !important;
        left: 4px !important;
        letter-spacing: 0 !important;
    }

    .special-offer-badge+.best-seller-badge {
        top: 22px !important;
    }

    /* FIX: Wishlist heart clickable on mobile (above card overlay) */
    .btn-favorite {
        z-index: 20 !important;
    }

    /* Recommended Sections Categories Scroll Fixes */
    .category-scroll-wrapper {
        margin-bottom: 1.5rem !important;
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
        padding-left: 0.5rem !important;
        overflow: hidden !important;
    }

    .category-scroll-container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        /* Prevent vertical scrolling/movement */
        padding-bottom: 2px !important;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    .category-scroll-container::-webkit-scrollbar {
        display: none !important;
    }

    .category-chip {
        padding: 8px 12px !important;
        /* Reduced from 10px 14px */
        font-size: 0.85rem !important;
        /* Reduced from 1rem */
        border-bottom-width: 2px !important;
        margin-bottom: 0 !important;
        /* Reset offset for mobile height stability */
    }

    /* Category Grid Fix */
    .category-grid-v2 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        margin-top: 1rem !important;
    }

    .category-card-v2 {
        height: 120px !important;
        border-radius: 12px !important;
    }

    .category-card-v2 .category-overlay {
        padding: 0.75rem !important;
    }

    .category-card-v2 .category-title {
        font-size: 0.95rem !important;
    }

    .category-card-v2 .category-count {
        font-size: 0.65rem !important;
    }

    /* General Typography Fixes */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    p {
        font-size: 0.9rem !important;
    }

    /* Hide background elements */
    .hero-bg-shapes {
        display: none !important;
    }

    /* Cart & Order Page Mobile Fixes */
    .cart-container {
        padding-top: 1rem !important;
    }


    /* Strict Mobile Menu Labels Force - LEFT ALIGNED */
    .nav-links {
        align-items: flex-start !important;
        text-align: left;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 0;
    }

    .nav-links a {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100%;
        padding: 1rem 1.5rem !important;
        font-weight: 500 !important;
    }

    .nav-label {
        display: inline-block !important;
        margin-left: 0 !important;
        margin-right: 0.5rem !important;
        /* Text Margin Right */
        font-size: 1rem !important;
        /* MATCH REGULAR LINKS */
        color: var(--text-main);
        order: 1;
        /* Text First */
    }

    .cart-icon,
    .profile-icon {
        color: var(--text-muted) !important;
        display: inline-flex !important;
        width: auto !important;
        position: relative !important;
        /* For Badge */
        overflow: visible !important;
        align-items: center !important;
    }

    .nav-links i {
        min-width: 20px;
        text-align: center;
        order: 2;
        /* Icon Second */
        font-size: 1.1rem !important;
    }

    /* Cart Badge adjustment - attached to icon */
    .cart-badge {
        position: relative !important;
        top: -10px !important;
        /* Higher up */
        right: auto !important;
        left: -12px !important;
        /* Move more left onto the icon */
        margin-left: 0 !important;
        order: 3 !important;
        z-index: 10;
        box-shadow: 0 0 0 1.5px white !important;
        /* Border for separation */
        font-size: 0.55rem !important;
        /* Smaller Text */
        padding: 0.1rem 0.3rem !important;
        /* Smaller Padding */
        min-width: auto !important;
        line-height: 1 !important;
        border-radius: 99px !important;
    }

    /* GLOBAL MOBILE OVERFLOW FIX */
    html,
    body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100% !important;
    }

    .section-container,
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Prevent horizontal scroll on tables wrapper */
    .table-responsive {
        width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .table {
        width: 100% !important;
        margin: 0 !important;
    }

    /* FIX: Cart Page Mobile Layout - Refined */
    /* Cart Header Layout - Reversed */
    .cart-header-row {
        display: flex !important;
        flex-direction: column-reverse !important;
        /* Button Top, Title Bottom */
        align-items: flex-start !important;
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .cart-header-row .btn {
        align-self: flex-start !important;
        margin-bottom: 0 !important;
    }

    .cart-header-row h1 {
        margin-top: 0 !important;
        font-size: 1.75rem !important;
    }

    /* COMPLETE REWRITE of Cart Table Mobile - FIXED 2.0 */

    .cart-table {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        background: transparent !important;
        width: 100% !important;
    }

    .cart-table thead {
        display: none !important;
    }

    /* CARD ROW */
    .cart-table tr {
        display: grid !important;
        /* Image: 90px, Info: Remaining space */
        grid-template-columns: 80px 1fr !important;
        grid-template-rows: auto auto auto !important;
        /* Define Areas explicitly */
        grid-template-areas:
            "img info"
            "img price"
            "qty total";
        gap: 0.5rem 1rem !important;
        /* Row Gap, Column Gap */
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1rem !important;
        position: relative;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
        margin-bottom: 0 !important;
    }

    /* REMOVE ALL PSEUDO CONTENT FROM STYLE.CSS */
    .cart-table td::before {
        content: none !important;
        display: none !important;
    }

    /* UNWRAP CELLS */
    .cart-table td {
        display: contents !important;
        padding: 0 !important;
        border: none !important;
    }

    /* 1. IMAGE (Area: img) */
    .cart-product-info {
        display: contents !important;
        /* Unwrap the wrapper */
    }

    .cart-product-info .cart-thumb {
        grid-area: img;
        width: 80px !important;
        height: 80px !important;
        object-fit: contain;
        background: #f8fafc;
        border-radius: 8px;
        align-self: start;
        /* Align to top */
    }

    /* 2. PRODUCT NAME & INFO (Area: info) */
    .product-details-text {
        grid-area: info;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        /* Prevent overlap with delete button which is absolute */
        padding-right: 2rem !important;
        min-width: 0 !important;
        /* Flex child truncation fix */
    }

    .product-name {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: var(--text-main);
        line-height: 1.3 !important;
        margin-bottom: 0.2rem !important;
        display: block !important;
    }

    .product-category {
        font-size: 0.8rem !important;
        color: #94a3b8;
        display: block !important;
    }

    /* 3. UNIT PRICE (Area: price) */
    .cart-table td:nth-child(2) {
        grid-area: price;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: var(--text-main) !important;
        align-self: start !important;
        margin-top: 0.2rem !important;
        /* Ensure it sits below name but right of image */
    }

    /* 4. QUANTITY (Area: qty) */
    .cart-table td:nth-child(3) {
        grid-area: qty;
        display: flex !important;
        align-items: center !important;
        margin-top: 0.5rem !important;
        padding-top: 0.5rem !important;
        border-top: 1px dashed #f1f5f9 !important;
        /* Span full width if needed, or keep left */
    }

    /* 5. TOTAL (Area: total) */
    .cart-table td:nth-child(4) {
        grid-area: total;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        font-weight: 700 !important;
        color: var(--primary) !important;
        font-size: 1.1rem !important;
        margin-top: 0.5rem !important;
        padding-top: 0.5rem !important;
        border-top: 1px dashed #f1f5f9 !important;
    }

    /* 6. REMOVE BUTTON - Absolute Top Right */
    .cart-table td:nth-child(5) {
        /* Cannot use display: contents for absolute positioning parent? */
        /* Actually, absolute pos relies on 'tr' which is relative */
        display: block !important;
        position: absolute !important;
        top: 0.75rem !important;
        right: 0.5rem !important;
        width: auto !important;
        padding: 0 !important;
        z-index: 10;
        height: auto !important;
    }

    .remove-btn {
        background: transparent !important;
        color: #ef4444 !important;
        border: none !important;
        font-size: 1.1rem !important;
        padding: 0.25rem !important;
    }

    /* Quantity Selector Styling */
    .quantity-selector {
        background: #f1f5f9;
        border-radius: 12px;
        padding: 2px;
        display: flex;
        align-items: center;
        gap: 0;
    }

    .qty-btn {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border: 1px solid #d1d5db;
        /* Gray outline */
        border-radius: 10px;
        /* Rounded corners */
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        color: var(--text-main);
        font-weight: 700;
        padding: 0;
    }

    .qty-input {
        width: 36px;
        height: auto;
        font-size: 1rem;
        font-weight: 700;
        background: transparent;
        border: none;
        text-align: center;
        color: var(--text-main);
        margin: 0;
        padding: 0;
    }

    /* Update Grid Template for Split Bottom Row */
    .cart-table tr {
        grid-template-areas:
            "img info"
            "img price"
            "qty total" !important;
    }

    /* 5. DELETE BUTTON (Top Right Absolute) */
    .cart-table td:nth-child(5) {
        position: absolute !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        width: auto !important;
        display: block !important;
        z-index: 10;
        background: transparent !important;
    }

    .cart-table td:nth-child(5) .btn-icon {
        color: #ef4444 !important;
        background: transparent !important;
        border-radius: 8px;
        transition: 0.2s;
        box-shadow: none !important;
        font-size: 1rem !important;
    }

    .btn-icon {
        background: #fee2e2;
        color: #ef4444;
        width: 28px !important;
        height: 28px !important;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        box-shadow: none !important;
    }

    /* FIX: Orders Page & Admin Orders - CARD VIEW (No Scroll) */
    .table-responsive {
        overflow-x: hidden !important;
        /* Disable horizontal scroll globally for this container */
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100vw !important;
        /* Force screen width limit */
    }

    .admin-table tbody,
    .table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.5rem !important;
        /* Reduced card gap */
        width: 100% !important;
        max-width: 100% !important;
        background: transparent !important;
    }

    /* ADMIN DASHBOARD HEADER FIXES */
    .admin-header>div:first-child,
    .admin-orders-header {
        /* Applied to both dashboards */
        flex-direction: column !important;
        align-items: center !important;
        /* CENTER TEXT */
        width: 100% !important;
        gap: 2rem !important;
        /* Increased Gap (Space between Text and Buttons) */
        margin-top: 0.5rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }

    /* Order Title Fixes */
    .admin-orders-header h2 {
        margin-top: 0 !important;
        /* Remove top margin to pull up */
        margin-bottom: 0.5rem !important;
        font-size: 2rem !important;
        /* BIGGER (Was 1.8) */
        font-weight: 800 !important;
    }

    /* Pull the whole container up */
    .container.section {
        padding-top: 1rem !important;
        /* Reduced from default large padding */
    }

    /* Buttons Container - Force Horizontal Row */
    .admin-header>div:first-child>div,
    .admin-actions-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        /* Force Row */
        gap: 0.5rem !important;
        justify-content: space-between !important;
        order: 2 !important;
        /* Ensure buttons are below title */
    }

    /* Layout Admin Header: Title Top, Buttons Bottom */
    .admin-header>div:first-child {
        display: flex !important;
        flex-direction: column !important;
    }

    .admin-header .section-title {
        order: -1 !important;
        /* Ensure Title is First */
        font-size: 2.2rem !important;
        /* Bigger Title Text */
        font-weight: 800 !important;
    }

    .admin-actions-group {
        order: 2 !important;
        /* Ensure Buttons are Second/Last */
    }

    /* Buttons Container - Force Horizontal Row */
    .admin-header>div:first-child>div,
    .admin-actions-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        /* Force Row */
        gap: 0.5rem !important;
        justify-content: space-between !important;
    }

    /* Buttons - Mobile Size Optimization */
    .admin-header .btn {
        flex: 1 !important;
        /* Equal width */
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 0.75rem !important;
        /* Smaller text */
        padding: 0.5rem 0.2rem !important;
        /* Compact padding */
        height: 38px !important;
        /* Fixed height */
        margin: 0 !important;
    }

    /* GLOBAL FIX: Prevent Zoom on Input Focus (iOS) */
    input[type="text"],
    input[type="number"],
    input[type="password"],
    input[type="email"],
    select,
    textarea {
        font-size: 16px !important;
        /* Must be 16px to prevent zoom */
    }

    /* Convert Table Rows to Compact Cards - CHANGED SELECTOR to exclude details row */
    .admin-table tr:not([id^="details-"]),
    .table tr:not([id^="details-"]) {
        display: flex !important;
        flex-direction: column;
        background: white;
        border: 1px solid #f1f5f9;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        /* Lighter shadow */
        border-radius: 8px;
        /* Tighter radius */
        padding: 0.75rem !important;
        /* Reduced padding */
        position: relative;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-bottom: 0 !important;
    }

    /* Hide Table Headers for Orders/Admin tables on mobile */
    .admin-table thead,
    .table thead {
        display: none !important;
    }

    .admin-table td,
    .table td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        /* Removed vertical padding */
        border: none !important;
        text-align: left !important;
        font-size: 0.75rem !important;
        word-break: break-all !important;
        line-height: normal !important;
        white-space: normal !important;
    }

    /* ID - Top Left, Bold */
    .admin-table td:first-child,
    .table td:first-child {
        display: inline-block !important;
        width: auto !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        color: var(--text-main) !important;
        margin-bottom: 0.1rem !important;
        margin-right: 0.5rem !important;
    }

    /* USER TABLE: Date (2nd) - Absolute positioned to be closer to status */
    .table:not(.admin-table) td:nth-child(2) {
        position: absolute !important;
        top: 1rem !important;
        right: 5rem !important;
        width: auto !important;
        font-size: 0.75rem !important;
        color: var(--text-muted) !important;
        text-align: right !important;
        background: transparent !important;
        padding: 0 !important;
    }

    /* ADMIN TABLE: Client (2nd) - Tighter Spacing */
    .admin-table td:nth-child(2) {
        font-size: 0.85rem !important;
        color: var(--text-main) !important;
        margin-bottom: 0.1rem !important;
        margin-top: 0.2rem !important;
        /* Reduced top margin to pull it up */
        line-height: 1.2 !important;
    }

    /* ADMIN TABLE: Date (3rd) - Absolute Top Right (next to ID, left of Status) */
    .admin-table td:nth-child(3) {
        position: absolute !important;
        top: 0.75rem !important;
        right: 8rem !important;
        /* Adjusted position */
        width: auto !important;
        font-size: 0.75rem !important;
        color: var(--text-muted) !important;
        text-align: right !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* Price - Compact */
    .admin-table td:nth-child(4),
    /* Admin Price */
    .table:not(.admin-table) td:nth-child(3) {
        /* User Price */
        display: block !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: var(--primary) !important;
        margin-bottom: 0.25rem !important;
        clear: both !important;
        margin-top: 0.1rem !important;
    }

    /* Status - Shifted to TOP RIGHT */
    .admin-table td:nth-child(5) {
        position: absolute !important;
        top: 0.5rem !important;
        /* Slightly higher */
        right: 0.5rem !important;
        /* Not flush to edge, easier to see */
        width: auto !important;
        /* Auto width */
        padding: 0 !important;
        text-align: right !important;
        z-index: 5;
    }

    .table:not(.admin-table) td:nth-child(4) {
        /* User Status (Badge) */
        position: absolute !important;
        top: 0.75rem !important;
        right: 0.75rem !important;
        width: auto !important;
        padding: 0 !important;
        text-align: right !important;
    }

    /* Form Select inside Admin Table - Bigger */
    .admin-table .form-select {
        padding: 0.25rem 1.4rem 0.25rem 0.6rem !important;
        /* More comfortable padding */
        font-size: 0.8rem !important;
        /* Bigger font */
        font-weight: 500 !important;
        height: auto !important;
        background-position: right 0.3rem center !important;
        line-height: 1.3 !important;
        border-width: 1px !important;
    }

    .status-badge,
    .badge {
        font-size: 0.6rem !important;
        padding: 2px 5px !important;
    }

    /* BUTTON FIX: Admin Details Button - BOTTOM RIGHT & Box Style */
    .admin-table td:nth-child(6) {
        border-top: none !important;
        padding: 0 !important;
        margin: 0 !important;
        position: absolute !important;
        top: auto !important;
        bottom: 0.75rem !important;
        /* Bottom */
        right: 0.5rem !important;
        /* Right */
        width: auto !important;
        display: block !important;
        z-index: 6;
    }

    .admin-table td:nth-child(6) .btn {
        padding: 0.5rem 1.25rem !important;
        /* Larger touch target */
        font-size: 0.85rem !important;
        width: auto !important;
        height: auto !important;
        background: #10b981 !important;
        /* GREEN (Success) */
        color: white !important;
        /* White Text */
        border: none !important;
        border-radius: 6px;
        box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.5) !important;
        display: inline-block !important;
        margin-top: 0 !important;
        font-weight: 600 !important;
        letter-spacing: 0.025em !important;
    }

    /* User Actions (Button) - Positioned below status */
    .table:not(.admin-table) td:last-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
        position: absolute !important;
        top: 2.5rem !important;
        /* Adjusted */
        right: 0.75rem !important;
        width: auto !important;
        text-align: right !important;
        background: transparent !important;
    }

    .btn-sm {
        padding: 0.2rem 0.5rem !important;
        /* Smaller button padding */
        font-size: 0.7rem !important;
        /* Smaller button text */
        height: auto !important;
    }

    /* BUTTON FIX: View Details Button - Text Only style */
    .table:not(.admin-table) td:last-child .btn {
        background: transparent !important;
        color: var(--primary) !important;
        border: 1px solid var(--primary) !important;
        padding: 0.3rem 0.8rem !important;
        font-size: 0.75rem !important;
        font-weight: 500 !important;
        border-radius: 4px;
        box-shadow: none !important;
    }

    /* DETAILS ROW FIX: Reset Defaults for Details Card */
    .table tr[id^="details-"] {
        display: none;
        /* Default hidden */
        width: 100% !important;
        background: #f8fafc !important;
        border: none !important;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* When active (overriding JS inline style 'display: table-row') */
    .table tr[id^="details-"][style*="display: table-row"],
    .table tr[id^="details-"][style*="display: block"] {
        display: block !important;
    }

    /* FIX: Ensure content is aligned left/top and overrides first-child rules */
    .table tr[id^="details-"] td,
    .admin-table tr[id^="details-"] td:first-child,
    /* Specific override for nth-child(1) collision */
    .table tr[id^="details-"] td:first-child {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 0.5rem 0.5rem 0.5rem 0 !important;
        background-color: transparent !important;
        position: static !important;
        /* Prevent absolute positioning */
        font-weight: normal !important;
        font-size: 0.9rem !important;
        margin: 0 !important;
    }

    .order-details-wrapper {
        text-align: left !important;
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .details-content {
        text-align: left !important;
        padding-left: 0 !important;
    }

    /* Admin Header Actions - Single Row - Forced Specificity */
    .admin-header .admin-actions-group {
        display: flex !important;
        flex-direction: row !important;
        /* Force Row */
        gap: 1.5rem !important;
        /* INCREASED GAP AS REQUESTED */
        width: 100% !important;
        margin-top: 1rem !important;
        /* ADDED MORE SPACE ABOVE BUTTONS */
    }

    .admin-header .admin-actions-group .btn {
        flex: 1 !important;
        font-size: 0.8rem !important;
        padding: 0.6rem 0.2rem !important;
        white-space: nowrap !important;
        justify-content: center !important;
        text-align: center !important;
        height: auto !important;
        min-height: 2.5rem !important;
    }

    /* FIX: Admin Product List Mobile */
    .admin-product-table tr {
        padding-right: 0 !important;
        /* Managed by individual cells */
        min-height: auto !important;
        justify-content: flex-start !important;
        flex-direction: column !important;
        position: relative !important;
        padding-bottom: 0.75rem !important;
    }

    /* Name: Full Width & Safe from Buttons */
    .admin-product-table td:first-child {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.1rem !important;
        width: 100% !important;
        padding-right: 110px !important;
        /* Increased buffer from buttons */
        white-space: normal !important;
        line-height: 1.3 !important;
        display: block !important;
        word-break: normal !important;
        /* Reset break-all */
        word-wrap: break-word !important;
        /* Break long words only if needed */
        overflow-wrap: break-word !important;
    }

    /* Category: Hidden */
    .admin-product-table td:nth-child(2) {
        display: none !important;
    }

    /* Price: Hidden as requested */
    .admin-product-table td:nth-child(3) {
        display: none !important;
    }

    /* Actions: Icons Top Right */
    .admin-product-table td:last-child {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        width: auto !important;
        display: flex !important;
        gap: 0.5rem !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        margin: 0 !important;
        background: transparent !important;
    }

    .btn-icon-only {
        width: 32px !important;
        height: 32px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    .btn-icon-only i {
        font-size: 0.9rem !important;
    }

    /* Reduce container padding to fit screen */
    .admin-container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Special Handling for Order Details Row */
    tr[id^="details-"] {
        display: none;
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        border: 1px solid #e2e8f0;
        border-top: none;
        background: #f8fafc;
        margin-top: -0.5rem !important;
        /* Pull higher up */
        border-radius: 0 0 8px 8px;
        padding: 0 !important;
        /* Zero padding on wrapper TR */
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    tr[id^="details-"] td {
        padding: 0.75rem !important;
        width: 100% !important;
    }

    /* DETAILS CONTENT TYPOGRAPHY REDUCTION */
    .details-title,
    h4.details-title {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        margin-top: 1rem !important;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .details-content p {
        font-size: 0.7rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.4 !important;
    }

    .details-products li {
        font-size: 0.7rem !important;
        padding: 0.25rem 0 !important;
    }

    .details-price {
        font-size: 0.7rem !important;
    }

    /* Fix Details Content Alignment - Small Text */
    td .order-details-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.5rem 0.5rem 0 !important;
        /* Top padding 0 to pull higher, Left 0 to pull left */
        margin: -0.25rem 0 0 0 !important;
        /* Negative margin to pull even higher */
        position: static !important;
        display: block !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }

    .order-details-wrapper .details-title,
    .details-content .details-title {
        font-size: 0.85rem !important;
        /* Smaller Title */
        margin-bottom: 0.1rem !important;
        /* Tighter title margin */
        margin-top: 0.2rem !important;
        /* Pulled higher */
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .order-details-wrapper p,
    .order-details-wrapper li,
    .details-content p,
    .details-content li {
        font-size: 0.75rem !important;
        /* Very small text as requested */
        line-height: 1.3 !important;
        margin-bottom: 0.2rem !important;
    }

    .details-products {
        margin-top: 0.5rem !important;
    }

    .details-products li {
        padding: 0.25rem 0 !important;
        font-size: 0.75rem !important;
        border-bottom: 1px dashed #e2e8f0;
        display: flex !important;
        justify-content: space-between !important;
    }

    .details-products .details-price {
        font-size: 0.8rem !important;
        font-weight: 700 !important;
    }

    /* Admin Orders Specific Details Fixes */
    .admin-details-grid {
        display: block !important;
        /* Stack vertically */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .admin-details-grid .details-section {
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        border-bottom: 1px solid #e2e8f0;
    }

    .admin-details-grid .details-section:last-child {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .admin-details-grid .details-section p,
    .admin-details-grid .details-section li,
    .admin-details-grid .details-section span {
        font-size: 0.75rem !important;
        /* Smallest */
    }

    /* Fix Admin Search Bar & Header */
    .admin-header>div:first-child,
    .admin-orders-header {
        flex-direction: column-reverse !important;
        /* Button above title */
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .admin-header .section-title,
    .admin-orders-header .section-title {
        font-size: 1.25rem !important;
        /* Smaller Title */
        align-self: flex-start;
    }

    /* Smaller Search Bar in Admin Orders */
    #adminOrderSearch {
        padding: 0.5rem 0.75rem 0.5rem 2.25rem !important;
        font-size: 0.8rem !important;
        height: auto !important;
        width: 100% !important;
    }

    /* Admin/Orders Card Content Styling - Labels */
    .table td::before {
        /* Optional: content: attr(data-label); if maintained in HTML */
        font-weight: 600;
        font-size: 0.7rem !important;
        color: #94a3b8;
        display: block;
        margin-bottom: 0;
    }

    /* Stores/Products Page Mobile Fixes */
    .shop-hero {
        padding-bottom: 1.5rem !important;
        /* Reduce gap between text and search bar */
        min-height: auto !important;
        padding-top: 5rem !important;
        position: relative !important;
        z-index: 1 !important;
        /* Lower z-index for hero to let search bar overlap */
    }

    .shop-section {
        position: relative !important;
        z-index: 10 !important;
        /* Higher than hero */
    }

    .filter-container {
        margin-top: -1.5rem !important;
        /* Pull up more visible */
        margin-bottom: 2rem !important;
        position: relative !important;
        z-index: 200 !important;
        /* Ensure it floats above */
    }

    .filter-bar {
        padding: 0.5rem !important;
        /* Smaller search bar container */
    }

    /* About Page Text Fixes */
    .section p {
        font-size: 0.9rem !important;
        /* Smaller paragraph text globally on mobile */
        line-height: 1.6 !important;
    }

    /* Checkout & Profile Fixes */
    .checkout-form h3 {
        font-size: 1.1rem !important;
        /* Smaller "Permbledhja" */
    }

    /* Admin Products Page Fixes */
    #adminProductSearch {
        padding: 0.75rem 1rem 0.75rem 2.5rem !important;
        /* Smaller compressed padding */
        font-size: 0.9rem !important;
        height: auto !important;
    }

    .search-box-admin i {
        font-size: 0.9rem !important;
        left: 1rem !important;
    }

    /* Smaller/Compressed items in Admin Product Table */
    .admin-table td,
    .admin-table th {
        font-size: 0.75rem !important;
        /* Significantly smaller text */
        padding: 0.4rem 0.25rem !important;
        /* Tighter padding */
        white-space: normal !important;
    }

    .admin-table .btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
        margin-right: 2px !important;
    }

    /* FIX: Product Details Mobile Spacing */
    .product-detail-grid {
        gap: 0.5rem !important;
        /* drastically reduce gap between image and text */
        margin-top: -1rem !important;
        /* Pull up */
    }

    /* Reduce White Space in Image Container */
    .detail-carousel-container .product-image {
        padding: 0.5rem !important;
        /* Reduce internal padding so image is bigger */
    }

    /* Make Indicators tighter and closer */
    .carousel-indicators {
        bottom: 5px !important;
        /* Pull dots down */
        gap: 4px !important;
    }

    .indicator-dot {
        width: 5px !important;
        height: 5px !important;
        margin: 0 1px !important;
    }

    /* Reduce Thumbnail gap if they exist */
    .thumbnails-container {
        padding-top: 0.75rem !important;
        margin-top: 0 !important;
    }

    /* Pull Info Column Up */
    .product-info-column {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Category Name specific spacing */
    .product-info-column>div:first-child {
        margin-bottom: 0.5rem !important;
        /* Reduce gap below category */
    }

    /* Checkout & Profile Grid logic integrated into main media query */
    .checkout-grid-2,
    .profile-grid-2 {
        grid-template-columns: 1fr !important;
    }

    .profile-grid-2 .form-group,
    .checkout-grid-2 .form-group {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* Admin Table Mobile Fixes - Combined */
    .admin-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1.5rem !important;
        text-align: center;
    }

    .admin-header .section-title {
        text-align: center !important;
    }

    .admin-header div {
        justify-content: center !important;
    }

}

/* =========================================
   NEW CART MOBILE OVERRIDES (GRID SYSTEM)
   ========================================= */
@media (max-width: 768px) {

    .cart-header-row-grid,
    .desktop-only,
    .cart-col-price.desktop-only {
        display: none !important;
    }

    .cart-grid-container {
        gap: 1rem;
    }

    .cart-item-card {
        grid-template-columns: 1fr;
        /* Stack everything */
        position: relative;
        padding: 1rem;
        gap: 1rem;
        align-items: flex-start;
    }

    .cart-col-product {
        width: 100%;
        padding-right: 3rem;
        /* Make space for delete button */
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
        min-width: 70px;
        /* Prevent shrink */
    }

    .cart-item-details {
        align-items: flex-start;
        width: 100%;
        gap: 0.1rem;
    }

    .cart-item-name {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .mobile-price {
        display: block;
        font-weight: 700;
        color: var(--primary);
        font-size: 1.1rem;
        margin-top: 0.25rem;
    }

    .cart-col-quantity {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 1rem;
        border-top: 1px dashed #e2e8f0;
        margin-top: 0.5rem;
    }

    .quantity-control {
        margin: 0;
        display: flex !important;
        gap: 4px !important;
        align-items: center !important;
    }

    .qty-btn {
        width: 36px !important;
        height: 36px !important;
        background: #ffffff !important;
        border: 1px solid #d1d5db !important;
        /* Gray outline */
        border-radius: 10px !important;
        /* Rounded corners */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: var(--text-main) !important;
        padding: 0 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    }

    .qty-input {
        width: 32px !important;
        border: none !important;
        background: transparent !important;
        text-align: center !important;
        font-weight: 700 !important;
        margin: 0 !important;
        padding: 0 !important;
        color: var(--text-main) !important;
    }

    .cart-col-total {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.75rem;
        margin-top: 0;
    }

    /* We can actually put total next to quantity or below */
    .cart-col-total {
        width: auto;
    }

    .mobile-label {
        display: inline;
        font-size: 0.9rem;
        color: #64748b;
        font-weight: 400;
    }

    .cart-col-action {
        position: absolute !important;
        top: 0.75rem !important;
        right: 0.75rem !important;
        width: auto !important;
        z-index: 50 !important;
        /* Ensure it's above other elements */
    }

    .delete-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
        background: #fee2e2 !important;
        /* Soft red background */
        color: #ef4444 !important;
        border: none !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        cursor: pointer !important;
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1) !important;
    }

    .delete-btn:active {
        background: #fecaca !important;
        transform: scale(0.9) !important;
    }

    .cart-footer-summary {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
        margin-top: 1.5rem;
    }

    .cart-total-box {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .cart-footer-actions {
        width: 100%;
        flex-direction: column-reverse;
        /* Put Checkout on top */
        gap: 1rem;
    }

    .btn-block-mobile {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
    }

    /* Reduce header padding on mobile */
    .cart-page-header {
        margin-bottom: 1rem;
        flex-direction: row;
        /* Ensure row to keep Left/Right alignment */
    }

    .cart-page-header .section-title {
        font-size: 1.25rem !important;
        /* Smaller title to fit */
    }

    .cart-back-btn {
        padding: 0.6rem 1rem !important;
        font-size: 1rem !important;
        /* Bigger Font */
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
    }

    .cart-footer-actions {
        width: 100%;
        flex-direction: row;
        /* Side by side buttons */
        gap: 1rem;
        justify-content: space-between;
    }

    .checkout-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem !important;
        font-size: 0.95rem !important;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        border-radius: 10px !important;
    }

    .desktop-text {
        display: inline !important;
        /* Show text on mobile now */
    }
}

/* Final Mobile Polish - Typography & Hero */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }

    .sub-title {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem !important;
    }

    .section-header {
        margin-bottom: 1.5rem !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    /* Make buttons in section headers smaller */
    .section-header .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
        height: auto !important;
        min-height: unset !important;
    }

    .section-header .btn i {
        font-size: 0.75rem !important;
    }

    /* Fix for "Shiko të gjitha ofertat" button Specifically */
    #ofertat {
        padding-bottom: 0.5rem !important;
    }

    #rekomanduara {
        padding-top: 0.5rem !important;
    }

    .product-carousel {
        padding-bottom: 0.75rem !important;
    }

    #ofertat .section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem;
        margin-bottom: 1.5rem !important;
    }

    #ofertat .section-header .btn {
        align-self: flex-start;
        margin-bottom: 0 !important;
    }

    .hero-carousel-container {
        margin-top: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        /* Let aspect ratio define height */
        background: #fff !important;
    }

    .hero-inner-wrapper {
        aspect-ratio: auto !important;
        height: auto !important;
        border-radius: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        /* Removed padding so it stays edge-to-edge */
        background: #fff !important;
    }

    .hero-carousel {
        height: auto !important;
        /* Allow height to be determined by image */
        border-radius: 0 !important;
        position: relative;
    }

    .hero-carousel::after {
        display: none !important;
        /* Removed gray gradient overlay */
    }

    .hero-img {
        height: auto !important;
        /* Change to auto to allow natural height */
        width: 100% !important;
        object-fit: contain !important;
        object-position: center;
        background: #fff !important;
    }

    .hero-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 !important;
        z-index: 10;
    }

    .hero-dots .dot {
        background: rgba(255, 255, 255, 0.5) !important;
        width: 10px !important;
        height: 10px !important;
    }

    .hero-dots .dot.active {
        background: #fff !important;
        width: 25px !important;
        border-radius: 10px !important;
    }

    .hero-prev,
    .hero-next {
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.6) !important;
        backdrop-filter: blur(8px);
        font-size: 1rem !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    }

    /* Load More Button Mobile Scaling */
    .btn-load-more {
        padding: 0.6rem 1.4rem !important;
        font-size: 0.85rem !important;
        width: auto !important;
        min-width: 160px;
    }

    .load-more-container {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
}



/* Cart Page Mobile Spacing Fix */
.mobile-cart-page-wrapper {
    padding-top: 2rem !important;
    /* Replaces the inline 1rem */
}

.back-btn-wrapper {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .mobile-cart-page-wrapper {
        padding-top: 4.5rem !important;
        /* Extra space to avoid overlapping fixed header */
    }

    .back-btn-wrapper {
        margin-bottom: 1.5rem;
    }
}