/*
 * EMT Technology - Custom WooCommerce Styles
 * Inspired by professional tech retailers
 */

/* Main Container: Sidebar + Content Grid */
.emtt-shop-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .emtt-shop-container {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Styling */
.emtt-shop-sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.emtt-shop-sidebar .widget-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 5px;
}

.emtt-shop-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.emtt-shop-sidebar ul li {
    margin-bottom: 10px;
}

.emtt-shop-sidebar ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.emtt-shop-sidebar ul li a:hover {
    color: #0056b3;
}

/* Product Grid Adjustments */
.emtt-shop-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.emtt-shop-content ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.emtt-shop-content ul.products li.product:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #ddd;
}

/* Product Titles & Prices */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1em !important;
    color: #333 !important;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
    flex-grow: 1;
}

.woocommerce ul.products li.product .price {
    color: #b12704 !important;
    font-size: 1.25em !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
}

/* Buttons */
.woocommerce ul.products li.product .button {
    background-color: #007bff !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 10px 15px !important;
    font-weight: bold !important;
    transition: background-color 0.2s !important;
    margin-top: auto;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #0056b3 !important;
}

/* Pagination & Sorting */
.woocommerce-ordering {
    margin-bottom: 20px;
}

.woocommerce-pagination .page-numbers {
    border: none !important;
}

.woocommerce-pagination .page-numbers li .page-numbers.current,
.woocommerce-pagination .page-numbers li .page-numbers:hover {
    background: #007bff !important;
    color: #fff !important;
}