/* ═══════════════════════════════════════════════════════════
   Sydney Ironing — Shop Page
   ═══════════════════════════════════════════════════════════ */

.shop-page {
    background: #F8FAFC;
    min-height: 70vh;
    padding-bottom: 5rem;
}

/* ── Layout: sidebar + main (Bootstrap container/row/col-lg-3/col-lg-9 in markup) ── */
.shop-wrap {
    padding-top: 2rem;
}

/* ═══════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════ */
.shop-sidebar-inner {
    background: #fff;
    border: 1px solid #E8EFF5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.shop-filter-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    padding: 16px 18px 14px;
    border-bottom: 1.5px solid #F1F5F9;
}

.shop-filter-block {
    padding: 16px 18px;
    border-bottom: 1px solid #F1F5F9;
}

.shop-filter-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94A3B8;
    margin-bottom: 10px;
}

.shop-filter-divider {
    height: 1px;
    background: #F1F5F9;
    margin: 6px 0 8px;
}

.shop-filter-row {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    padding: 5px 0;
    font-size: 16px;
    color: #334155;
    user-select: none;
    border-radius: 6px;
    transition: color .15s;
}

.shop-filter-row:hover { color: var(--primary); }

.shop-filter-all { font-weight: 700; color: #0F172A; }
.shop-filter-all:hover { color: var(--primary); }

.shop-filter-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 4px;
}

.shop-filter-label { flex: 1; font-weight: 500; line-height: 1.3; }
.shop-filter-all .shop-filter-label { font-weight: 700; }

.shop-filter-count {
    font-size: 10.5px;
    font-weight: 700;
    color: #94A3B8;
    background: #F1F5F9;
    border-radius: 20px;
    padding: 1px 7px;
    min-width: 24px;
    text-align: center;
}

/* Info box */
.shop-info-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 16px 18px;
}

.shop-info-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: #ECFEFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-info-box strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 3px;
}

.shop-info-box p {
    font-size: 16px;
    color: #64748B;
    line-height: 1.5;
    margin: 0;
}

/* ═══════════════════════════════════
   MAIN PANEL
   ═══════════════════════════════════ */
.shop-main { min-width: 0; }

/* Top bar */
.shop-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1.5px solid #E8EFF5;
}

.shop-topbar-left { display: flex; flex-direction: column; gap: 2px; }

.shop-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.shop-count {
    font-size: 12.5px;
    color: #64748B;
    font-weight: 500;
}

.shop-sort-select {
    border: 1.5px solid #E2E8F0;
    border-radius: 9px;
    padding: 8px 32px 8px 12px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color .18s;
}

.shop-sort-select:focus { border-color: var(--primary); }

.shop-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-view-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid #E2E8F0;
    border-radius: 9px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    transition: border-color .15s, color .15s;
    white-space: nowrap;
}

.shop-view-cart-btn:hover { border-color: var(--primary); color: var(--primary); }

.cart-count-badge {
    background: var(--primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 20px;
    padding: 1px 7px;
    min-width: 18px;
    text-align: center;
}

/* ── Category group ── */
.shop-cat-group { margin-bottom: 2.25rem; }

.shop-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.shop-cat-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.shop-cat-badge {
    font-size: 11px;
    font-weight: 700;
    background: #ECFEFF;
    color: var(--primary);
    border: 1px solid #A5F3FC;
    padding: 2px 9px;
    border-radius: 20px;
    font-family: 'Nunito Sans', sans-serif;
}

/* ── Product grid: 3 columns ── */
/* Bootstrap row/col-12/col-sm-6/col-lg-4 in markup handles the grid */

/* ── Product card ── */
.shop-product-card {
    background: #fff;
    border: 1px solid #E8EFF5;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .18s, border-color .18s;
    cursor: pointer;
}

.shop-product-card:hover {
    box-shadow: 0 8px 28px rgba(8,145,178,.10);
    transform: translateY(-3px);
    border-color: #BAE6FD;
}

/* Card image */
.shop-card-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    background: #EAF6FB;
    overflow: hidden;
    text-decoration: none;
}

.shop-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.shop-product-card:hover .shop-card-img { transform: scale(1.04); }

.shop-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EAF6FB 0%, #F0F9FF 100%);
}

/* Card body */
.shop-card-body {
    padding: 13px 14px 15px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.shop-card-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    font-family: 'Nunito Sans', sans-serif;
}

.shop-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #0F172A;
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
    text-decoration: none;
    display: block;
    transition: color .15s;
}

.shop-card-name:hover { color: var(--primary); }

.shop-card-desc {
    font-size: 16px;
    color: #64748B;
    line-height: 1.5;
    margin: 2px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
}

.shop-card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: 'Outfit', sans-serif;
}

.shop-card-from {
    font-size: 12px;
    color: #94A3B8;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 500;
}

.shop-card-price .woocommerce-Price-amount,
.shop-card-price .amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.shop-card-price ins { text-decoration: none; }

.shop-card-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    font-family: 'Nunito Sans', sans-serif;
    padding: 7px 13px;
    border-radius: 7px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}

.shop-card-btn:hover { background: #0E7490; color: #fff; }

.shop-card-btn-add {
    border: none;
    cursor: pointer;
    font-family: 'Nunito Sans', sans-serif;
}

.shop-card-btn-add.is-loading { opacity: .7; cursor: wait; }
.shop-card-btn-add.is-added { background: #22C55E; }

/* No results */
.shop-no-results {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 4rem 1rem;
    color: #64748B;
    text-align: center;
}

.shop-reset-btn {
    background: none;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
    color: var(--primary);
    cursor: pointer;
    transition: all .15s;
}

.shop-reset-btn:hover { border-color: var(--primary); background: #F0F9FF; }

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 991.98px) {
    .shop-wrap {
        padding: 1.25rem 1rem 0;
    }

    .shop-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

    .shop-sidebar-inner {
        border-radius: 12px;
    }

    .shop-filter-hd { display: none; }

    .shop-filter-block {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 14px;
    }

    .shop-filter-title { display: none; }
    .shop-filter-divider { display: none; }

    .shop-filter-row {
        border: 1.5px solid #E2E8F0;
        border-radius: 20px;
        padding: 5px 12px;
        gap: 6px;
    }

    .shop-filter-row:has(input:checked) {
        border-color: var(--primary);
        background: #F0F9FF;
        color: var(--primary);
    }

    .shop-filter-count { display: none; }

    .shop-info-box { padding: 12px 14px; }
}

@media (max-width: 540px) {
    .shop-card-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
    .shop-card-btn { width: 100%; justify-content: center; }
}
