/* ===== Custom Shop Listing Styles ===== */
/* Enqueue this file in your theme (functions.php) or paste into Additional CSS */

.custom-shop-wrap {
    padding: 40px 0;
    background: #fdfaf6;
}

.custom-shop-container {
    display: flex;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;
}

/* ---------- Sidebar ---------- */
.shop-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.filter-block {
    margin-bottom: 32px;
}

.filter-title {
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #8a6d3b;
    margin-bottom: 16px;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    margin-bottom: 4px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.category-list a:hover {
    background: #f4ece0;
}

.category-list li.active a {
    background: #f4ece0;
    font-weight: 600;
    color: #8a4b2f;
}

.category-list span {
    color: #999;
    font-size: 13px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-inputs input {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.btn-apply-filter {
    width: 100%;
    padding: 8px;
    background: #8a4b2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-apply-filter:hover {
    background: #6f3b24;
}

/* ---------- Toolbar ---------- */
.shop-main {
    flex: 1;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-count {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.sort-form select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ---------- Product Grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .custom-shop-container { flex-direction: column; }
    .shop-sidebar { width: 100%; }
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.product-image-wrap {
    position: relative;
    background: #f6f0e8;
}

.product-image-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    letter-spacing: 0.5px;
}

.badge-bestseller { background: #2e7d32; }
.badge-new { background: #1565c0; }

.product-info {
    padding: 14px 4px;
}

.product-title {
    font-size: 15px;
    margin: 0 0 6px;
}

.product-title a {
    color: #222;
    text-decoration: none;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.rating-count {
    font-size: 12px;
    color: #999;
}

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

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.product-price del {
    color: #999;
    font-weight: 400;
    margin-right: 6px;
}

.add-to-cart-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4ece0;
    border-radius: 50%;
    color: #8a4b2f;
    text-decoration: none;
    transition: background 0.15s ease;
}

.add-to-cart-btn:hover {
    background: #8a4b2f;
    color: #fff;
}

.add-to-cart-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ---------- Pagination ---------- */
.shop-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.shop-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.shop-pagination .page-numbers.current {
    background: #8a4b2f;
    color: #fff;
    border-color: #8a4b2f;
}

.no-products-found {
    padding: 40px 0;
    text-align: center;
    color: #999;
}