/* ═══════════════════════════════════════════════════════════════
   PRACTICAL PRODUCT GRID — practical-product-grid.css
   Mobile-first
═══════════════════════════════════════════════════════════════ */

.ppg-wrap {
    width: 1400px;
    font-family: 'Noah Text', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Main tabs ───────────────────────────────────────────────── */
.ppg-main-tabs {
    display: flex;
    border-bottom: 0.5px solid rgba(0,0,0,0.10);
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ppg-main-tabs::-webkit-scrollbar { display: none; }

.ppg-main-tab {
    flex-shrink: 0;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #747971;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -0.5px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.ppg-main-tab.active {
    color: #d35228 !important;
    border-bottom-color: #d35228 !important;
}

.ppg-main-tab:hover, .ppg-main-tab:focus {
    background: transparent;
    color: #000;
    border-bottom-color: #000;
}

/* ── Panel ───────────────────────────────────────────────────── */
.ppg-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.ppg-panel.active {
    display: block;
    opacity: 1;
}

/* ── Subcategory pills ───────────────────────────────────────── */
.ppg-pills {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 12px;
}

.ppg-pills::-webkit-scrollbar { display: none; }

.ppg-pill {
    flex-shrink: 0;
    padding: 5px 11px;
    border-radius: 999px;
    border: 0.5px solid rgba(0,0,0,0.14);
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    color: #747971;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ppg-pill.active {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}

.ppg-pill:hover {
    background: #d35228 !important;
    color: #fff !important;
    border-color: #d35228 !important;
}

/* ── Product grid — mobile: 2 columns ───────────────────────── */
.ppg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    min-height: 200px;
    position: relative;
    transition: opacity 0.2s ease;
}

.ppg-grid.loading {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Product card ────────────────────────────────────────────── */
.ppg-card {
    background: #fff;
    border-radius: 10px;
    border: 0.5px solid rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, opacity 0.22s ease, transform 0.22s ease;
}

.ppg-card:hover { border-color: rgba(0,0,0,0.16); }

/* Card image — mobile: square */
.ppg-card-img {
    aspect-ratio: 1 / 1;
    background: #e8e4dc;
    position: relative;
    overflow: hidden;
}

.ppg-card-img > a {
    display: block;
    width: 100%;
    height: 100%;
}

.ppg-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    -webkit-user-drag: none;
    pointer-events: none;
}

.ppg-card:hover .ppg-card-photo { transform: scale(1.04); }

/* Price pill */
.ppg-price-pill {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(240,237,231,0.92);
    backdrop-filter: blur(4px);
    border: 0.5px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 600;
    color: #111;
    pointer-events: none;
}

.ppg-price-pill del { color: #b0ada8; font-size: 9px; margin-right: 2px; }
.ppg-price-pill ins { text-decoration: none; }

/* Card body — mobile: compact */
.ppg-card-body {
    padding: 7px 9px 9px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ppg-card-name {
    font-size: 11px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Noah Head', 'Helvetica Neue', Arial, sans-serif;
}

.ppg-card-name:hover { color: #d35228; }

/* Swatches */
.ppg-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ppg-sw {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
    display: block;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}

.ppg-sw:hover { transform: scale(1.15); }
.ppg-sw.active { box-shadow: 0 0 0 2px #111; transform: scale(1.1); }

/* CTA button */
.ppg-card-cta {
    display: block;
    width: 100%;
    padding: 6px 0;
    border: 0.5px solid rgba(0,0,0,0.16);
    border-radius: 6px;
    background: transparent;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s;
    margin-top: auto;
    font-family: inherit;
}

.ppg-card-cta:hover { background: #111; color: #fff; border-color: #111; }

/* ── No results ──────────────────────────────────────────────── */
.ppg-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    font-size: 13px;
    color: #747971;
}

/* ── Pagination ──────────────────────────────────────────────── */
.ppg-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.ppg-page-btn {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: 0.5px solid rgba(0,0,0,0.14);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: #747971;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-family: inherit;
}

.ppg-page-btn.active { background: #111; color: #fff; border-color: #111; }
.ppg-page-btn:hover:not(.active) { background: #f5f2ec; color: #000; }
.ppg-page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Coming soon ─────────────────────────────────────────────── */
.ppg-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 48px 20px;
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid rgba(0,0,0,0.08);
    margin-top: 4px;
}

.ppg-cs-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d35228;
}

.ppg-cs-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    line-height: 1.15;
    font-family: 'Noah Head', 'Helvetica Neue', Arial, sans-serif;
}

.ppg-cs-sub {
    font-size: 12px;
    color: #747971;
    line-height: 1.7;
    max-width: 300px;
}

.ppg-cs-cta {
    display: inline-block;
    padding: 10px 22px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s;
    font-family: inherit;
    margin-top: 4px;
}

.ppg-cs-cta:hover { background: #d35228; color: #fff; }

/* ── Spinner ─────────────────────────────────────────────────── */
.ppg-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0,0,0,0.08);
    border-top-color: #111;
    border-radius: 50%;
    animation: ppg-spin 0.7s linear infinite;
    z-index: 10;
}

@keyframes ppg-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ── Tablet — 600px+: 2 columns, larger text ─────────────────── */
@media (max-width: 768px) {
    
    .ppg-wrap {
    width: 100%;
    }
    
    .ppg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ppg-card-body { padding: 8px 10px 10px; gap: 10px; }
    .ppg-card-name { font-size: 16px; }
    .ppg-price-pill { font-size: 11px; padding: 3px 9px; bottom: 8px; left: 8px; }
    .ppg-card-cta { font-size: 12px; padding: 10px 0; }
    .ppg-sw { width: 12px; height: 12px; }
}

/* ── Desktop — 1024px+: 4 columns ───────────────────────────── */
@media (min-width: 769px) {
    .ppg-wrap {
    width: 100%;
    }
    .ppg-main-tab { padding: 14px 20px; font-size: 12px; }

    .ppg-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .ppg-pill { font-size: 12px; padding: 6px 14px; }

    .ppg-card-body { padding: 10px 12px 12px; gap: 10px; }
    .ppg-card-name { font-size: 16px; }
    .ppg-price-pill { font-size: 12px; padding: 4px 11px; bottom: 10px; left: 10px; }
    .ppg-card-cta { font-size: 14px; padding: 10px 0; }
    .ppg-sw { width: 13px; height: 13px; }

    .ppg-cs-title { font-size: 26px; }
    .ppg-cs-sub { font-size: 14px; }
    .ppg-cs-coming-soon { padding: 56px 24px; }
}