/* Tijara Stage 2 — home layout */
html.theme-tijara .tj-home{padding-block:16px 40px}
html.theme-tijara .tj-home .bento{
  display:grid;gap:12px;
  grid-template-columns:240px minmax(0,1fr) 260px;
  grid-template-rows:auto auto;
}
html.theme-tijara .tj-home .catrail{grid-row:1/3;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:10px 8px;position:relative}
html.theme-tijara .tj-home .catrail h4{font-size:12px;font-weight:700;padding:6px 10px 8px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin:0}
html.theme-tijara .tj-home .catrail ul{list-style:none;margin:0;padding:0}
html.theme-tijara .tj-home .catrail li a{
  display:flex;width:100%;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;
  text-decoration:none;color:var(--ink);font-size:13.5px;font-weight:500;
}
html.theme-tijara .tj-home .catrail li a:hover{background:var(--surface-2)}
html.theme-tijara .tj-home .catrail .sthumb{width:28px;height:28px;border-radius:8px;overflow:hidden;background:var(--surface-2);flex:none}
html.theme-tijara .tj-home .catrail .sthumb img{width:100%;height:100%;object-fit:cover}
html.theme-tijara .tj-home .catrail .arr{margin-inline-start:auto;color:var(--muted);opacity:0}
html.theme-tijara .tj-home .catrail li a:hover .arr,html.theme-tijara .tj-home .catrail li a.on .arr{opacity:1}
html.theme-tijara .tj-home .catrail li a.on{background:var(--surface-2)}
html.theme-tijara .tj-home .catrail .arr{transition:opacity .15s;font-size:12px}
html.theme-tijara .tj-home .flyout{
  position:absolute;inset-inline-start:calc(100% + 8px);top:0;width:min(780px,calc(100vw - 340px));min-height:100%;
  background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);z-index:30;padding:22px;
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px 20px;align-content:start;
}
html.theme-tijara .tj-home .flyout h5{grid-column:1/-1;margin:0;font-family:var(--f-display);font-size:19px;display:flex;justify-content:space-between;align-items:center;gap:12px}
html.theme-tijara .tj-home .flyout .sub{display:flex;gap:10px;align-items:center;border:0;background:none;padding:8px;border-radius:14px;text-align:start;text-decoration:none;color:var(--ink)}
html.theme-tijara .tj-home .flyout .sub:hover{background:var(--surface-2)}
html.theme-tijara .tj-home .flyout .sub .sthumb{width:48px;height:48px;border-radius:12px;overflow:hidden;flex:none;background:var(--surface-2)}
html.theme-tijara .tj-home .flyout .sub .sthumb img{width:100%;height:100%;object-fit:cover}
html.theme-tijara .tj-home .flyout .sub b{display:block;font-size:13.5px;font-weight:600}
html.theme-tijara .tj-home .flyout .sub small{color:var(--muted);font-size:12px}
html.theme-tijara .tj-home .inds{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
html.theme-tijara .tj-home .ind{
  position:relative;border-radius:22px;padding:18px;min-height:140px;text-decoration:none;overflow:hidden;color:var(--dark-ink);
  display:flex;flex-direction:column;justify-content:flex-end;gap:4px;
  background:linear-gradient(180deg,transparent 30%,color-mix(in oklab,var(--dark) 85%,transparent)),
  linear-gradient(150deg,hsl(var(--h,25) 60% 45%),hsl(calc(var(--h,25) + 40) 55% 25%));transition:transform .25s;
}
html.theme-tijara .tj-home .ind:hover{transform:translateY(-4px)}
html.theme-tijara .tj-home .ind b{font-family:var(--f-display);font-size:15px;font-weight:600;position:relative}
html.theme-tijara .tj-home .ind small{opacity:.85;position:relative;color:inherit}
html.theme-tijara .tj-home .timer{display:inline-flex;gap:4px;align-items:center;font-size:12px;direction:ltr}
html.theme-tijara .tj-home .timer span{font-family:var(--f-mono);font-weight:600;background:var(--ink);color:var(--bg);padding:3px 6px;border-radius:6px}
html.theme-tijara .tj-home .tile .timer{z-index:1}

html.theme-tijara .tj-home .carousel{
  position:relative;min-height:280px;border-radius:22px;overflow:hidden;border:1px solid var(--line);background:var(--surface);
}
html.theme-tijara .tj-home .slides{display:flex;transition:transform .35s ease;height:100%}
html.theme-tijara .tj-home .slide{
  min-width:100%;position:relative;padding:28px 28px 48px;display:flex;flex-direction:column;justify-content:flex-end;
  background:linear-gradient(135deg, color-mix(in oklab, var(--sl, var(--brand)) 28%, var(--surface)), var(--surface));
  color:var(--ink);box-sizing:border-box;
}
html.theme-tijara .tj-home .slide .art{
  position:absolute;inset-inline-end:8%;bottom:8%;width:160px;height:160px;border-radius:24px;opacity:.9;
}
html.theme-tijara .tj-home .slide .tag{
  align-self:flex-start;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
  background:var(--brand-soft);color:var(--brand-deep);padding:4px 10px;border-radius:999px;margin-bottom:10px;position:relative;z-index:1;
}
html.theme-tijara .tj-home .slide h2{font-family:var(--f-display);font-size:clamp(22px,3vw,34px);margin:0 0 8px;max-width:18ch;position:relative;z-index:1}
html.theme-tijara .tj-home .slide p{margin:0 0 16px;color:var(--muted);max-width:36ch;position:relative;z-index:1}
html.theme-tijara .tj-home .slide .btn{position:relative;z-index:1;align-self:flex-start}
html.theme-tijara .tj-home .dots{position:absolute;inset-inline-start:22px;bottom:14px;display:flex;gap:6px}
html.theme-tijara .tj-home .dots button{width:8px;height:8px;border-radius:50%;border:0;background:var(--surface-3);padding:0}
html.theme-tijara .tj-home .dots button.on{background:var(--brand);width:18px;border-radius:999px}
html.theme-tijara .tj-home .carr{position:absolute;inset-inline-end:14px;bottom:10px;display:flex;gap:6px}
html.theme-tijara .tj-home .carr button{
  width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--surface);font-size:18px;line-height:1;
}

