*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

:root{
    --header-bg-start:#0f172a;
    --header-bg-end:#1d4ed8;
    --header-panel:#0b1220;
    --header-pill:rgba(255,255,255,0.08);
    --header-pill-hover:rgba(255,255,255,0.16);
    --header-border:rgba(255,255,255,0.12);
    --header-shadow:0 16px 36px rgba(15,23,42,0.18);
    --accent-warm:#f59e0b;
    --accent-warm-strong:#fb7185;
    --surface-light:#f8fafc;
}

/* BODY */
body{
    background:
        radial-gradient(circle at top, rgba(59,130,246,0.10), transparent 28%),
        #f1f3f6;
}

header{
    position:sticky;
    top:0;
    z-index:40;
}

/* NAVBAR */
.navbar{
    min-height:72px;
    padding:10px 18px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 24%),
        linear-gradient(120deg, var(--header-bg-start), #111827 48%, var(--header-bg-end));
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    color:white;
    box-shadow:var(--header-shadow);
    position:relative;
    isolation:isolate;
}

.navbar::after{
    content:"";
    position:absolute;
    inset:auto 0 0 0;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    pointer-events:none;
}

/* LINKS */
.icon{
    color:white;
    text-decoration:none;
    transition:opacity 0.2s ease, transform 0.2s ease;
    flex-shrink:0;
}

.icon:hover{
    opacity:1;
    transform:translateY(-1px);
}

/* LOGO (FIXED PATH) */
.nav-logo{
    height:52px;
    width:154px;
    border-radius:18px;
    background:linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
    position:relative;
    overflow:hidden;
}

.logo{
    background-image: url("../images/swift.png");
    background-size: 108px auto;
    background-repeat: no-repeat;
    background-position: 10px center;
    width:100%;
    height:100%;
}

.nav-logo::after{
    content:"Official";
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    padding:4px 8px;
    border-radius:999px;
    background:rgba(255,255,255,0.12);
    color:#e2e8f0;
    font-size:0.66rem;
    font-weight:700;
    letter-spacing:0.04em;
}


/* BORDER */
.border{
    border:1px solid var(--header-border);
    padding:10px 12px;
    border-radius:16px;
    background:var(--header-pill);
    transition:background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.border:hover{
    border-color:rgba(255,255,255,0.22);
    background-color:var(--header-pill-hover);
    transform:translateY(-1px);
}

/* ADDRESS */
.add-first{
    color:#ccc;
    font-size:0.75rem;
}

.add-sec{
    font-size:0.95rem;
    color:#fff;
    font-weight:500;
}

.add-icon{
    display:flex;
    align-items:center;
    gap:5px;
}

/* SEARCH */
.nav-search-shell{
    position:relative;
    flex:1 1 420px;
    width:min(100%, 760px);
    min-width:280px;
}

.nav-search{
    display:flex;
    align-items:center;
    width:100%;
    min-width:0;
    height:50px;
    border-radius:18px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.18);
    background:#fff;
    box-shadow:0 18px 32px rgba(2,6,23,0.22);
}

.nav-search:focus-within{
    border-color:rgba(251,191,36,0.9);
    box-shadow:0 18px 34px rgba(245,158,11,0.24);
}

.search-select{
    align-self:stretch;
    width:78px;
    background:#f8fafc;
    border:none;
    border-right:1px solid #e2e8f0;
    padding:0 10px;
    color:#334155;
    font-weight:600;
}

.search-input{
    width:100%;
    border:none;
    padding:0 14px;
    height:100%;
    background:transparent;
    font-size:0.97rem;
    color:#0f172a;
    outline:none;
}

.search-input::placeholder{
    color:#94a3b8;
}

