/* ============ PEIMI — Epoxy Resin & Wood Cutting Boards ============ */

:root {
  --bg: #ffffff;
  --bg-soft: #f8f6f2;
  --bg-warm: #f3efe8;
  --ink: #1a1a1a;
  --ink-soft: #555;
  --line: #e7e3dc;
  --accent: #0e6b6f;        /* deep ocean teal */
  --accent-soft: #e6f0f0;
  --sale: #c2410c;          /* warm burnt orange */
  --gold: #b08a4a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(20,20,20,.04);
  --shadow-md: 0 8px 24px rgba(20,20,20,.06);
  --shadow-lg: 0 20px 60px rgba(20,20,20,.18);
  --container: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============ Announcement Bar ============ */
.announcement-bar {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 44px;
  position: relative;
  overflow: hidden;
}
.announcement-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  width: max-content;
}
.announcement-track span { padding: 0 8px; }
.announcement-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 18px; opacity: .7; line-height: 1;
}
.announcement-close:hover { opacity: 1; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Header ============ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-left { display: flex; gap: 28px; justify-content: flex-start; }
.nav-link {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--ink); transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  padding: 2px 0;
}
.logo-mark {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.logo-mark svg { display: block; filter: drop-shadow(0 2px 4px rgba(14,107,111,.18)); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-content {
  display: flex; flex-direction: column;
  align-items: center; line-height: 1;
}
.logo-text {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-family: 'Fredoka', 'Inter', sans-serif;
  font-size: 30px; font-weight: 600;
}
.logo-text span { display: inline-block; transition: transform .25s ease; }
.logo-text span:nth-child(1) { transform: translateY(-3px); }
.logo-text span:nth-child(3) { transform: translateY(3px); }
.logo-text span:nth-child(5) { transform: translateY(-3px); }
.logo:hover .logo-text span { transform: translateY(0); }
.logo-accent { color: var(--accent); position: relative; }
.logo-leaf {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 12px;
}
.logo-wave {
  width: 92%; height: 7px; margin-top: 2px;
  color: var(--accent); display: block;
}
@media (max-width: 768px) {
  .logo-mark svg { width: 36px; height: 36px; }
  .logo-text { font-size: 24px; }
}

.nav-right { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background .2s, color .2s;
  position: relative;
}
.icon-btn:hover { background: var(--bg-soft); }
.cart-count {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 600;
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transform: scale(0); transition: transform .2s;
}
.cart-count.has-items { transform: scale(1); }

/* ============ Collection Hero (video background) ============ */
.collection-hero {
  position: relative;
  padding: 120px 0 96px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #0a1f22;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,31,34,.55), rgba(10,31,34,.72));
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.collection-title {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 16px;
  color: #fff;
}
.collection-sub {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255,255,255,.85);
  font-size: 16px;
}

/* ============ Toolbar ============ */
.toolbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 82px; z-index: 40;
}
.toolbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.filter-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
  transition: all .15s;
  letter-spacing: .04em;
}
.chip:hover { border-color: var(--ink); }
.chip.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.toolbar-right { display: flex; align-items: center; gap: 20px; }
.product-count { font-size: 13px; color: var(--ink-soft); }
.sort-wrap { display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 13px; color: var(--ink-soft); }
.sort-select {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 32px 8px 12px;
  font-family: inherit; font-size: 13px;
  border-radius: var(--radius);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%231a1a1a' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

/* ============ Product Grid ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
  padding: 40px 0 80px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, opacity .25s;
}
.product-card:hover .product-media img { transform: scale(1.04); }

.product-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: #fff;
  font-size: 11px; letter-spacing: .14em; font-weight: 600;
  padding: 5px 10px; border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
}
.product-tag.sale { background: var(--sale); }
.product-tag.new { background: var(--accent); }

.quick-add {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: #fff; color: var(--ink);
  padding: 12px;
  text-align: center;
  font-size: 12px; letter-spacing: .14em; font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .15s;
  box-shadow: var(--shadow-md);
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.quick-add:hover { background: var(--ink); color: #fff; }

.product-info { padding: 14px 2px 0; }
.product-category {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 6px;
}
.product-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.product-price {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 14px;
  color: var(--ink);
}
.product-price .price-regular { color: var(--ink); font-weight: 500; }
.product-price .price-sale { color: var(--sale); font-weight: 600; }
.product-price .price-compare { color: var(--ink-soft); text-decoration: line-through; font-size: 13px; }
.product-reviews {
  font-size: 12px; color: var(--ink-soft);
  margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
}
.product-reviews .star { color: var(--gold); }
.product-reviews .count { color: var(--ink-soft); }

/* ============ Brand Story ============ */
.brand-story { background: var(--bg-warm); padding: 100px 0; }
.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.brand-image img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
.eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  display: block; margin-bottom: 16px;
}
.brand-text h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
}
.brand-text p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}
.btn-text {
  display: inline-block; margin-top: 16px;
  color: var(--accent); font-weight: 600;
  font-size: 14px; letter-spacing: .04em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ============ Newsletter ============ */
.newsletter {
  padding: 90px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter h2 {
  font-family: var(--serif);
  font-size: 38px; font-weight: 500;
  margin-bottom: 12px;
}
.newsletter p { color: var(--ink-soft); margin-bottom: 28px; font-size: 15px; }
.newsletter-form {
  display: flex; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px;
  background: #fff;
}
.newsletter-form input {
  flex: 1; border: 0; padding: 12px 14px;
  font-family: inherit; font-size: 14px;
  outline: none; background: transparent;
  color: var(--ink);
}
.btn-primary {
  background: var(--ink); color: #fff;
  padding: 12px 28px;
  font-size: 12px; letter-spacing: .14em; font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .15s;
}
.btn-primary:hover { background: var(--accent); }
.btn-full { width: 100%; padding: 16px; font-size: 13px; }

/* ============ Footer ============ */
.site-footer { background: #fff; padding: 80px 0 0; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--ink);
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--ink-soft); font-size: 14px; transition: color .15s; }
.footer-col ul li a:hover { color: var(--ink); }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: all .15s;
}
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 13px; color: var(--ink-soft); }
.payment-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.payment-icons span {
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  background: #fff;
}

