:root {
  --bg: #061423;
  --bg-2: #0a1b2e;
  --panel: #0b2238;
  --panel-2: #0d2a43;
  --text: #f1f6fb;
  --muted: #9db1c4;
  --line: #193b59;
  --blue: #0da7f5;
  --blue-2: #0873db;
  --steel: #bfd2e0;
  --shadow: 0 24px 60px rgba(0, 0, 0, .24);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Vazirmatn", Tahoma, sans-serif; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }

.topline { background: #04101d; border-bottom: 1px solid #102b43; font-size: .77rem; color: var(--muted); }
.topline-inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topline i { color: var(--blue); margin-left: 5px; }
.topline-links { display: flex; gap: 19px; }
.topline a:hover { color: var(--text); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(4, 16, 29, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { min-height: 86px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.brand img { width: 47px; height: 47px; object-fit: cover; border-radius: 12px; border: 1px solid #385269; }
.brand-copy { display: grid; gap: 0; line-height: 1.3; }
.brand-copy strong { font-size: 1.24rem; letter-spacing: -.03em; }
.brand-copy small { color: var(--muted); font-size: .68rem; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 25px; flex: 1; font-weight: 600; font-size: .86rem; }
.main-nav a { color: #d3e0ea; position: relative; padding: 29px 0 26px; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; height: 3px; border-radius: 2px; background: var(--blue); inset-inline: 24%; bottom: 14px; transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .theme-toggle, .mobile-menu { border: 1px solid #244a68; color: var(--text); background: #081a2d; cursor: pointer; transition: .2s ease; }
.icon-button { width: 37px; height: 37px; border-radius: 50%; position: relative; }
.icon-button:hover, .theme-toggle:hover, .admin-link:hover, .mobile-menu:hover { border-color: var(--blue); color: var(--blue); }
.cart-button b { position: absolute; right: -5px; top: -8px; background: var(--blue); color: #04101d; border-radius: 999px; font-size: .62rem; min-width: 17px; height: 17px; line-height: 17px; }
.theme-toggle { display: flex; align-items: center; gap: 6px; border-radius: 999px; padding: 8px 12px; font-size: .76rem; }
.admin-link { display: flex; align-items: center; gap: 6px; border: 1px solid #244a68; border-radius: 999px; padding: 8px 12px; font-size: .77rem; }
.mobile-menu { display: none; width: 38px; height: 38px; border-radius: 9px; }
.mobile-nav { display: none; }

.hero { width: min(1400px, calc(100% - 32px)); min-height: 482px; margin: 0 auto; display: grid; grid-template-columns: 1.09fr .91fr; background: var(--bg-2); border-bottom: 1px solid #164569; }
.hero-media { min-height: 482px; position: relative; overflow: hidden; background: #07192a; }
.slide-image { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.slide-image.is-active { opacity: 1; }
.slide-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.06) brightness(.66); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(3, 17, 30, .22); pointer-events: none; }
.hero-media-label { position: absolute; bottom: 26px; left: 30px; z-index: 2; display: flex; align-items: center; gap: 9px; color: #dceaf4; font-size: .78rem; }
.hero-media-label i { color: var(--blue); font-size: 1.55rem; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 62px 58px 44px; border-inline-start: 1px solid #173b58; }
.eyebrow, .section-tag { color: var(--blue); font-weight: 700; font-size: .78rem; letter-spacing: .01em; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span, .section-tag::before { display: inline-block; width: 26px; height: 3px; background: var(--blue); border-radius: 3px; content: ""; }
.hero-slides { margin-top: 22px; min-height: 248px; position: relative; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(7px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.slide-kicker { color: #bad3e4; font-size: .91rem; margin: 0 0 8px; }
.hero h1 { margin: 0; font-size: clamp(2rem, 3.2vw, 3.35rem); line-height: 1.38; letter-spacing: -.055em; font-weight: 900; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-slide > p:not(.slide-kicker) { color: var(--muted); font-size: .88rem; max-width: 510px; margin: 13px 0 22px; }
.primary-cta, .secondary-cta, .add-cart { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.primary-cta { width: fit-content; min-height: 47px; padding: 0 22px; border-radius: 8px; color: white; background: var(--blue-2); box-shadow: 0 10px 25px rgba(0, 110, 205, .26); }
.primary-cta:hover, .secondary-cta:hover, .add-cart:hover { transform: translateY(-2px); background: #168de9; }
.hero-controls { display: flex; align-items: center; gap: 13px; margin-top: 12px; }
.hero-controls > button { border: 1px solid #315776; background: transparent; color: #dbeaf4; width: 31px; height: 31px; border-radius: 50%; cursor: pointer; }
.dots { display: flex; gap: 6px; direction: ltr; }
.dots button { width: 25px; height: 4px; padding: 0; border: 0; border-radius: 6px; background: #43617a; cursor: pointer; }
.dots button.is-active { width: 38px; background: var(--blue); }

.quick-areas { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); background: #081d31; border: 1px solid #1a5278; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.quick-area { padding: 24px 23px 19px; display: grid; gap: 7px; min-height: 188px; border-inline-start: 1px solid #1b4664; position: relative; transition: background .2s ease; }
.quick-area:first-child { border-inline-start: 0; }
.quick-area:hover { background: #0e2b45; }
.area-icon { color: var(--blue); font-size: 1.55rem; line-height: 1; }
.quick-area strong { font-size: 1.03rem; }
.quick-area small { color: var(--muted); font-size: .75rem; line-height: 1.9; }
.area-link { color: #d1e2ef; font-size: .76rem; margin-top: auto; display: flex; align-items: center; gap: 8px; }
.area-link i { color: var(--blue); }

.content-section, .shop-section { padding: 92px 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 25px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(1.45rem, 2.6vw, 2.15rem); letter-spacing: -.045em; }
.section-heading > a { color: #b5cde0; font-size: .8rem; display: flex; align-items: center; gap: 7px; }
.section-heading > a i { color: var(--blue); }
.editorial-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.editorial-card { min-width: 0; background: var(--panel); border: 1px solid #183c5b; border-radius: 14px; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.editorial-card:hover { transform: translateY(-4px); border-color: #2b77a7; }
.editorial-card > img { width: 100%; height: 195px; object-fit: cover; display: block; filter: saturate(.8) brightness(.82); }
.editorial-feature > img { height: 230px; }
.card-body { padding: 17px 19px 19px; }
.card-meta, .product-type { color: var(--blue); font-size: .72rem; font-weight: 700; }
.card-body h3 { font-size: 1.02rem; line-height: 1.65; margin: 7px 0; }
.editorial-feature h3 { font-size: 1.25rem; }
.card-body p { color: var(--muted); font-size: .77rem; margin: 0 0 10px; }
.card-body a { color: #d8e9f4; font-size: .77rem; display: inline-flex; align-items: center; gap: 7px; }
.card-body a i { color: var(--blue); }

.shop-section { margin-top: 92px; padding-bottom: 90px; background: #071a2b; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
.product-card { background: var(--panel); border: 1px solid #1a415f; border-radius: 14px; overflow: hidden; }
.product-image { height: 226px; position: relative; background: #0a2033; }
.product-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.76) brightness(.78); }
.product-image > span { position: absolute; right: 13px; top: 13px; background: var(--blue); color: #02111e; border-radius: 999px; padding: 3px 9px; font-size: .67rem; font-weight: 800; }
.product-image > span.muted-badge { background: #d8e4eb; color: #18344d; }
.product-image button { position: absolute; left: 13px; top: 12px; border: 1px solid #7190a4; background: rgba(5, 18, 31, .72); color: white; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.product-copy { padding: 17px 18px 19px; }
.product-copy h3 { margin: 5px 0 6px; font-size: 1.03rem; }
.rating { display: flex; gap: 2px; align-items: center; color: #ffca5c; font-size: .73rem; }
.rating small { color: var(--muted); margin-right: 8px; font-size: .69rem; }
.price { display: block; color: #edf5fa; margin: 14px 0; font-size: 1.12rem; }
.price small { color: var(--muted); font-size: .67rem; font-weight: 500; }
.add-cart { border: 1px solid #2b79a8; width: 100%; min-height: 41px; color: #d9f2ff; background: transparent; border-radius: 8px; font-size: .78rem; cursor: pointer; }

.service-banner { margin-top: 58px; margin-bottom: 95px; border: 1px solid #1d5b82; background: #0a243b; border-radius: 15px; padding: 28px 31px; display: flex; align-items: center; gap: 22px; }
.service-icon { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; color: var(--blue); border: 1px solid #276c95; font-size: 1.5rem; flex: 0 0 auto; }
.service-banner h2 { font-size: 1.3rem; margin: 2px 0 4px; }
.service-banner p { color: var(--muted); margin: 0; font-size: .79rem; }
.secondary-cta { margin-right: auto; white-space: nowrap; border: 1px solid #2b7eae; color: white; padding: 10px 16px; border-radius: 8px; font-size: .8rem; }

.site-footer { border-top: 1px solid #17405d; background: #03101d; }
.footer-top { display: grid; grid-template-columns: 1.35fr .8fr .9fr 1fr; gap: 45px; padding: 62px 0 48px; }
.footer-mark { display: flex; align-items: center; gap: 10px; }
.footer-mark img { width: 44px; height: 44px; object-fit: cover; border-radius: 9px; }
.footer-mark span { font-size: 2rem; font-weight: 900; letter-spacing: -.07em; }
.footer-brand p { color: var(--muted); font-size: .78rem; max-width: 310px; margin: 16px 0 18px; }
.socials { display: flex; gap: 9px; }
.socials a { width: 32px; height: 32px; border: 1px solid #2c5874; color: #b9d4e4; border-radius: 50%; display: grid; place-items: center; font-size: .83rem; }
.socials a:hover { border-color: var(--blue); color: var(--blue); }
.footer-col { display: grid; align-content: start; gap: 9px; }
.footer-col h3 { font-size: .9rem; margin: 4px 0 10px; color: #eaf3f8; }
.footer-col h3::before { content: ""; width: 22px; height: 3px; background: var(--blue); display: inline-block; vertical-align: middle; margin-left: 8px; border-radius: 2px; }
.footer-col a { color: var(--muted); font-size: .76rem; }
.footer-col a:hover { color: var(--text); }
.contact-col a { display: flex; align-items: center; gap: 7px; direction: rtl; }
.contact-col i { color: var(--blue); }
.footer-bottom { border-top: 1px solid #12334b; display: flex; justify-content: space-between; gap: 16px; padding: 17px 0 20px; color: #7e98aa; font-size: .68rem; }
.footer-bottom a { color: #c5d8e5; }

.toast { position: fixed; bottom: 22px; right: 22px; z-index: 30; background: #eaf8ff; color: #09243a; padding: 10px 16px; border-radius: 9px; font-size: .78rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

body.light { --bg: #eef4f8; --bg-2: #f8fbfd; --panel: #ffffff; --panel-2: #e9f1f6; --text: #10283e; --muted: #5a7185; --line: #cadbe5; --steel: #31526b; --shadow: 0 20px 50px rgba(28, 65, 89, .11); color-scheme: light; }
body.light .topline, body.light .site-header, body.light .site-footer { background: #071c30; color: #eef8ff; }
body.light .site-header { border-bottom-color: #123b5a; }
body.light .topline-links a, body.light .main-nav a, body.light .brand-copy small { color: #bfd1df; }
body.light .icon-button, body.light .theme-toggle, body.light .mobile-menu { background: #0c2942; color: #e7f3fa; }
body.light .quick-areas, body.light .shop-section { background: #e6f0f5; }
body.light .hero-copy { border-color: #d2e0e8; }
body.light .section-heading > a, body.light .card-body a, body.light .area-link { color: #31556e; }
body.light .footer-bottom { border-color: #17374e; }

@media (max-width: 1050px) {
  .wrap { width: min(100% - 42px, 920px); }
  .main-nav { gap: 14px; font-size: .78rem; }
  .brand { min-width: 185px; }
  .brand-copy small { display: none; }
  .header-actions .admin-link span, .theme-toggle span { display: none; }
  .theme-toggle { width: 37px; height: 37px; justify-content: center; padding: 0; }
  .hero-copy { padding-inline: 38px; }
  .footer-top { gap: 28px; }
}
@media (max-width: 780px) {
  .wrap { width: min(100% - 30px, 640px); }
  .topline-inner { justify-content: center; min-height: 31px; }
  .topline-links { display: none; }
  .header-inner { min-height: 72px; }
  .brand { min-width: 0; margin-left: auto; }
  .brand img { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 1.05rem; }
  .main-nav { display: none; }
  .mobile-menu { display: grid; place-items: center; }
  .mobile-nav { background: #071a2d; border-top: 1px solid #153b57; padding: 10px 15px 15px; grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav a { padding: 10px 12px; border: 1px solid #1a435f; border-radius: 8px; color: #cfe0eb; font-size: .78rem; }
  .hero { width: 100%; grid-template-columns: 1fr; }
  .hero-media { min-height: 290px; order: 1; }
  .hero-copy { min-height: 420px; order: 2; padding: 38px 22px 30px; border-inline-start: 0; border-top: 1px solid #173b58; }
  .hero-slides { min-height: 248px; }
  .hero h1 { font-size: 2.08rem; }
  .quick-areas { grid-template-columns: repeat(2, 1fr); margin-top: 15px; }
  .quick-area { min-height: 170px; padding: 18px 16px; border-bottom: 1px solid #1b4664; }
  .quick-area:nth-child(odd) { border-inline-start: 0; }
  .quick-area:nth-child(-n+2) { border-bottom: 1px solid #1b4664; }
  .content-section, .shop-section { padding-top: 68px; }
  .section-heading { align-items: start; flex-direction: column; }
  .editorial-grid, .product-grid { grid-template-columns: 1fr; }
  .editorial-feature > img, .editorial-card > img { height: 220px; }
  .shop-section { margin-top: 68px; }
  .service-banner { margin: 40px 0 64px; align-items: start; flex-wrap: wrap; padding: 22px; }
  .service-banner h2 { font-size: 1.08rem; }
  .secondary-cta { margin-right: 0; width: 100%; }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 35px 24px; padding: 48px 0 35px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}
@media (max-width: 420px) {
  .header-actions { gap: 4px; }
  .icon-button, .theme-toggle, .mobile-menu { width: 34px; height: 34px; }
  .quick-area strong { font-size: .9rem; }
  .quick-area small { font-size: .68rem; }
  .footer-top { grid-template-columns: 1fr; }
}

/* Shared inner-page shell: every CMS route keeps the same option-three visual language. */
.inner-page-wrap { min-height: 48vh; padding: 52px 0 86px; }
.inner-page-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 46px); box-shadow: var(--shadow); }
.inner-page-card .legacy-page-content { color: var(--text); }
.inner-page-card .legacy-page-content h1,
.inner-page-card .legacy-page-content h2,
.inner-page-card .legacy-page-content h3 { color: var(--text); }
.inner-page-card .legacy-page-content a { color: var(--blue); }
.inner-page-card .panel,
.inner-page-card .auth-panel,
.inner-page-card .stories article,
.inner-page-card .card,
.inner-page-card .cats a,
.inner-page-card dialog { background: var(--panel); color: var(--text); border-color: var(--line); }
.inner-page-card input,
.inner-page-card select,
.inner-page-card textarea { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.inner-page-card .panel button,
.inner-page-card .btn { background: var(--blue-2); color: #fff; }
.inner-page-card .panel button:hover,
.inner-page-card .btn:hover { background: var(--blue); color: #fff; }
.inner-page-card .row { margin: 0 0 24px; }
.inner-page-card .stories { gap: 18px; }
.inner-page-card .stories article { border-top: 3px solid var(--blue); border-radius: 13px; }
.inner-page-card .stories small { color: var(--blue); }
.inner-page-card .auth-shell { min-height: auto; padding: 0; }
.inner-page-card .auth-panel { box-shadow: none; margin-inline: auto; }
.inner-page-card .contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.inner-page-card .contact-links a { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; }
html[data-theme=dark] .inner-page-card .legacy-page-content,
html[data-theme=dark] .inner-page-card .legacy-page-content p { color: var(--text); }
@media (max-width: 780px) {
  .inner-page-wrap { padding: 28px 0 58px; }
  .inner-page-card { padding: 18px 15px; border-radius: 14px; }
}
