/* ═══════════════════════════════════════════
   SHOP PAGE STYLES
   Matching index.php layout style
═══════════════════════════════════════════ */

/* ── Page Container with Header Offset ── */
.jk-products {
    padding-top: 100px !important;
    padding-bottom: 60px !important;
}


.nav-call {
    color: black !important;
}

/* ── Shop Header (Search & Filter) ── */
.shop-header {
    top: 50px;
    z-index: 999;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(10px) !important;
    padding: 16px 0;
}

.shop-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.search-wrap {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-wrap input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid rgba(42, 50, 113, 0.15);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--dark);
    transition: all 0.3s ease;
    background: #fff;
}

.search-wrap input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(42, 50, 113, 0.1);
}

.shop-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(42, 50, 113, 0.08);
    border: 2px solid rgba(42, 50, 113, 0.15);
    border-radius: 12px;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-toggle-btn:hover {
    background: rgba(42, 50, 113, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.filter-toggle-btn svg {
    color: var(--primary);
}

.results-count {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ── Product Grid ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    padding: 40px 0;
}

/* ── Product Card ── */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(42, 50, 113, 0.08);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(42, 50, 113, 0.15);
    border-color: rgba(42, 50, 113, 0.25);
}

.product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #eef0f8 100%);
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}

.product-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.product-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.product-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: rgba(42, 50, 113, 0.9);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.product-body {
    padding: 20px 24px 24px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 10px;
}

.product-desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(42, 50, 113, 0.08);
}

.product-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.product-views svg {
    color: var(--primary);
}

.product-link {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.product-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-link {
    background: #27307a;
    transform: translateX(4px);
}

.product-link svg {
    transform: translateX(0);
}

.product-card:hover .product-link svg {
    transform: translateX(4px);
}

/* ── No Products Message ── */
.shop-no-products {
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(135deg, #fafafa 0%, #f0f9ff 100%);
    border-radius: 24px;
    border: 2px dashed rgba(42, 50, 113, 0.2);
    grid-column: 1 / -1;
}

.shop-no-products .snp-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.shop-no-products .snp-icon svg {
    width: 100%;
    height: 100%;
}

.shop-no-products h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.shop-no-products .section-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.shop-no-products .snp-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* No Result Icon */
.no-result-icon {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto;
}

.nri-box {
    width: 40px;
    height: 30px;
    border: 3px solid #64748b;
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    left: 20px;
    background: transparent;
}

.nri-box::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 8px;
    width: 24px;
    height: 8px;
    border-top: 3px solid #64748b;
    border-left: 3px solid #64748b;
    border-right: 3px solid #64748b;
    border-radius: 3px 3px 0 0;
}

.nri-search {
    width: 24px;
    height: 24px;
    border: 3px solid #64748b;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
}

.nri-search::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 12px;
    height: 3px;
    background: #64748b;
    transform: rotate(45deg);
    border-radius: 2px;
}

.shop-no-products .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.shop-no-products .btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(42, 50, 113, 0.3);
}

.shop-no-products .btn-primary:hover {
    background: #27307a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 50, 113, 0.4);
}

.shop-no-products .btn-primary[style*="transparent"] {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.shop-no-products .btn-primary[style*="transparent"]:hover {
    background: rgba(42, 50, 113, 0.08);
}

/* ── Products CTA ── */
.products-cta {
    text-align: center;
    margin-top: 40px;
    padding: 32px 0;
}

.products-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(42, 50, 113, 0.3);
}

.products-cta .btn:hover {
    background: #27307a;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(42, 50, 113, 0.4);
}

.products-cta .btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.products-cta .btn:hover svg {
    transform: translateX(4px);
}

/* ── Filter Drawer ── */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

#filterDrawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

#filterDrawer.open {
    transform: translateX(0);
}

#filterDrawer h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    padding: 24px;
    margin: 0;
    border-bottom: 1px solid rgba(42, 50, 113, 0.1);
}

#closeFilterBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(42, 50, 113, 0.08);
    color: var(--primary);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

#closeFilterBtn:hover {
    background: rgba(42, 50, 113, 0.15);
    transform: rotate(90deg);
}

#priceRange {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        rgba(42, 50, 113, 0.2) 0%,
        rgba(42, 50, 113, 0.6) 100%
    );
    outline: none;
    -webkit-appearance: none;
    margin: 32px 24px;
}

#priceRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(42, 50, 113, 0.4);
    transition: all 0.2s ease;
}

#priceRange::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

#priceRange::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(42, 50, 113, 0.4);
    transition: all 0.2s ease;
}

#priceRange::-moz-range-thumb:hover {
    transform: scale(1.15);
}

.max-price {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 32px;
}

#applyFiltersBtn {
    width: calc(100% - 48px);
    margin: 0 auto 32px;
    padding: 16px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(42, 50, 113, 0.3);
}

#applyFiltersBtn:hover {
    background: #27307a;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(42, 50, 113, 0.4);
}

/* ── Responsive Styles ── */
@media (max-width: 768px) {
    .jk-products {
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }

    .shop-header {
        top: 70px;
    }

    .shop-header-inner {
        padding: 0 16px;
        flex-direction: row;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .search-wrap {
        max-width: 100%;
        flex: 1;
        min-width: 0;
    }

    .search-wrap input {
        padding: 10px 14px 10px 38px;
        font-size: 0.85rem;
    }

    .search-wrap svg {
        left: 13px;
        width: 14px;
        height: 14px;
    }

    .shop-header-actions {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }

    .filter-toggle-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        gap: 6px;
        white-space: nowrap;
    }

    .filter-toggle-btn span {
        display: none;
    }

    .results-count {
        font-size: 0.75rem;
        padding: 6px 10px;
        white-space: nowrap;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 0;
    }

    .product-body {
        padding: 16px 18px 20px;
    }

    .product-title {
        font-size: 1.05rem;
    }

    .product-desc {
        font-size: 0.84rem;
    }

    .product-link {
        padding: 8px 16px;
        font-size: 0.78rem;
    }

    .shop-no-products {
        padding: 60px 16px;
    }

    .shop-no-products .snp-actions {
        flex-direction: column;
    }

    .shop-no-products .btn {
        width: 100%;
        justify-content: center;
    }

    #filterDrawer {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .shop-header-inner {
        gap: 8px;
        padding: 0 12px;
    }

    .search-wrap input {
        padding: 8px 12px 8px 34px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .search-wrap svg {
        left: 11px;
        width: 12px;
        height: 12px;
    }

    .shop-header-actions {
        gap: 6px;
    }

    .filter-toggle-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        border-radius: 10px;
    }

    .filter-toggle-btn svg {
        width: 14px;
        height: 14px;
    }

    .results-count {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .products-grid {
        gap: 20px;
    }

    .product-img-wrap {
        aspect-ratio: 16/9;
    }

    .product-body {
        padding: 14px 16px 18px;
    }

    .product-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .product-desc {
        font-size: 0.82rem;
        margin-bottom: 12px;
    }

    .product-footer {
        padding-top: 12px;
    }

    .product-link {
        padding: 6px 14px;
        font-size: 0.74rem;
    }

    .shop-no-products h3 {
        font-size: 1.25rem;
    }

    .shop-no-products .section-desc {
        font-size: 0.88rem;
    }
}
