/* The Eliasons — Digital Products
   Palette matched to AliThemes Ecom demo (index-7) */
:root {
  --brand-1: #0BA9ED;
  --brand-2: #FD9636;
  --brand-3: #425A8B;
  --navy: #0E224D;
  --green: #5BC694;
  --red: #F53658;
  --muted: #8C9EC5;
  --line: #D5DFE4;
  --line-2: #DDE4F0;
  --bg: #F0F3F8;
  --bg-peach: #FFF3EA;
  --white: #ffffff;
  --dark-banner: #0E224D;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(14, 34, 77, 0.08);
  --container: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--brand-3);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-3); text-decoration: none; transition: .2s; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4, h5, h6 {
  font-family: "Kanit", "DM Sans", sans-serif;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
}
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; }
.container {
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
}
.section { padding: 48px 0; }
.section-sm { padding: 28px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 6px;
  padding: 12px 22px;
  transition: .2s;
  line-height: 1;
}
.btn-orange { background: var(--brand-2); color: #fff; }
.btn-orange:hover { background: #e6821e; color: #fff; }
.btn-cyan { background: var(--brand-1); color: #fff; }
.btn-cyan:hover { background: #0995d2; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--brand-3); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { color: #fff; filter: brightness(.95); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--brand-3);
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-full { width: 100%; }

/* Header */
.header-top {
  background: var(--brand-3);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.header-top a { color: #DDE4F0; }
.header-top a:hover { color: #fff; }
.header-top-right { display: flex; gap: 18px; align-items: center; }
.header-top select {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 13px;
}
.header-top option { color: var(--navy); }

.main-header {
  background: #fff;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.main-header-inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img.mark { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.brand .wordmark { display: flex; flex-direction: column; }
.brand .wordmark strong {
  font-family: "Kanit", sans-serif;
  font-size: 20px;
  color: var(--navy);
  line-height: 1;
}
.brand .wordmark span {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--brand-1);
  font-weight: 700;
  margin-top: 4px;
}

.search-box {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.search-box select {
  border: 0;
  border-right: 1px solid var(--line-2);
  padding: 0 12px;
  min-width: 140px;
  color: var(--brand-3);
  background: #fff;
}
.search-box input {
  flex: 1;
  border: 0;
  padding: 12px 14px;
  outline: none;
  min-width: 0;
}
.search-box button {
  background: var(--brand-2);
  color: #fff;
  border: 0;
  padding: 0 18px;
  cursor: pointer;
}
.search-box button:hover { background: #e6821e; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-3);
  position: relative;
  font-size: 14px;
}
.action-item i { font-size: 22px; color: var(--navy); }
.action-item:hover, .action-item:hover i { color: var(--brand-1); }
.badge-count {
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--brand-2);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-bottom { padding: 10px 0 16px; }
.nav-orange {
  background: var(--brand-2);
  border-radius: 4px;
  border-bottom: 2px solid #D36B0B;
  display: flex;
  align-items: center;
  padding: 0 8px 0 0;
  min-height: 54px;
}
.btn-cats {
  background: transparent;
  color: #fff;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.4);
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding-left: 10px;
  flex-wrap: wrap;
}
.main-nav a {
  color: #fff !important;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { color: #3AA1FF !important; }
.nav-cta {
  margin-left: auto;
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cats-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 260px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  z-index: 40;
  padding: 10px 0;
}
.cats-dropdown a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  color: var(--brand-3) !important;
  font-weight: 500;
}
.cats-dropdown a:hover { background: var(--bg); color: var(--brand-2) !important; }
.btn-cats.open .cats-dropdown { display: block; }

.burger {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 26px;
  margin-left: auto;
  cursor: pointer;
}

/* Hero */
.hero { padding: 20px 0 10px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
}
.hero-main, .hero-side-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  min-height: 240px;
  background: #E8FCFF;
}
.hero-main { min-height: 500px; background: #DCF4E0; }
.hero-sides { display: grid; gap: 16px; }
.hero-side-card:first-child { background: #FFF3EA; }
.hero-side-card:last-child { background: #DFE7FD; }
.hero-main img, .hero-side-card img {
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  right: 0;
}
.hero-main::after, .hero-side-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-main::after {
  background: linear-gradient(90deg, #E7F6EA 0%, #E7F6EA 46%, rgba(231,246,234,.82) 62%, rgba(231,246,234,0) 82%);
}
.hero-side-card:first-child::after {
  background: linear-gradient(90deg, #FFF3EA 0%, #FFF3EA 48%, rgba(255,243,234,.8) 64%, rgba(255,243,234,0) 86%);
}
.hero-side-card:last-child::after {
  background: linear-gradient(90deg, #E4ECFB 0%, #E4ECFB 48%, rgba(228,236,251,.8) 64%, rgba(228,236,251,0) 86%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 48px 40px;
  max-width: 520px;
}
.hero-main .hero-copy { padding-top: 90px; }
.hero-kicker {
  color: var(--brand-1);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.hero-copy h2, .hero-copy h3 { color: var(--navy); text-shadow: none; }
.hero-copy h2 { font-size: 42px; margin: 8px 0 12px; }
.hero-side-card .hero-copy { padding: 28px; max-width: 270px; }
.hero-side-card h3 { font-size: 22px; }
.hero-copy p { color: var(--brand-3); }

/* Home strip under hero */
.home-strip {
  background: #F0F3F8;
  margin-top: 28px;
  padding: 42px 0 48px;
  position: relative;
}
.home-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 8% 20%, rgba(11,169,237,.12), transparent 60%),
    radial-gradient(ellipse 40% 70% at 92% 80%, rgba(253,150,54,.12), transparent 60%);
  pointer-events: none;
}
.home-strip .container { position: relative; z-index: 1; }
.strip-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.strip-intro .hero-kicker { margin-bottom: 8px; }
.strip-intro h3 { font-size: 28px; margin-bottom: 8px; }
.strip-intro p { color: var(--brand-3); margin: 0; }
.brands-panel {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 8px 22px;
  margin-bottom: 36px;
}
.home-strip .brands-row {
  padding: 10px 0;
  opacity: 1;
}
.home-strip .brand-chip { color: var(--brand-3); }
.home-strip .cat-circle .icon {
  background: #fff;
  box-shadow: 0 6px 16px rgba(14, 34, 77, 0.06);
}

/* Brands */
.brands-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 0 8px;
  opacity: .72;
}
.brand-chip {
  font-family: "Kanit", sans-serif;
  font-size: 18px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .3px;
}

/* Categories */
.cat-circles {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  text-align: center;
}
.cat-circle a { display: block; color: var(--navy); }
.cat-circle .icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--brand-1);
  border: 1px solid var(--line-2);
  transition: .2s;
}
.cat-circle a:hover .icon {
  background: var(--brand-2);
  color: #fff;
  border-color: var(--brand-2);
}
.cat-circle span { font-size: 13px; font-weight: 600; }

/* Deal */
.deal-wrap {
  background: var(--bg-peach);
  border-radius: 12px;
  padding: 28px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-head h3 { margin: 0; font-size: 28px; display: flex; align-items: center; gap: 8px; }
.section-head .sub { color: var(--muted); font-size: 14px; }
.view-all { color: var(--brand-1); font-weight: 700; font-size: 14px; }
.countdown {
  display: flex;
  gap: 8px;
  align-items: center;
}
.countdown .box {
  background: #fff;
  border-radius: 6px;
  min-width: 54px;
  text-align: center;
  padding: 8px 6px;
  box-shadow: 0 2px 8px rgba(14,34,77,.06);
}
.countdown .box b { display: block; color: var(--brand-2); font-size: 18px; }
.countdown .box small { color: var(--muted); font-size: 11px; }

.product-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Product card */
.product-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  transition: .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card .thumb {
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 12px;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 20px;
  padding: 4px 9px;
  z-index: 2;
}
.badge.sale { background: var(--brand-2); }
.badge.hot { background: var(--red); }
.badge.new { background: var(--green); }
.card-cat { font-size: 12px; color: var(--brand-1); font-weight: 600; }
.product-card h4 { font-size: 15px; margin: 4px 0 6px; min-height: 40px; }
.product-card h4 a { color: var(--navy); }
.stars { color: var(--brand-2); font-size: 13px; letter-spacing: 1px; }
.stars span { color: var(--muted); font-size: 12px; margin-left: 4px; }
.price { margin: 8px 0; display: flex; gap: 8px; align-items: baseline; }
.price .now { color: var(--green); font-weight: 800; font-size: 18px; }
.price .old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.sold-bar { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.bar {
  height: 6px;
  background: var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin: 6px 0 8px;
}
.bar i { display: block; height: 100%; background: var(--brand-2); border-radius: 20px; }
.card-actions { margin-top: auto; display: flex; gap: 8px; }
.wish-btn, .cmp-btn {
  width: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  color: var(--brand-3);
}
.wish-btn.active { color: var(--red); border-color: var(--red); }

/* Promo 3 */
.promo-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.promo-card {
  border-radius: 10px;
  min-height: 210px;
  position: relative;
  overflow: hidden;
  padding: 28px;
}
.promo-card img {
  position: absolute;
  right: 0; bottom: 0;
  width: 52%;
  height: 100%;
  object-fit: cover;
}
.promo-card .copy { position: relative; z-index: 2; max-width: 55%; }
.promo-card h3 { font-size: 22px; }
.bg-blue { background: #D1ECFD; }
.bg-pink { background: #FFF2F3; }
.bg-yellow { background: #FFF5DB; }
.bg-mint { background: #DBECE5; }
.bg-lilac { background: #DDD3FA; }

/* Split product section */
.split-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}
.side-cats {
  background: var(--bg);
  border-radius: 10px;
  padding: 18px;
}
.side-cats h4 { font-size: 18px; margin-bottom: 12px; }
.side-cats a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.product-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-features { font-size: 12px; color: var(--muted); margin: 6px 0 10px; }
.product-features li { padding-left: 12px; position: relative; margin-bottom: 3px; }
.product-features li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--brand-1);
  border-radius: 50%;
  position: absolute;
  left: 0; top: 7px;
}

.wide-banner {
  border-radius: 10px;
  overflow: hidden;
  min-height: 220px;
  position: relative;
  display: flex;
  align-items: center;
}
.wide-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wide-banner .copy {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 520px;
}
.wide-banner.dark .copy, .wide-banner.dark h3, .wide-banner.dark p { color: #fff; }
.wide-banner.dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,34,77,.82), rgba(14,34,77,.2));
}

/* Blog preview */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.blog-card { }
.blog-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; }
.blog-card .meta { font-size: 12px; color: var(--muted); margin: 10px 0 6px; }
.blog-card h4 { font-size: 16px; }
.tag {
  display: inline-block;
  background: #E8FCFF;
  color: var(--brand-1);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Features */
.features-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.feature {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}
.feature:last-child { border-right: 0; }
.feature i { font-size: 28px; color: var(--brand-1); }
.feature h5 { margin: 0; font-size: 15px; }
.feature p { margin: 0; font-size: 12px; color: var(--muted); }

/* Newsletter */
.newsletter {
  background: var(--navy);
  color: #fff;
  padding: 42px 0;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: 24px;
  align-items: center;
}
.newsletter h3 { color: #fff; font-size: 32px; }
.newsletter h3 em { color: var(--brand-2); font-style: normal; }
.newsletter p { color: #B2C2E1; }
.news-form { display: flex; background: #fff; border-radius: 8px; overflow: hidden; }
.news-form input { flex: 1; border: 0; padding: 14px 16px; outline: none; }
.news-form button { border: 0; background: var(--brand-2); color: #fff; padding: 0 22px; font-weight: 700; cursor: pointer; }
.newsletter-img { max-height: 160px; margin-left: auto; border-radius: 8px; object-fit: cover; }

/* Footer */
.site-footer { background: #F8FAFF; padding: 48px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-grid h4 { font-size: 18px; margin-bottom: 16px; }
.footer-grid p { font-size: 14px; color: var(--brand-3); }
.footer-grid a { display: block; padding: 5px 0; font-size: 14px; color: var(--brand-3); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.socials a:hover { background: var(--brand-2); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--brand-3); font-weight: 600; }

/* Page hero / breadcrumb */
.page-head {
  background: var(--bg);
  padding: 22px 0;
  border-bottom: 1px solid var(--line-2);
}
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--brand-3); }
.breadcrumb span { color: var(--brand-1); }

/* Shop */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 28px 0 48px;
}
.shop-banner {
  border-radius: 10px;
  overflow: hidden;
  min-height: 180px;
  position: relative;
  margin-bottom: 18px;
}
.shop-banner img { width: 100%; height: 180px; object-fit: cover; }
.shop-banner .copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 28px;
  background: linear-gradient(90deg, rgba(14,34,77,.7), transparent);
  color: #fff;
}
.shop-banner h3 { color: #fff; }
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
}
.toolbar select { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.filter-box {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}
.filter-box h5 { font-size: 16px; margin-bottom: 12px; }
.filter-box label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  padding: 6px 0;
  cursor: pointer;
}
.filter-box input[type="range"] { width: 100%; accent-color: var(--brand-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a, .tags button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}
.side-banner { border-radius: 10px; overflow: hidden; position: relative; }
.side-banner img { width: 100%; height: 280px; object-fit: cover; }
.side-banner .copy {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  color: #fff;
}
.side-banner h4 { color: #fff; }
.mini-prod {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.mini-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.mini-prod h6 { font-size: 13px; margin: 0 0 4px; }
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.pagination .active { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }

/* Product details */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 36px 0;
}
.pd-gallery img { width: 100%; border-radius: 12px; max-height: 460px; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs img {
  width: 80px; height: 80px; object-fit: cover; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer;
}
.pd-thumbs img.active { border-color: var(--brand-2); }
.pd-info .cat { color: var(--brand-1); font-weight: 700; }
.pd-info h1 { font-size: 32px; }
.qty-row { display: flex; gap: 10px; align-items: center; margin: 16px 0; }
.qty-row input { width: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-top: 28px; }
.tabs button {
  background: none; border: 0; padding: 12px 16px; font-weight: 700;
  color: var(--brand-3); cursor: pointer; border-bottom: 2px solid transparent;
}
.tabs button.active { color: var(--brand-2); border-bottom-color: var(--brand-2); }
.tab-panel { padding: 22px 0; display: none; }
.tab-panel.active { display: block; }
.rich-content h3 { margin-top: 22px; }
.rich-content p { max-width: 900px; }
.rich-content ul { list-style: disc; padding-left: 20px; margin: 0 0 16px; }
.rich-content li { margin: 6px 0; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}
.about-grid img { width: 100%; border-radius: 12px; height: 420px; object-fit: cover; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.check-grid li { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; color: var(--navy); }
.check-grid i { color: var(--brand-1); }
.stats {
  background: var(--bg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 40px 0;
}
.stat { text-align: center; padding: 10px; }
.stat b { display: block; font-size: 36px; color: var(--navy); font-family: Kanit, sans-serif; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.team-card img { width: 100%; height: 280px; object-fit: cover; border-radius: 10px; }
.team-card h5 { margin: 10px 0 2px; }
.team-card span { color: var(--brand-1); font-size: 13px; }
.partner-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  text-align: center;
}
.partner {
  background: var(--bg);
  border-radius: 8px;
  padding: 22px 8px;
  color: var(--muted);
  font-family: Kanit, sans-serif;
  font-weight: 700;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 40px 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #F8FAFF;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group .error { color: var(--red); font-size: 12px; display: none; margin-top: 4px; }
.form-group.invalid input, .form-group.invalid textarea, .form-group.invalid select {
  border-color: var(--red);
  background: #FFF4F6;
}
.form-group.invalid .error { display: block; }
.map-box {
  height: 100%;
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 28px;
}
.contact-ways {
  background: var(--bg);
  padding: 40px 0;
}
.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.way { background: #fff; border-radius: 10px; padding: 24px; }
.way i { font-size: 32px; color: var(--brand-1); }

/* Blog page */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 32px 0 48px;
}
.featured-blog {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
}
.featured-blog img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.featured-blog .copy { padding: 28px 24px 28px 0; }
.posts-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.posts-3 .blog-card img { height: 180px; }

/* Legal */
.legal { padding: 40px 0 60px; max-width: 920px; }
.legal h1 { font-size: 36px; }
.legal h2 { font-size: 22px; margin-top: 28px; }
.legal p, .legal li { color: var(--brand-3); }
.legal ul { list-style: disc; padding-left: 20px; margin-bottom: 14px; }

/* Cart / checkout */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr .8fr;
  gap: 24px;
  padding: 32px 0 50px;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
}
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.summary {
  background: var(--bg);
  border-radius: 12px;
  padding: 22px;
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row.total { font-weight: 800; color: var(--navy); font-size: 18px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.remove { color: var(--red); cursor: pointer; background: none; border: 0; font-size: 18px; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14,34,77,.55);
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
}
.modal-box i { font-size: 48px; color: var(--green); }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  z-index: 90;
  display: none;
}
.toast.show { display: block; }

/* Mobile */
@media (max-width: 1100px) {
  .hero-grid, .split-section, .shop-layout, .pd-layout, .about-grid, .contact-grid, .blog-layout, .cart-layout, .featured-blog, .newsletter-inner, .two-col-page {
    grid-template-columns: 1fr;
  }
  .cat-circles { grid-template-columns: repeat(4, 1fr); }
  .product-row, .product-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .promo-3, .blog-grid, .posts-3, .ways { grid-template-columns: 1fr 1fr; }
  .features-bar, .stats, .team-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-header-inner { grid-template-columns: auto 1fr auto; }
  .hero-main { min-height: 360px; }
}
.two-col-page {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  padding: 40px 0 60px;
  align-items: start;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .main-header-inner { grid-template-columns: 1fr auto; }
  .search-box { display: none; }
  .header-actions span.label { display: none; }
  .burger { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--navy);
    flex-direction: column;
    padding: 12px;
    z-index: 30;
  }
  .nav-orange { position: relative; }
  .main-nav.open { display: flex; }
  .cat-circles, .product-row, .product-grid-3, .product-grid-4, .promo-3, .blog-grid, .posts-3, .features-bar, .stats, .team-grid, .partner-row, .ways, .footer-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .hero-copy h2 { font-size: 28px; }
  .hero-main { min-height: 300px; }
  .hero-main img, .hero-side-card img { width: 100%; opacity: .35; }
  .hero-main::after, .hero-side-card:first-child::after, .hero-side-card:last-child::after {
    background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.88) 70%, rgba(255,255,255,.55) 100%);
  }
  .hero-copy, .hero-side-card .hero-copy { max-width: 100%; }
  .header-top-right { display: none; }
  .two-col-page, .stats-inner { grid-template-columns: 1fr; }
}
