/* Pronajmisito — shared site styles (header, footer, buttons, cards, etc.) */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: #fff;
  color: var(--fg-1);
  font-family: var(--font-body);
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ═══ HEADER ═══ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-page);
  height: 78px;
  display: flex; align-items: center;
  padding: 0 48px;
  border-bottom: 1px solid transparent;
  transition: border-color 240ms, box-shadow 240ms;
}
.site-header.scrolled {
  border-bottom-color: var(--line-hair);
  box-shadow: 0 2px 24px rgba(0,0,0,0.04);
}
.site-header .brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--brand-black);
  text-decoration: none;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.site-header .thumb {
  width: 34px; height: 34px;
  background: var(--brand-black);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 280ms var(--ease-out);
}
.site-header .brand:hover .thumb { transform: rotate(-6deg) scale(1.06); }
.site-header .thumb svg { width: 20px; height: 20px; color: #fff; }

.site-header nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 2px;
}
.site-header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-black);
  padding: 10px 16px;
  position: relative;
  text-decoration: none;
}
.site-header nav a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px; background: var(--brand-yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
.site-header nav a:hover::after,
.site-header nav a.active::after { transform: scaleX(1); }
.site-header nav .cta {
  background: var(--brand-black); color: #fff;
  margin-left: 12px; padding: 12px 20px;
}
.site-header nav .cta::after { display: none; }
.site-header nav .cta:hover { background: var(--brand-yellow); color: var(--brand-black); }

.menu-btn {
  display: none;
  background: var(--brand-black); color: #fff;
  border: 0; width: 40px; height: 40px;
  margin-left: auto;
  cursor: pointer;
  font-size: 18px;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 26px;
  border: 0; cursor: pointer;
  text-decoration: none;
  transition: transform 220ms var(--ease-out), background 180ms, color 180ms, box-shadow 220ms;
}
.btn.dark { background: var(--brand-black); color: #fff; }
.btn.dark:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand-black); border: 2px solid var(--brand-black); padding: 14px 24px; }
.btn.ghost:hover { background: var(--brand-black); color: #fff; }
.btn.yellow { background: var(--brand-yellow); color: var(--brand-black); }
.btn.yellow:hover { background: var(--brand-yellow-hover); }
.btn.sm { padding: 10px 16px; font-size: 11px; letter-spacing: 0.2em; }
.btn .arrow { transition: transform 220ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--brand-black); color: #fff;
  padding: 64px 48px 24px;
}
.site-footer .foot-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; align-items: start;
}
.site-footer .brand-f {
  font-family: var(--font-display); font-weight: 900;
  font-size: 22px; color: #fff;
  letter-spacing: -0.01em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.site-footer .brand-f .thumb {
  width: 36px; height: 36px; background: #fff; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.site-footer .tag {
  font-family: var(--font-display); font-size: 10px;
  letter-spacing: 0.2em; color: var(--brand-yellow); margin-bottom: 16px;
}
.site-footer p { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.7; }
.site-footer h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--brand-yellow); margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 6px; }
.site-footer ul a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 14px; transition: color 180ms;
}
.site-footer ul a:hover { color: var(--brand-yellow); }
.site-footer .bottom {
  max-width: 1360px; margin: 40px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.4);
  flex-wrap: wrap; gap: 16px;
}

/* ═══ COMMON SECTION SHELL ═══ */
section.pad { padding: 96px 48px; position: relative; }
.inner { max-width: 1360px; margin: 0 auto; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--fg-3);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--brand-black);
  margin: 0 0 20px;
  text-transform: none;
  text-align: left;
  max-width: 920px;
}
.section-title em {
  font-style: italic;
  background: var(--brand-yellow);
  padding: 0 10px;
  box-decoration-break: clone;
}
.section-lead {
  font-size: 17px; line-height: 1.7;
  color: var(--fg-2);
  max-width: 620px;
}
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 56px;
  flex-wrap: wrap;
}