.Search-icon{
    width:55px;
    align-self:stretch;
    border:none;
    background:linear-gradient(180deg, #fbbf24, #f97316);
    color:#111827;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    transition:filter 0.2s ease, transform 0.2s ease;
}

.Search-icon:hover{
    filter:brightness(1.05);
}

.search-suggestions{
    position:absolute;
    top:calc(100% + 12px);
    left:84px;
    right:58px;
    padding:10px;
    border-radius:22px;
    border:1px solid rgba(148,163,184,0.28);
    background:rgba(255,255,255,0.98);
    box-shadow:0 24px 42px rgba(15,23,42,0.18);
    backdrop-filter:blur(14px);
    z-index:30;
    display:grid;
    gap:8px;
}

.search-suggestions[hidden]{
    display:none !important;
}

.search-suggestion-item{
    width:100%;
    border:none;
    background:#fff;
    border-radius:16px;
    padding:12px 14px;
    display:grid;
    gap:6px;
    text-align:left;
    cursor:pointer;
    transition:transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow:inset 0 0 0 1px #e2e8f0;
}

.search-suggestion-item:hover,
.search-suggestion-item:focus-visible{
    transform:translateY(-1px);
    background:#f8fbff;
    box-shadow:inset 0 0 0 1px #bfdbfe, 0 10px 20px rgba(37,99,235,0.12);
    outline:none;
}

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

.search-suggestion-title{
    color:#0f172a;
    font-weight:700;
    font-size:0.98rem;
}

.search-suggestion-type{
    display:inline-flex;
    align-items:center;
    gap:6px;
    border-radius:999px;
    padding:6px 10px;
    background:#eff6ff;
    color:#1d4ed8;
    font-size:0.75rem;
    font-weight:700;
}

.search-suggestion-meta{
    color:#64748b;
    font-size:0.86rem;
    line-height:1.5;
}

.search-suggestion-empty{
    padding:14px 16px;
    border-radius:18px;
    background:#fff7ed;
    color:#9a3412;
    box-shadow:inset 0 0 0 1px #fed7aa;
    font-size:0.92rem;
}

.Search-icon i.fa-arrow-left{
    animation:backArrowFloat 1.8s ease-in-out infinite;
    transform-origin:center;
}

.Search-icon:hover i.fa-arrow-left{
    animation-duration:0.85s;
}

@keyframes backArrowFloat{
    0%, 100%{
        transform:translateX(0) scale(1);
    }
    35%{
        transform:translateX(-5px) scale(1.08);
    }
    70%{
        transform:translateX(2px) scale(0.96);
    }
}

/* TEXT */
span{
    font-size:0.75rem;
    color:#ccc;
}

.nav-second{
    font-size:0.9rem;
    font-weight:600;
}

/* CART */
.nav-cart{
    display:flex;
    align-items:center;
    gap:5px;
    font-weight:700;
}

.nav-cart i{
    font-size:28px;
    color:#f8fafc;
}

/* USER ICON */
.account-user{
    width:46px;
    height:46px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--header-pill);
    border:1px solid var(--header-border);
    overflow:hidden;
}

.account-user i{
    font-size:30px;
    color:#f8fafc;
}

.account-avatar-image{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center var(--profile-focus, 50%);
    transform:scale(var(--profile-zoom, 1));
    transform-origin:center;
    display:block;
}

.account-avatar-fallback{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1rem;
    font-weight:800;
    color:#fff;
    background:linear-gradient(135deg, #1d4ed8, #0f172a);
}

.nav-logout-button{
    border:none;
    border-radius:999px;
    padding:10px 16px;
    width:auto;
    margin-top:0;
    background:rgba(239,68,68,0.18);
    color:#fff;
    border:1px solid rgba(248,113,113,0.34);
    font-weight:700;
    cursor:pointer;
    transition:transform 0.2s ease, background-color 0.2s ease;
}

.nav-logout-button:hover{
    transform:translateY(-1px);
    background:rgba(239,68,68,0.26);
}

.nav-signup-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 18px;
    border-radius:999px;
    background:linear-gradient(135deg, #f59e0b, #f97316);
    color:#fff;
    text-decoration:none;
    font-weight:800;
    letter-spacing:0.01em;
    box-shadow:0 14px 28px rgba(249,115,22,0.22);
    transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-signup-button:hover{
    transform:translateY(-1px);
    box-shadow:0 18px 32px rgba(249,115,22,0.28);
}

/* PANEL */
.panel{
    min-height:50px;
    padding:10px 20px;
    background:linear-gradient(90deg, #101827, #172554 58%, #0f172a);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
    color:white;
    border-top:1px solid rgba(255,255,255,0.08);
    box-shadow:0 10px 24px rgba(15,23,42,0.08);
}

.panel-all,
.panel-deals{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.1);
    font-weight:700;
}

.panel-ops{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.panel-ops p{
    display:inline-flex;
    align-items:center;
    padding:8px 12px;
    margin-left:0;
    border-radius:999px;
    background:rgba(255,255,255,0.04);
    cursor:pointer;
    transition:background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.panel-ops p:hover{
    color:#fff;
    background:rgba(255,255,255,0.12);
    transform:translateY(-1px);
}

/* HERO (FIXED PATH) */
.hero-section{
    background-image:url("../images/back.png");
    background-size:cover;
    background-position:center;
    height:1500px; /* kept SAME */
    position:relative;
}

/* HERO OVERLAY */
.hero-section::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
}

/* HERO MESSAGE */
.hero-msg{
    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    background:white;
    padding:12px 20px;
    border-radius:8px;
}

/* 🔴 CATEGORY (ADDED — NO DESIGN BREAK) */
.categories{
    display:flex;
    gap:20px;
    padding:20px;
    overflow-x:auto;
    background:#fff;
}

.categories div{
    text-align:center;
    cursor:pointer;
    min-width:100px;
}

.categories img{
    width:90px;
    height:90px;
    object-fit:cover;
    border-radius:10px;
}

/* 🔴 PRODUCT LIST (ADDED) */
#product-list{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    padding:20px;
}

#product-list div{
    background:white;
    padding:15px;
    width:200px;
    text-align:center;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
    transition:0.3s;
}

#product-list div:hover{
    transform:translateY(-5px);
    box-shadow:0 6px 18px rgba(0,0,0,0.2);
}

