/* ==========================================================================
   Star Energy Oman – main stylesheet
   ========================================================================== */

/* ------------------------------- fonts ----------------------------------- */
@font-face {
  font-family: 'Varela Round';
  src: url('../assets/fonts/varela-round-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Varela Round';
  src: url('../assets/fonts/varela-round-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------- tokens ---------------------------------- */
:root {
  --navy: #1a237e;
  --navy-dark: #10145a;
  --navy-deep: #0b0f45;
  --orange: #ef6c00;
  --orange-dark: #d35f00;
  --ink: #2b2b33;
  --muted: #6b6b76;
  --bg: #ffffff;
  --bg-soft: #f4f5fa;
  --line: #e3e5ee;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(16, 20, 90, 0.08);
  --shadow-lg: 0 12px 40px rgba(16, 20, 90, 0.16);
  --radius: 14px;
  --font-head: 'Varela Round', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --container: 1200px;
  --header-h: 84px;
}

/* ------------------------------- base ------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--orange);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--orange);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  color: #fff;
}

.no-scroll {
  overflow: hidden;
}

#app {
  min-height: 60vh;
}
#app:focus {
  outline: none;
}

@keyframes pageLeave {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
#app.page-leave {
  animation: pageLeave 0.18s ease-in both;
  will-change: opacity, transform;
}
#app.page-enter {
  animation: pageEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: opacity, transform;
}

/* ------------------------------- buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.4px;
  color: #fff;
  background: var(--orange);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(239, 108, 0, 0.35);
}
.btn:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn--brand {
  background: var(--orange);
}
.btn--dark {
  background: var(--navy);
  box-shadow: 0 6px 18px rgba(26, 35, 126, 0.35);
}
.btn--dark:hover {
  background: var(--navy-dark);
}
.btn--light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.btn--light:hover {
  background: var(--bg-soft);
  color: var(--navy);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover {
  border-color: var(--navy);
  background: var(--bg-soft);
  color: var(--navy);
}
.btn--muted {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: none;
  cursor: default;
}
.btn--muted:hover {
  background: var(--bg-soft);
  color: var(--muted);
  transform: none;
}
.btn--round {
  border-radius: 999px;
}
.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}
.btn--block {
  width: 100%;
}

/* ------------------------------- topbar ---------------------------------- */
.topbar {
  background: var(--navy-deep);
  color: #cfd4ff;
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.topbar__socials {
  display: flex;
  gap: 4px;
  align-items: center;
}
.topbar__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #cfd4ff;
}
.topbar__socials a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.topbar__contact {
  display: flex;
  gap: 18px;
  align-items: center;
  white-space: nowrap;
}
.topbar__contact a {
  color: #cfd4ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar__contact a:hover {
  color: var(--orange);
}

/* ------------------------------- header ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 18px rgba(16, 20, 90, 0.12);
}
.header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
}
.brand img {
  width: 140px;
  height: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__li {
  position: relative;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 14px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 1.2px;
  color: var(--navy);
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--orange);
}
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--orange);
}
.nav__link--plain {
  cursor: default;
  color: var(--muted);
}
.nav__link--plain:hover {
  color: var(--muted);
}

/* mega menu */
.nav__drop {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 720px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.nav__li--drop:hover .nav__drop,
.nav__li--drop:focus-within .nav__drop {
  opacity: 1;
  visibility: visible;
}
.nav__mega {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 26px 18px;
  border-top: 3px solid var(--orange);
}
.nav__mega-col {
  min-width: 0;
}
.nav__mega-head {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--orange);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.nav__mega-col ul li a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--ink);
}
.nav__mega-col ul li a:hover {
  color: var(--orange);
  padding-left: 4px;
}

/* ------------------------------- drawer ---------------------------------- */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  z-index: 1500;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}
.drawer.is-open {
  transform: translateX(0);
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__head img {
  width: 160px;
}
.drawer__close {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 0;
  border-radius: 50%;
  color: var(--navy);
}
.drawer__close:hover {
  background: var(--orange);
  color: #fff;
}
.drawer__body {
  padding: 12px 16px 40px;
}
.drawer__menu > li {
  border-bottom: 1px solid var(--line);
}
.drawer__link,
.drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 8px;
  background: transparent;
  border: 0;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--navy);
  text-align: left;
}
.drawer__toggle svg {
  transition: transform 0.2s ease;
}
.drawer__group.is-open > .drawer__toggle svg {
  transform: rotate(90deg);
}
.drawer__link:hover,
.drawer__toggle:hover {
  color: var(--orange);
}
.drawer__link--plain {
  color: var(--muted);
  cursor: default;
}
.drawer__sub {
  display: none;
  padding: 0 0 8px 16px;
}
.drawer__group.is-open > .drawer__sub {
  display: block;
}
.drawer__sub .drawer__link,
.drawer__sub .drawer__toggle {
  padding: 9px 8px;
  font-size: 13.5px;
  letter-spacing: 0.5px;
}
.drawer__sub .drawer__sub {
  padding-left: 14px;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(11, 15, 69, 0.5);
}

