﻿
/* ── VARS ── */
:root {
    --brand: #5FB4FD;
    --brand-dk: #3A8EDB;
    --brand-lt: #EEF6FF;
    --dark: #4D4D4D;
    --mid: #6b7280;
    --border: #e5e7eb;
    --bg: #f8fafc;
    --white: #ffffff;
    --radius: 12px;
    --sidebar-w: 260px;
}

/* ── SECTION ── */
.shop-page {
    background: var(--bg);
    padding: 50px 0 70px;
}

/* ── LAYOUT ── */
.shop-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* ── SIDEBAR ── */
.shop-sidebar {
    flex: 0 0 var(--sidebar-w);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.sidebar-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-lt);
    display: flex;
    align-items: center;
    gap: 7px;
}

    .sidebar-card-title i {
        color: var(--brand);
    }

/* Search */
.search-wrap {
    position: relative;
}

.sidebar-search {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 36px 0 12px;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg);
}

    .sidebar-search:focus {
        outline: none;
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(96,180,253,0.2);
        background: var(--white);
    }

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 13px;
    pointer-events: none;
}

/* Categories */
.cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--mid);
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}

    .cat-link:hover,
    .cat-link.active {
        background: var(--brand-lt);
        color: var(--brand);
        font-weight: 600;
    }

.cat-count {
    background: var(--bg);
    color: var(--mid);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.cat-link.active .cat-count {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ── MAIN ── */
.shop-main {
    flex: 1;
    min-width: 0;
}

/* Toolbar */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.result-count {
    font-size: 13px;
    color: var(--mid);
    margin: 0;
}

    .result-count strong {
        color: var(--brand);
    }

/* ── PRODUCT GRID ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── PRODUCT CARD ── */
.prod-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn 0.4s ease forwards;
}

    .prod-card:nth-child(1) {
        animation-delay: 0.03s;
    }

    .prod-card:nth-child(2) {
        animation-delay: 0.07s;
    }

    .prod-card:nth-child(3) {
        animation-delay: 0.11s;
    }

    .prod-card:nth-child(4) {
        animation-delay: 0.15s;
    }

    .prod-card:nth-child(5) {
        animation-delay: 0.19s;
    }

    .prod-card:nth-child(6) {
        animation-delay: 0.23s;
    }

    .prod-card:nth-child(7) {
        animation-delay: 0.27s;
    }

    .prod-card:nth-child(8) {
        animation-delay: 0.31s;
    }

    .prod-card:nth-child(9) {
        animation-delay: 0.35s;
    }

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(96,180,253,0.15);
    border-color: #cde6f0;
}

/* Image */
.prod-img-wrap {
    display: block;
    position: relative;
    height: 200px;
    background: var(--bg);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.prod-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}

.prod-card:hover .prod-img {
    transform: scale(1.06);
}

/* Overlay */
.prod-overlay {
    position: absolute;
    inset: 0;
    background: rgba(96,180,253,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prod-img-wrap:hover .prod-overlay {
    opacity: 1;
}

.prod-overlay-btn {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 8px 18px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

    .prod-overlay-btn:hover {
        background: rgba(255,255,255,0.15);
    }

/* Body */
.prod-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    text-align: center;
    align-items: center;
}

.prod-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.4;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s, color 0.2s;
}

    .prod-link:hover {
        gap: 8px;
        color: var(--brand-dk);
    }

    .prod-link i {
        font-size: 10px;
    }

/* ── NO RESULTS ── */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--mid);
}

    .no-results i {
        font-size: 40px;
        color: #cdd;
        display: block;
        margin-bottom: 12px;
    }

/* ── PAGINATION ── */
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.page-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--mid);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .page-btn:hover {
        border-color: var(--brand);
        color: var(--brand);
    }

    .page-btn.active {
        background: linear-gradient(135deg, #5FB4FD, #7C58FA);
        border-color: transparent;
        color: #fff;
    }

    .page-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

    .page-btn.arrow {
        font-size: 16px;
    }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .shop-layout {
        flex-direction: column;
    }

    .shop-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}