#product-list img{
    width:100%;
    height:150px;
    object-fit:cover;
}

/* FOOTER */
.footer{
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.22), transparent 24%),
        linear-gradient(180deg, #0f172a, #111827 58%, #172337);
    color:#fff;
    padding:40px 20px 0;
    margin-top:50px;
}

.footer-top{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:30px;
    padding-bottom:30px;
    border-bottom:1px solid #3a4553;
}

.footer-top-rich{
    align-items:start;
}

.footer-col h4{
    font-size:12px;
    color:#878787;
    margin-bottom:10px;
    letter-spacing:0.08em;
}

.footer-col p{
    font-size:13px;
    margin:6px 0;
    cursor:pointer;
    color:#ddd;
}

.footer-col a{
    display:block;
    font-size:13px;
    margin:6px 0;
    color:#ddd;
    text-decoration:none;
}

.footer-col p:hover,
.footer-col a:hover{
    text-decoration:underline;
}

.footer-link{
    font-weight:500;
}

.border-left{
    border-left:1px solid #3a4553;
    padding-left:20px;
}

.footer-highlight{
    padding:18px;
    border-radius:22px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
}

.footer-highlight p{
    cursor:default;
    line-height:1.65;
}

.footer-highlight p:hover{
    text-decoration:none;
}

/* SOCIAL */
.social-icons{
    display:flex;
    gap:12px;
    margin-top:10px;
}

.social-icons i{
    font-size:18px;
    cursor:pointer;
    color:#ddd;
}

.social-icons i:hover{
    color:#f1f1f0;
}


/* PRODUCT GRID */
.products-container{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap:20px;
    padding:20px;
}
.products-container[data-empty="true"]{
    min-height:0;
    padding-top:0;
}

.product-card{
    background:#fff;
    padding:15px;
    border-radius:18px;
    text-align:left;
    cursor:pointer;
    transition:transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow:0 12px 30px rgba(15,23,42,0.08);
    position:relative;
}

.product-card img{
    width:100%;
    height:220px;
    object-fit:contain;
    margin-bottom:14px;
}

.product-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 40px rgba(15,23,42,0.14);
}
/* BOTTOM */
.footer-bottom{
    display:flex;
    justify-content:space-between;
    padding:15px 0;
    font-size:14px;
    color:#ddd;
    flex-wrap:wrap;
}

.footer-bottom-rich{
    gap:14px;
    align-items:center;
    padding:20px 0;
}

.footer-bottom-rich div{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    border-radius:999px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
}

.footer-bottom a{
    color:#ddd;
    text-decoration:none;
}

.footer-bottom a:hover{
    text-decoration:underline;
}

.footer-inline-link{
    color:#ddd;
    text-decoration:none;
}

.footer-inline-link:hover{
    text-decoration:underline;
}
.not-found{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    color:#555;
}
.product-card{
    text-decoration:none;
    color:#111827;
}

.product-card h3{
    margin-bottom:10px;
    font-size:1.05rem;
}

.product-copy{
    color:#475569;
    font-size:0.92rem;
    line-height:1.5;
}

.product-meta,
.product-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}

.product-meta{
    color:#64748b;
    font-size:0.85rem;
    margin:12px 0;
}

.rating-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#0f172a;
}

.star-rating{
    position:relative;
    display:inline-block;
    line-height:1;
    letter-spacing:0.12em;
    font-size:0.92rem;
}

.star-track{
    color:#cbd5e1;
}

.star-fill{
    position:absolute;
    top:0;
    left:0;
    overflow:hidden;
    white-space:nowrap;
    color:#f59e0b;
}

.rating-value{
    font-size:0.86rem;
    color:#0f172a;
}

.product-footer strong{
    font-size:1.05rem;
    color:#0f172a;
}

.offer-chip{
    display:inline-flex;
    align-items:center;
    margin-top:6px;
    padding:4px 9px;
    border-radius:999px;
    background:#dcfce7;
    color:#166534;
    font-size:0.78rem;
    font-weight:800;
}

.inventory-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border-radius:999px;
    font-size:0.78rem;
    font-weight:800;
    background:#ecfeff;
    color:#0f766e;
}

.inventory-pill.is-success{
    background:#dcfce7;
    color:#166534;
}