/* ═══ PAGE HEADER (listing pages) ═══ */
.page-header {
  background: var(--bg-page);
  padding: 80px 48px 64px;
  border-bottom: 1px solid var(--line-hair);
}
.page-header .crumbs {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 18px;
}
.page-header .crumbs a { color: var(--fg-3); text-decoration: none; }
.page-header .crumbs a:hover { color: var(--brand-black); }
.page-header .crumbs .sep { margin: 0 10px; opacity: 0.5; }
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-transform: uppercase;
  color: var(--brand-black);
}
.page-header h1 em {
  font-style: italic;
  background: var(--brand-yellow);
  padding: 0 0.1em;
  box-decoration-break: clone;
}
.page-header .lede {
  font-size: 17px; line-height: 1.7;
  color: var(--fg-2);
  max-width: 720px;
}

/* ═══ TREE SIDEBAR ═══ */
.layout-with-sidebar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 48px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: flex-start;
}
.tree-sidebar {
  position: sticky;
  top: 100px;
  font-family: var(--font-body);
  align-self: flex-start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 12px;
}
.tree-sidebar::-webkit-scrollbar { width: 4px; }
.tree-sidebar::-webkit-scrollbar-thumb { background: var(--line-hair); }
.tree-group { margin-bottom: 28px; }
.tree-group:last-child { margin-bottom: 0; }
.tree-group-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--brand-black);
  margin: 0 0 10px;
  text-transform: none;
  display: flex; align-items: center; gap: 10px;
}
.tree-group-name .dot {
  width: 6px; height: 6px; background: var(--brand-yellow); flex-shrink: 0;
}
.tree-group-name.expandable { cursor: pointer; user-select: none; }
.tree-group-name.expandable .chev {
  margin-left: auto;
  font-size: 11px; color: var(--fg-3);
  transition: transform 200ms;
}
.tree-group.collapsed .chev { transform: rotate(-90deg); }
.tree-group.collapsed .tree-items { display: none; }
.tree-items { padding-left: 16px; display: flex; flex-direction: column; gap: 2px; }
.tree-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 0;
  font-family: var(--font-body); font-weight: 400;
  font-size: 14px; color: var(--fg-2);
  text-decoration: none;
  cursor: pointer;
  background: transparent; border: 0;
  text-align: left;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  letter-spacing: 0;
  transition: color 160ms, border-color 160ms;
}
.tree-item .arrow {
  font-size: 12px; color: var(--fg-3);
  transition: transform 160ms, color 160ms;
}
.tree-item:hover {
  color: var(--brand-black);
  border-bottom-color: var(--brand-black);
}
.tree-item:hover .arrow { transform: translateX(2px); color: var(--brand-black); }
.tree-item.active {
  color: var(--brand-black); font-weight: 600;
  border-bottom-color: var(--brand-yellow);
}
.tree-item.active .arrow { color: var(--brand-yellow); }
.tree-item .count {
  margin-left: 8px; font-size: 11px; color: var(--fg-3); font-weight: 500;
  letter-spacing: 0.05em;
}

/* Tree sidebar — mobile drawer */
.tree-toggle {
  display: none;
  width: 100%;
  font-family: var(--font-display); font-weight: 800;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--brand-black); color: #fff;
  padding: 14px 18px; border: 0; cursor: pointer;
  margin-bottom: 16px;
  display: none;
}
@media (max-width: 900px) {
  .layout-with-sidebar { grid-template-columns: 1fr; padding: 24px 16px 48px; gap: 16px; }
  .tree-toggle { display: block; }
  .tree-sidebar {
    position: static; max-height: none; padding: 0;
    display: none;
    background: var(--bg-alt);
    padding: 24px;
    border: 1px solid var(--line-hair);
  }
  .tree-sidebar.open { display: block; }
}

/* Listing right column */
.listing-main { min-width: 0; }
.listing-toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid var(--line-hair);
}
.listing-toolbar .results {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-3);
}
.listing-toolbar .results strong { color: var(--brand-black); font-weight: 900; }
.listing-toolbar .search {
  margin-left: auto;
  display: flex; align-items: center;
  border: 1px solid var(--line-hair);
  background: var(--bg-alt);
}
.listing-toolbar .search:focus-within { border-color: var(--brand-black); background: #fff; }
.listing-toolbar .search input {
  border: 0; background: transparent;
  font: inherit; font-size: 14px;
  padding: 10px 14px; width: 220px; outline: none;
}
.listing-toolbar .search .ic {
  padding: 0 12px; color: var(--fg-3);
  display: flex; align-items: center;
}

.listing-cat-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin: 56px 0 24px; flex-wrap: wrap;
}
.listing-cat-head:first-child { margin-top: 0; }
.listing-cat-head .left { display: flex; flex-direction: column; gap: 6px; }
.listing-cat-head .num {
  font-family: var(--font-display); font-weight: 900;
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--brand-yellow); background: var(--brand-black);
  padding: 4px 10px; align-self: flex-start;
}
.listing-cat-head h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.025em; line-height: 1.05;
  margin: 0; color: var(--brand-black);
  text-transform: none; text-align: left;
}
.listing-cat-head .count {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3);
}