/* ------------------------------- hero ------------------------------------ */
.hero {
  position: relative;
  height: clamp(480px, 62vh, 640px);
  overflow: hidden;
  background: var(--navy);
}
.hero__track {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 0;
}
.slide.is-active {
  opacity: 1;
  z-index: 1;
}
.slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 69, 0.55), rgba(11, 15, 69, 0.7));
}
.slide__contents {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.slide--left .slide__contents {
  justify-content: flex-start;
}
.slide__inner {
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
}
.slide--left .slide__inner {
  margin: 0;
  text-align: left;
}
.slide__heading {
  font-size: clamp(30px, 5vw, 58px);
  color: #fff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.3em;
}
.slide__desc {
  color: #e8eaff;
  font-size: clamp(15px, 2vw, 19px);
  margin-bottom: 1.6em;
}
.slide__btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  letter-spacing: 1px;
}
.slide__btn:hover {
  background: var(--orange-dark);
  color: #fff;
}
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}
.hero__arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
}
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero__dot.is-active {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.2);
}

/* ------------------------------- intro ----------------------------------- */
.intro {
  padding: 64px 0 30px;
  text-align: center;
}
.intro__title {
  font-size: clamp(26px, 3.4vw, 38px);
}
.intro__title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--orange);
  margin: 12px auto 0;
}
.intro__text {
  max-width: 860px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 16.5px;
}

/* ------------------------------- tabs ------------------------------------ */
.tabs-section {
  padding: 40px 0 70px;
}
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}
.tabs__tab {
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.8px;
  color: var(--navy);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tabs__tab:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.tabs__tab.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 108, 0, 0.35);
}
.tabs__panels {
  max-width: 980px;
  margin: 0 auto;
}
.tabs__panel {
  display: none;
  animation: fadeIn 0.4s ease;
}
.tabs__panel.is-active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tabs__panel-body {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 34px 40px;
}
.tabs__info {
  flex: 1;
}
.tabs__info h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.tabs__apps {
  color: var(--muted);
}
.tabs__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.tabs__img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

/* ------------------------------- about ----------------------------------- */
.about {
  background-image: linear-gradient(rgba(11, 15, 69, 0.78), rgba(11, 15, 69, 0.82)),
    url('../assets/img/slide-1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 90px 0;
}
.about__card {
  background: #fff;
  max-width: 520px;
  border-radius: var(--radius);
  padding: 38px 40px;
  box-shadow: var(--shadow-lg);
}
.about__title {
  font-size: 28px;
}
.about__title::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 4px;
  background: var(--orange);
  margin-top: 10px;
}
.about__text {
  color: var(--muted);
  margin: 16px 0 24px;
}

/* ------------------------------- markets --------------------------------- */
.markets {
  padding: 70px 0;
  text-align: center;
}
.markets__title {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 26px;
}
.markets__map {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.markets__map svg {
  width: 100%;
  height: auto;
  display: block;
}
.markets__map .country {
  fill: var(--navy);
  cursor: pointer;
  transition: fill 0.25s ease;
}
.markets__map .country:hover {
  fill: var(--orange);
}
.markets__text {
  color: var(--muted);
  max-width: 720px;
  margin: 20px auto 0;
}
.map-tip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -130%);
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-family: var(--font-head);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.map-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy);
  border-bottom: 0;
}
.map-tip.is-visible {
  opacity: 1;
}

/* ------------------------------- CTA ------------------------------------- */
.cta {
  position: relative;
  background: linear-gradient(120deg, var(--navy) 0%, #2a3bb8 100%);
  color: #fff;
  padding: 70px 0 80px;
  overflow: hidden;
}
.cta__wave {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  color: #fff;
}
.cta__wave svg {
  display: block;
  width: 100%;
  height: 60px;
}
.cta__inner {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 20px;
}
.cta__content {
  flex: 1;
}
.cta__kicker {
  color: #ffd9b3;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 10px;
}
.cta__title {
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 24px;
}
.cta__img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}