.inventory-pill.is-warning{
    background:#fef3c7;
    color:#92400e;
}

.inventory-pill.is-danger{
    background:#fee2e2;
    color:#991b1b;
}

.product-stock-row{
    margin-top:10px;
}

.product-link,
.hero-cta,
.inline-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:11px 18px;
    border-radius:999px;
    text-decoration:none;
    background:#131921;
    color:#fff;
    font-weight:600;
}

.product-tag,
.eyebrow{
    display:inline-block;
    color:#92400e;
    background:#ffedd5;
    border-radius:999px;
    padding:6px 12px;
    font-size:0.8rem;
    font-weight:700;
    letter-spacing:0.03em;
}

.hero-banner{
    margin:24px 20px 8px;
    padding:32px;
    border-radius:28px;
    background:linear-gradient(135deg, #fff1d6 0%, #ffe1e8 55%, #fff 100%);
    display:grid;
    grid-template-columns:2.1fr 1fr;
    gap:24px;
    align-items:end;
}

.hero-banner h1{
    font-size:clamp(2rem, 4vw, 3.3rem);
    line-height:1.1;
    margin:14px 0;
    color:#111827;
    max-width:12ch;
}

.hero-banner p{
    max-width:55ch;
    color:#475569;
    line-height:1.6;
}

.hero-highlight{
    min-height:180px;
    border-radius:24px;
    background:linear-gradient(180deg, #131921 0%, #2d3f56 100%);
    color:#fff;
    display:flex;
    align-items:flex-end;
    padding:24px;
    font-size:1.4rem;
    font-weight:700;
}

.marketplace-proof{
    display:grid;
    gap:18px;
    margin:0 20px 8px;
}

.marketplace-stats{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:14px;
}

.marketplace-stat-card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:22px;
    padding:18px 20px;
    box-shadow:0 12px 28px rgba(15,23,42,0.06);
    display:grid;
    gap:6px;
}

.marketplace-stat-card strong{
    font-size:1.5rem;
    color:#0f172a;
}

.marketplace-stat-card span{
    color:#475569;
    font-size:0.9rem;
}

.marketplace-stat-card.compact strong{
    font-size:1.2rem;
}

.marketplace-highlight-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
}

