/* RESET NUMBER INPUT ARROWS */
.em-qty-input::-webkit-inner-spin-button,
.em-tech-shop .em-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.em-tech-shop .em-qty-input {
    appearance: textfield;
}

/* ===== LAYOUT ===== */
.em-tech-shop .em-shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}
@media (max-width: 991px) {
.em-tech-shop .em-shop-layout {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE FILTER TOGGLE ===== */
.em-tech-shop .em-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: #0c1832;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.em-tech-shop .em-filter-toggle:hover {
    background: #152349;
}

.em-tech-shop .em-filter-toggle svg {
    stroke: #ffffff;
}

.em-tech-shop .em-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.em-tech-shop .em-sidebar-header h3 {
    margin-bottom: 0;
}

.em-tech-shop .em-filter-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
}

.em-tech-shop .em-filter-close:hover {
    color: #0c1832;
}

/* ===== SIDEBAR ===== */
.em-tech-shop .em-sidebar {
    border: 1px solid #e4e7eb;
    padding: 20px;
    background: #ffffff;
    border-radius: 14px;
}

.em-tech-shop .em-sidebar h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #0c1832;
}

.em-tech-shop .em-filter-block {
    margin-bottom: 24px;
}

.em-tech-shop .em-filter-block h4 {
    margin-bottom: 8px;
    font-size: 15px;
    color: #0c1832;
}

.em-tech-shop .em-filter-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.em-tech-shop .em-filter-block li {
    margin-bottom: 6px;
}

.em-tech-shop .em-filter-block a {
    color: #0c1832;
    text-decoration: none;
    font-size: 14px;
}

.em-tech-shop .em-filter-block a:hover {
    text-decoration: underline;
}

.em-tech-shop .em-filter-active {
    font-weight: 700;
    text-decoration: underline;
}

.em-tech-shop .em-clear-filters {
    font-size: 13px;
    color: #6b7280;
}

/* ===== ACCESSORIES TOGGLE ===== */
.em-tech-shop .em-accessories-toggle {
    margin-top: 8px;
}

.em-tech-shop .em-cat-toggle {
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.em-tech-shop .em-toggle-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 10px;
    transition: transform 0.2s;
    width: 12px;
}

.em-tech-shop .em-accessories-list {
    margin-top: 8px;
    margin-left: 20px;
    padding-left: 0;
}

.em-tech-shop .em-accessories-list li {
    padding-left: 0;
}

/* ===== SEARCH FORM ===== */
.em-tech-shop .em-search-form {
    display: flex;
    gap: 8px;
}

.em-tech-shop .em-search-form input {
    flex: 1;
}

/* ===== PRICE FILTER ===== */
.em-tech-shop .em-price-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.em-tech-shop .em-price-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
}

.em-tech-shop .em-price-input {
    width: 100% !important;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    font-size: 14px;
}

.em-tech-shop .em-price-sep {
    display: none;
}

.em-tech-shop .em-price-btn {
    padding: 8px;
    background: #0c1832;
    color: #ffffff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.em-tech-shop .em-price-btn:hover {
    background: #152349;
}

/* ===== SORT DROPDOWN ===== */
.em-tech-shop .em-sort-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    color: #0c1832;
    cursor: pointer;
    min-width: 180px;
}

.em-tech-shop .em-sort-select:focus {
    outline: none;
    border-color: #0c1832;
}

/* ===== PAGINATION ===== */
.em-tech-shop .em-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.em-tech-shop .em-page-btn {
    padding: 8px 12px;
    background: #f0f0f0;
    color: #0c1832;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    min-width: 40px;
}

.em-tech-shop .em-page-btn:hover {
    background: #e0e0e0;
}

.em-tech-shop .em-page-active {
    background: #0c1832 !important;
    color: #ffffff !important;
    font-weight: 700;
}

.em-tech-shop .em-page-ellipsis {
    padding: 8px 4px;
    color: #6b7280;
    font-size: 14px;
}