/* ---------------------------- page banner -------------------------------- */
.page-banner {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.56) 73%, transparent 97%);
  mix-blend-mode: multiply;
}
.page-banner__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}
.page-banner__content {
  max-width: 900px;
}
.page-banner__title {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.97);
  margin: 0;
}

/* ------------------------------- products page --------------------------- */
.pt-page {
  padding: 46px 0 80px;
  background: var(--bg-soft);
}
.pt-page__title {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 28px;
}
.pt-page__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: start;
}
.pt-cats {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 18px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.pt-cats h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.pt-cats ul li + li {
  border-top: 1px solid var(--bg-soft);
}
.pt-cats ul li a {
  display: block;
  padding: 9px 6px;
  font-size: 14px;
  color: var(--ink);
  border-left: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.pt-cats ul li a:hover,
.pt-cats ul li a.is-active {
  color: var(--orange);
  border-left-color: var(--orange);
}
.pt-main {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  min-width: 0;
}
.pt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.pt-search {
  position: relative;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
}
.pt-search svg {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}
.pt-search__input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  color: var(--ink);
  background: var(--bg-soft);
}
.pt-search__input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  background: #fff;
}
.pt-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.pt-filter select {
  padding: 11px 34px 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  background: var(--bg-soft);
  color: var(--ink);
}
.pt-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 14px;
}
.pt-table-wrap {
  overflow-x: auto;
}
.pt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.pt-table thead th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 0.6px;
  text-align: left;
  padding: 12px 16px;
}
.pt-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-soft);
}
.pt-table tbody tr:nth-child(even) {
  background: var(--bg-soft);
}
.pt-table tbody tr:hover {
  background: #fff3e6;
}
.pt-table__check {
  width: 44px;
  text-align: center;
}
.pt-table__check input {
  width: 17px;
  height: 17px;
  accent-color: var(--orange);
  cursor: pointer;
}
.pt-table__cat {
  color: var(--muted);
}
.pt-table__grade a {
  font-weight: 600;
  color: var(--navy);
}
.pt-table__grade a:hover {
  color: var(--orange);
}
.pt-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}
.pt-pager__btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 14px;
}
.pt-pager__btn:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}
.pt-pager__btn.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.pt-pager__btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.pt-pager__gap {
  color: var(--muted);
  padding: 0 2px;
}
.pt-msg {
  color: var(--orange);
  font-size: 14px;
  margin: 12px 0 0;
}

/* ------------------------------- product detail -------------------------- */
.pd-page {
  padding: 30px 0 80px;
  background: var(--bg-soft);
}
.breadcrumbs {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.pd-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}
.pd-gallery__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.pd-info {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 34px;
}
.pd-info__title {
  font-size: clamp(24px, 3vw, 34px);
}
.pd-info__sub {
  font-size: 17px;
  color: var(--orange);
  margin: 4px 0 16px;
}
.pd-specs {
  margin: 0 0 22px;
}
.pd-specs__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-soft);
}
.pd-specs__row dt {
  color: var(--muted);
}
.pd-specs__row dd {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
}
.pd-desc {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 34px;
  margin-top: 26px;
  color: var(--muted);
}
.pd-desc h2 {
  color: var(--navy);
}
.pd-related {
  margin-top: 46px;
}
.pd-related__title {
  font-size: 24px;
  margin-bottom: 20px;
}
.pd-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pcard {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding-bottom: 16px;
  text-align: center;
}
.pcard__img {
  display: block;
  background: #fff;
}
.pcard__img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.pcard__name {
  font-size: 15px;
  margin: 12px 10px 6px;
}
.pcard__name a {
  color: var(--navy);
}
.pcard__name a:hover {
  color: var(--orange);
}
.pcard__more {
  font-size: 13px;
  color: var(--orange);
  font-family: var(--font-head);
}

