/*
Theme Name: Catalog Rapid
Description: Temă ultra-ușoară pentru cataloage de produse.
Version: 1.6.2
Text Domain: catalog-rapid
*/

:root {
  --ink: #222222;
  --muted: #6a6a6a;
  --paper: #ffffff;
  --card: #fff;
  --line: #dddddd;
  --accent: #ff385c;
  --accent-dark: #e31c5f;
  --accent-soft: #fff1f3;
  --footer-bg: #f7f7f7;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.site-shell, .car-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.site-brand { color: var(--accent); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.6px; }
.site-brand-logo { display: block; width: auto; height: 48px; max-width: 230px; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 700; opacity: .82; }
.site-nav a:hover { color: var(--ink); }
.header-search { display: flex; width: min(300px, 28vw); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.header-search input { min-width: 0; width: 100%; padding: 10px 4px 10px 16px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; }
.header-search button { border: 0; padding: 8px 14px; background: transparent; cursor: pointer; font-size: 18px; }

.car-eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.4; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.home-intro { padding: 48px 0 36px; border-bottom: 1px solid var(--line); background: #fff; }
.home-intro .site-shell { display: grid; grid-template-columns: 1fr minmax(320px, 520px); align-items: end; gap: 40px; }
.home-intro h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.05em; }
.home-intro .site-shell > p { margin: 0; color: var(--muted); font-size: 17px; }
.car-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.car-button:hover { background: var(--accent-dark); }
.car-button-ghost { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.car-button-small { min-height: 42px; padding: 8px 16px; font-size: 13px; }

.home-categories { padding: 48px 0 58px; background: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -.045em; }
.text-link { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }
.category-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.category-main-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 850; }
.category-main-link strong { display: grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--muted); font-size: 11px; }
.category-children { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.category-children a { color: var(--muted); text-decoration: none; font-size: 12px; }
.car-category-index .car-archive-head { margin-bottom: 30px; }
.category-directory-all { align-items: start; }
.car-category-tree { display: grid; gap: 8px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; }
.car-category-tree .car-category-tree { gap: 6px; margin: 6px 0 0 12px; padding: 0 0 0 12px; border: 0; border-left: 1px solid var(--line); }
.car-category-tree a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; text-decoration: none; }
.car-category-tree small { flex: none; color: var(--muted); font-size: 11px; }
.car-category-children-section { margin: -8px 0 36px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
.car-category-children-section h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.car-category-children-section > .car-category-tree { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; }

.home-products { padding: 58px 0 90px; border-top: 1px solid var(--line); background: var(--paper); }
.car-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.car-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.car-image-wrap { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 16px; border-bottom: 1px solid var(--line); background: transparent; overflow: hidden; }
.car-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.car-image-wrap img.car-placeholder { width: 72%; height: 72%; opacity: .72; }
.car-card-discount { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 5px 9px; border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); font-size: 11px; font-weight: 800; }
.car-no-image { color: var(--muted); font-size: 13px; }
.car-card-body { display: flex; flex: 1; flex-direction: column; padding: 14px 14px 16px; }
.car-card-meta { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.car-brand { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.car-card-category { max-width: 52%; overflow: hidden; color: var(--muted); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.car-card h2 { margin: 9px 0 18px; font-size: 15px; line-height: 1.4; letter-spacing: -.015em; }
.car-card h2 a { text-decoration: none; }
.car-card-footer { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 12px; margin-top: auto; padding-top: 4px; }
.car-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; margin: 0; }
.car-price-line strong { font-size: 18px; letter-spacing: -.03em; }
.car-price-line del { color: var(--muted); font-size: 13px; }
.car-card-link { flex: none; color: var(--ink); font-size: 13px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }

.car-catalog { padding-block: 70px 90px; }
.car-archive-head { display: block; width: 100%; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.car-archive-head h1 { margin: 0; font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -.05em; }
.navigation.pagination { margin-top: 42px; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 50%; background: #fff; text-decoration: none; font-weight: 800; }
.page-numbers.current { background: var(--ink); color: #fff; }

.car-breadcrumbs { display: flex; align-items: center; gap: 9px; padding: 30px 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; }
.car-breadcrumbs a { color: var(--ink); font-weight: 700; }
.car-product { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px 58px; padding-bottom: 78px; }
.car-product-media { position: relative; display: grid; place-items: center; min-height: 430px; padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: transparent; overflow: hidden; }
.car-product-media img { width: 100%; height: 100%; max-height: 430px; object-fit: contain; }
.car-product-media img.car-placeholder { width: 58%; height: 58%; opacity: .72; }
.car-discount { position: absolute; z-index: 2; left: 20px; top: 20px; padding: 7px 11px; border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); font-size: 12px; font-weight: 800; }
.car-product-summary { align-self: center; }
.car-product-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.car-product-kicker .car-eyebrow { margin: 0; }
.car-product-category { color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.car-product-summary h1 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.04em; }
.car-price-large { margin: 24px 0 16px; }
.car-price-large strong { color: var(--ink); font-size: 31px; }
.car-price-large del { font-size: 17px; }
.car-buy-button { width: 100%; min-height: 60px; margin-top: 18px; font-size: 17px; }
.car-code { color: var(--muted); font-size: 12px; text-align: center; }
.car-code { margin-top: 18px; }
.car-description { grid-column: 1 / -1; width: 100%; max-width: none; padding-top: 36px; border-top: 1px solid var(--line); }
.car-description h2 { margin: 0 0 24px; font-size: 34px; letter-spacing: -.04em; }
.car-copy { color: var(--ink); font-size: 17px; }
.car-copy p { margin-block: 0 1em; }
.car-copy img { display: none; }
.car-product-subcategories { grid-column: 1 / -1; width: 100%; padding-top: 34px; border-top: 1px solid var(--line); }
.car-product-subcategories h2 { margin: 0 0 20px; font-size: 26px; line-height: 1.2; letter-spacing: -.03em; }
.car-subcategory-list { display: flex; flex-wrap: wrap; gap: 10px; }
.car-subcategory-link { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.car-subcategory-link.is-current { border-color: var(--ink); background: var(--ink); color: #fff; }

.site-footer { padding: 42px 0; border-top: 1px solid var(--line); background: var(--footer-bg); color: var(--ink); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.footer-title h2 { max-width: 700px; margin: 0 0 8px; font-size: 18px; line-height: 1.35; letter-spacing: -.02em; }
.footer-title span { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 18px; }
.footer-links a { color: var(--ink); font-size: 13px; font-weight: 600; }
.car-empty { padding: 80px 30px; border-radius: var(--radius); background: #fff; text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 1180px) {
  .car-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .site-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-search { width: min(320px, 44vw); }
  .category-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-category-children-section > .car-category-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .car-product { gap: 40px; }
}
@media (max-width: 680px) {
  .site-shell, .car-shell { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 66px; }
  .site-brand-logo { height: 40px; max-width: 190px; }
  .header-search { display: none; }
  .home-intro .site-shell, .car-archive-head { grid-template-columns: 1fr; gap: 18px; }
  .home-intro { padding-block: 36px 30px; }
  .category-directory { grid-template-columns: 1fr; }
  .car-category-children-section > .car-category-tree { grid-template-columns: 1fr; }
  .home-products, .car-catalog { padding-block: 52px 64px; }
  .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .car-card-body { padding: 12px; }
  .car-card h2 { font-size: 14px; }
  .car-image-wrap { padding: 12px; }
  .car-product { grid-template-columns: 1fr; gap: 30px; }
  .car-product-media { min-height: 320px; padding: 24px; }
  .car-product-summary h1 { font-size: 32px; }
  .car-description { grid-column: auto; }
  .car-product-subcategories { grid-column: auto; }
  body.single-magazin { padding-bottom: 88px; }
  .single-magazin .car-buy-button {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 0 22px;
    border-radius: 0;
    line-height: 1.2;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .section-head { align-items: start; flex-direction: column; }
}
@media (max-width: 420px) {
  .car-grid { grid-template-columns: 1fr; }
}