/* ===== GRID: 3 / 2 / 1 ===== */
.em-tech-shop .em-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
@media (max-width: 1199px) {
.em-tech-shop .em-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 991px) {
.em-tech-shop .em-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===== CARD ===== */
.em-tech-shop .em-card {
    position: relative;
    border: 1px solid #e4e7eb;
    border-radius: 20px;
    padding: 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Badge colors */
.em-tech-shop .em-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
    z-index: 5;
}

.em-tech-shop .em-badge-featured {
    background: #D62604;
}

.em-tech-shop .em-badge-black-friday {
    background: #D62604;
}

.em-tech-shop .em-badge-christmas {
    background: #D62604;
}

.em-tech-shop .em-badge-new-years {
    background: #D62604;
    color: #000000;
}

.em-tech-shop .em-badge-valentines {
    background: #D62604;
}

.em-tech-shop .em-badge-easter {
    background: #D62604;
}

.em-tech-shop .em-badge-summer {
    background: #D62604;
}

.em-tech-shop .em-badge-back-to-school {
    background: #D62604;
}

/* Image */
.em-tech-shop .em-image-wrap img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin: 18px 0;
    display: block;
}

/* Title */
.em-tech-shop .em-title {
    font-size: 15px;
    font-weight: 600;
    color: #0c1832;
    margin-bottom: 10px;
}

/* Meta (SKU) */
.em-tech-shop .em-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

/* ===== STOCK STATUS ===== */
.em-tech-shop .em-stock {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.em-tech-shop .em-stock-high {
    background: #d1fae5;
    color: #065f46;
}

.em-tech-shop .em-stock-low {
    background: #fed7aa;
    color: #92400e;
}

.em-tech-shop .em-stock-out {
    background: #fee2e2;
    color: #991b1b;
}

/* Price */
.em-tech-shop .em-price {
    font-size: 20px;
    font-weight: 700;
    color: #0c1832;
    margin-bottom: 10px;
}

.em-tech-shop .em-each {
    font-size: 12px;
    color: #6b7280;
    margin-left: 4px;
}

/* Delivery */
.em-tech-shop .em-delivery {
    font-size: 13px;
    color: #008000;
    margin-bottom: 16px;
}

/* Bottom bar */
.em-tech-shop .em-bottom {
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    padding: 14px;
    background: #f8f9fc;
    border-top: 1px solid #e4e7eb;
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 12px;
    margin-top: auto;
}

/* Qty */
.em-tech-shop .em-qty {
    flex: 1 1 0;
    height: 48px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    display: flex;
    align-items: center;
}

.em-tech-shop .em-qty-btn {
    width: 40px;
    height: 48px;
    border: none;
    background: #f0f0f0;
    font-size: 20px;
    cursor: pointer;
}

.em-tech-shop .em-qty-input {
    flex: 1 1 auto;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 16px;
    background: #ffffff;
}

/* Add to cart */
.em-tech-shop .em-add {
    flex: 1 1 0;
    height: 48px;
    background: #0c1832 !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.em-tech-shop .em-add:hover {
    background: #152349 !important;
}

.em-tech-shop .em-add svg {
    fill: #ffffff;
}

/* Mobile styles */
@media (max-width: 991px) {
.em-tech-shop .em-filter-toggle {
        display: flex;
    }
    
.em-tech-shop .em-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        overflow-y: auto;
        z-index: 1000;
        background: #ffffff;
        transition: left 0.3s ease;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    
.em-tech-shop .em-sidebar.em-sidebar-open {
        left: 0;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    }
    
.em-tech-shop .em-filter-close {
        display: block;
    }
    
    /* Overlay */
.em-tech-shop .em-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
.em-tech-shop .em-filter-overlay.active {
        display: block;
    }
}

/* Prevent body scroll when filters open */
    overflow: hidden;
}

/* ===== MOBILE BUTTON IMPROVEMENTS ===== */
@media (max-width: 991px) {
.em-tech-shop .em-bottom {
        gap: 8px;
        padding: 12px;
    }
    
.em-tech-shop .em-qty {
        flex: 0 0 35%;
        min-width: 35%;
    }
    
.em-tech-shop .em-add {
        flex: 0 0 calc(65% - 8px);
        min-width: calc(65% - 8px);
        height: 52px;
    }
}

/* Very small phones - stack vertically */
@media (max-width: 480px) {
.em-tech-shop .em-bottom {
        flex-direction: column;
        gap: 10px;
    }
    
.em-tech-shop .em-qty {
        flex: 1 1 auto;
        width: 100%;
    }
    
.em-tech-shop .em-add {
        flex: 1 1 auto;
        width: 100%;
        height: 52px;
    }
}

.em-tech-shop .em-products-wrap{display:block; width:100%;}
.em-tech-shop #em-products-container{width:100%;}