/* ------------------------------- contact --------------------------------- */
.contact-page {
  padding: 56px 0 80px;
  background: var(--bg-soft);
}
.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 34px;
}
.contact-info__title {
  font-size: 26px;
  margin-bottom: 20px;
}
.contact-info__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-soft);
}
.contact-info__list li:last-child {
  border-bottom: 0;
}
.ci__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--orange);
}
.ci__text {
  padding-top: 8px;
  color: var(--ink);
}
a.ci__text:hover {
  color: var(--orange);
}
.contact-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 34px;
}
.contact-form__title {
  font-size: 24px;
  margin-bottom: 18px;
}
.field {
  margin-bottom: 16px;
}
.field.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(239, 108, 0, 0.15);
  background: #fff;
}
.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}
.form-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: #d32f2f;
  min-height: 1.2em;
}
.form-note.is-ok {
  color: #2e7d32;
}

/* ------------------------------- 404 ------------------------------------- */
.nf-page {
  padding: 90px 0 110px;
  text-align: center;
  background: var(--bg-soft);
}
.nf-page__code {
  font-family: var(--font-head);
  font-size: clamp(90px, 16vw, 160px);
  line-height: 1;
  color: var(--orange);
  margin: 0;
}
.nf-page h1 {
  font-size: 30px;
}
.nf-page p {
  color: var(--muted);
  max-width: 420px;
  margin: 8px auto 24px;
}

/* ------------------------------- footer ---------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #c6cbff;
  font-size: 14.5px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 44px;
}
.footer__heading {
  color: #fff;
  font-size: 17px;
  margin-bottom: 18px;
}
.footer__logo {
  width: 200px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 18px;
}
.footer__about p {
  color: #c6cbff;
}
.footer__socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #c6cbff;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer__socials a:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-3px);
}
.footer__nav-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__nav-list a {
  display: block;
  padding: 7px 0;
  color: #c6cbff;
}
.footer__nav-list a:hover {
  color: var(--orange);
  padding-left: 4px;
}
.footer__contact li {
  padding: 6px 0;
}
.footer__contact a {
  color: #c6cbff;
}
.footer__contact a:hover {
  color: var(--orange);
}
.footer__news-text {
  color: #c6cbff;
}
.newsletter-form .field input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.newsletter-form .field input::placeholder {
  color: #aab0e8;
}
.newsletter-form .field input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--orange);
}
.newsletter-form .form-note {
  color: #ffd9b3;
}
.newsletter-form .form-note.is-ok {
  color: #9be29b;
}
.footer__bottom {
  background: rgba(0, 0, 0, 0.25);
  padding: 18px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #aab0e8;
  font-size: 13px;
}
.footer__bottom p {
  margin: 0;
}

/* ------------------------------- responsive ------------------------------ */
@media (max-width: 1100px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .pt-page__grid {
    grid-template-columns: 1fr;
  }
  .pt-cats {
    position: static;
  }
  .pd-grid {
    grid-template-columns: 1fr;
  }
  .pd-gallery__img {
    max-width: 420px;
  }
  .pd-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-page__grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }
  :root {
    --header-h: 68px;
  }
  .brand img {
    width: 120px;
  }
  .page-banner {
    min-height: 280px;
  }
  .page-banner__inner {
    padding: 36px 0;
  }
  .topbar__contact {
    display: none;
  }
  .topbar__inner {
    justify-content: center;
  }
  .hero {
    height: clamp(400px, 78vh, 520px);
  }
  .hero__arrow {
    width: 38px;
    height: 38px;
  }
  .hero__arrow--prev { left: 8px; }
  .hero__arrow--next { right: 8px; }
  .tabs__panel-body {
    flex-direction: column;
    padding: 24px 20px;
  }
  .tabs__img {
    width: 160px;
    height: 160px;
  }
  .about {
    background-attachment: scroll;
    padding: 60px 0;
  }
  .about__card {
    padding: 26px 24px;
  }
  .cta__img {
    width: 220px;
    height: 220px;
  }
  .pt-main {
    padding: 16px;
  }
  .pt-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .pt-table {
    font-size: 13px;
  }
  .pt-table thead th,
  .pt-table tbody td {
    padding: 10px 10px;
  }
  .pd-info {
    padding: 22px 20px;
  }
  .pd-desc {
    padding: 22px 20px;
  }
  .pd-related__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .pd-related__grid {
    grid-template-columns: 1fr;
  }
  .pt-pager__btn {
    min-width: 34px;
    height: 34px;
  }
}

/* ------------------------------- reduced motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .slide {
    opacity: 0;
  }
  .slide.is-active {
    opacity: 1;
  }
}
