/* =========================
   ZAATMARKET - GLOBAL CSS
   (Copy/Paste Full File)
========================= */

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --brand: #ff9900;
    --brand2: #ff7a00;
    --danger: #e11d48;
    --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
    --shadow-md: 0 14px 40px rgba(0,0,0,.14);
    --radius: 14px;
}

body {
    font-family: Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.4;
}

/* Headings spacing */
h1, h2, h3 {
    letter-spacing: .2px;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        color: var(--brand);
        text-decoration: underline;
    }

/* Page container */
.page-container {
    padding: 12px;
    max-width: 1000px;
    margin: 0 auto;
}

/* =========================
   PRODUCTS PAGE LAYOUT
========================= */
.products-page {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* Left panel (Filters) */
.filters-panel {
    width: 280px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .filters-panel:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.filters-title {
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.field {
    margin-bottom: 12px;
}

    .field label {
        display: block;
        font-weight: 700;
        margin-bottom: 6px;
    }

/* Inputs/selects */
.input, .select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .1s ease;
}

    .input:focus, .select:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 4px rgba(255,153,0,.18);
    }

    .input:hover, .select:hover {
        transform: translateY(-1px);
    }

/* Buttons */
.btn-row {
    display: flex;
    gap: 10px;
}

.btn {
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

    .btn:active {
        transform: translateY(0px) scale(.98);
    }

.btn-primary {
    background: var(--brand);
    color: #111;
}

    .btn-primary:hover {
        background: var(--brand2);
        transform: translateY(-1px);
        box-shadow: 0 12px 18px rgba(0,0,0,.12);
    }

.btn-ghost {
    background: #eef2f7;
    color: #111;
}

    .btn-ghost:hover {
        background: #e5e7eb;
        transform: translateY(-1px);
    }

/* Category list */
.category-list {
    margin-top: 10px;
    padding-left: 18px;
}

    .category-list li {
        margin: 6px 0;
    }

    .category-list a {
        display: inline-block;
        transition: transform .2s ease, color .2s ease;
    }

        .category-list a:hover {
            transform: translateX(4px);
        }

/* =========================
   PRODUCTS GRID + CARDS
========================= */
.products-main {
    flex: 1;
    min-width: 0;
}

.products-meta {
    margin: 12px 0;
    color: var(--muted);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
}

    /* ✅ STRONG HOVER (you will see it) */
    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-md);
        border-color: rgba(255,153,0,.70);
    }

/* Title */
.product-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
}

/* Category + Price */
.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.product-category {
    color: var(--muted);
    font-weight: 600;
}

.product-price {
    color: #e11d48;
    font-weight: 900;
}

/* Description */
.product-desc {
    color: #374151;
    margin-bottom: 10px;
}

/* Meta */
.product-date {
    color: var(--muted);
    font-size: .9rem;
}

/* Card Actions */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: #111;
}

    .btn-outline:hover {
        border-color: var(--brand);
        box-shadow: 0 10px 16px rgba(0,0,0,.10);
        transform: translateY(-1px);
    }

/* Delete button */
.btn-danger {
    background: var(--danger);
    color: white;
}

    .btn-danger:hover {
        opacity: .92;
        transform: translateY(-1px);
        box-shadow: 0 12px 18px rgba(0,0,0,.12);
    }

/* Responsive */
@media (max-width: 900px) {
    .products-page {
        flex-direction: column;
    }

    .filters-panel {
        width: 100%;
    }
}

/* =========================
   SHARED UI (ALL PAGES)
========================= */

.section-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.muted {
    color: var(--muted);
}

.hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* Generic grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

/* Generic card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
        border-color: rgba(255,153,0,.70);
    }

.card-title {
    font-weight: 900;
    margin-bottom: 6px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2f7;
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: .85rem;
}

/* Small button variants (for cards) */
.btn-sm {
    padding: 8px 10px;
    border-radius: 10px;
}

/* =========================
   HOME PAGE — PREMIUM STYLE
========================= */

.home {
    position: relative;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    align-items: center;
    padding: 22px 0 10px 0;
}

