/* ==========================================================================
   LONGYUAN GROUP - main stylesheet
   Three themed divisions (enzymes=green / hardware=blue / pettoys=warm)
   driven by CSS custom properties. Neutral corporate theme is the default.
   ========================================================================== */

/* ----------------------------------------------------------- design tokens */
:root {
  /* neutral corporate palette (home / group / contact pages) */
  --accent:       #1f3a5f;
  --accent-dark:  #14283f;
  --accent-soft:  #e7edf3;
  --accent-ink:   #1f3a5f;
  --art-bg:       #eef2f6;
  --art-white:    #ffffff;

  /* structural tokens */
  --bg:        #ffffff;
  --bg-alt:    #f6f8fa;
  --surface:   #ffffff;
  --border:    #e4e9ef;
  --border-2:  #d3dbe4;
  --text:      #1f2933;
  --text-soft: #56616c;
  --text-mute: #8a95a1;

  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 8px;

  --shadow-sm: 0 1px 2px rgba(20,40,63,.06), 0 2px 8px rgba(20,40,63,.05);
  --shadow-md: 0 6px 18px rgba(20,40,63,.09);
  --shadow-lg: 0 18px 44px rgba(20,40,63,.14);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
          "PingFang SC", "Microsoft YaHei", "Noto Sans Arabic", Tahoma, sans-serif;
  --t-fast: .16s ease;
  --t: .26s ease;
}

