/**
 * Toy Kingdom Shop Page Styles
 * Matches homepage product card design
 */

/* Shop Products Grid */
.toy-kingdom-products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    margin: 0;
}

/* Product Card in Shop Grid */
.toy-kingdom-products-grid .toy-kingdom-product-card {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    display: block;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .toy-kingdom-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .toy-kingdom-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .toy-kingdom-products-grid {
        grid-template-columns: 1fr !important; /* Only one product per row on mobile */
        gap: 16px;
    }
    
    .toy-kingdom-products-grid .toy-kingdom-product-card {
        padding: 10px;
    }
    
    .toy-kingdom-products-grid .product-image img {
        height: 200px;
    }
    
    .toy-kingdom-products-grid .product-name {
        font-size: 14px;
        min-height: auto;
    }
    
    .toy-kingdom-products-grid .product-sku {
        font-size: 12px;
    }
    
    .toy-kingdom-products-grid .current-price,
    .toy-kingdom-products-grid .original-price {
        font-size: 16px;
    }
    
    .toy-kingdom-products-grid .add-to-cart-btn {
        font-size: 13px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .toy-kingdom-products-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

/* Ensure product cards don't break layout */
.products-wrap .toy-kingdom-products-grid {
    width: 100%;
    margin: 0;
}

/* Fix for shop page layout */
.bzotech-archive-shop .shop-content {
    width: 100%;
}

.bzotech-archive-shop .products-wrap {
    width: 100%;
    padding: 0;
}

/* Remove default theme product grid styles that might interfere */
.bzotech-archive-shop .list-product-wrap {
    display: block !important;
}

.bzotech-archive-shop .list-col-item {
    display: block !important;
}

/* Ensure proper spacing */
.bzotech-archive-shop .toy-kingdom-products-grid .toy-kingdom-product-card {
    margin: 0;
}

/* Fix layout - ensure sidebar and content are side by side */
/* Override any inline styles or other CSS that might be setting display: block */
.bzotech-archive-shop .bzotech-container .bzotech-row,
.bzotech-archive-shop .container .bzotech-row,
.bzotech-archive-shop .bzotech-row.row,
.bzotech-archive-shop .bzotech-row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -15px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.bzotech-archive-shop .bzotech-container .bzotech-col-lg-3,
.bzotech-archive-shop .bzotech-container .bzotech-col-lg-9,
.bzotech-archive-shop .container .bzotech-col-lg-3,
.bzotech-archive-shop .container .bzotech-col-lg-9,
.bzotech-archive-shop .bzotech-col-lg-3,
.bzotech-archive-shop .bzotech-col-lg-9 {
    padding: 0 15px;
    flex: 0 0 auto;
}

.bzotech-archive-shop .bzotech-col-lg-3 {
    width: 25%;
    max-width: 25%;
}

.bzotech-archive-shop .bzotech-col-lg-9 {
    width: 75%;
    max-width: 75%;
}

.bzotech-archive-shop .sidebar {
    width: 100%;
}

.bzotech-archive-shop .main-wrap-shop {
    width: 100%;
}

/* Ensure products grid takes full width of its container */
.bzotech-archive-shop .products-wrap {
    width: 100%;
    display: block;
}

.bzotech-archive-shop .products-grid {
    width: 100%;
    display: grid !important;
}

/* Fix filter sidebar alignment and design */
.bzotech-archive-shop .sidebar {
    width: 100%;
    padding: 0;
}

.bzotech-archive-shop .sidebar .sidebar-widget {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    padding: 25px 20px;
    border: 1px solid #e5e5e5;
}

.bzotech-archive-shop .sidebar .widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 0;
    position: static;
    background: transparent;
    color: #333;
}

.bzotech-archive-shop .sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bzotech-archive-shop .sidebar .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bzotech-archive-shop .sidebar .widget ul li:last-child {
    border-bottom: none;
}

.bzotech-archive-shop .sidebar .widget ul li a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.bzotech-archive-shop .sidebar .widget ul li a:hover {
    color: #FF8C22;
}

/* Price filter styling */
.bzotech-archive-shop .sidebar .price_slider_wrapper {
    margin: 15px 0;
}

.bzotech-archive-shop .sidebar .price_slider {
    margin: 20px 0;
}

.bzotech-archive-shop .sidebar .price_slider_amount {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bzotech-archive-shop .sidebar .price_slider_amount .price_label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.bzotech-archive-shop .sidebar .price_slider_amount input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.bzotech-archive-shop .sidebar .price_slider_amount .elbzotech-bt-default,
.bzotech-archive-shop .sidebar .price_slider_amount button {
    width: 100%;
    padding: 12px;
    background: #FF8C22;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    text-align: center;
}

.bzotech-archive-shop .sidebar .price_slider_amount .elbzotech-bt-default:hover,
.bzotech-archive-shop .sidebar .price_slider_amount button:hover {
    background: #e67a1a;
}

/* Rating filter */
.bzotech-archive-shop .sidebar .bzotech-rating-filter {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bzotech-archive-shop .sidebar .bzotech-rating-filter__item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.bzotech-archive-shop .sidebar .bzotech-rating-filter__item:last-child {
    border-bottom: none;
}

.bzotech-archive-shop .sidebar .bzotech-rating-filter__item:hover {
    color: #FF8C22;
}

/* Category widget styling */
.bzotech-archive-shop .sidebar .widget_product_categories ul,
.bzotech-archive-shop .sidebar .widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bzotech-archive-shop .sidebar .widget_product_categories ul li,
.bzotech-archive-shop .sidebar .widget_categories ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bzotech-archive-shop .sidebar .widget_product_categories ul li:last-child,
.bzotech-archive-shop .sidebar .widget_categories ul li:last-child {
    border-bottom: none;
}

.bzotech-archive-shop .sidebar .widget_product_categories ul li a,
.bzotech-archive-shop .sidebar .widget_categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.bzotech-archive-shop .sidebar .widget_product_categories ul li a:hover,
.bzotech-archive-shop .sidebar .widget_categories ul li a:hover {
    color: #FF8C22;
}

.bzotech-archive-shop .sidebar .widget_product_categories ul li.count,
.bzotech-archive-shop .sidebar .widget_categories ul li.count {
    color: #666;
    font-size: 13px;
}

/* Responsive adjustments for sidebar and content */
@media (max-width: 992px) {
    .bzotech-archive-shop .bzotech-col-lg-3 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .bzotech-archive-shop .bzotech-col-lg-9 {
        width: 100%;
        max-width: 100%;
    }
    
    .bzotech-archive-shop .bzotech-row {
        flex-direction: column;
    }
}