.hero-left {
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-weight: 800;
    margin-bottom: 14px;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .hero-badge:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

.hero-title {
    font-size: 2.55rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 12px 0;
    font-weight: 950;
}

.hero-gradient {
    background: linear-gradient(90deg, #ff9900, #ff4d4d, #7c4dff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 54ch;
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0 0 16px 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-btn {
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 850;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .hero-btn:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 14px 0;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .stat:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
        border-color: rgba(255,153,0,.65);
    }

.stat-num {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.stat-text b {
    font-weight: 950;
}

/* chips */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .chip:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: rgba(255,153,0,.65);
    }

/* Right side floating stage */


.float-img {
    width: 100%; /* Makes the image fill the width of the card */
    max-height: 120px; /* Keeps it from getting too tall */
    object-fit: contain; /* Ensures the whole image is visible without stretching */
    margin-top: 10px; /* Gives a little breathing room from the text */
}

.hero-right {
    position: relative;
}

.float-stage {
    position: relative;
    height: 420px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: radial-gradient(circle at 30% 25%, rgba(255,153,0,.18), transparent 55%), radial-gradient(circle at 70% 70%, rgba(124,77,255,.18), transparent 55%), var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* floating orbs */
.glow-orb {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    filter: blur(40px);
    opacity: .55;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb1 {
    left: -60px;
    top: -70px;
    background: rgba(255,153,0,.55);
}

.orb2 {
    right: -80px;
    bottom: -90px;
    background: rgba(124,77,255,.55);
    animation-delay: -2.5s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(18px, 14px) scale(1.06);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Floating cards */
.float-card {
    position: absolute;
    width: 260px;
    border-radius: 16px;
    background: rgba(255,255,255,.80);
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 14px 30px rgba(0,0,0,.10);
    padding: 12px;
    backdrop-filter: blur(10px);
    transition: transform .25s ease, box-shadow .25s ease;
    animation: floaty 5.5s ease-in-out infinite;
}

    .float-card:hover {
        transform: translateY(-10px) rotate(0.5deg);
        box-shadow: 0 18px 36px rgba(0,0,0,.16);
    }

@keyframes floaty {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

.fc1 {
    left: 22px;
    top: 44px;
    animation-delay: -1.2s;
}

.fc2 {
    right: 26px;
    top: 110px;
    animation-delay: -2.6s;
    width: 240px;
}

.fc3 {
    left: 60px;
    bottom: 34px;
    animation-delay: -3.4s;
    width: 240px;
}

.float-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.float-title {
    font-weight: 950;
}

.float-price {
    font-weight: 950;
    background: rgba(255,153,0,.18);
    padding: 6px 10px;
    border-radius: 999px;
}

.float-sub {
    color: rgba(0,0,0,.65);
    font-weight: 700;
    margin-top: 6px;
    margin-bottom: 10px;
}

/* Fake “images” using gradients (no files needed) */
.loat-img {
    height: 110px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
}

.img-laptop {
    background: radial-gradient(circle at 30% 35%, rgba(255,255,255,.85), transparent 55%), linear-gradient(135deg, rgba(255,153,0,.55), rgba(124,77,255,.45));
}

.img-phone {
    background: radial-gradient(circle at 55% 35%, rgba(255,255,255,.85), transparent 55%), linear-gradient(135deg, rgba(0,0,0,.15), rgba(255,153,0,.45));
}

.img-audio {
    background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.85), transparent 55%), linear-gradient(135deg, rgba(124,77,255,.55), rgba(255,77,77,.40));
}

/* Sections */
.home-section {
    margin-top: 18px;
}

/* Feature cards */
.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.feature .muted {
    margin-top: 6px;
}

/* CTA */
.cta {
    margin-top: 18px;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255,153,0,.12), rgba(124,77,255,.10));
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .cta-inner:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

.cta-title {
    font-weight: 950;
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .float-stage {
        height: 360px;
    }
}

/* ===== Top Navbar ===== */
.topnav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(10, 10, 12, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    transform: translateY(0);
    transition: transform .2s ease, box-shadow .2s ease;
}

.brand:hover .brand-logo {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

.brand-name {
    font-weight: 800;
    letter-spacing: .2px;
    font-size: 1.05rem;
    opacity: .95;
}

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: rgba(255,255,255,0.88);
    padding: 8px 10px;
    border-radius: 10px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

    .nav-link:hover {
        background: rgba(255,255,255,0.08);
        color: white;
        transform: translateY(-1px);
    }

    /* Active underline */
    .nav-link.active::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 4px;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, #ff9900, #ff4d4d, #7c4dff);
        opacity: .95;
    }

/* Right side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-account {
    text-decoration: none;
    color: rgba(255,255,255,0.92);
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    transition: background .18s ease, transform .18s ease;
}

    .nav-account:hover {
        background: rgba(255,255,255,0.14);
        transform: translateY(-1px);
    }

/* ===== Page wrapper ===== */
.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 16px 60px;
}

/* ===== Card ===== */
.card {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.form-card {
    padding: 22px;
}

.form-head h1 {
    margin: 0 0 6px 0;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.form-head p {
    margin: 0 0 18px 0;
    color: rgba(0,0,0,0.65);
}

/* ===== Form grid ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 14px;
}

.field-span {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    font-weight: 700;
    margin: 2px 0 8px;
    color: rgba(0,0,0,0.85);
}

/* ===== Inputs ===== */
.input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.90);
    outline: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .input:hover {
        border-color: rgba(0,0,0,0.20);
    }

    .input:focus {
        border-color: rgba(124,77,255,0.55);
        box-shadow: 0 0 0 4px rgba(124,77,255,0.15);
        transform: translateY(-1px);
    }

.textarea {
    min-height: 140px;
    resize: vertical;
}

.file {
    padding: 10px;
}

/* ===== Hints + validation ===== */
.hint {
    margin-top: 6px;
    font-size: 0.9rem;
    color: rgba(0,0,0,0.55);
}

.val-summary {
    margin: 8px 0 10px;
    color: #b00020;
}

.val {
    display: block;
    margin-top: 6px;
    color: #b00020;
    font-size: 0.9rem;
}

/* ===== Alerts ===== */
.alert {
    padding: 12px 12px;
    border-radius: 12px;
    margin: 12px 0 14px;
}

.alert-danger {
    background: rgba(255,0,0,0.08);
    border: 1px solid rgba(255,0,0,0.18);
    color: rgba(160,0,0,0.95);
}

/* ===== Buttons ===== */
.actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 16px;
}

.btn-primary {
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    color: #111;
    background: linear-gradient(90deg,#ff9900,#ff4d4d,#7c4dff);
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 55px rgba(0,0,0,0.22);
        filter: brightness(1.03);
    }

    .btn-primary:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
    }

.btn-ghost {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

    .btn-ghost:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,0.85);
        border-color: rgba(0,0,0,0.22);
    }

/* ===== Image preview ===== */
.img-preview {
    margin-top: 10px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.65);
    max-width: 420px;
}

    .img-preview img {
        display: block;
        width: 100%;
        height: auto;
    }

/* Responsive */
@media (max-width: 820px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* === Products Page UI === */

.page-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 60px;
}

.page-header {
    margin-bottom: 18px;
}

.page-title {
    margin: 0;
    font-size: 46px;
    letter-spacing: -0.03em;
}

.page-subtitle {
    margin-top: 6px;
    opacity: .7;
}

.layout-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: start;
}

