/* product-list.css — light theme for the product listing page */

/* ── Shop Hero (light, left-aligned) ────────── */
.shop-hero {
    background: #fff;
    /* Top offset (margin-top + padding-top) matches .page-hero so the breadcrumb
       lines up with every other page; bottom padding stays larger for the hero. */
    padding: 28px 0 80px;
    border-bottom: 1px solid #f0f0f0;
    margin-top: 80px;
}
.shop-hero h1 { color: #1b1b1b; font-size: 52px; margin-bottom: 14px; }
.shop-hero .hero-desc { color: #555; font-size: 17px; max-width: 600px; margin: 0; }


/* ── Layout ─────────────────────────────────── */
.shop-layout { background: #f5f5f5; padding: 32px 0 80px; }

/* ── Category Pills Bar ─────────────────────── */
.category-pills-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    font-family: "Instrument Sans", sans-serif;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.category-pill:hover { border-color: #aaa; color: #1b1b1b; background: #f5f5f5; }
.category-pill.is-active {
    background: #1b1b1b;
    color: #fff;
    border-color: #1b1b1b;
    font-weight: 700;
}
.pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.08);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    padding: 1px 7px;
    line-height: 1.6;
}
.category-pill.is-active .pill-count { background: rgba(255,255,255,0.2); }

/* ── Shop Toolbar (count + sort) ────────────── */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.shop-toolbar-left { display: flex; flex-direction: column; gap: 8px; }
.products-total-count { color: #666; font-size: 14px; font-weight: 500; margin: 0; }
.products-total-count strong { color: #1b1b1b; }
.active-filters-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; background: #fff8f0; border: 1px solid rgba(247,148,29,0.4); color: #9a5200; border-radius: 20px; padding: 4px 10px 4px 12px; font-size: 13px; font-weight: 500; transition: opacity 0.2s; }
.filter-chip:hover { color: #9a5200; opacity: 0.8; }
.chip-remove { font-size: 15px; line-height: 1; }
.clear-all-link { color: #888; font-size: 13px; text-decoration: underline; transition: color 0.2s; }
.clear-all-link:hover { color: #1b1b1b; }

/* ── Sort Form ──────────────────────────────── */
.shop-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.sort-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    font-family: "Instrument Sans", sans-serif;
    line-height: normal;
    margin: 0;
    align-self: center;
}
.sort-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1b1b1b;
    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='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    font-family: "Instrument Sans", sans-serif;
    transition: border-color 0.2s;
}
.sort-select:focus { border-color: #aaa; }

/* ── Product Cards ─────────────────────────── */
.product-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
}

/* Full-card clickable overlay – sits below the CTA button */
.card-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.card-overlay-link:focus-visible {
    outline: 2px solid var(--card-accent, #00AEEF);
    outline-offset: -2px;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-accent, #e8e8e8);
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}
.product-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    height: auto;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.product-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; }
.badge-featured { background: rgba(255,255,255,0.92); color: #1b1b1b; backdrop-filter: blur(4px); }
.badge-out-of-stock { background: rgba(0,0,0,0.55); color: #fff; border: none; backdrop-filter: blur(4px); }

/* ── Card Body ─────────────────────────────── */
.product-card-body {
    border-top: 4px solid var(--card-accent, #00AEEF);
    padding: 18px 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-body h3 {
    color: #1b1b1b;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.35;
    transition: color 0.2s;
}
.product-card:hover .product-card-body h3 { color: var(--card-accent, #00AEEF); }
.product-card-body > p { color: #666; font-size: 14px; margin-bottom: 0; line-height: 1.5; flex: 1; }

/* ── Ratings ───────────────────────────────── */
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.star-row { display: flex; gap: 2px; }
.star-row .s { font-size: 13px; color: #e0e0e0; line-height: 1; }
.star-row .s.on { color: #F7941D; }
.rating-text { color: #aaa; font-size: 12px; }

/* ── Card Footer ───────────────────────────── */
.product-card-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 20px;
    margin-top: 14px;
}
.product-card-price-text {
    font-size: 20px;
    font-weight: 700;
    color: #1b1b1b;
    font-family: "neulis-neue", sans-serif;
    line-height: 1;
}
.product-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1b1b1b;
    color: #fff;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    font-family: "Instrument Sans", sans-serif;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    transition: background 0.2s;
}
.product-explore-btn:hover { background: var(--card-accent, #1b1b1b); color: #fff; }

/* ── Empty State ───────────────────────────── */
.products-empty { text-align: center; padding: 80px 20px; }
.products-empty h3 { color: #1b1b1b; font-size: 24px; margin-bottom: 10px; }
.products-empty p { color: #666; font-size: 15px; max-width: 380px; margin: 0 auto 28px; }
.btn-custom.bdr-btn-white { background-color: transparent; color: #1b1b1b; border: 1px solid #ccc; }
.btn-custom.bdr-btn-white:hover { background-color: #1b1b1b; color: #fff; border-color: #1b1b1b; }

/* ── Pagination ────────────────────────────── */
.products-pagination { margin-top: 48px; }
.products-pagination .pagination { gap: 6px; flex-wrap: wrap; justify-content: center; }
.products-pagination .page-link { background: #fff; border: 1px solid #e0e0e0; color: #444; border-radius: 10px; padding: 9px 16px; font-size: 14px; transition: all 0.2s; }
.products-pagination .page-link:hover { background: #1b1b1b; border-color: #1b1b1b; color: #fff; }
.products-pagination .page-item.active .page-link { background: #1b1b1b; border-color: #1b1b1b; color: #fff; }
.products-pagination .page-item.disabled .page-link { background: #f0f0f0; border-color: #e0e0e0; color: #666; opacity: 1; pointer-events: none; }

/* ── Responsive ────────────────────────────── */
@media only screen and (max-width: 1199px) {
    .shop-hero { margin-top: 85px; }
    .shop-hero h1 { font-size: 44px; }
}
@media only screen and (max-width: 991px) {
    /* keep top in sync with .page-hero (margin 85 + padding-top 28 = 113);
       only the bottom stays compact for the shop grid. */
    .shop-hero { margin-top: 85px; padding-bottom: 6px; }
    .shop-hero h1 { font-size: 36px; }
    .shop-layout { padding: 24px 0 60px; }
}
@media only screen and (max-width: 767px) {
    .shop-hero { margin-top: 68px; padding-top: 18px; }
    .shop-hero h1 { font-size: 28px; }
    .shop-hero .hero-desc { font-size: 15px; }
    .shop-toolbar { flex-direction: column; gap: 12px; }
    .product-card-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
    .product-card-price-text { font-size: 18px; }
}
@media only screen and (max-width: 575px) {
    .shop-hero { margin-top: 60px; }
}