/* ============ Cart Drawer ============ */
.cart-drawer {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
}
.cart-drawer.open { pointer-events: auto; }
.cart-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0; transition: opacity .25s;
}
.cart-drawer.open .cart-overlay { opacity: 1; }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 90vw;
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-head {
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 500;
}
.cart-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty { color: var(--ink-soft); text-align: center; padding: 40px 0; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.cart-item-info h4 { font-family: var(--serif); font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.cart-item-info .cart-line-price { font-size: 14px; color: var(--ink); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item-qty button {
  width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.cart-item-qty span { font-size: 13px; min-width: 20px; text-align: center; }
.cart-item-remove {
  font-size: 12px; color: var(--ink-soft); align-self: flex-start;
  text-decoration: underline;
}
.cart-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
  font-size: 16px;
}
.cart-subtotal strong { font-size: 18px; }
.cart-shipping { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { gap: 48px; }
  .brand-text h2 { font-size: 36px; }
}
@media (max-width: 768px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav-left { display: none; }
  .logo { font-size: 24px; }
  .collection-title { font-size: 40px; }
  .collection-hero { padding: 56px 0 40px; }
  .toolbar { top: 70px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .product-name { font-size: 17px; }
  .brand-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-story { padding: 64px 0; }
  .brand-text h2 { font-size: 30px; }
  .newsletter { padding: 60px 0; }
  .newsletter h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; padding-bottom: 40px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .toolbar-inner { flex-direction: column; align-items: stretch; }
  .toolbar-right { justify-content: space-between; }
  .quick-add { opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .product-name { font-size: 15px; min-height: 2.4em; }
  .product-category { display: none; }
}

/* ============ WhatsApp ============ */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  background: #25D366;
  color: #fff;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(37,211,102,.55); }
.wa-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-float-label {
  position: absolute; right: 72px;
  background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: 6px;
  font-size: 13px; white-space: nowrap;
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.wa-float:hover .wa-float-label { opacity: 1; transform: translateX(0); }

/* nav WhatsApp icon */
.wa-icon { color: #25D366; }
.wa-icon:hover { background: rgba(37,211,102,.12); color: #1da851; }

/* quick-add with WA icon */
.quick-add { display: flex; align-items: center; justify-content: center; gap: 6px; }
.wa-mini { flex-shrink: 0; }

/* product inquire link */
.inquire-link {
  display: inline-block; margin-top: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.inquire-link:hover { color: #25D366; border-color: #25D366; }

/* footer WA link */
.footer-wa {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: #25D366;
}
.footer-wa:hover { color: #1da851; }

@media (max-width: 480px) {
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .wa-float-label { display: none; }
}

/* ============ Language Switcher ============ */
.lang-switcher { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 10px;
  border-radius: 999px;
  color: var(--ink); font-size: 13px; font-weight: 500;
  transition: background .15s;
  white-space: nowrap;
}
.lang-current:hover { background: var(--bg-soft); }
.lang-chev { opacity: .55; transition: transform .2s; }
.lang-switcher:has(.lang-menu.open) .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 168px; max-height: 340px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px; z-index: 60;
  display: none;
}
.lang-menu.open { display: block; animation: langFade .15s ease; }
@keyframes langFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.lang-option {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 4px;
  font-size: 13px; color: var(--ink);
  transition: background .12s;
}
.lang-option:hover { background: var(--bg-soft); }

/* ============ RTL (Arabic) ============ */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .nav-left { justify-content: flex-end; }
[dir="rtl"] .nav-right { justify-content: flex-start; }
[dir="rtl"] .nav-link::after { left: auto; right: 0; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-option { text-align: right; }
[dir="rtl"] .product-tag { left: auto; right: 12px; }
[dir="rtl"] .wa-float { right: auto; left: 24px; }
[dir="rtl"] .wa-float-label { right: auto; left: 72px; }
[dir="rtl"] .footer-bottom-inner { flex-direction: row-reverse; }
[dir="rtl"] .toolbar-inner { flex-direction: row-reverse; }
[dir="rtl"] .sort-wrap { flex-direction: row-reverse; }
[dir="rtl"] .newsletter-form { flex-direction: row-reverse; }
[dir="rtl"] .announcement-track { animation-direction: reverse; }

@media (max-width: 768px) {
  [dir="rtl"] .toolbar-right { flex-direction: row-reverse; }
}
@media (max-width: 480px) {
  [dir="rtl"] .wa-float { right: auto; left: 16px; }
  .lang-current span { display: none; } /* 移动端只显示地球图标 */
  .lang-current { padding: 0 8px; }
}

/* ============ Search Modal ============ */
.search-modal {
  position: fixed; inset: 0; z-index: 110;
  pointer-events: none;
}
.search-modal.open { pointer-events: auto; }
.search-overlay {
  position: absolute; inset: 0;
  background: rgba(20,20,20,.55);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s;
}
.search-modal.open .search-overlay { opacity: 1; }
.search-panel {
  position: absolute; top: 0; left: 0; right: 0;
  background: #fff;
  max-height: 80vh;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .25s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
}
.search-modal.open .search-panel { transform: translateY(0); }
.search-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}
.search-bar svg { color: var(--ink-soft); flex-shrink: 0; }
.search-bar input {
  flex: 1; border: 0; outline: none;
  font-family: inherit; font-size: 18px;
  background: transparent;
  color: var(--ink);
}
.search-bar input::placeholder { color: var(--ink-soft); }
.search-close {
  border: 0; background: transparent;
  font-size: 18px; color: var(--ink-soft);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer;
  transition: background .15s;
}
.search-close:hover { background: var(--bg-soft); }
.search-results {
  flex: 1; overflow-y: auto;
  padding: 12px 28px 28px;
}
.search-group {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
  padding: 14px 0 8px;
}
.search-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: background .12s;
}
.search-item:hover { background: var(--bg-soft); }
.search-item-img {
  width: 52px; height: 52px; object-fit: cover;
  border-radius: 4px; flex-shrink: 0;
}
.search-item-info { flex: 1; min-width: 0; }
.search-item-name {
  font-family: var(--serif);
  font-size: 17px; font-weight: 500;
  line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-item-cat {
  font-size: 12px; color: var(--ink-soft); margin-top: 2px;
}
.search-item-arrow {
  font-size: 20px; flex-shrink: 0;
  color: var(--ink-soft);
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border-radius: 4px;
}
.search-empty {
  text-align: center; color: var(--ink-soft);
  padding: 60px 20px; font-size: 15px;
}

[dir="rtl"] .search-item-arrow { transform: scaleX(-1); }

/* ============ Static Catalog (SEO/GEO) ============ */
.static-catalog {
  background: var(--bg-soft);
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.static-catalog h2 {
  font-family: var(--serif);
  font-size: 34px; font-weight: 500;
  text-align: center; margin-bottom: 8px;
}
.static-catalog .catalog-sub-line {
  text-align: center; color: var(--ink-soft); font-size: 14px; margin-bottom: 32px;
}
.catalog-list {
  columns: 3; column-gap: 40px;
  max-width: 1000px; margin: 0 auto;
  list-style: none; padding: 0;
}
.catalog-list li { margin-bottom: 10px; break-inside: avoid; }
.catalog-list li a {
  color: var(--ink-soft); font-size: 14px; text-decoration: none;
  border-bottom: 1px dotted var(--line); padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.catalog-list li a:hover { color: var(--accent); border-color: var(--accent); }
.catalog-note {
  text-align: center; margin-top: 28px;
  font-size: 13px; color: var(--accent); font-weight: 600;
}
@media (max-width: 768px) {
  .catalog-list { columns: 2; column-gap: 24px; }
  .static-catalog { padding: 48px 0; }
}
@media (max-width: 480px) {
  .catalog-list { columns: 1; }
}

@media (max-width: 768px) {
  .search-bar { padding: 16px 20px; }
  .search-results { padding: 8px 16px 20px; }
  .search-item-name { font-size: 15px; }
}
