/* =============================================
   Shop/Product List Page Styles
   ============================================= */

/* Content Intro */
.content-intro {
    background: #ffffff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}
.content-intro h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}
.content-intro p {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.6;
}

/* ── Toolbox nav ────────────────────────────────────────────── */
.toolbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e8eef2;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    position: static !important;
}
.toolbox-left,
.toolbox-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.toolbox-item { display: inline-flex; align-items: center; white-space: nowrap; }
.toolbox-sort label {
    font-size: 1.3rem;
    font-weight: 500;
    color: #555;
    margin-right: 8px;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .toolbox { gap: 8px; padding: 8px 12px; }
    .toolbox-sort label { font-size: 1.2rem; }
}
@media (max-width: 400px) {
    .toolbox-sort label { display: none; }
    .toolbox { padding: 7px 10px; gap: 6px; }
}

/* ── Toolbox filter button (mobile sidebar toggle) ──────────── */
.toolbox-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
    color: #0D1B2B;
    background: #f7fbfd;
    border: 1.5px solid #d6e8ef;
    border-radius: 7px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.toolbox-filter-btn:hover {
    background: #fff;
    border-color: #0D1B2B;
    color: #0D1B2B;
    box-shadow: 0 2px 8px rgba(13,27,43,.12);
    text-decoration: none;
}
.toolbox-filter-btn:active {
    background: #eef7fa;
    box-shadow: none;
}
.toolbox-filter-icon {
    width: 15px;
    height: 12px;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .toolbox-filter-btn { font-size: 1.2rem; padding: 5px 12px; gap: 6px; }
    .toolbox-filter-icon { width: 14px; height: 11px; }
}
@media (max-width: 400px) {
    .toolbox-filter-btn { font-size: 1.1rem; padding: 5px 10px; gap: 5px; }
    .toolbox-filter-icon { width: 13px; height: 10px; }
}
@media (min-width: 1280px) {
    .toolbox-filter-btn { display: none; }
}

/* Child category list */
.child-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.child-list a {
    display: inline-block;
    padding: 5px 14px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #444;
    background: #fff;
    border: 1px solid #0D1B2B;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.child-list a:hover {
    background: #0D1B2B;
    color: #fff;
    border-color: #0D1B2B;
}

/* Equal-height product cards */
.product-wrapper .product-wrap {
    display: flex;
    flex-direction: column;
}
.custom-product-card {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    height: 100%;
}
.custom-product-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.custom-product-card .product-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.custom-product-card .product-price {
    margin-top: auto;
}

/* Call-to-order button */
.btn-call-order {
    padding: 0.55em 0.85em !important;
    font-size: 1.2rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
}
.btn-call-order i {
    font-size: 1.2rem;
    margin-top: 2px;
}
@media (max-width: 575.98px) {
    .btn-call-order { font-size: 1rem; padding: 0.45em 0.5em !important; }
    .btn-call-order i { font-size: 1rem; margin-top: 2px; }
}
@media (max-width: 350px) {
    .btn-call-order { font-size: 0.9rem; padding: 0.5em 0.75em !important; }
    .btn-call-order i { font-size: 0.9rem; margin-top: 2px; }
}

/* Checkbox widget */
.checkbox-custom {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.checkbox-custom .item {
    border-radius: 6px;
    transition: background 0.15s;
}
.checkbox-custom .item:hover {
    background: #eee;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 1.4rem;
    color: #444;
    font-weight: 400;
    user-select: none;
    margin: 0;
}
.checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    min-width: 17px;
    border: 1.5px solid #eee;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.checkbox-item input[type="checkbox"]:hover {
    border-color: #0D1B2B;
    box-shadow: 0 0 0 1px rgba(13, 27, 43, 0.18);
}
.checkbox-item input[type="checkbox"]:checked {
    background: #0D1B2B;
    border-color: #0D1B2B;
}
.checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.checkbox-item span {
    line-height: 1;
    color: #444;
    transition: color 0.15s;
}
.checkbox-item:has(input:checked) span {
    color: #0D1B2B;
    font-weight: 500;
}

/* Price range widget */
.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
}
.price-range .min_price,
.price-range .max_price {
    width: 0;
    flex: 1;
    height: 36px;
    padding: 0 10px;
    font-size: 1.3rem;
    color: #333;
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}
.price-range .min_price::-webkit-outer-spin-button,
.price-range .max_price::-webkit-outer-spin-button,
.price-range .min_price::-webkit-inner-spin-button,
.price-range .max_price::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
.price-range .min_price:focus,
.price-range .max_price:focus {
    border-color: #0D1B2B;
    box-shadow: 0 0 0 1px rgba(13, 27, 43, 0.25);
}
.price-range .delimiter {
    font-size: 1.3rem;
    color: #aaa;
    flex-shrink: 0;
}
.price-range .btn-filter-price {
    flex-shrink: 0;
    height: 36px;
    padding: 0 14px;
    font-size: 1.2rem;
    font-weight: 600;
    background: transparent;
    color: #333;
    border: 1.5px solid #eee;
    border-radius: 6px;
    line-height: 36px;
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.price-range .btn-filter-price:hover {
    background: #0D1B2B;
    box-shadow: 0 3px 10px rgba(13, 27, 43, 0.25);
    color: #fff;
}

/* Choices.js overrides (legacy) */
.choices {
    display: inline-flex;
    width: auto;
    min-width: 0;
    font-size: 1.3rem;
    margin-bottom: 0;
    vertical-align: middle;
}
.choices__inner {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px 36px 5px 12px;
    min-height: unset;
    white-space: nowrap;
    font-size: 1.3rem;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.choices.is-open .choices__inner,
.choices__inner:hover { border-color: #9DC9D8; }
.choices.is-focused .choices__inner {
    border-color: #9DC9D8;
    box-shadow: 0 0 0 3px rgba(157,201,216,.25);
}
.choices__list--single { padding: 0; white-space: nowrap; }
.choices__list--dropdown {
    min-width: 100%;
    width: max-content;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    overflow: visible;
}
.choices__list--dropdown .choices__list {
    max-height: none !important;
    overflow: visible !important;
}
.choices__list--dropdown .choices__item {
    font-size: 1.3rem;
    color: #333;
    padding: 6px 14px !important;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background: #9DC9D8 !important;
    color: #fff !important;
}
.choices__list--dropdown .choices__item.is-selected {
    background: #9DC9D8 !important;
    color: #fff !important;
    font-weight: 500;
}
.choices[data-type*="select-one"]::after { border-color: #555 transparent transparent; right: 12px; }
.choices[data-type*="select-one"].is-open::after { border-color: transparent transparent #555; }