.panel {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
    backdrop-filter: blur(8px);
}

.panel-title {
    margin: 0 0 14px 0;
    font-size: 16px;
}

.field {
    margin-bottom: 12px;
}

.label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.input, .select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.15);
    outline: none;
    background: white;
}

    .input:focus, .select:focus {
        border-color: rgba(124,77,255,.55);
        box-shadow: 0 0 0 4px rgba(124,77,255,.15);
    }

.btn-row {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    background: white;
    cursor: pointer;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(0,0,0,.12);
    }

    .btn:active {
        transform: translateY(0px);
    }

.btn-primary {
    border: none;
    color: #111;
    background: linear-gradient(90deg, #ff9900, #ff4d4d, #7c4dff);
}

.btn-ghost {
    background: rgba(255,255,255,.65);
}

.btn-danger {
    border: none;
    color: white;
    background: #e11d48;
}

    .btn-danger:hover {
        filter: brightness(1.05);
    }

.divider {
    margin: 16px 0;
    border: none;
    border-top: 1px solid rgba(0,0,0,.12);
}

.browse-title {
    font-weight: 800;
    margin-bottom: 8px;
}

.cat-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.cat-link {
    text-decoration: none;
    font-weight: 700;
    opacity: .85;
}

    .cat-link:hover {
        opacity: 1;
        text-decoration: underline;
    }

.results-bar {
    margin: 6px 0 14px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 14px;
}

.card {
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0,0,0,.14);
}

.product-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.img-fallback {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    opacity: .6;
    background: linear-gradient(135deg, rgba(255,153,0,.16), rgba(124,77,255,.12));
}