/* ═══ PRODUCT CARDS ═══ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-hair);
  text-decoration: none; color: inherit;
  transition: transform 280ms var(--ease-out), box-shadow 280ms, border-color 280ms;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.08);
  border-color: var(--brand-yellow);
}
.product-card .ph {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}
.product-card .ph img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.product-card:hover .ph img { transform: scale(1.05); }
.product-card .meta { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card .cat {
  font-family: var(--font-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 6px;
}
.product-card .title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 17px; letter-spacing: -0.005em;
  margin: 0 0 8px; color: var(--brand-black);
  line-height: 1.25;
}
.product-card .desc {
  font-size: 13px; color: var(--fg-2); line-height: 1.55;
  margin: 0 0 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--line-hair); margin-top: auto;
}
.product-card .price {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  color: var(--brand-black);
}
.product-card .price .small { color: var(--fg-3); font-weight: 500; }
.product-card .price .big { font-size: 16px; }
.product-card .arrow-link {
  font-family: var(--font-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-black);
  transition: gap 220ms;
}
.product-card:hover .arrow-link { gap: 12px; }

/* ═══ PILLS / FILTERS ═══ */
.pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pill {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  background: #fff;
  border: 1px solid var(--line-hair);
  color: var(--brand-black);
  padding: 8px 14px;
  cursor: pointer;
  transition: background 180ms, border-color 180ms, color 180ms;
  display: inline-flex; align-items: center; gap: 8px;
}
.pill .count {
  font-size: 10px; opacity: 0.55; font-weight: 500; letter-spacing: 0.05em;
}
.pill:hover { border-color: var(--brand-black); }
.pill.active {
  background: var(--brand-black); color: #fff; border-color: var(--brand-black);
}
.pill.active .count { opacity: 0.7; }

/* ═══ MARQUEE ═══ */
.marquee {
  background: var(--brand-black); color: var(--brand-yellow);
  padding: 16px 0; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--brand-yellow);
  border-bottom: 1px solid var(--brand-yellow);
}
.marquee-track {
  display: inline-flex; gap: 56px;
  animation: marq 40s linear infinite;
  font-family: var(--font-display);
  font-weight: 800; font-size: 15px;
  letter-spacing: 0.25em; text-transform: uppercase;
}
.marquee-track span::before {
  content: '◆'; margin-right: 56px; opacity: 0.5;
}
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 60ms; }
.reveal.d2 { transition-delay: 120ms; }
.reveal.d3 { transition-delay: 180ms; }
.reveal.d4 { transition-delay: 240ms; }

/* ═══ TWEAKS PANEL ═══ */
#tweaks-mount { position: fixed; bottom: 0; right: 0; z-index: 100; }

/* ═══ DENSITY MODES (driven by tweaks) ═══ */
body[data-density="cozy"] .product-grid { gap: 24px; }
body[data-density="cozy"] section.pad { padding: 120px 48px; }
body[data-density="dense"] .product-grid { gap: 10px; }
body[data-density="dense"] .product-card .meta { padding: 14px 16px 16px; }
body[data-density="dense"] section.pad { padding: 72px 48px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1000px) {
  .site-footer .foot-inner { grid-template-columns: 1fr 1fr; }
  .site-header nav a:not(.cta) { display: none; }
}
@media (max-width: 720px) {
  .site-header { padding: 0 22px; height: 64px; }
  .site-footer { padding: 48px 22px 24px; }
  .site-footer .foot-inner { grid-template-columns: 1fr; gap: 28px; }
  section.pad { padding: 64px 22px; }
  .page-header { padding: 56px 22px 44px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .product-card .meta { padding: 12px 14px 14px; }
  .product-card .title { font-size: 14px; }
  .product-card .desc { display: none; }
}