.marketplace-highlight-card{
    background:linear-gradient(180deg, #ffffff, #f8fafc);
    border:1px solid #e2e8f0;
    border-radius:22px;
    padding:20px;
    box-shadow:0 12px 28px rgba(15,23,42,0.05);
}

.marketplace-highlight-card strong{
    color:#0f172a;
    display:block;
    margin-bottom:8px;
}

.marketplace-highlight-card p{
    color:#475569;
    line-height:1.65;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    padding:20px;
}

.section-head h2{
    font-size:2rem;
    color:#111827;
    margin-top:10px;
}

.section-copy{
    color:#475569;
    max-width:42ch;
    line-height:1.6;
}

.not-found{
    margin:20px;
    padding:28px;
    background:#fff;
    border:1px dashed #cbd5e1;
    border-radius:24px;
    text-align:center;
    color:#475569;
    position:static;
    transform:none;
}

.not-found i{
    font-size:2rem;
    margin-bottom:12px;
    color:#f97316;
}

.nav-address,
.nav-signin,
.nav-return{
    display:flex;
    flex-direction:column;
}

.cart-count{
    min-width:26px;
    height:26px;
    border-radius:999px;
    background:linear-gradient(180deg, #fde68a, #fb923c);
    color:#111827;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:0.82rem;
    font-weight:700;
    box-shadow:0 8px 16px rgba(251,146,60,0.22);
}

.compact-search{
    max-width:460px;
    flex:1 1 300px;
}

.category-section{
    padding:10px 20px 0;
}

.category-rail{
    display:flex;
    gap:14px;
    overflow-x:auto;
    padding:0 20px 12px;
}

.category-pill{
    min-width:220px;
    border:none;
    border-radius:20px;
    padding:18px;
    text-align:left;
    background:#ffffff;
    box-shadow:0 10px 30px rgba(15,23,42,0.08);
    cursor:pointer;
}

.category-pill strong,
.category-pill span{
    display:block;
    color:#111827;
}

.category-pill span{
    font-size:0.88rem;
    color:#64748b;
    margin-top:6px;
}

.catalog-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.ghost-button{
    border:1px solid #cbd5e1;
    background:#fff;
    color:#0f172a;
    padding:10px 16px;
    border-radius:999px;
    cursor:pointer;
    width:auto;
}

.navbar > #adminLogoutButton,
.navbar > .nav-logout-button,
.navbar > .ghost-button{
    width:auto;
    margin-top:0;
    align-self:center;
}

.ghost-select{
    border:1px solid #cbd5e1;
    background:#fff;
    color:#0f172a;
    padding:10px 14px;
    border-radius:999px;
}

.filter-panel{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:14px;
    padding:18px 20px 12px;
    align-items:end;
    background:linear-gradient(180deg, #ffffff, #f8fafc);
    border:1px solid #e2e8f0;
    border-radius:24px;
    box-shadow:0 14px 36px rgba(15,23,42,0.06);
    margin:0 20px 12px;
}

.filter-field{
    display:grid;
    gap:8px;
}

.filter-field label{
    font-size:0.84rem;
    font-weight:700;
    letter-spacing:0.03em;
    color:#334155;
}

.filter-panel input{
    min-width:0;
    padding:12px 14px;
    border:1px solid #cbd5e1;
    border-radius:14px;
    background:#fff;
    color:#0f172a;
}

.filter-check{
    display:flex;
    align-items:center;
    gap:8px;
    color:#334155;
}

.filter-switch{
    min-height:50px;
    padding:12px 14px;
    border:1px solid #cbd5e1;
    border-radius:16px;
    background:#fff;
    font-weight:600;
}

.filter-switch input{
    width:auto;
    min-width:auto;
}

.filter-actions{
    display:flex;
    justify-content:flex-end;
}

.filter-actions .ghost-button{
    width:100%;
    min-height:50px;
    border-radius:16px;
    background:linear-gradient(135deg, #0f172a, #1d4ed8);
    color:#fff;
    border-color:transparent;
}

.filter-chip-panel{
    margin:0 20px 18px;
    padding:16px 18px;
    border-radius:22px;
    background:linear-gradient(180deg, #ffffff, #f8fafc);
    border:1px solid #e2e8f0;
    box-shadow:0 12px 28px rgba(15,23,42,0.06);
    display:grid;
    gap:14px;
}

.filter-chip-row .filter-chip{
    letter-spacing:0.01em;
}

.filter-chip-head{
    display:grid;
    gap:4px;
}

.filter-chip-head strong{
    color:#0f172a;
    font-size:0.98rem;
    display:block;
}

.filter-chip-head span{
    color:#64748b;
    font-size:0.9rem;
    line-height:1.5;
    display:block;
}

.filter-chip-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.filter-chip{
    border:none;
    border-radius:999px;
    min-height:42px;
    padding:10px 18px;
    background:#fff;
    color:#0f172a;
    font-weight:700;
    font-size:0.94rem;
    white-space:nowrap;
    cursor:pointer;
    transition:transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow:inset 0 0 0 1px #cbd5e1, 0 8px 18px rgba(15,23,42,0.04);
}

.filter-chip:hover{
    transform:translateY(-1px);
    background:#dbeafe;
    box-shadow:0 10px 22px rgba(37,99,235,0.12);
}

.filter-chip.is-active{
    background:linear-gradient(135deg, #0f172a, #1d4ed8);
    color:#fff;
    box-shadow:0 12px 24px rgba(29,78,216,0.24);
}

.compact-grid{
    padding-top:0;
}

.wishlist-badge{
    display:inline-flex;
    position:absolute;
    top:14px;
    right:14px;
    padding:6px 10px;
    border-radius:999px;
    background:#dcfce7;
    color:#166534;
    font-size:0.75rem;
    font-weight:700;
}

.showcase-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:16px;
    padding:0 20px 20px;
}

.showcase-tile{
    position:relative;
    min-height:220px;
    border-radius:22px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 12px 30px rgba(15,23,42,0.08);
}

.showcase-tile.feature{
    grid-column:span 2;
    grid-row:span 2;
    min-height:456px;
}

.showcase-tile img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.showcase-overlay{
    position:absolute;
    inset:auto 0 0 0;
    padding:16px;
    background:linear-gradient(180deg, transparent, rgba(15,23,42,0.72));
}

.showcase-overlay span{
    color:#fff;
    font-size:0.9rem;
    font-weight:700;
}

.admin-layout{
    display:grid;
    gap:24px;
    margin:24px 20px;
}

.admin-overview,
.admin-form-card,
.admin-table-card{
    background:#fff;
    border-radius:24px;
    padding:24px;
    box-shadow:0 12px 32px rgba(15,23,42,0.08);
}

.admin-stats{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:16px;
}

.owner-identity{
    display:grid;
    grid-template-columns:minmax(220px, 320px);
    gap:16px;
    margin-top:16px;
}

.stat-card{
    background:#f8fafc;
    border-radius:18px;
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.stat-card strong{
    font-size:2rem;
    color:#111827;
}

.stat-card span{
    color:#64748b;
}

.admin-form{
    display:grid;
    gap:14px;
}

.admin-form input,
.admin-form select,
.admin-form textarea{
    width:100%;
    padding:12px 14px;
    border:1px solid #cbd5e1;
    border-radius:14px;
}

.grid-two{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:12px;
}

.grid-three{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:12px;
}

.admin-field-stack{
    display:grid;
    gap:8px;
}

.admin-field-stack span{
    font-size:0.88rem;
    font-weight:700;
    color:#475569;
}

.admin-field-toggle{
    display:flex;
    align-items:center;
    gap:10px;
    color:#334155;
    font-weight:600;
}

.admin-field-toggle input{
    width:auto;
    margin:0;
}

.admin-upload-stack{
    display:grid;
    gap:10px;
}

.admin-upload-stack input[type="file"]{
    padding:12px;
    border:1px dashed #93c5fd;
    border-radius:16px;
    background:#eff6ff;
}

.upload-format-card{
    display:grid;
    gap:10px;
    padding:14px 16px;
    border:1px solid #dbeafe;
    border-radius:16px;
    background:linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.upload-format-card p{
    color:#1e3a8a;
    font-weight:700;
}

.upload-format-list{
    margin:0;
    padding-left:18px;
    color:#334155;
    display:grid;
    gap:6px;
}

.inline-form-actions{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:center;
}

.db-maintenance-actions{
    grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
    margin:12px 0;
}

.db-maintenance-actions .ghost-button{
    width:100%;
}

#adminSecondaryCategoriesSelect{
    min-height:112px;
    padding:12px 14px;
    border:1px solid #cbd5e1;
    border-radius:16px;
    background:#fff;
}

.admin-product-table{
    display:grid;
    gap:14px;
}

.admin-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:16px;
    border:1px solid #e2e8f0;
    border-radius:18px;
}

.admin-row p{
    color:#64748b;
    margin-top:6px;
}

.admin-actions{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.discount-grid{
    align-items:end;
}

.discount-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    background:#eff6ff;
    color:#1d4ed8;
    font-weight:700;
    font-size:0.84rem;
}

.discount-chip.is-warning{
    background:#fff7ed;
    color:#c2410c;
}

.discount-summary{
    display:grid;
    gap:8px;
}

.discount-summary p{
    color:#64748b;
    margin:0;
}

.identity-code-card{
    display:grid;
    gap:8px;
    padding:18px;
    border-radius:20px;
    border:1px solid #dbeafe;
    background:#f8fbff;
    text-align:center;
}

.identity-code-card strong{
    font-size:1.1rem;
    color:#1d4ed8;
    letter-spacing:0.04em;
}

.identity-code-card p{
    color:#0f172a;
    font-weight:700;
}

.identity-code-card span{
    color:#64748b;
    font-size:0.9rem;
}

.stock-control-group{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.stock-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 12px;
    border-radius:999px;
    background:#eff6ff;
    border:1px solid #bfdbfe;
    color:#1d4ed8;
    font-size:0.86rem;
    font-weight:700;
}

.header-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
}

.owner-inline-action{
    font-size:0.82rem;
}

.admin-rating-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:8px;
    color:#64748b;
}

.admin-sensitive-copy{
    font-size:0.82rem;
    line-height:1.6;
    word-break:break-all;
}

.admin-chat-card{
    display:grid;
    gap:16px;
    padding:18px;
    border-radius:22px;
    border:1px solid #dbeafe;
    background:linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow:0 14px 28px rgba(15,23,42,0.06);
}

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

.admin-chat-head p{
    margin-top:6px;
    color:#64748b;
}

.admin-chat-transcript{
    display:grid;
    gap:12px;
}

.admin-chat-bubble{
    max-width:min(760px, 100%);
    display:grid;
    gap:8px;
    padding:14px 16px;
    border-radius:20px;
    border:1px solid #dbeafe;
    background:#eff6ff;
}

.admin-chat-bubble.user{
    justify-self:end;
    background:#dbeafe;
    border-color:#bfdbfe;
}

.admin-chat-bubble.assistant{
    justify-self:start;
    background:#f8fafc;
    border-color:#e2e8f0;
}

.admin-chat-bubble p{
    color:#0f172a;
    line-height:1.6;
}

.admin-chat-role{
    font-size:0.78rem;
    font-weight:700;
    letter-spacing:0.04em;
    text-transform:uppercase;
    color:#1d4ed8;
}

.admin-chat-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    color:#64748b;
    font-size:0.85rem;
}

.linked-account-card{
    justify-content:center;
    text-align:center;
}

.linked-account-copy{
    display:grid;
    gap:10px;
    justify-items:center;
    width:100%;
}

.linked-account-chips{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
}

.linked-account-chips span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 14px;
    border-radius:999px;
    background:#eff6ff;
    border:1px solid #bfdbfe;
    color:#1e3a8a;
    font-size:0.86rem;
}

.analytics-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
    gap:14px;
    margin-top:16px;
}