.card-body {
    padding: 14px 14px 16px;
}

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.title {
    font-size: 18px;
    font-weight: 900;
}

.price {
    font-weight: 900;
    color: #e11d48;
}

.meta {
    margin-top: 4px;
    opacity: .7;
    font-weight: 700;
}

.desc {
    margin-top: 10px;
    opacity: .85;
    min-height: 44px;
}

.listed {
    margin-top: 10px;
    font-size: .9rem;
}

.muted {
    opacity: .7;
}

.mt {
    margin-top: 12px;
}

.alert {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(225,29,72,.10);
    border: 1px solid rgba(225,29,72,.18);
    margin-bottom: 12px;
}

.empty-state {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(0,0,0,.08);
}

/* responsive */
@media (max-width: 980px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

/* === Product Details Page === */

.details-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 18px;
    align-items: start;
}

.details-left {
    display: grid;
    gap: 14px;
}

.details-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 18px 46px rgba(0,0,0,.14);
    transition: transform .22s ease, box-shadow .22s ease;
}

    .details-img:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 22px 54px rgba(0,0,0,.18);
    }

.details-meta-card {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(124,77,255,.14);
    border: 1px solid rgba(124,77,255,.22);
    font-weight: 800;
    margin-top: 6px;
}

.details-right {
    display: grid;
    gap: 14px;
}

.details-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.details-title {
    margin: 0;
    font-size: 42px;
    letter-spacing: -0.03em;
}

.details-price {
    font-size: 22px;
    font-weight: 900;
    color: #e11d48;
    background: rgba(225,29,72,.08);
    border: 1px solid rgba(225,29,72,.18);
    padding: 10px 12px;
    border-radius: 14px;
    white-space: nowrap;
}

.details-sections {
    display: grid;
    gap: 14px;
}

.details-panel .panel-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.15);
    background: white;
    outline: none;
    resize: vertical;
}

    .textarea:focus {
        border-color: rgba(124,77,255,.55);
        box-shadow: 0 0 0 4px rgba(124,77,255,.15);
    }

.subhead {
    margin: 0 0 10px 0;
    font-weight: 900;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.review-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.review-item {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 12px;
}

.stars {
    font-weight: 900;
    letter-spacing: .05em;
}

.review-text {
    margin-top: 8px;
    opacity: .9;
}

.small {
    font-size: .9rem;
}

.strong {
    font-weight: 900;
}

.spacer {
    height: 10px;
}

.success {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(34,197,94,.10);
    border: 1px solid rgba(34,197,94,.18);
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 980px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-img {
        height: 300px;
    }
}

/* Page transition animation */

.page-transition {
    animation: pageFade .35s ease;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
}

.account-sidebar {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

    .account-sidebar h3 {
        margin-bottom: 10px;
        font-size: 18px;
    }

    .account-sidebar ul {
        list-style: none;
        padding: 0;
    }

    .account-sidebar li {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .account-sidebar a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
    }

        .account-sidebar a:hover {
            color: #111827;
        }

.logout-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
}

    .logout-btn:hover {
        background: #b91c1c;
    }

.account-content {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.account-header {
    margin-bottom: 20px;
}

    .account-header h2 {
        margin: 0;
    }

.account-info {
    margin-top: 10px;
    color: #555;
}

.review-box {
    background: #f9fafb;
    padding: 16px;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid #eee;
}

.review-stars {
    color: #facc15;
    font-size: 18px;
}

.review-date {
    float: right;
    color: #888;
    font-size: 14px;
}

.message-box {
    background: #f9fafb;
    padding: 16px;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid #eee;
}

.message-btn {
    background: #111827;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 600;
}

    .message-btn:hover {
        background: #000;
    }


/* Navbar Layout */
.brand-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

    .hamburger-btn:hover {
        transform: scale(1.1);
        color: #ff6600;
    }

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Slide-out Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

    .sidebar.open {
        left: 0;
    }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

    .sidebar-header h3 {
        margin: 0;
        font-size: 1.2rem;
        color: #333;
        font-weight: 800;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

    .close-btn:hover {
        color: #ff6600;
    }

.sidebar-links {
    padding: 10px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-category {
    padding: 20px 20px 5px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar-link {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.2s;
}

    .sidebar-link:hover {
        background-color: #fff0e6;
        color: #ff6600;
        padding-left: 25px;
    }

/* Dark Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 1500;
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .sidebar-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }