
/* =========================================================
   JONOB VAP MODERN UI
   Drop-in stylesheet for the Laravel storefront
   ========================================================= */

:root {
    --j-bg: #090b10;
    --j-bg-soft: #10131a;
    --j-card: #151922;
    --j-card-2: #1b202b;
    --j-border: rgba(255,255,255,.09);
    --j-text: #f5f7fb;
    --j-muted: #9aa3b2;
    --j-primary: #8b5cf6;
    --j-primary-2: #6d28d9;
    --j-accent: #22d3ee;
    --j-success: #22c55e;
    --j-danger: #ef4444;
    --j-radius: 18px;
    --j-shadow: 0 18px 50px rgba(0,0,0,.28);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 10% 0%, rgba(139,92,246,.10), transparent 30rem),
        radial-gradient(circle at 90% 10%, rgba(34,211,238,.06), transparent 28rem),
        var(--j-bg);
    color: var(--j-text);
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

a {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease,
                transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

::selection {
    background: rgba(139,92,246,.35);
    color: #fff;
}

/* ---------- Header / navigation ---------- */

header,
nav {
    transition: background-color .25s ease, border-color .25s ease;
}

.j-modern-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9,11,16,.84);
    border-bottom: 1px solid var(--j-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.j-modern-header a:hover {
    color: #fff;
}

.j-nav-link {
    color: var(--j-muted);
    font-weight: 600;
    padding: .65rem .85rem;
    border-radius: 12px;
}

.j-nav-link:hover,
.j-nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.06);
}

.j-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--j-border);
    border-radius: 13px;
    background: rgba(255,255,255,.035);
    color: #fff;
}

.j-icon-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(139,92,246,.45);
    background: rgba(139,92,246,.12);
}

/* ---------- Hero ---------- */

.j-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(2rem, 6vw, 5rem);
    background:
        linear-gradient(135deg, rgba(139,92,246,.22), rgba(17,24,39,.7)),
        var(--j-card);
    border: 1px solid var(--j-border);
    box-shadow: var(--j-shadow);
}

.j-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    left: -160px;
    top: -180px;
    border-radius: 50%;
    background: rgba(139,92,246,.18);
    filter: blur(30px);
    pointer-events: none;
}

.j-hero > * {
    position: relative;
    z-index: 1;
}

.j-gradient-text {
    background: linear-gradient(90deg, #fff, #c4b5fd, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Product cards ---------- */

.j-product-card,
.product-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    border: 1px solid var(--j-border);
    border-radius: var(--j-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,.16);
    transition: transform .25s ease, border-color .25s ease,
                box-shadow .25s ease, background .25s ease;
}

.j-product-card:hover,
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139,92,246,.42);
    box-shadow: 0 22px 55px rgba(0,0,0,.34);
    background: linear-gradient(180deg, rgba(139,92,246,.075), rgba(255,255,255,.02));
}

.j-product-card img,
.product-card img {
    transition: transform .35s ease;
}

.j-product-card:hover img,
.product-card:hover img {
    transform: scale(1.045);
}

.j-product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0e1117;
    border-radius: 14px;
}

/* ---------- Buttons ---------- */

.j-btn,
.j-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .7rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--j-primary), var(--j-primary-2));
    box-shadow: 0 8px 24px rgba(109,40,217,.22);
}

.j-btn:hover,
.j-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 13px 30px rgba(109,40,217,.32);
}

.j-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .7rem 1.15rem;
    border: 1px solid var(--j-border);
    border-radius: 13px;
    color: #fff;
    font-weight: 700;
    background: rgba(255,255,255,.045);
}

.j-btn-secondary:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.16);
}

/* ---------- Inputs / search ---------- */

.j-input,
input.j-input,
select.j-input,
textarea.j-input {
    width: 100%;
    min-height: 46px;
    padding: .7rem .9rem;
    color: #fff;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--j-border);
    border-radius: 13px;
    outline: none;
}

.j-input::placeholder {
    color: #6f7785;
}

.j-input:focus {
    border-color: rgba(139,92,246,.7);
    box-shadow: 0 0 0 4px rgba(139,92,246,.11);
}

/* ---------- Badges / labels ---------- */

.j-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    color: #ddd6fe;
    background: rgba(139,92,246,.13);
    border: 1px solid rgba(139,92,246,.2);
    font-size: .78rem;
    font-weight: 700;
}

.j-badge-success {
    color: #bbf7d0;
    background: rgba(34,197,94,.1);
    border-color: rgba(34,197,94,.2);
}

/* ---------- Category cards ---------- */

.j-category-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid var(--j-border);
    background: linear-gradient(145deg, #171b24, #0e1117);
    color: #fff;
}

.j-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139,92,246,.42);
    color: #fff;
}

.j-category-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -60px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(139,92,246,.14);
    filter: blur(8px);
}

.j-category-card > * {
    position: relative;
    z-index: 1;
}

/* ---------- Product detail ---------- */

.j-product-detail {
    background: rgba(255,255,255,.025);
    border: 1px solid var(--j-border);
    border-radius: 24px;
    box-shadow: var(--j-shadow);
}

.j-price {
    color: #c4b5fd;
    font-weight: 900;
    letter-spacing: -.02em;
}

/* ---------- Cart / checkout ---------- */

.j-panel {
    background: rgba(255,255,255,.035);
    border: 1px solid var(--j-border);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
}

.j-cart-item {
    padding: 1rem;
    border-bottom: 1px solid var(--j-border);
}

.j-cart-item:last-child {
    border-bottom: 0;
}

.j-total {
    padding: 1.15rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(34,211,238,.045));
    border: 1px solid rgba(139,92,246,.18);
}

/* ---------- Tables ---------- */

.j-modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--j-border);
    border-radius: 16px;
}

.j-modern-table th,
.j-modern-table td {
    padding: .9rem 1rem;
    text-align: right;
    border-bottom: 1px solid var(--j-border);
}

.j-modern-table th {
    color: #fff;
    background: rgba(255,255,255,.045);
}

.j-modern-table td {
    color: #c4cad5;
}

.j-modern-table tr:last-child td {
    border-bottom: 0;
}

/* ---------- Footer ---------- */

.j-modern-footer {
    margin-top: 5rem;
    padding: 3.5rem 0 1.5rem;
    background: #07090d;
    border-top: 1px solid var(--j-border);
}

.j-modern-footer a {
    color: var(--j-muted);
}

.j-modern-footer a:hover {
    color: #fff;
}

/* ---------- Alerts ---------- */

.j-alert {
    padding: .9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--j-border);
    background: rgba(255,255,255,.04);
}

.j-alert-success {
    background: rgba(34,197,94,.08);
    border-color: rgba(34,197,94,.18);
    color: #bbf7d0;
}

.j-alert-danger {
    background: rgba(239,68,68,.08);
    border-color: rgba(239,68,68,.18);
    color: #fecaca;
}

/* ---------- Scrollbar ---------- */

* {
    scrollbar-width: thin;
    scrollbar-color: #343947 #0b0d12;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0d12;
}

::-webkit-scrollbar-thumb {
    background: #343947;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
    .j-hero {
        border-radius: 20px;
        padding: 1.5rem;
    }

    .j-product-card,
    .product-card {
        border-radius: 15px;
    }

    .j-modern-footer {
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .j-btn,
    .j-btn-primary,
    .j-btn-secondary {
        width: 100%;
    }
}

/* ---------- Respect reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
