/* Tokens measured from the original site (see SPEC.md §2) */
:root {
  --red: #C81B21;
  --red-dark: #A3151A;
  --dark: #151E21;
  --dark-2: #1E1C1C;
  --yellow: #FFC107;
  --gold-hover: #CAA200;
  --line-green: #00C300;
  --text: #212529;
  --muted: #26313C;
  --light: #F5F5F5;
  --border: #D9D9D9;
  --white: #FFFFFF;
  --shadow: 0 2px 8px rgba(99, 99, 99, .2);
  --nav-h: 70px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: 'Prompt', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
p { margin: 0 0 1em; }
.i { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; vertical-align: -.15em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--red); color: #fff; padding: 8px 16px; }
.skip:focus { left: 8px; }
.container { max-width: var(--wrap); margin: 0 auto; padding: 16px; }

/* Google Translate injects a top bar; keep the layout still */
body { top: 0 !important; }
.skiptranslate iframe, .goog-te-banner-frame { display: none !important; }

/* ---------- navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 16px;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.brand img { height: 54px; width: auto; }
.navbar nav { margin-left: auto; }
.menu { display: flex; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 16px; color: var(--red); }
.menu a:hover, .menu a[aria-current] { color: var(--gold-hover); }

.lang { position: relative; }
.lang-toggle, .lang-list button, .burger, .drawer-close, .soc-copy {
  font: inherit; cursor: pointer; background: none; border: 0;
}
.lang-toggle { display: flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--red); min-height: 44px; }
.lang-list {
  position: absolute; right: 0; top: 100%; z-index: 60;
  list-style: none; margin: 0; padding: 6px 0; min-width: 190px;
  background: var(--white); border-radius: 6px; box-shadow: var(--shadow);
}
.lang-list button { display: block; width: 100%; text-align: left; padding: 8px 16px; color: var(--text); }
.lang-list button:hover, .lang-list button[aria-current] { background: var(--light); color: var(--red); }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; padding: 10px; }
.burger span { display: block; height: 3px; margin: 5px 0; background: var(--red); border-radius: 2px; }
.burger span:nth-child(2) { width: 60%; }
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 70;
  width: min(320px, 85vw); padding: 64px 24px 24px;
  background: var(--red); color: #fff; overflow-y: auto;
  box-shadow: -4px 0 16px rgba(0, 0, 0, .25);
}
.drawer ul { list-style: none; margin: 0 0 16px; padding: 0; }
.drawer > ul a { display: block; padding: 12px 0; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.drawer-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; font-size: 32px; color: #fff; }
.drawer .lang-toggle { color: #fff; padding-left: 0; }
.drawer .lang-list { position: static; box-shadow: none; }

@media (max-width: 991px) {
  .navbar nav, .navbar > .lang { display: none; }
  .burger { display: block; }
}

/* ---------- home: banner + title ---------- */
/* full picture, never cropped: the first slide sets the height, others fade in on top.
   Phones get a separate square image through <picture>. */
.banner { position: relative; width: 100%; overflow: hidden; background: #000; }
.banner picture { display: block; opacity: 0; transition: opacity 1s; }
.banner picture:not(:first-child) { position: absolute; inset: 0; }
.banner picture.active { opacity: 1; }
.banner img { display: block; width: 100%; height: auto; }
.title-bar { background: var(--red); color: #fff; text-align: center; padding: 24px 16px 8px; }
.title-bar h1 { font-size: 32px; margin: 0 0 .5em; }

/* ---------- home: grid sections ---------- */
.grid { color: var(--fg, inherit); background-color: var(--bg, transparent); background-size: cover; background-position: center; }
.grid .wrap { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); max-width: var(--wrap); margin: 0 auto; }
.grid-1 { --cols: 1; }
.grid-2 { --cols: 2; }
.grid-4 { --cols: 4; }
.grid.has-bg .wrap, .grid:not(.split) .wrap { padding: 24px 16px; gap: 24px; }
.grid.split .wrap { max-width: none; align-items: center; }
.grid.split .cell-text { padding: 24px 48px; }
/* whole picture, never cropped */
.cell-image { align-self: center; }
.block-img { display: block; width: 100%; height: auto; }
.grid a:not(.btn) { color: inherit; }
.grid a:not(.btn):hover { color: var(--gold-hover); }
#page-home .wrap { padding: 0; }
#page-contactus .wrap { padding: 48px 16px; }
/* highlight strip: edge to edge, each image fills its column */
.grid-4 .wrap { max-width: none; padding: 32px 24px; gap: 24px; }
.grid-4 .rich img { display: block; width: 100%; height: auto; margin: 0 0 12px; }
.grid-4 .rich p { margin-bottom: 0; }
@media (max-width: 991px) { .grid-4 { --cols: 2; } }
@media (max-width: 767px) {
  .grid-2, .grid-4 { --cols: 1; }
  .grid.split .cell-text { padding: 24px 16px; }
  .grid.split .cell-image { order: -1; }
}

/* rich text from the page builder */
.rich { overflow-wrap: anywhere; }
.rich img { margin: 8px 4px; }
.rich ul, .rich ol { padding-left: 1.4em; }
.rich li { margin-bottom: .3em; }
.rich hr { border: 0; border-top: 1px solid currentColor; opacity: .25; margin: 24px 0; }
.rich h2 { font-size: 28px; }
.rich h3 { font-size: 24px; }
.font-size-16px { font-size: 16px; }
.font-size-18px { font-size: 18px; }
.font-size-20px { font-size: 20px; }
.font-size-26px { font-size: 26px; }
.color-red { color: #FF0000; }
.color-crimson { color: #DC143C; }
.color-gold { color: #FFD700; }
.text-align-center { text-align: center; }
.text-align-right { text-align: right; }
.cell-text:has(.text-align-center) .btn-row { justify-content: center; }

/* buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 6px 32px;
  border: 1px solid var(--red); border-radius: 50px;
  background: var(--red); color: #fff; font: inherit; line-height: 1.5; text-align: center;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--light); color: var(--red); }
.btn-sm { min-height: 32px; padding: 4px 12px; font-size: 14px; }
.btn[href*="line.me"] { background: var(--line-green); border-color: var(--line-green); color: #fff; }

/* contact bar under the title */
.contactbar {
  list-style: none; margin: 0; padding: 16px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: center;
  background: var(--light); color: var(--text);
}
.contactbar li { display: flex; gap: 8px; align-items: center; }
.contactbar .i { color: var(--red); }
.contactbar a:not(.soc) { color: var(--text) !important; }
@media (max-width: 1199px) { .contactbar { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }

/* social icons */
.social, .address-social, .share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff !important;
}
.soc .i { width: 20px; height: 20px; }
.soc:hover { background: var(--gold-hover); }
.soc-line { background: var(--line-green); }
.soc-fb { background: #1877F2; }
.soc-tt, .soc-x { background: #000; }

/* social embeds */
.cell-tiktok, .cell-facebook { display: flex; justify-content: center; }
.fb-page { width: 100%; max-width: 500px; height: 560px; border: 0; background: #fff; }
.tiktok-embed { margin: 0; }

/* FAQ */
.faq h3 { font-size: 28px; }
.faq details { margin-bottom: 8px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 12px 44px 12px 12px; position: relative;
  background: #FBFBFB; color: #333; border: 1px solid var(--border); border-radius: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq details .rich { padding: 12px 16px; }

/* keyword + brand chips */
.side-title { text-align: center; }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cell-keywords .chips, .cell-brand .chips { flex-direction: column; align-items: center; }
.chips a {
  display: inline-block; padding: 5px 24px; border-radius: 50px;
  background: var(--red); border: 1px solid var(--red); color: #fff !important;
}
.chips a:hover { background: #fff; color: var(--red) !important; }
.item .chips a { padding: 2px 12px; font-size: 14px; }

/* catalog cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow); color: var(--text); }
.card > a { color: inherit !important; flex: 1; }
.card-thumb { aspect-ratio: 1; background: #fff; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { padding: 0 20px 12px; position: relative; }
.card-cat { display: inline-block; transform: translateY(-50%); padding: 0 15px; background: #fff; color: var(--muted); font-size: 11px; line-height: 25px; }
.card-title { font-size: 20px; color: var(--red); margin: 0 0 4px; }
.card-sub { font-weight: 500; color: var(--muted); margin: 0 0 4px; }
.card-desc { color: var(--red); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 16px; color: var(--red); }

/* gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery a { position: relative; display: block; aspect-ratio: 6 / 7; overflow: hidden; background: #000; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.gallery span {
  position: absolute; inset: auto 0 0; padding: 12px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  color: #fff; font-size: 18px; text-align: center;
}
.gallery a:hover img { transform: scale(1.05); opacity: .85; }
@media (max-width: 991px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { max-width: 92vw; max-height: 88vh; display: block; }
.lightbox button { position: fixed; top: 12px; right: 16px; width: 44px; height: 44px; font-size: 36px; color: #fff; background: none; border: 0; cursor: pointer; }

/* single-row sliders (home catalog + gallery), native scroll-snap */
.carousel-wrap { position: relative; }
.carousel {
  display: grid; grid-template-columns: none; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding: 4px 4px 12px;
}
.carousel > * { scroll-snap-align: start; }
.cards.carousel { grid-auto-columns: calc((100% - 4 * 16px) / 5); }
@media (max-width: 991px) { .carousel, .cards.carousel { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 575px) { .carousel, .cards.carousel { grid-auto-columns: 80%; } }
.car-btn {
  position: absolute; top: 40%; z-index: 2; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(200, 27, 33, .9); color: #fff; font-size: 28px; line-height: 1;
}
.car-btn.prev { left: -8px; }
.car-btn.next { right: -8px; }
.car-btn:disabled { opacity: .3; cursor: default; }
@media (hover: none) { .car-btn { display: none; } }

/* contact section */
.address-name { font-size: 24px; }
.contact-list { list-style: none; margin: 0 0 16px; padding: 0; }
.contact-list li { display: flex; gap: 12px; padding: 6px 0; }
.contact-list .i { color: var(--red); margin-top: .2em; }
.contact-list a { color: var(--text) !important; }
.map { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.map iframe { width: 100%; height: 485px; border: 0; }

/* ---------- catalog pages ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 16px; padding: 0; font-size: 14px; }
.crumbs li + li::before { content: "»"; margin-right: 4px; color: #888; }
.catalog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.catalog-shop { font-size: 20px; font-weight: 500; margin: 0; }
.search { display: flex; min-width: min(320px, 100%); }
.search input { flex: 1; min-width: 0; min-height: 44px; padding: 6px 12px; font: inherit; border: 1px solid var(--border); border-radius: 6px 0 0 6px; }
.search button { width: 48px; border: 1px solid var(--border); border-left: 0; border-radius: 0 6px 6px 0; background: var(--light); cursor: pointer; color: var(--text); }
.list-title { font-size: 28px; }

.box { border: 1px solid var(--border); padding: 16px; margin-top: 16px; }
.box-title { font-size: 22px; position: relative; padding-bottom: 8px; }
.box-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 3px; background: var(--red); }
.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.item-img img { width: 100%; border: 1px solid var(--border); }
.item-thumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 8px 0 0; }
.item-thumbs img { width: 72px; height: 72px; object-fit: cover; }
.item-info h1 { font-size: 28px; margin: 0 0 8px; }
.item-row { padding: 8px 0; border-bottom: 1px solid #eee; margin: 0; }
.item-row:last-child { border-bottom: 0; }
.item-row .btn-row { margin: 8px 0; }
.item-row .share { margin-top: 8px; }
@media (max-width: 767px) { .item { grid-template-columns: 1fr; } }
.search-empty { padding: 24px 0; }
.notfound { text-align: center; padding: 80px 16px; }
.notfound h1 { font-size: 96px; color: var(--red); }

/* ---------- footer ---------- */
.footer { margin-top: 48px; }
.footer-main { background: var(--red); color: #fff; text-align: center; padding: 48px 16px; }
.footer-main h2 { font-size: 20px; }
.footer-main a { color: #fff; }
.footer-main a:hover { color: var(--yellow); }
.footer-main .social { justify-content: center; margin-bottom: 16px; }
.copyright { background: var(--light); text-align: center; padding: 12px 16px; font-size: 14px; }

/* floating buttons (replace the old chatbot) */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.fab a {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.fab .i { width: 26px; height: 26px; }
.fab-line { background: var(--line-green); }
.fab-call { background: var(--red); }
.fab-top { background: #555; width: 40px !important; height: 40px !important; align-self: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab a:hover { color: #fff; filter: brightness(1.1); }