html.theme-tijara .tj-home .welcome{
  background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:16px;display:flex;flex-direction:column;gap:12px;
}
html.theme-tijara .tj-home .welcome .who{display:flex;gap:10px;align-items:center}
html.theme-tijara .tj-home .welcome .avatar{
  width:40px;height:40px;border-radius:50%;background:var(--brand-soft);color:var(--brand-deep);
  display:grid;place-items:center;font-weight:700;
}
html.theme-tijara .tj-home .welcome .quick{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html.theme-tijara .tj-home .welcome .quick a{
  border:1px solid var(--line);border-radius:12px;padding:10px 8px;text-align:center;text-decoration:none;
  color:var(--ink);font-size:12.5px;font-weight:600;background:var(--surface-2);
}
html.theme-tijara .tj-home .welcome .coupon{
  display:block;text-decoration:none;color:var(--ink);background:var(--brand-soft);border-radius:14px;padding:12px;font-size:13px;
}

html.theme-tijara .tj-home .tiles{grid-column:2/4;display:grid;grid-template-columns:1.2fr 1fr;gap:12px}
html.theme-tijara .tj-home .tile{
  position:relative;overflow:hidden;border-radius:22px;border:1px solid var(--line);background:var(--surface);
  padding:16px;min-height:140px;text-decoration:none;color:var(--ink);display:flex;flex-direction:column;gap:8px;
}
html.theme-tijara .tj-home .tile.dotd{background:linear-gradient(135deg,var(--brand-soft),var(--surface))}
html.theme-tijara .tj-home .tile h3{font-family:var(--f-display);font-size:18px;margin:0}
html.theme-tijara .tj-home .tile .num{font-family:var(--f-display);font-size:22px;font-weight:700}
html.theme-tijara .tj-home .tile .tart{
  position:absolute;inset-inline-end:-6px;bottom:-6px;width:120px;height:120px;border-radius:20px;
}

html.theme-tijara .tj-home .block{margin-top:28px}
html.theme-tijara .tj-home .ph{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:14px;flex-wrap:wrap}
html.theme-tijara .tj-home .ph h2,html.theme-tijara .tj-home .ph h3{font-family:var(--f-display);margin:0}
html.theme-tijara .tj-home .ph p{margin:4px 0 0;color:var(--muted);font-size:13.5px}
html.theme-tijara .tj-home .linkbtn{background:none;border:0;color:var(--brand);font-weight:700;text-decoration:none;cursor:pointer;font-size:13.5px}
html.theme-tijara .tj-home .pills{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}
html.theme-tijara .tj-home .pill{
  display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;border:1px solid var(--line);
  background:var(--surface);text-decoration:none;color:var(--ink);font-size:13px;font-weight:600;white-space:nowrap;
}
html.theme-tijara .tj-home .panel{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:16px}
html.theme-tijara .tj-home .rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,220px);gap:12px;overflow-x:auto;padding-bottom:4px}
html.theme-tijara .tj-home .rail-item article.card{height:100%}
html.theme-tijara .tj-home .tri{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
html.theme-tijara .tj-home .mini{display:grid;gap:10px}
html.theme-tijara .tj-home .mini-row{
  display:grid;grid-template-columns:auto 48px 1fr;gap:10px;align-items:center;text-decoration:none;color:var(--ink);font-size:13.5px;font-weight:600;
}
html.theme-tijara .tj-home .mini-row img{border-radius:10px;object-fit:cover;width:48px;height:48px;background:var(--surface-2)}
html.theme-tijara .tj-home .rank{font-size:11px;font-weight:800;padding:4px 8px;border-radius:999px;background:var(--surface-2);color:var(--muted)}
html.theme-tijara .tj-home .rank.r1{background:var(--brand);color:var(--brand-ink)}
html.theme-tijara .tj-home .catbento{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
html.theme-tijara .tj-home .cb-tile{
  position:relative;overflow:hidden;border-radius:18px;border:1px solid var(--line);background:var(--surface);
  padding:18px;min-height:110px;text-decoration:none;color:var(--ink);
}
html.theme-tijara .tj-home .cb-tile.big{grid-column:span 2;grid-row:span 2;min-height:240px}
html.theme-tijara .tj-home .cb-tile.wide{grid-column:span 2}
html.theme-tijara .tj-home .cb-tile b{font-family:var(--f-display);font-size:16px}
html.theme-tijara .tj-home .cb-tile .sthumb{position:absolute;inset-inline-end:12px;bottom:12px;width:64px;height:64px;border-radius:14px;overflow:hidden;opacity:.85}
html.theme-tijara .tj-home .cb-tile .sthumb img{width:100%;height:100%;object-fit:cover}
html.theme-tijara .tj-home .feed{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
html.theme-tijara .tj-home .rfqband{
  display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;
  background:linear-gradient(135deg,var(--dark),#2a2740);color:var(--dark-ink);border-radius:22px;padding:28px;
}
html.theme-tijara .tj-home .rfqband .eyebrow{font-size:12px;letter-spacing:.08em;text-transform:uppercase}
html.theme-tijara .tj-home .rfqband h2{font-family:var(--f-display);margin:0;font-size:26px;max-width:22ch}
html.theme-tijara .tj-home .rfqband p{color:rgb(244 243 248 / .75);max-width:42ch}
html.theme-tijara .tj-home .sup-card{
  display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding:16px;border-radius:18px;
  border:1px solid var(--line);background:var(--surface);text-decoration:none;color:var(--ink);min-width:200px;
}
html.theme-tijara .tj-home .assure{
  display:grid;grid-template-columns:1.2fr repeat(4,1fr);gap:12px;background:var(--surface);
  border:1px solid var(--line);border-radius:22px;padding:18px;
}
html.theme-tijara .tj-home .assure .lead{font-family:var(--f-display);font-size:18px;display:flex;align-items:center}
html.theme-tijara .tj-home .assure .it{font-size:13px;color:var(--muted)}
html.theme-tijara .tj-home .assure .it b{display:block;color:var(--ink);margin-bottom:4px}

html.theme-tijara .btn{
  display:inline-flex;align-items:center;gap:6px;border-radius:999px;border:1px solid var(--line);
  background:var(--surface);color:var(--ink);font-weight:700;font-size:13.5px;padding:10px 16px;text-decoration:none;cursor:pointer;
}
html.theme-tijara .btn.primary{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
html.theme-tijara .chip{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700}
html.theme-tijara .chip.brand{background:var(--brand);color:var(--brand-ink)}
html.theme-tijara .chip.trust{background:var(--trust-soft);color:var(--trust)}

@media (max-width:1100px){
  html.theme-tijara .tj-home .bento{grid-template-columns:minmax(0,1fr) 240px}
  html.theme-tijara .tj-home .catrail{display:none}
  html.theme-tijara .tj-home .inds{grid-template-columns:repeat(3,1fr)}
  html.theme-tijara .tj-home .tiles{grid-column:1/-1}
  html.theme-tijara .tj-home .feed{grid-template-columns:repeat(3,minmax(0,1fr))}
  html.theme-tijara .tj-home .assure{grid-template-columns:1fr 1fr}
  html.theme-tijara .tj-home .assure .lead{grid-column:1/-1}
}
@media (max-width:900px){
  html.theme-tijara .tj-home .inds{grid-template-columns:1fr 1fr}
  html.theme-tijara .tj-home .bento{grid-template-columns:1fr}
  html.theme-tijara .tj-home .welcome{order:3}
  html.theme-tijara .tj-home .tiles{grid-template-columns:1fr}
  html.theme-tijara .tj-home .tri{grid-template-columns:1fr}
  html.theme-tijara .tj-home .catbento{grid-template-columns:1fr 1fr}
  html.theme-tijara .tj-home .cb-tile.big,html.theme-tijara .tj-home .cb-tile.wide{grid-column:span 2;grid-row:auto;min-height:120px}
  html.theme-tijara .tj-home .feed{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.theme-tijara .tj-home .assure{grid-template-columns:1fr}
}
