/* =============================================
   THE ROYAL CHEMTECH — LISTING PAGES
   ============================================= */

.listing-main { padding-top: 80px; background: #fff; min-height: 100vh; }

/* ── LISTING HEADER ─────────────────────────── */
.listing-header {
    padding: 48px 20px 32px;
    text-align: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.breadcrumb {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.listing-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 300;
    color: var(--dark);
    margin-bottom: 6px;
}
.listing-sub {
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

/* ── PRODUCT GRID ───────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 12px 80px;
    max-width: 1400px;
    margin: 0 auto;
}
@media (min-width: 600px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 28px 20px 80px; }
}
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 40px 80px; }
}

/* ── PRODUCT CARD ───────────────────────────── */
.prod-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow 0.25s, transform 0.25s;
}
.prod-card:hover {
    box-shadow: 0 8px 28px rgba(28,25,22,0.1);
    transform: translateY(-2px);
}
.prod-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f7f7f5;
    overflow: hidden;
}
.prod-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    display: block;
}
.heart-btn {
    position: absolute;
    top: 8px; right: 8px;
    width: 30px; height: 30px;
    background: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.heart-btn:hover { transform: scale(1.15); }
.heart-btn svg { width: 14px; height: 14px; }
.heart-btn.liked svg { fill: #e74c3c; stroke: #e74c3c; }
.prod-info { padding: 10px 12px 14px; }
.prod-name {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
    line-height: 1.35;
}
.prod-enquire {
    display: block;
    margin-top: 6px;
    font-family: var(--sans);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
}

/* ── COLLECTIONS OVERVIEW GRID ──────────────── */
.cat-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 12px 80px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 600px) {
    .cat-overview-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 32px 24px 80px; }
}
@media (min-width: 1024px) {
    .cat-overview-grid { grid-template-columns: repeat(4, 1fr); padding: 40px 40px 80px; }
}
.cat-overview-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow 0.25s, transform 0.25s;
}
.cat-overview-card:hover {
    box-shadow: 0 8px 28px rgba(28,25,22,0.1);
    transform: translateY(-2px);
}
.cat-ov-img {
    aspect-ratio: 1 / 1;
    background: #f7f7f5;
    overflow: hidden;
}
.cat-ov-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    display: block;
}
.cat-ov-info { padding: 12px 14px 16px; text-align: center; }
.cat-ov-name {
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}
.cat-ov-count {
    font-family: var(--sans);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* ── FLOATING WHATSAPP BAR ──────────────────── */
.wa-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: flex;
    z-index: 200;
    height: 52px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.wa-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}
.wa-call { background: var(--dark); color: var(--cream); }
.wa-chat { background: #25D366; color: #fff; }

/* ── PRODUCT DETAIL MODAL ───────────────────── */
.prod-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(20,18,16,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.prod-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.prod-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    overflow: hidden;
    transform: translateY(24px);
    transition: transform 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.prod-modal-overlay.open .prod-modal {
    transform: translateY(0);
}
.prod-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.prod-modal-close:hover { background: var(--cream); }
.prod-modal-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f7f7f5;
    padding: 20px;
    display: block;
}
.prod-modal-body { padding: 20px 24px 28px; }
.prod-modal-name {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 300;
    color: var(--dark);
    margin-bottom: 8px;
}
.prod-modal-desc {
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}
.prod-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.prod-modal-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s;
}
.prod-modal-btn:hover { opacity: 0.88; }
.prod-modal-wa { background: #25D366; color: #fff; }
.prod-modal-call { background: var(--dark); color: var(--cream); }

/* Make cards show pointer cursor */
.prod-card { cursor: pointer; }
