/*
 * Fartak Marketplace — premium visual layer
 * Presentation-only overrides. No route, model or backend behavior lives here.
 */

:root {
    --surface: rgba(255, 255, 255, .88);
    --surface-strong: #fff;
    --panel-dark: #173b36;
    --panel-darker: #102d29;
    --shadow-premium: 0 24px 64px rgba(22, 58, 52, .12);
    --shadow-float: 0 14px 36px rgba(22, 58, 52, .1);
    --ease-out: cubic-bezier(.2, .8, .2, 1);
    --radius-premium: 26px;
}

::selection { color: #fff; background: var(--brand-600); }

body {
    background:
        radial-gradient(circle at 92% 3%, rgba(72, 134, 123, .12), transparent 28rem),
        radial-gradient(circle at 4% 40%, rgba(214, 203, 114, .09), transparent 24rem),
        #f6f8f7;
}

.main { padding-top: 36px; }
.container { width: min(1380px, calc(100% - 48px)); }

.topbar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #102d29, #1d4942 58%, #173934);
}

.topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background-image: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.2) 25%, rgba(255,255,255,.2) 26%, transparent 26%);
    background-size: 32px 32px;
}

.topbar .container { position: relative; z-index: 1; min-height: 38px; }
.topbar-status { padding: 2px 8px; color: #e8f7f3; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 9px; }

.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled { background: rgba(255,255,255,.97); box-shadow: 0 12px 35px rgba(22, 58, 52, .09); }
.header-main { min-height: 86px; grid-template-columns: auto minmax(300px, 660px) auto; }

.brand-mark {
    position: relative;
    isolation: isolate;
    width: 49px;
    height: 49px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 17px 7px 17px 7px;
    background: linear-gradient(145deg, #579b8f, #326e64 58%, #234d46);
    box-shadow: 0 12px 26px rgba(48, 108, 97, .26), inset 0 1px rgba(255,255,255,.26);
}

.brand-mark::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto -4px -4px auto;
    width: 14px;
    height: 14px;
    border: 3px solid #f8f2bd;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 4px 10px rgba(91, 80, 7, .18);
}

.brand-copy strong { font-size: 18px; }
.brand-copy small { margin-top: 2px; letter-spacing: -.1px; }

.global-search input {
    height: 52px;
    padding-right: 55px;
    border: 1px solid #e8eeec;
    border-radius: 16px;
    background: #f5f8f7;
}

.global-search::before {
    content: "جستجو";
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 13px;
    padding: 2px 7px;
    color: #8a9895;
    border: 1px solid #dce5e2;
    border-radius: 6px;
    background: #fff;
    font-size: 9px;
    transform: translateY(-50%);
    pointer-events: none;
}

.global-search button { inset: 6px 6px 6px auto; width: 40px; border-radius: 12px; }
.global-search input { padding-left: 70px; }

.header-action { min-height: 44px; border-radius: 14px; box-shadow: 0 4px 14px rgba(22,58,52,.04); }
.header-action.icon-only { width: 44px; }

.header-profile {
    min-width: 174px;
    height: 52px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 15px;
    align-items: center;
    gap: 9px;
    padding: 6px 7px 6px 10px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(22,58,52,.05);
}

.header-profile:hover { color: var(--ink); border-color: var(--brand-200); background: var(--brand-50); transform: translateY(-1px); }
.header-profile > span:nth-child(2) { min-width: 0; line-height: 1.35; }
.header-profile strong, .header-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-profile strong { font-size: 11px; }
.header-profile small { color: var(--muted); font-size: 9px; }
.header-avatar { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border-radius: 12px; background: linear-gradient(145deg, var(--brand-500), var(--brand-800)); font-weight: 900; }

.primary-nav { background: rgba(255,255,255,.68); }
.primary-nav .container { min-height: 48px; }
.primary-nav .nav-link { position: relative; padding-inline: 13px; }
.primary-nav .nav-link.active::after { content: ""; position: absolute; right: 13px; left: 13px; bottom: -7px; height: 2px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--gold)); }

.card {
    border-color: rgba(212, 223, 220, .9);
    background: var(--surface);
    box-shadow: 0 3px 14px rgba(23, 61, 55, .035);
    backdrop-filter: blur(10px);
}

a.card { transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease-out); }
a.card:hover { box-shadow: var(--shadow-float); transform: translateY(-4px); }

