/* ============================================================
   products-modern.css  —  EverythingKuwait Products Page
   Matching the marketplace card design language
   ============================================================ */

:root {
    --pk-white:   #ffffff;
    --pk-black:   #111111;
    --pk-dark:    #1a1a1a;
    --pk-mid:     #555555;
    --pk-muted:   #888888;
    --pk-light:   #e8e8e8;
    --pk-bg:      #f5f5f5;
    --pk-primary: #09b1ba;
    --pk-primary-dark: #078a92;
    --pk-accent:  #c8a96e;
    --pk-radius:  20px;
    --pk-ease:    cubic-bezier(.175,.885,.32,1.275);
    --pk-dur:     .22s;
}

/* ── Wrapper ── */
.pk-wrapper {
    background: var(--bg, #f7f6f4);
    min-height: 80vh;
    padding-bottom: 48px;
}

/* ── Breadcrumb ── */
.pk-breadcrumb {
    padding: 16px 0 8px;
}
.pk-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
}
.pk-breadcrumb .breadcrumb-item a {
    color: var(--pk-mid);
    text-decoration: none;
    transition: color var(--pk-dur);
}
.pk-breadcrumb .breadcrumb-item a:hover { color: var(--pk-black); }
.pk-breadcrumb .breadcrumb-item.active { color: var(--pk-muted); }
.pk-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--pk-light); }

/* ── Page List Header ── */
.pk-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 20px;
    flex-wrap: wrap;
}
.pk-page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--pk-black);
    margin: 0;
    letter-spacing: -.3px;
}
.pk-list-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile filter button */
.pk-btn-filter-mobile {
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--pk-white);
    border: 1.5px solid var(--pk-light);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pk-dark);
    cursor: pointer;
    transition: background var(--pk-dur), border-color var(--pk-dur), transform .28s var(--pk-ease);
}
.pk-btn-filter-mobile:hover {
    background: var(--pk-dark);
    color: var(--pk-white);
    border-color: var(--pk-dark);
    transform: scale(1.04) translateY(-1px);
}
@media (max-width: 991px) { .pk-btn-filter-mobile { display: flex; } }

/* Sort wrap */
.pk-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--pk-white);
    border: 1.5px solid var(--pk-light);
    border-radius: 50px;
    padding: 6px 16px;
    transition: border-color var(--pk-dur), box-shadow var(--pk-dur);
}
.pk-sort-wrap:focus-within {
    border-color: #aaa;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.pk-sort-label {
    font-size: 13px;
    color: var(--pk-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pk-sort-select {
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--pk-dark);
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 4px;
}

/* ── Layout Grid ── */
.pk-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 991px) {
    .pk-layout { grid-template-columns: 1fr; }
}

/* ── Sidebar ── */
.pk-sidebar {
    position: sticky;
    top: 90px;
}
.pk-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (max-width: 991px) {
    .pk-sidebar { position: static; }
    .pk-filters { display: none; }
    .pk-filters.show { display: flex; }
}

/* ── Filter Card ── */
.pk-filter-card {
    background: var(--pk-white);
    border: 1px solid var(--pk-light);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    overflow: hidden;
    transition: box-shadow .3s;
}
.pk-filter-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.pk-filter-card-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--pk-light);
    background: var(--pk-white);
}
.pk-filter-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--pk-black);
    text-transform: uppercase;
    letter-spacing: .6px;
}
.pk-filter-card-body {
    padding: 14px 18px;
}

/* Filter search input */
.pk-filter-search {
    width: 100%;
    border: 1.5px solid var(--pk-light);
    border-radius: 50px;
    padding: 7px 14px;
    font-size: 13px;
    color: var(--pk-dark);
    background: var(--pk-bg);
    outline: none;
    margin-bottom: 10px;
    transition: border-color var(--pk-dur), box-shadow var(--pk-dur);
}
.pk-filter-search:focus {
    border-color: #aaa;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    background: var(--pk-white);
}

/* ── Category List ── */
.pk-cat-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pk-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color var(--pk-dur), transform .28s var(--pk-ease);
}
.pk-cat-back:hover {
    color: var(--pk-black);
    transform: translateX(-3px);
}
.pk-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pk-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--pk-mid);
    text-decoration: none;
    transition: background var(--pk-dur), color var(--pk-dur), transform .28s var(--pk-ease);
}
.pk-cat-link:hover {
    background: var(--pk-bg);
    color: var(--pk-black);
    transform: translateX(3px);
}
.pk-cat-link.active {
    background: var(--pk-primary);
    color: var(--pk-white) !important;
    font-weight: 600;
}
.pk-cat-link.active:hover { transform: none; }
.pk-cat-parent {
    font-weight: 700;
    color: var(--pk-dark) !important;
}
.pk-cat-check {
    font-size: 11px;
    opacity: .7;
}