/* division themes ------------------------------------------------ */
[data-theme="enzymes"] {
  --accent: #1f9d5b; --accent-dark: #14713f; --accent-soft: #e4f4ea;
  --accent-ink: #14713f; --art-bg: #e8f6ee;
}
[data-theme="hardware"] {
  --accent: #2563b6; --accent-dark: #144a82; --accent-soft: #e6eef8;
  --accent-ink: #144a82; --art-bg: #eaf1f9;
}
[data-theme="pettoys"] {
  --accent: #e0742f; --accent-dark: #b5541c; --accent-soft: #fbeede;
  --accent-ink: #b5541c; --art-bg: #fcefe3;
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; color: var(--text); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------- utilities */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.container-wide { max-width: 1320px; }
.muted { color: var(--text-soft); }
.center { text-align: center; }
.right { text-align: end; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ------------------------------------------------------------- topbar */
.topbar {
  background: var(--accent-dark);
  color: #dfe7f0;
  font-size: 13.5px;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px; flex-wrap: wrap;
}
.topbar a { color: #eaf1f8; }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; opacity: .92; }
.topbar-info svg { width: 15px; height: 15px; fill: currentColor; opacity: .8; }

/* ------------------------------------------------------------- header/nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  min-height: 70px;
}
.brand { display: flex; align-items: center; gap: 13px; margin-inline-end: auto; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(150deg, var(--accent), var(--accent-dark));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 19px; letter-spacing: .5px;
  box-shadow: var(--shadow-sm);
}
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px;
  box-shadow: var(--shadow-sm); flex: 0 0 auto; display: block;
  background: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-group { font-weight: 800; font-size: 17px; color: var(--text); letter-spacing: .4px; }
.brand-company { font-size: 11.5px; color: var(--text-mute); }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 10px;
  color: var(--text-soft); font-weight: 600; font-size: 14.5px;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link:hover { background: var(--bg-alt); color: var(--accent); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: var(--accent-soft); }
.btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ------------------------------------------------------------- section */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-kicker {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.3px; }
.section-lead { color: var(--text-soft); font-size: 16.5px; }

/* ------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(160deg, #ffffff, var(--bg-alt));
  padding: 86px 0 72px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-inner:has(.hero-art-wide) { grid-template-columns: 1fr; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 700; font-size: 13.5px; padding: 7px 15px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero-title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.6px; }
.hero-lead { font-size: 18px; color: var(--text-soft); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow-lg); }
.hero-art-wide { width: 100%; }
.hero-art-wide .hero-badges { max-width: 760px; margin: 0 auto; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hero-art-wide .hero-badge svg { height: 190px; }
.hero-scroll {
  position: absolute; inset-inline-start: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: 12.5px; color: var(--text-mute); display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}

/* ------------------------------------------------------------- modules */
.mod-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.mod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mod-art { position: relative; padding: 26px 26px 0; }
.mod-art svg { width: 100%; height: 168px; border-radius: 14px; }
.mod-body { padding: 20px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mod-tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; color: #fff; padding: 4px 11px; border-radius: 999px;
}
.mod-enzymes .mod-tag { background: #1f9d5b; }
.mod-hardware .mod-tag { background: #2563b6; }
.mod-pettoys .mod-tag { background: #e0742f; }
.mod-title { font-size: 21px; font-weight: 800; }
.mod-desc { color: var(--text-soft); font-size: 15px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* hero badges (home) */
.hero-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-badge { background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.hero-badge svg { width: 100%; height: 150px; border-radius: 12px; }
[dir="rtl"] .hero-badges .hero-badge:nth-child(1) { order: 3; }
.mod-enter {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent);
  margin-top: 4px;
}
.mod-enter svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.mod-card:hover .mod-enter svg { transform: translateX(4px); }
[dir="rtl"] .mod-card:hover .mod-enter svg { transform: translateX(-4px); }

/* module accent stripe */
.mod-enzymes { border-top: 4px solid #1f9d5b; }
.mod-hardware { border-top: 4px solid #2563b6; }
.mod-pettoys { border-top: 4px solid #e0742f; }

/* ------------------------------------------------------------- stats */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  text-align: center; padding: 26px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
}
.stat-num { font-size: 38px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { color: var(--text-soft); font-size: 14px; margin-top: 8px; }

/* ------------------------------------------------------------- features */
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 13px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 14px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-title { font-size: 17px; font-weight: 800; }
.feature-text { color: var(--text-soft); font-size: 14.5px; margin: 0; }

/* ------------------------------------------------------------- cards (generic) */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm);
}
.card-body { padding: 20px; }
.card-title { font-size: 17px; font-weight: 800; }

/* ------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .3px;
}
.badge-featured { background: var(--accent-soft); color: var(--accent-ink); }
.badge-hot { background: #fde7e7; color: #c0392b; }
.badge-new { background: #fff2dc; color: #b5770a; }

/* chip / pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; background: var(--bg-alt); color: var(--text-soft);
  border: 1px solid var(--border);
}
.pill-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ------------------------------------------------------------- product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.product-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.product-art { position: relative; background: var(--art-bg); padding: 14px; }
.product-art svg { width: 100%; height: 180px; border-radius: 12px; }
.product-flags { position: absolute; inset-block-start: 22px; inset-inline-start: 22px; display: flex; gap: 6px; flex-wrap: wrap; }
.product-info { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; }
.product-name { font-size: 16.5px; font-weight: 800; line-height: 1.3; }
.product-summary { color: var(--text-soft); font-size: 14px; flex: 1; }
.product-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-mute); flex-wrap: wrap; }
.product-meta b { color: var(--text-soft); font-weight: 700; }
.product-actions { display: flex; gap: 8px; margin-top: 4px; }
.product-actions .btn { flex: 1; }

/* ------------------------------------------------------------- filter bar */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.search-input {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 0 12px;
}
.search-input svg { width: 17px; height: 17px; fill: var(--text-mute); }
.search-input input { flex: 1; border: 0; background: transparent; padding: 11px 0; font-size: 14.5px; outline: none; color: var(--text); }
.select {
  appearance: none; border: 1px solid var(--border); background: var(--surface);
  padding: 11px 34px 11px 14px; border-radius: 10px; font-size: 14.5px; color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a95a1' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------- product detail */
.pd-layout { display: grid; grid-template-columns: 400px 1fr; gap: 40px; align-items: start; }
.pd-gallery { position: sticky; top: 92px; }
.pd-gallery .art {
  width: 100%; height: auto; background: var(--art-bg); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 22px; box-shadow: var(--shadow-sm);
}
.pd-title { font-size: 30px; font-weight: 800; letter-spacing: -.3px; }
.pd-sub { color: var(--text-soft); font-size: 16px; margin-bottom: 18px; }
.pd-flags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-section { margin-top: 30px; }
.pd-section h3 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.pd-section h3::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--accent); }
.pd-features li {
  position: relative; padding-inline-start: 26px; margin-bottom: 9px; color: var(--text-soft);
}
.pd-features li::before {
  content: ""; position: absolute; inset-inline-start: 4px; inset-block-start: 9px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: start; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.spec-table tr:nth-child(even) { background: var(--bg-alt); }
.spec-table th { width: 42%; color: var(--text-soft); font-weight: 600; }
.spec-table td { font-weight: 600; }
.pd-trade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.trade-item {
  background: var(--accent-soft); border-radius: var(--radius-sm); padding: 14px 16px;
}
.trade-item .k { font-size: 12.5px; color: var(--accent-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.trade-item .v { font-weight: 700; margin-top: 3px; }

/* ------------------------------------------------------------- CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; border-radius: var(--radius); padding: 46px;
  text-align: center; box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin-inline: auto; }
.cta-band .btn-light { background: #fff; color: var(--accent-dark); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ------------------------------------------------------------- division intro */
.div-hero {
  background: linear-gradient(160deg, var(--accent), var(--accent-dark));
  color: #fff; padding: 60px 0;
}
.div-hero .container { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.div-hero-art { width: 220px; }
.div-hero-art svg { width: 100%; height: auto; border-radius: 18px; background: rgba(255,255,255,.1); }
.div-tag { display: inline-block; background: rgba(255,255,255,.18); padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.div-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.div-hero p { color: rgba(255,255,255,.92); font-size: 16.5px; max-width: 620px; }

/* application / category chips */
.chip-row { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 17px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-sm);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* ------------------------------------------------------------- forms */
.form { max-width: 760px; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field.col-2 { grid-column: span 2; }
.label { font-weight: 700; font-size: 14px; }
.label .opt { color: var(--text-mute); font-weight: 500; font-size: 12.5px; margin-inline-start: 6px; }
.input, .textarea, .select.full {
  width: 100%; border: 1px solid var(--border-2); border-radius: 10px;
  padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--text);
  background: var(--surface); outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .textarea:focus, .select.full:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { resize: vertical; min-height: 120px; }
.field-error { color: #c0392b; font-size: 13px; font-weight: 600; }
.form-note { background: #eafaf0; border: 1px solid #b8e6c8; color: #1c7a3e; padding: 14px 16px; border-radius: 10px; font-weight: 600; }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: 0; }
.info-ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.info-ic svg { width: 20px; height: 20px; }
.info-k { font-size: 12.5px; color: var(--text-mute); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.info-v { font-weight: 600; }
.steps { counter-reset: step; }
.steps li { position: relative; padding-inline-start: 44px; margin-bottom: 18px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; inset-block-start: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.steps b { display: block; }

/* ------------------------------------------------------------- language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.12);
  color: #eaf1f8; border: 1px solid rgba(255,255,255,.18); border-radius: 9px;
  padding: 6px 11px; font-size: 13.5px; font-weight: 700;
}
.lang-btn svg { width: 14px; height: 14px; fill: currentColor; }
.lang-options {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 7px; min-width: 168px; z-index: 60;
}
.lang-options a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 8px; color: var(--text-soft); font-weight: 600; font-size: 14px;
}
.lang-options a:hover { background: var(--bg-alt); color: var(--accent); }
.lang-options a.active { background: var(--accent-soft); color: var(--accent-ink); }
.lang-check { color: var(--accent); opacity: 0; }
.lang-options a.active .lang-check { opacity: 1; }
/* in-page (header) variant */
.nav-actions .lang .lang-btn { background: var(--bg-alt); color: var(--text-soft); border-color: var(--border); }
.nav-actions .lang .lang-btn:hover { color: var(--accent); }

/* ------------------------------------------------------------- breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-mute); padding: 18px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }

/* ------------------------------------------------------------- footer */
.site-footer { background: var(--accent-dark); color: #cdd8e4; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 54px 0 34px; }
.footer-brand .brand-group { color: #fff; }
.footer-brand p { color: #aebccb; font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; color: #b9c6d4; font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #9fb0c0; }
.footer-bottom a { color: #b9c6d4; }
.back-top {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1);
  color: #fff; padding: 7px 13px; border-radius: 8px; font-weight: 600;
}
.back-top:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ------------------------------------------------------------- cart drawer */
.cart-toggle {
  position: fixed; inset-block-end: 26px; inset-inline-end: 26px; z-index: 70;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 13px 20px; font-weight: 700; box-shadow: var(--shadow-lg);
}
.cart-toggle svg { width: 19px; height: 19px; fill: #fff; }
.cart-count {
  background: #fff; color: var(--accent); border-radius: 999px;
  min-width: 22px; height: 22px; display: inline-grid; place-items: center;
  font-size: 12.5px; font-weight: 800; padding: 0 6px;
}
.cart-overlay {
  position: fixed; inset: 0; background: rgba(20,40,63,.45); z-index: 80;
  opacity: 0; pointer-events: none; transition: opacity var(--t);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; width: min(420px, 92vw); z-index: 90;
  background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform var(--t);
  display: flex; flex-direction: column;
}
[dir="rtl"] .cart-drawer { transform: translateX(-100%); inset-inline-start: 0; inset-inline-end: auto; }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.cart-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.cart-close { background: var(--bg-alt); border: 0; width: 34px; height: 34px; border-radius: 9px; font-size: 18px; color: var(--text-soft); }
.cart-list { flex: 1; overflow-y: auto; padding: 14px 22px; }
.cart-empty { text-align: center; color: var(--text-mute); padding: 50px 10px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item .thumb { width: 56px; height: 56px; border-radius: 9px; background: var(--art-bg); flex: none; overflow: hidden; }
.cart-item .thumb svg { width: 100%; height: 100%; }
.cart-item .ci-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.cart-item .ci-meta { font-size: 12.5px; color: var(--text-mute); }
.cart-item .ci-remove { margin-inline-start: auto; background: none; border: 0; color: #c0392b; font-size: 13px; font-weight: 600; }
.cart-foot { border-top: 1px solid var(--border); padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------------------------------------- admin */
.admin-wrap { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.admin-side { background: var(--accent-dark); color: #cdd8e4; padding: 22px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; color: #fff; font-weight: 800; }
.admin-brand .brand-mark { background: rgba(255,255,255,.16); }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 9px; color: #b9c6d4; font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav a svg { width: 18px; height: 18px; fill: currentColor; }
.admin-main { padding: 26px 30px; background: var(--bg-alt); overflow-y: auto; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-title { font-size: 23px; font-weight: 800; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.metric { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow-sm); }
.metric .n { font-size: 30px; font-weight: 800; color: var(--accent); }
.metric .l { color: var(--text-soft); font-size: 13.5px; }

.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
.table th, .table td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table thead th { background: var(--bg-alt); color: var(--text-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
.table tbody tr:hover { background: var(--bg-alt); }
.thumbsm { width: 46px; height: 46px; border-radius: 8px; background: var(--art-bg); overflow: hidden; }
.thumbsm svg { width: 100%; height: 100%; }
.row-actions { display: flex; gap: 7px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--text-soft); }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.danger:hover { border-color: #c0392b; color: #c0392b; }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--accent), var(--accent-dark)); padding: 20px; }
.login-box { background: var(--surface); border-radius: var(--radius); padding: 38px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-box .brand { justify-content: center; margin-bottom: 6px; }
.login-box h2 { text-align: center; font-size: 22px; }
.login-box .sub { text-align: center; color: var(--text-mute); margin-bottom: 22px; }
.login-error { background: #fdeaea; color: #c0392b; padding: 10px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(20,40,63,.5); z-index: 100; display: grid; place-items: center; padding: 18px; opacity: 0; pointer-events: none; transition: opacity var(--t); }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.modal-head h3 { margin: 0; font-size: 19px; font-weight: 800; }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--border); }

/* ------------------------------------------------------------- notice */
.notice { padding: 13px 16px; border-radius: 10px; font-size: 14px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text-soft); }
.notice.warn { background: #fff7e6; border-color: #ffe1a8; color: #9a6b00; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; }
  .pd-layout { grid-template-columns: 320px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-list, .nav-actions .lang { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--text); position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav-list.open {
    display: flex; flex-direction: column; position: absolute; inset-inline: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px; box-shadow: var(--shadow-md);
  }
  .nav-list.open .nav-link { width: 100%; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-gallery { position: static; max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; }
  .div-hero .container { grid-template-columns: 1fr; }
  .div-hero-art { max-width: 180px; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-nav { display: flex; gap: 6px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .section { padding: 46px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .col-2 { grid-column: auto; }
  .cta-band { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-info { gap: 14px; font-size: 12.5px; }
  .pd-trade { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- RTL tweaks */
[dir="rtl"] .hero-scroll { transform: translateX(50%); }
[dir="rtl"] .breadcrumb .sep { transform: scaleX(-1); }
[dir="rtl"] .feature-title::before { margin-inline-end: 0; }