.btn, button { border-radius: 13px; background: linear-gradient(145deg, #4d8e83, #39766b); box-shadow: 0 8px 18px rgba(57,118,107,.17); }
.btn:hover, button:hover { background: linear-gradient(145deg, #39766b, #2e655c); }
.btn-secondary { background: #f1f7f5; box-shadow: none; }
.btn-secondary:hover { background: #e3f0ed; }
.btn-outline { background: transparent; }
.btn-danger { background: var(--danger-soft); box-shadow: none; }

input, select, textarea { min-height: 48px; border-radius: 13px; background: rgba(255,255,255,.94); }
label { margin-bottom: 7px; }

.alert { padding: 16px 18px; border-radius: 16px; box-shadow: 0 5px 16px rgba(22,58,52,.035); }
.badge { padding: 5px 10px; }

/* Storefront */
.hero {
    min-height: 430px;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
    gap: 54px;
    padding: clamp(38px, 5vw, 70px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 34px;
    background:
        radial-gradient(circle at 11% 14%, rgba(214,203,114,.2), transparent 16rem),
        radial-gradient(circle at 88% 90%, rgba(255,255,255,.08), transparent 19rem),
        linear-gradient(126deg, #102f2b 0%, #205148 48%, #4d8d82 100%);
    box-shadow: 0 28px 74px rgba(22, 58, 52, .2);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .07;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 19px 19px;
    mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.hero h1 { margin-bottom: 17px; font-size: clamp(37px, 4.7vw, 61px); letter-spacing: -1.3px; }
.hero p { max-width: 650px; font-size: 16px; line-height: 2; }
.hero .btn { min-width: 158px; }
.hero-kicker { padding: 7px 12px; border-color: rgba(255,255,255,.17); background: rgba(255,255,255,.09); backdrop-filter: blur(8px); }

.hero-proof { display: flex; align-items: stretch; gap: 0; margin-top: 30px; }
.hero-proof > span { min-width: 125px; padding: 0 18px; border-left: 1px solid rgba(255,255,255,.16); }
.hero-proof > span:first-child { padding-right: 0; }
.hero-proof > span:last-child { border-left: 0; }
.hero-proof strong, .hero-proof small { display: block; }
.hero-proof strong { color: #fff; font-size: 12px; }
.hero-proof small { margin-top: 2px; color: rgba(255,255,255,.54); font-size: 9px; }

.hero-visual { min-height: 310px; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.orbit-one { inset: 2% 3% 7% 4%; }
.orbit-two { inset: 15% 17% 18% 15%; border-style: dashed; }
.hero-float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 7px; padding: 9px 12px; color: var(--brand-900); border: 1px solid rgba(255,255,255,.6); border-radius: 12px; background: rgba(255,255,255,.88); box-shadow: 0 14px 30px rgba(9,35,30,.18); backdrop-filter: blur(10px); font-size: 10px; font-weight: 800; }
.hero-float .icon { color: var(--brand-600); }
.hero-float-top { top: 1%; right: 1%; animation: hero-float 4.6s ease-in-out infinite; }
.hero-float-bottom { left: 1%; bottom: 2%; animation: hero-float 4.6s .8s ease-in-out infinite; }

.device-card { border-color: rgba(255,255,255,.74); box-shadow: 0 28px 60px rgba(7,31,27,.27), inset 0 1px rgba(255,255,255,.85); }
.device-card.phone { width: 126px; height: 238px; right: 24%; top: 24px; }
.device-card.tablet { width: 208px; height: 152px; left: 2%; bottom: 17px; }
.device-card.watch { width: 88px; height: 108px; left: 14%; top: 6px; }

@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.benefit-strip { overflow: hidden; margin-top: -3px; margin-bottom: 30px; padding: 12px 0; border-radius: 22px; box-shadow: 0 12px 34px rgba(22,58,52,.06); }
.benefit { min-height: 66px; }
.benefit .icon { width: 39px; height: 39px; padding: 8px; border-radius: 12px; background: var(--brand-50); }
.benefit strong { font-size: 13px; }

.category-chips { gap: 10px; margin-bottom: 27px; padding-bottom: 3px; }
.category-chip { padding: 10px 16px; border-radius: 13px; box-shadow: 0 3px 10px rgba(22,58,52,.025); }
.category-chip.active { color: #fff; border-color: var(--brand-700); background: linear-gradient(145deg, var(--brand-600), var(--brand-800)); box-shadow: 0 8px 18px rgba(47,94,86,.18); }
.category-chip.active .category-chip-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(214,203,114,.15); }

.catalog-layout { grid-template-columns: 276px minmax(0, 1fr); gap: 26px; }
.filter-card { top: 154px; padding: 21px; border-radius: 22px; box-shadow: 0 14px 34px rgba(22,58,52,.055); }
.filter-title { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.catalog-toolbar { margin-bottom: 18px; padding: 2px 2px 10px; border-bottom: 1px solid rgba(212,223,220,.8); }
.product-grid { gap: 20px; }

.product-card { overflow: hidden; padding: 11px 11px 15px; border-radius: 23px; background: #fff; }
.product-card:hover { transform: translateY(-7px); border-color: rgba(72,134,123,.34); box-shadow: 0 22px 46px rgba(22,58,52,.11); }
.product-image { height: 232px; margin-bottom: 16px; border-radius: 18px; background: linear-gradient(145deg, #f8faf9, #edf3f1); }
.product-card h2 { margin-inline: 5px; font-size: 14px; }
.product-meta, .seller-line { margin-inline: 5px; }
.seller-line { padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.price-row { margin-inline: 5px; }
.product-card-action { min-height: 38px; padding: 6px 12px; border-radius: 11px; font-size: 10px; }
.discount-badge { top: 20px; right: 20px; border-radius: 9px; box-shadow: 0 6px 13px rgba(180,35,24,.17); }
.stock-badge { top: 20px; left: 20px; }

.product-detail { gap: 30px; }
.product-gallery-main { height: 540px; border-radius: 28px; background: linear-gradient(145deg, #fbfcfc, #eaf2f0); box-shadow: var(--shadow-float); }
.product-info { padding: 34px; border-radius: 28px; box-shadow: var(--shadow-float); }
.product-info h1 { font-size: 31px; }
.seller-box, .product-price-box { border-radius: 18px; }
.product-price-box { background: linear-gradient(135deg, var(--brand-50), #fffdf0); }
.guarantee-item { padding: 14px 10px; border-radius: 14px; background: #fbfcfc; }
.thumb-button { min-height: 0; padding: 0; border: 2px solid transparent; border-radius: 15px; background: transparent; box-shadow: none; }
.thumb-button:hover, .thumb-button.active { border-color: var(--brand-500); background: transparent; box-shadow: 0 6px 14px rgba(22,58,52,.08); transform: translateY(-2px); }
.thumb-button .thumb { border: 0; }

/* App panels */
.app-panel { background: #f3f6f5; }
.app-panel .main { padding-top: 27px; }
.panel-layout { grid-template-columns: 278px minmax(0, 1fr); gap: 27px; }
.panel-content { min-height: 650px; }

.sidebar {
    top: 157px;
    border-color: rgba(255,255,255,.07);
    border-radius: 25px;
    background:
        radial-gradient(circle at 90% 4%, rgba(214,203,114,.13), transparent 12rem),
        linear-gradient(180deg, var(--panel-dark), var(--panel-darker));
    box-shadow: 0 22px 52px rgba(16,45,41,.19);
}

.sidebar-profile { padding: 24px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.08); background: transparent; }
.sidebar-avatar { width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(145deg, rgba(255,255,255,.21), rgba(255,255,255,.08)); box-shadow: inset 0 1px rgba(255,255,255,.16); }
.sidebar-user strong { color: #fff; }
.sidebar-user small { margin-top: 1px; color: rgba(255,255,255,.52); }
.sidebar-online { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #c8ddd8; font-size: 8px; }
.sidebar-online i, .panel-system-state i { width: 6px; height: 6px; border-radius: 50%; background: #69d39f; box-shadow: 0 0 0 4px rgba(105,211,159,.12); }
.sidebar-nav { padding: 14px 12px; }
.sidebar-title { color: rgba(255,255,255,.34); }
.sidebar-link { position: relative; min-height: 43px; padding: 10px 12px; color: rgba(238,247,245,.7); border-radius: 12px; }
.sidebar-link .icon { color: rgba(238,247,245,.48); }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-link.active { color: #fff; background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,.06)); box-shadow: inset -3px 0 var(--gold); }
.sidebar-link.active .icon { color: var(--gold); }
.sidebar-footer { border-color: rgba(255,255,255,.08); }
.sidebar-logout { color: #ffbbb5; }
.sidebar-logout:hover { color: #fff; background: rgba(180,35,24,.18); }

.panel-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 62px; margin-bottom: 17px; padding: 11px 16px; border: 1px solid rgba(212,223,220,.9); border-radius: 18px; background: rgba(255,255,255,.74); box-shadow: 0 7px 24px rgba(22,58,52,.045); backdrop-filter: blur(12px); }
.panel-topline > div:first-child span, .panel-topline > div:first-child strong { display: block; }
.panel-topline > div:first-child span { color: var(--muted); font-size: 9px; }
.panel-topline > div:first-child strong { color: var(--ink); font-size: 13px; }
.panel-system-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }

.dashboard-welcome { min-height: 176px; padding: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 28px; background: radial-gradient(circle at 10% 20%, rgba(214,203,114,.16), transparent 14rem), linear-gradient(120deg, #163a35, #397b70); box-shadow: 0 22px 48px rgba(22,58,52,.16); }
.dashboard-welcome::before { content: ""; position: absolute; inset: 0; opacity: .06; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 17px 17px; }
.dashboard-welcome > * { position: relative; z-index: 2; }
.dashboard-welcome h1 { font-size: 30px; }
.welcome-icon { width: 86px; height: 86px; border-radius: 28px; box-shadow: inset 0 1px rgba(255,255,255,.2); }

.stat { min-height: 142px; padding: 23px; border-radius: 22px; transition: transform .24s var(--ease-out), box-shadow .24s ease; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.stat-icon { width: 42px; height: 42px; border-radius: 14px; }
.stat::after { opacity: .7; }
.kpi::before { height: 4px; }
.app-panel .card { border-radius: 22px; }
.app-panel .table-wrap { border-radius: 16px; }
.app-panel table th { padding-block: 15px; color: #60706c; background: #f6f9f8; }
.app-panel table tbody tr:hover { background: #f4f9f7; }

/* Authentication */
.auth-page { max-width: 1160px; margin-block: 24px; }
.auth-shell { min-height: 650px; border: 1px solid rgba(255,255,255,.7); border-radius: 30px; box-shadow: 0 30px 80px rgba(22,58,52,.15); }
.auth-brand-panel { padding: 48px; background: radial-gradient(circle at 8% 90%, rgba(214,203,114,.2), transparent 15rem), linear-gradient(145deg, #102f2b, #397b70); }
.auth-brand-panel::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 18px 18px; }
.auth-brand-panel > * { position: relative; z-index: 2; }
.auth-brand-panel h2 { font-size: 35px; }
.auth-benefit { padding: 10px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.055); backdrop-filter: blur(5px); }
.auth-form-panel { padding: clamp(34px, 5vw, 64px); }
.demo-accounts { border-radius: 17px; background: linear-gradient(145deg, #f5f9f8, #fbf9e9); }

.cart-summary { border-radius: 24px; box-shadow: var(--shadow-float); }
.security-note { border-radius: 14px; }

.site-footer { background: radial-gradient(circle at 10% 10%, rgba(214,203,114,.09), transparent 20rem), linear-gradient(135deg, #102f2b, #173e38); }
.footer-main { padding-top: 56px; }
.footer-domain { display: inline-flex; direction: ltr; margin-top: 4px; padding: 5px 10px; color: var(--gold); border: 1px solid rgba(214,203,114,.18); border-radius: 8px; background: rgba(214,203,114,.06); font-size: 11px; font-weight: 800; }
.trust-card { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.055); backdrop-filter: blur(8px); }

/* Iran storefront home */
.home-hero { position:relative; isolation:isolate; min-height:510px; display:grid; grid-template-columns:minmax(0,1.08fr) minmax(370px,.92fr); align-items:center; gap:44px; overflow:hidden; padding:clamp(42px,6vw,82px); color:#fff; border:1px solid rgba(255,255,255,.14); border-radius:34px; background:linear-gradient(105deg,rgba(11,42,37,.98),rgba(31,87,77,.9)),var(--hero-image,linear-gradient(130deg,#133d36,#4f9185)); background-position:center; background-size:cover; box-shadow:0 30px 80px rgba(18,58,51,.24); }
.home-hero::after { content:""; position:absolute; z-index:-1; inset:0; opacity:.1; background-image:radial-gradient(#fff 1px,transparent 1px); background-size:20px 20px; mask-image:linear-gradient(90deg,#000,transparent 78%); }
.home-hero-copy { max-width:720px; }
.home-hero h1 { max-width:680px; margin:17px 0 18px; color:#fff; font-size:clamp(39px,5vw,68px); line-height:1.3; letter-spacing:-1.5px; }
.home-hero p { max-width:650px; margin:0 0 24px; color:rgba(255,255,255,.72); font-size:16px; line-height:2; }
.home-hero .btn-outline { color:#fff; border-color:rgba(255,255,255,.27); background:rgba(255,255,255,.06); }
.hero-showcase { position:relative; min-height:350px; display:grid; place-items:center; }
.hero-showcase::before,.hero-showcase::after { content:""; position:absolute; border:1px solid rgba(255,255,255,.14); border-radius:50%; }
.hero-showcase::before { inset:0; }
.hero-showcase::after { inset:48px; border-style:dashed; }
.showcase-card { position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--brand-900); background:rgba(255,255,255,.92); box-shadow:0 30px 65px rgba(4,28,23,.28); backdrop-filter:blur(14px); }
.showcase-main { width:230px; height:250px; border-radius:54px 22px 54px 22px; transform:rotate(-3deg); }
.showcase-main .icon { margin-bottom:24px; color:var(--brand-600); }
.showcase-main strong { font-size:26px; }
.showcase-main small { margin-top:8px; color:var(--muted); }
.showcase-pill { position:absolute; z-index:3; display:flex; align-items:center; gap:8px; padding:11px 15px; color:var(--brand-900); border:1px solid rgba(255,255,255,.7); border-radius:13px; background:rgba(255,255,255,.88); box-shadow:0 15px 35px rgba(4,28,23,.2); font-size:11px; font-weight:900; }
.pill-one { top:28px; right:7px; }
.pill-two { bottom:26px; left:2px; }
.trust-row { display:grid; grid-template-columns:repeat(4,1fr); margin:26px 0 46px; overflow:hidden; border:1px solid var(--line); border-radius:22px; background:#fff; box-shadow:0 14px 40px rgba(22,58,52,.06); }
.trust-row>div { min-height:90px; display:flex; align-items:center; gap:13px; padding:19px 22px; border-left:1px solid var(--line); }
.trust-row>div:last-child { border-left:0; }
.trust-row .icon { width:42px; height:42px; padding:10px; color:var(--brand-700); border-radius:13px; background:var(--brand-50); }
.trust-row strong,.trust-row small { display:block; }
.trust-row strong { font-size:12px; }
.trust-row small { margin-top:3px; color:var(--muted); font-size:9px; }
.home-section { margin:0 0 50px; }
.home-section>.section-head { margin-bottom:20px; }
.home-categories { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; }
.home-categories a { min-height:108px; display:grid; grid-template-columns:52px 1fr; align-items:center; column-gap:13px; padding:18px; color:var(--ink); border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:0 6px 20px rgba(22,58,52,.04); transition:.25s ease; }
.home-categories a:hover { border-color:var(--brand-300); box-shadow:var(--shadow-float); transform:translateY(-4px); }
.home-categories a>span { grid-row:1/3; width:52px; height:52px; display:grid; place-items:center; color:#fff; border-radius:17px; background:linear-gradient(145deg,var(--brand-500),var(--brand-800)); font-size:20px; font-weight:900; }
.home-categories strong { align-self:end; font-size:13px; }
.home-categories small { align-self:start; color:var(--muted); font-size:9px; }
.link-more { display:inline-flex; align-items:center; gap:5px; color:var(--brand-700); font-size:11px; font-weight:900; }
.home-promo { position:relative; isolation:isolate; min-height:170px; display:flex; align-items:center; justify-content:space-between; gap:28px; overflow:hidden; margin:0 0 50px; padding:32px 40px; color:#fff; border-radius:26px; background:linear-gradient(105deg,rgba(22,58,52,.97),rgba(57,123,112,.78)),var(--promo-image,linear-gradient(120deg,#173d37,#397b70)); background-position:center; background-size:cover; box-shadow:0 18px 44px rgba(22,58,52,.14); }
.home-promo::after { content:""; position:absolute; z-index:-1; inset:0; opacity:.09; background-image:radial-gradient(#fff 1px,transparent 1px); background-size:17px 17px; }
.home-promo h2 { margin:6px 0; color:#fff; font-size:clamp(22px,3vw,34px); }
.home-promo p { margin:0; color:rgba(255,255,255,.7); }
.home-promo .btn-light { flex:0 0 auto; color:var(--brand-900); background:#fff; }
.popular-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.popular-product { min-height:116px; display:grid; grid-template-columns:32px 76px minmax(0,1fr); align-items:center; gap:14px; padding:14px 18px; color:var(--ink); border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:0 7px 24px rgba(22,58,52,.045); transition:.24s ease; }
.popular-product:hover { border-color:var(--brand-300); box-shadow:var(--shadow-float); transform:translateY(-3px); }
.popular-rank { display:grid; place-items:center; width:28px; height:28px; color:var(--brand-800); border-radius:10px; background:var(--brand-50); font-weight:900; }
.popular-thumb { width:76px; height:76px; display:grid; place-items:center; overflow:hidden; color:#fff; border-radius:16px; background:linear-gradient(145deg,var(--brand-500),var(--brand-800)); font-size:23px; font-weight:900; }
.popular-thumb img { width:100%; height:100%; object-fit:cover; }
.popular-product>span:last-child strong,.popular-product>span:last-child small,.popular-product>span:last-child b { display:block; }
.popular-product>span:last-child strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.popular-product>span:last-child small { margin:4px 0 8px; color:var(--muted); font-size:9px; }
.popular-product>span:last-child b { color:var(--brand-700); font-size:11px; }
.channel-strip { min-height:190px; display:flex; align-items:center; justify-content:space-between; gap:30px; margin:12px 0 30px; padding:38px 44px; color:#fff; border-radius:28px; background:linear-gradient(120deg,#173d37,#397b70); box-shadow:0 18px 48px rgba(22,58,52,.15); }
.channel-strip h2 { margin:7px 0; color:#fff; }
.channel-strip p { margin:0; color:rgba(255,255,255,.62); }
.channel-logos { display:flex; flex-wrap:wrap; gap:10px; }
.channel-logos span { min-width:92px; padding:15px 18px; text-align:center; border:1px solid rgba(255,255,255,.15); border-radius:14px; background:rgba(255,255,255,.08); font-size:12px; font-weight:900; }
.content-page { max-width:920px; margin:0 auto; padding:clamp(28px,5vw,64px); }
.content-page h1 { margin:10px 0 28px; font-size:clamp(30px,4vw,48px); }
.prose { color:#3f4d4a; font-size:14px; line-height:2.25; }
.spec-list { margin-top:24px; overflow:hidden; border:1px solid var(--line); border-radius:15px; }
.spec-list>div { display:grid; grid-template-columns:minmax(140px,.4fr) 1fr; gap:18px; padding:13px 16px; border-bottom:1px solid var(--line); }
.spec-list>div:last-child { border-bottom:0; }
.spec-list span { color:var(--muted); }
.payment-mark-error { color:#a92c22!important; background:#fff0ef!important; }
.integration-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.integration-card { min-height:180px; }
.status-dot { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; color:#8c3d37; border-radius:999px; background:#fff0ef; font-size:9px; font-weight:900; }
.status-dot::before { content:""; width:7px; height:7px; border-radius:50%; background:#c94b41; }
.status-dot.ok { color:#246b4c; background:#eaf8f1; }
.status-dot.ok::before { background:#45a676; box-shadow:0 0 0 4px rgba(69,166,118,.12); }
.copy-field { display:flex; gap:8px; }
.copy-field input { flex:1; min-width:0; }
.sync-row,.cms-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.sync-row:last-child,.cms-row:last-child { border-bottom:0; }
.sync-row>span:first-child,.cms-row>span:first-child { min-width:0; flex:1; }
.sync-row strong,.sync-row small,.cms-row strong,.cms-row small { display:block; }
.sync-row small,.cms-row small { margin-top:3px; color:var(--muted); font-size:9px; }
.text-danger { display:block; max-width:360px; margin-top:5px; color:#a92c22; }

/* Enterprise marketplace modules */
.notification-trigger { position:relative; }
.notification-trigger>span { position:absolute; top:-5px; left:-5px; min-width:19px; height:19px; display:grid; place-items:center; padding:0 4px; color:#fff; border:2px solid #fff; border-radius:99px; background:#b42318; font-size:8px; font-weight:900; }
.notification-list { padding:0; overflow:hidden; }
.notification-row { border-bottom:1px solid var(--line); }
.notification-row:last-child { border:0; }
.notification-row button { width:100%; min-height:86px; display:grid; grid-template-columns:10px minmax(0,1fr) auto; align-items:center; gap:14px; padding:17px 21px; color:var(--ink); text-align:right; border:0; border-radius:0; background:#fff; box-shadow:none; }
.notification-row button:hover { transform:none; background:#f7faf9; }
.notification-row.unread button { background:#f1f8f6; }
.notification-row strong,.notification-row small { display:block; }
.notification-row small { margin-top:5px; color:var(--muted); }
.notification-row time { color:var(--muted); font-size:9px; white-space:nowrap; }
.notification-dot { width:8px; height:8px; border-radius:50%; background:#ccd7d4; }
.notification-row.unread .notification-dot { background:var(--brand-600); box-shadow:0 0 0 5px rgba(72,134,123,.12); }
.permission-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:9px 0 16px; }
.permission-grid.compact { grid-template-columns:repeat(3,minmax(0,1fr)); }
.check-card { min-height:43px; display:flex; align-items:center; gap:8px; padding:9px 11px; border:1px solid var(--line); border-radius:11px; background:#f9fbfa; font-size:10px; font-weight:800; }
.check-card input { width:auto; accent-color:var(--brand-600); }
.staff-card { padding:16px 0; border-bottom:1px solid var(--line); }
.staff-card:last-child { border:0; }
.staff-head { display:flex; align-items:center; gap:11px; }
.staff-head>span:nth-child(2) { min-width:0; flex:1; }
.staff-head strong,.staff-head small { display:block; }
.staff-head small { color:var(--muted); direction:ltr; text-align:right; }
.switch-label { display:flex; align-items:center; gap:6px; font-size:10px; }
.switch-label input { width:auto; accent-color:var(--brand-600); }
.catalog-attach>span { min-width:200px; flex:1; }
.catalog-attach strong,.catalog-attach small { display:block; }
.catalog-attach small { color:var(--muted); }
.import-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:13px; margin-bottom:18px; }
.import-card h2,.import-card p { margin:0; }
.import-card form { grid-column:1/-1; display:flex; align-items:center; gap:10px; padding-top:13px; border-top:1px solid var(--line); }
.import-card form input { flex:1; }
.sponsored-section { padding:24px; border:1px solid rgba(214,203,114,.5); border-radius:25px; background:linear-gradient(145deg,#fffdf1,#fff); }
.search-promotions { display:grid; grid-template-columns:auto repeat(3,minmax(0,1fr)); align-items:center; gap:9px; margin-bottom:17px; padding:11px; border:1px solid rgba(214,203,114,.48); border-radius:17px; background:#fffdf2; }
.search-promotions a { min-width:0; padding:8px 11px; color:var(--ink); border-right:1px solid rgba(214,203,114,.38); }
.search-promotions strong,.search-promotions small,.search-promotions b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.search-promotions small { color:var(--muted); }
.search-promotions b { margin-top:3px; color:var(--brand-700); font-size:10px; }
.assistant-widget { position:fixed; z-index:90; left:22px; bottom:22px; direction:rtl; }
.assistant-toggle { min-height:52px; display:flex; align-items:center; gap:9px; padding:11px 17px; color:#fff; border:1px solid rgba(255,255,255,.15); border-radius:18px; background:linear-gradient(145deg,var(--brand-600),var(--brand-900)); box-shadow:0 18px 38px rgba(16,45,41,.25); }
.assistant-toggle .icon { color:var(--gold); }
.assistant-panel { position:absolute; left:0; bottom:63px; width:min(370px,calc(100vw - 28px)); overflow:hidden; opacity:0; visibility:hidden; transform:translateY(12px) scale(.97); border:1px solid var(--line); border-radius:22px; background:#fff; box-shadow:0 28px 75px rgba(16,45,41,.24); transition:.22s ease; transform-origin:bottom left; }
.assistant-widget.open .assistant-panel { opacity:1; visibility:visible; transform:none; }
.assistant-head { min-height:70px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 17px; color:#fff; background:linear-gradient(120deg,#173d37,#397b70); }
.assistant-head strong,.assistant-head small { display:block; }
.assistant-head small { margin-top:3px; color:rgba(255,255,255,.65); font-size:9px; }
.assistant-head button { min-height:35px; padding:7px; color:#fff; border:0; background:rgba(255,255,255,.1); box-shadow:none; }
.assistant-messages { height:300px; overflow:auto; display:flex; flex-direction:column; gap:9px; padding:16px; background:#f6f9f8; }
.assistant-message { max-width:88%; margin:0; padding:10px 12px; border-radius:14px 14px 4px 14px; color:#344440; background:#fff; box-shadow:0 4px 13px rgba(22,58,52,.05); font-size:11px; line-height:1.9; white-space:pre-line; }
.assistant-message.user { align-self:flex-end; color:#fff; border-radius:14px 14px 14px 4px; background:var(--brand-600); }
.assistant-message.loading { color:var(--muted); }
.assistant-panel form { display:flex; gap:8px; padding:11px; border-top:1px solid var(--line); }
.assistant-panel form input { min-width:0; flex:1; border:0; background:#f5f8f7; }
.assistant-panel form button { min-width:42px; padding:9px; }

@media (max-width: 1180px) {
    .container { width: min(100% - 36px, 1180px); }
    .header-main { grid-template-columns: auto minmax(260px, 1fr) auto; gap: 18px; }
    .header-profile { min-width: 150px; }
    .catalog-layout { grid-template-columns: 245px minmax(0, 1fr); }
    .panel-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
    .hero { grid-template-columns: 1.12fr .88fr; gap: 25px; }
}

@media (max-width: 920px) {
    .container { width: min(100% - 28px, 880px); }
    .main { padding-top: 24px; }
    .header-main { min-height: 72px; }
    .global-search::before { display: none; }
    .global-search input { padding-left: 15px; }
    .hero { min-height: 370px; grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero-proof { flex-wrap: wrap; }
    .catalog-layout { grid-template-columns: 1fr; }
    .panel-layout { grid-template-columns: 1fr; }
    .panel-topline { margin-bottom: 14px; }
    .sidebar { top: 0; border-radius: 0; }
    .product-gallery-main { height: 460px; }
    .home-hero { grid-template-columns:1fr; min-height:auto; }
    .hero-showcase { display:none; }
    .trust-row { grid-template-columns:repeat(2,1fr); }
    .home-categories { grid-template-columns:repeat(2,1fr); }
    .popular-grid { grid-template-columns:1fr; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 22px, 640px); }
    .topbar .topbar-group:last-child, .topbar-item:nth-child(2) { display: none; }
    .topbar .container { justify-content: center; }
    .header-main { gap: 10px; }
    .brand-mark { width: 43px; height: 43px; border-radius: 14px 6px 14px 6px; }
    .hero { min-height: auto; padding: 31px 23px; border-radius: 25px; }
    .hero h1 { font-size: 33px; }
    .hero p { font-size: 13px; }
    .hero-proof { display: grid; grid-template-columns: 1fr; gap: 9px; }
    .hero-proof > span { padding: 0 0 8px; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .hero-proof > span:last-child { padding-bottom: 0; border-bottom: 0; }
    .benefit-strip { border-radius: 18px; }
    .product-card-action { width: 39px; padding: 0; }
    .product-card-action span { display: none; }
    .product-image { height: 174px; }
    .panel-topline { min-height: 54px; padding: 9px 12px; }
    .panel-system-state { display: none; }
    .dashboard-welcome { padding: 25px; border-radius: 22px; }
    .auth-shell { border-radius: 22px; }
    .auth-form-panel { padding: 27px 20px; }
    .product-gallery-main { height: 350px; border-radius: 21px; }
    .product-info { padding: 22px; border-radius: 21px; }
    .home-hero { padding:32px 23px; border-radius:25px; }
    .home-hero h1 { font-size:34px; }
    .home-hero p { font-size:13px; }
    .trust-row { grid-template-columns:1fr; }
    .trust-row>div { border-left:0; border-bottom:1px solid var(--line); }
    .trust-row>div:last-child { border-bottom:0; }
    .home-categories,.integration-grid { grid-template-columns:1fr; }
    .search-promotions { grid-template-columns:1fr; }
    .search-promotions a { border-right:0; border-top:1px solid rgba(214,203,114,.38); }
    .home-promo { align-items:flex-start; flex-direction:column; padding:27px 23px; }
    .channel-strip { align-items:flex-start; flex-direction:column; padding:28px 24px; }
    .channel-logos { width:100%; }
    .channel-logos span { flex:1; min-width:80px; }
    .sync-row,.cms-row { align-items:flex-start; flex-wrap:wrap; }
    .permission-grid.compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .import-card form { align-items:stretch; flex-direction:column; }
    .assistant-widget { left:12px; bottom:12px; }
    .assistant-toggle span { display:none; }
}

@media (max-width: 420px) {
    .container { width: min(100% - 18px, 400px); }
    .product-image { height: 236px; }
    .hero h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-float { animation: none; }
}
