/*search shortcode*/
.search-wrapper {
	display:flex;
}
.input.custom-search-input {
	color:#000;
}
button.custom-search-btn {
	color: #fff;
    font-weight: 600;
    padding: 5px;
	border-radius:0px;
}
/* custom-product-page.css */

.custom-product-page {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.filters-sidebar {
    width: 25%;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    position: sticky;
    top: 150px;
    align-self: flex-start;
    height: auto;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    scrollbar-width: thin;
    scrollbar-color: #bbb #f0f0f0;
}

.filters-sidebar::-webkit-scrollbar { width: 8px; }
.filters-sidebar::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; margin: 4px; }
.filters-sidebar::-webkit-scrollbar-thumb { background: #bbb; border-radius: 10px; border: 2px solid #f0f0f0; }
.filters-sidebar::-webkit-scrollbar-thumb:hover { background: #999; }

.product-grid { width: 70%; padding: 20px 0; }

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: white;
    text-align: center;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 14px 12px 8px;
    line-height: 1.3;
    color: #222;
}

.price {
    font-size: 16px;
    font-weight: 600;
    color: #e91e63;
    margin: 6px 0 12px;
}

.buy-now {
    display: inline-block;
    background: #3658db;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.buy-now:hover { background: #2c4ac2; }

/* ── Toggle Icons ───────────────────────────────────── */
.toggle-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #666;
    transition: color 0.2s, transform 0.25s ease;
    flex-shrink: 0;
}

.toggle-icon::before { content: "+"; }

.filter-accordion[open] > summary .toggle-icon::before,
.category-group[open] > summary .toggle-icon::before,
.size-group[open] > summary .toggle-icon::before {
    content: "−";
    color: #3658db;
}

.filter-accordion summary:hover .toggle-icon,
.category-group summary:hover .toggle-icon,
.size-group summary:hover .toggle-icon {
    color: #3658db;
}

/* ── Accordions ─────────────────────────────────────── */
.filter-accordion {
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.filter-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 0;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-accordion summary::-webkit-details-marker,
.filter-accordion summary::marker { display: none !important; }

.accordion-content { padding: 0 0 12px 0; }

.category-group, .size-group { margin-bottom: 8px; }

.category-group summary, .size-group summary {
    cursor: pointer;
    padding: 10px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.category-group summary::-webkit-details-marker,
.category-group summary::marker,
.size-group summary::-webkit-details-marker,
.size-group summary::marker { display: none !important; }

.child-categories, .child-sizes {
    padding: 8px 0 12px 32px;
}

.child-categories label, .child-sizes label {
    display: block;
    margin: 6px 0;
    font-size: 15px;
}

/* Search + Clear */
.search-section {
    margin-bottom: 20px;
}

#product-search {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    background: #F5F5F5 !important;
    border: none !important;
    border-radius: 15px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

#product-search:focus { background: #EDEDED !important; }

.clear-filters-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #f44336;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.clear-filters-btn:hover { background: #333; }

/* Mobile */
.close-filters-btn {
    display: none;
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    background: #333;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-filter-btn {
    display: none;
    width: 100%;
    padding: 12px;
    background: #3658db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .custom-product-page { flex-direction: column; }
    .filters-sidebar {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: white;
        box-shadow: 2px 0 12px rgba(0,0,0,0.15);
        z-index: 1000;
        overflow-y: auto;
        padding: 20px;
        border-radius: 0 16px 16px 0;
    }
    .filters-sidebar.open { display: block; }
    .close-filters-btn { display: block; }
    .mobile-filter-btn { display: block; }
    .product-grid { width: 100%; padding: 0 10px; }
    .products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .product-card img { height: 245px !important; object-fit: contain!important; }
}

@media (max-width: 480px) {
    .products { grid-template-columns: 1fr; }
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 32px 0 20px;
}
.pagination a, .pagination span {
    margin: 0 6px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    background: #f0f0f0;
    color: #333;
}
.pagination .current {
    background: #3658db;
    color: white;
}