/* ── Check List ── */
.pk-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pk-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--pk-mid);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--pk-dur), color var(--pk-dur);
}
.pk-check-item:hover {
    background: var(--pk-bg);
    color: var(--pk-black);
}
.pk-check-item.checked {
    color: var(--pk-black);
    font-weight: 600;
}
.pk-check-item.checked .pk-checkbox {
    background: var(--pk-primary);
    border-color: var(--pk-primary);
}
.pk-check-item.checked .pk-checkbox::after {
    opacity: 1;
}
.pk-checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--pk-light);
    border-radius: 5px;
    background: var(--pk-white);
    position: relative;
    transition: background var(--pk-dur), border-color var(--pk-dur);
}
.pk-checkbox::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: 2px solid var(--pk-white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity var(--pk-dur);
}

/* Scrollable list */
.pk-scrolllist {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--pk-light) transparent;
}
.pk-scrolllist::-webkit-scrollbar { width: 4px; }
.pk-scrolllist::-webkit-scrollbar-thumb { background: var(--pk-light); border-radius: 4px; }

/* ── Price Filter ── */
.pk-price-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.pk-price-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pk-price-field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--pk-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0;
}
.pk-price-input {
    width: 100%;
    border: 1.5px solid var(--pk-light);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pk-dark);
    background: var(--pk-bg);
    outline: none;
    transition: border-color var(--pk-dur), box-shadow var(--pk-dur), background var(--pk-dur);
}
.pk-price-input:focus {
    border-color: #aaa;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    background: var(--pk-white);
}
.pk-price-sep {
    padding-bottom: 10px;
    color: var(--pk-muted);
    font-size: 16px;
    flex-shrink: 0;
}
.pk-price-go {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--pk-primary);
    color: var(--pk-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background var(--pk-dur), transform .28s var(--pk-ease);
}
.pk-price-go:hover {
    background: var(--pk-primary-dark);
    transform: scale(1.1);
}

/* ── Main Content ── */
.pk-content {
    min-width: 0;
}

/* ── Active Filter Tags ── */
.pk-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    min-height: 0;
}
.pk-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pk-white);
    border: 1.5px solid var(--pk-light);
    border-radius: 50px;
    padding: 5px 14px 5px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pk-dark);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--pk-dur), border-color var(--pk-dur), color var(--pk-dur), transform .28s var(--pk-ease);
}
.pk-filter-tag:hover {
    background: var(--pk-primary);
    border-color: var(--pk-primary);
    color: var(--pk-white) !important;
    transform: scale(1.04) translateY(-1px);
}
.pk-filter-tag i {
    font-size: 10px;
    opacity: .6;
}
.pk-filter-tag--reset {
    background: var(--pk-primary);
    border-color: var(--pk-primary);
    color: var(--pk-white);
    font-weight: 600;
}
.pk-filter-tag--reset:hover {
    background: #333;
    border-color: #333;
}

/* ── Product Grid — override home-modern.css column count for sidebar layout ── */
.pk-content .ek-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px;
}
@media (max-width: 1200px) {
    .pk-content .ek-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .pk-content .ek-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── No Results ── */
.pk-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    color: var(--pk-muted);
    gap: 12px;
}
.pk-no-results i {
    font-size: 48px;
    opacity: .3;
}
.pk-no-results p {
    font-size: 16px;
    margin: 0;
}

/* ── Pagination ── */
.pk-pagination {
    display: flex;
    justify-content: center;
    padding: 32px 0 16px;
}
.pk-pagination .pagination { margin: 0; }
.pk-pagination .pagination .page-item .page-link {
    border-radius: 10px !important;
    margin: 0 3px;
    border: 1.5px solid var(--pk-light);
    color: var(--pk-dark);
    font-weight: 600;
    transition: background var(--pk-dur), border-color var(--pk-dur), color var(--pk-dur), transform .28s var(--pk-ease);
}
.pk-pagination .pagination .page-item .page-link:hover {
    background: var(--pk-primary);
    border-color: var(--pk-primary);
    color: var(--pk-white);
    transform: translateY(-2px);
}
.pk-pagination .pagination .page-item.active .page-link {
    background: var(--pk-primary);
    border-color: var(--pk-primary);
    color: var(--pk-white);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .pk-list-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .pk-page-title { font-size: 18px; }
}