.analytics-stack{
    display:grid;
    gap:18px;
    margin-top:16px;
}

.analytics-card{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:16px;
    display:grid;
    gap:8px;
}

.analytics-card strong{
    color:#0f172a;
    font-size:1rem;
}

.analytics-card p,
.analytics-card span{
    color:#64748b;
}

.analytics-bar-card{
    display:grid;
    gap:10px;
    padding:16px;
    border-radius:18px;
    border:1px solid #e2e8f0;
    background:#fff;
}

.analytics-bar-top{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
}

.analytics-bar-top span{
    color:#64748b;
    font-size:0.88rem;
    text-align:right;
}

.analytics-bar-track{
    width:100%;
    height:12px;
    border-radius:999px;
    background:#e2e8f0;
    overflow:hidden;
}

.analytics-bar-fill{
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg, #2563eb, #f97316);
}

.line-chart-card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:22px;
    padding:18px;
    box-shadow:0 10px 24px rgba(15,23,42,0.06);
}

.compact-head{
    margin-bottom:10px;
}

.line-chart-svg{
    width:100%;
    height:auto;
    overflow:visible;
}

.line-chart-path{
    fill:none;
    stroke:var(--chart-color);
    stroke-width:4;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.line-chart-area{
    stroke:none;
}

.line-chart-dot{
    fill:var(--chart-color);
    stroke:#fff;
    stroke-width:2;
}

.line-chart-label{
    fill:#64748b;
    font-size:12px;
}

.review-row{
    align-items:flex-start;
}

.admin-review-image{
    width:120px;
    height:120px;
    margin-top:10px;
    border-radius:16px;
    object-fit:cover;
    border:1px solid #e2e8f0;
}

.image-link-card{
    display:grid;
    gap:10px;
    padding:14px;
    border:1px dashed #cbd5e1;
    border-radius:16px;
    background:#f8fafc;
}

.image-link-card p{
    color:#64748b;
    font-weight:600;
}

.image-link-card img{
    width:140px;
    height:140px;
    object-fit:contain;
    border-radius:16px;
    background:#fff;
    border:1px solid #e2e8f0;
}

.chatbot-shell{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:120;
    width:min(380px, calc(100vw - 24px));
    min-height:64px;
    pointer-events:none;
}

.chatbot-toggle{
    position:absolute;
    right:0;
    bottom:0;
    width:64px;
    height:64px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border-radius:999px;
    border:none;
    background:linear-gradient(135deg, #1d4ed8, #0f172a 72%);
    color:#fff;
    box-shadow:0 18px 36px rgba(15,23,42,0.22);
    font-size:1.2rem;
    transition:transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events:auto;
    z-index:3;
}

.chatbot-toggle:hover,
.chatbot-toggle.active{
    transform:translateY(-3px) scale(1.03);
    box-shadow:0 22px 44px rgba(15,23,42,0.28);
}

.chatbot-panel{
    position:absolute;
    right:0;
    bottom:78px;
    width:min(380px, calc(100vw - 24px));
    max-height:min(620px, calc(100vh - 120px));
    display:grid;
    grid-template-rows:auto 1fr auto;
    gap:14px;
    padding:18px;
    border-radius:24px;
    background:#fff;
    box-shadow:0 24px 60px rgba(15,23,42,0.24);
    border:1px solid #dbeafe;
    pointer-events:auto;
    animation:chatbotPanelIn 0.22s ease;
}

.chatbot-panel[hidden]{
    display:none !important;
}

.chatbot-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
}

.chatbot-header strong{
    display:block;
    color:#0f172a;
    font-size:1.05rem;
}

.chatbot-header small{
    color:#64748b;
}

.chatbot-close-button{
    width:40px;
    height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:none;
    border-radius:999px;
    background:#eff6ff;
    color:#1d4ed8;
    cursor:pointer;
}

.chatbot-messages{
    overflow:auto;
    display:grid;
    gap:12px;
    padding-right:4px;
}

.chatbot-message{
    display:flex;
    animation:chatMessageIn 0.2s ease;
}

.chatbot-message.user{
    justify-content:flex-end;
}

.chatbot-bubble{
    max-width:88%;
    padding:14px;
    border-radius:18px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    display:grid;
    gap:10px;
}

.chatbot-message.assistant .chatbot-bubble{
    background:linear-gradient(180deg, #ffffff, #f8fbff);
}

.chatbot-message.user .chatbot-bubble{
    background:#dbeafe;
    border-color:#bfdbfe;
}

.chatbot-bubble p{
    color:#0f172a;
    line-height:1.5;
}

.chatbot-form{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
}

.chatbot-form textarea{
    width:100%;
    min-height:52px;
    max-height:120px;
    padding:12px 14px;
    border:1px solid #cbd5e1;
    border-radius:14px;
    resize:none;
    font:inherit;
    line-height:1.4;
    background:#fff;
}

.chatbot-form .btn{
    width:auto;
    min-width:84px;
}

.chatbot-quick-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.chatbot-chip{
    width:auto;
    margin-top:0;
    padding:8px 12px;
    border-radius:999px;
    border:1px solid #cbd5e1;
    background:#fff;
    color:#1e293b;
    font-weight:600;
    transition:transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.chatbot-chip:hover{
    transform:translateY(-1px);
    background:#eff6ff;
    border-color:#93c5fd;
}

.chatbot-product-list{
    display:grid;
    gap:10px;
}

.chatbot-product-card{
    display:grid;
    grid-template-columns:64px 1fr;
    gap:12px;
    align-items:center;
    text-decoration:none;
    color:inherit;
    padding:10px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:#fff;
}

.chatbot-product-card img{
    width:64px;
    height:64px;
    object-fit:contain;
    border-radius:14px;
    background:#f8fafc;
}

.chatbot-product-card strong{
    color:#0f172a;
    display:block;
    margin-bottom:4px;
}

.chatbot-product-card small{
    color:#1d4ed8;
    font-weight:700;
}

.chatbot-rating-row{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:4px;
}

@keyframes chatbotPanelIn{
    from{
        opacity:0;
        transform:translateY(12px) scale(0.98);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

@keyframes chatMessageIn{
    from{
        opacity:0;
        transform:translateY(8px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.db-toolbar{
    display:grid;
    grid-template-columns:minmax(220px, 320px) auto;
    gap:12px;
    align-items:center;
    margin-bottom:16px;
}

.db-toolbar select{
    width:100%;
    padding:12px 14px;
    border:1px solid #cbd5e1;
    border-radius:14px;
}

.db-preview{
    overflow:auto;
    border:1px solid #e2e8f0;
    border-radius:18px;
    background:#fff;
    padding:12px;
}

.db-table{
    width:100%;
    border-collapse:collapse;
    min-width:720px;
}

.db-table th,
.db-table td{
    padding:10px 12px;
    border-bottom:1px solid #e2e8f0;
    text-align:left;
    vertical-align:top;
    font-size:0.92rem;
}

.db-table th{
    background:#f8fafc;
    color:#334155;
}

.db-cell{
    max-width:280px;
    white-space:pre-wrap;
    word-break:break-word;
}

.wide-button{
    width:100%;
}

.inline-actions{
    display:flex;
    gap:10px;
    align-items:center;
}

.strike-copy{
    display:block;
    color:#94a3b8;
    text-decoration:line-through;
    font-size:0.86rem;
    margin-top:4px;
}

@media (max-width:980px){
    .navbar{
        padding:14px;
        gap:12px;
        flex-wrap:wrap;
    }

    .nav-search{
        width:100%;
        order:10;
        min-width:0;
    }

    .panel{
        padding:12px 16px;
        height:auto;
        gap:12px;
        flex-wrap:wrap;
        justify-content:flex-start;
    }

    .hero-banner{
        grid-template-columns:1fr;
    }

    .marketplace-stats,
    .marketplace-highlight-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .showcase-grid{
        grid-template-columns:repeat(2, 1fr);
    }

    .admin-stats{
        grid-template-columns:repeat(2, 1fr);
    }

    .db-toolbar{
        grid-template-columns:1fr;
    }

    .footer-top{
        grid-template-columns:repeat(2,1fr);
    }

    .filter-panel{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .grid-three{
        grid-template-columns:1fr;
    }

    .filter-chip-head{
        align-items:flex-start;
        flex-direction:column;
    }
}

@media (max-width:640px){
    .nav-logo{
        width:132px;
    }

    .nav-logo::after{
        display:none;
    }

    .search-select{
        display:none;
    }

    .chatbot-shell{
        right:12px;
        bottom:12px;
        width:min(100vw - 24px, 380px);
    }

    .chatbot-panel{
        width:min(100vw - 24px, 380px);
        max-height:min(72vh, 620px);
    }

    .section-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .showcase-grid{
        grid-template-columns:1fr;
    }

    .grid-two,
    .grid-three,
    .admin-stats{
        grid-template-columns:1fr;
    }

    .filter-panel{
        grid-template-columns:1fr;
    }

    .marketplace-stats,
    .marketplace-highlight-grid{
        grid-template-columns:1fr;
    }

    .admin-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .admin-chat-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .admin-chat-bubble{
        max-width:100%;
    }

    .showcase-tile.feature{
        grid-column:auto;
        grid-row:auto;
        min-height:260px;
    }

    .footer-top{
        grid-template-columns:1fr;
    }
}
