/* Chijing Intelligent Technology — site design tokens */
:root {
  --orange: #F26522;
  --orange-dark: #d4541a;
  --orange-light: #fff3ec;
  --blue: #1B5FA8;
  --blue-dark: #0f3d72;
  --red: #E63946;
  --dark: #1a1a1a;
  --dark2: #2d2d2d;
  --mid: #4a4a4a;
  --muted: #888;
  --border: #e8e8e8;
  --bg: #f5f5f5;
  --white: #ffffff;
  --font-display: "Rajdhani", "Noto Sans SC", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 64px;
  --container: min(1400px, 100% - 32px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

/* ─── Skip link (a11y) ─── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 8px;
}

/* ─── HEADER ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .header {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .header {
    padding: 0 40px;
  }
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(200px, 46vw);
  object-fit: contain;
}

.logo-img--footer {
  height: 32px;
  max-width: 180px;
}

@media (min-width: 768px) {
  .logo-img {
    height: 40px;
    max-width: 220px;
  }

  .logo-img--footer {
    height: 34px;
    max-width: 200px;
  }
}

/* Optional text lockup fallback (unused when using PNG logo) */
.logo-text {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--dark);
}

.logo-text span {
  color: var(--orange);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a,
.nav-desktop .nav-dd-trigger {
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-desktop a:hover,
.nav-dd:hover .nav-dd-trigger {
  color: var(--orange);
  background: var(--orange-light);
}

.nav-desktop a.active {
  color: var(--orange);
}

.nav-dd {
  position: relative;
  cursor: default;
}

.nav-dd-trigger {
  display: inline-block;
  user-select: none;
}

.nav-dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 120;
}

.nav-dd:hover .nav-dd-menu {
  display: block;
}

.nav-dd-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 640px) {
  .header-actions {
    gap: 12px;
  }
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--mid);
  transition: background 0.2s, color 0.2s;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--orange);
  color: #fff;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.icon-btn:hover {
  background: var(--bg);
  color: var(--dark);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--orange);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-btn {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: #e8f0fb;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: background 0.2s;
}

.member-btn[data-auth-visible="true"] {
  display: inline-block;
}

.member-btn:hover {
  background: #d0e2f8;
}

.menu-toggle {
  display: flex;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile drawer */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 198;
}

.drawer-backdrop.is-open {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  padding: 72px 20px 24px;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark2);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer a:hover {
  color: var(--orange);
}

.mobile-drawer .sub {
  padding-left: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: clamp(480px, 75vh, 600px);
  background: var(--dark2);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(27, 95, 168, 0.25) 0%, transparent 60%),
    linear-gradient(135deg, #1a1a1a 0%, #2a3040 40%, #1a2535 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(242, 101, 34, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 101, 34, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

.hero-robot {
  position: absolute;
  right: -40px;
  bottom: 0;
  width: min(380px, 55vw);
  height: auto;
  opacity: 0.75;
  animation: floatRobot 6s ease-in-out infinite;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-robot {
    right: 20px;
    opacity: 0.9;
    width: min(460px, 45vw);
  }
}

@keyframes floatRobot {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px 120px;
  max-width: 720px;
  animation: heroIn 0.9s ease both;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 48px 40px 140px 48px;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 0 80px 140px;
  }
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(242, 101, 34, 0.18);
  border: 1px solid rgba(242, 101, 34, 0.4);
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(242, 101, 34, 0.35);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 11px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  z-index: 2;
  animation: heroIn 0.9s ease 0.3s both;
}

@media (min-width: 768px) {
  .hero-stats {
    left: 48px;
    bottom: 36px;
  }
}

@media (min-width: 1024px) {
  .hero-stats {
    left: 80px;
    bottom: 40px;
  }
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* ─── VALUE BAR ─── */
.value-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .value-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 24px;
    gap: 0;
  }
}

@media (min-width: 1024px) {
  .value-bar {
    grid-template-columns: repeat(4, 1fr);
    padding: 28px 40px;
  }
}

.value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 8px;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .value-item {
    border-right: 1px solid var(--border);
    padding: 12px 16px;
  }
  .value-item:nth-child(2n) {
    border-right: none;
  }
}

@media (min-width: 1024px) {
  .value-item {
    border-right: 1px solid var(--border);
    padding: 0 20px;
  }
  .value-item:last-child {
    border-right: none;
  }
}

.value-icon {
  width: 44px;
  height: 44px;
  background: var(--orange-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-text h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}

.value-text p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ─── SECTIONS ─── */
.section {
  padding: 48px 16px;
}

@media (min-width: 768px) {
  .section {
    padding: 64px 24px;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 80px 40px;
  }
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--dark);
  line-height: 1.15;
}

.section-title span {
  color: var(--orange);
}

.section-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 520px;
}

.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--orange);
  align-self: flex-start;
}

.view-all:hover {
  opacity: 0.75;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.category-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
  transition: transform 0.3s ease;
}

@media (min-width: 1024px) {
  .category-card {
    height: 260px;
  }
}

.category-card:hover {
  transform: translateY(-4px);
}

.cat-bg {
  position: absolute;
  inset: 0;
}

.cat-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cat-content {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.12) 55%, transparent 100%);
}

.cat-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.cat-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.cat-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  margin-bottom: 12px;
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 7px 14px;
  width: fit-content;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.cat-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.product-card:hover .quick-view {
  opacity: 1;
  transform: translateY(0);
}

.product-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .product-img {
    height: 200px;
  }
}

.sale-tag,
.new-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  z-index: 2;
}

.sale-tag {
  background: var(--red);
}

.new-tag {
  background: var(--blue);
}

.quick-view {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.88);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}

.product-body {
  padding: 16px 18px 18px;
}

.product-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.25;
}

.product-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.product-price-old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}

.product-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rfq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.rfq-btn:hover {
  background: var(--blue);
  color: #fff;
}

.add-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}

.add-btn:hover {
  background: var(--orange-dark);
}

/* RFQ strip */
.rfq-strip {
  background: linear-gradient(135deg, var(--orange) 0%, #d4541a 100%);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .rfq-strip {
    padding: 40px 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .rfq-strip {
    padding: 48px 40px;
  }
}

.rfq-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.rfq-strip p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 8px;
  max-width: 520px;
}

.rfq-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

@media (min-width: 480px) {
  .rfq-form {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }
}

.rfq-input {
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #fff;
  min-width: 0;
  flex: 1;
  outline: none;
}

.rfq-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.rfq-input:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.25);
}

.btn-white {
  background: #fff;
  color: var(--orange);
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-white:hover {
  opacity: 0.92;
}

/* Feature flags — never hide main nav shop/forum (see site-config.js) */
html.blog-disabled [data-feature-blog],
html.blog-disabled a[href*="blog-post"] {
  display: none !important;
}

html.shop-disabled [data-feature-shop],
html.shop-disabled [data-add-cart],
html.shop-disabled .products-banner {
  display: none !important;
}

/* Always show shop & forum in header nav (overrides any legacy cached rules) */
a[data-nav-shop],
a[data-nav-forum] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

.mobile-drawer a[data-nav-shop],
.mobile-drawer a[data-nav-forum] {
  display: block !important;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

.blog-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.blog-img {
  height: 180px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .blog-img {
    height: 220px;
  }
}

.blog-body {
  padding: 20px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.blog-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-light);
  padding: 3px 8px;
  border-radius: 4px;
}

.blog-date {
  font-size: 12px;
  color: var(--muted);
}

.blog-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.blog-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-tag--draft {
  background: #fff3e6;
  color: #c45a00;
}

.blog-post-article {
  max-width: 760px;
  margin: 0 auto;
}

.blog-post-article h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--text);
}

.blog-post-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
}

.blog-post-body p {
  margin: 0 0 1.1em;
}

.blog-read-more {
  display: inline-flex;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  border-bottom: 1.5px solid var(--orange);
}

/* Partners */
.partners {
  background: var(--dark2);
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
}

.partners::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.partners-title {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 28px;
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.partner-item {
  opacity: 0.45;
  transition: opacity 0.2s;
}

.partner-item:hover {
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 16px 0;
}

@media (min-width: 768px) {
  .footer {
    padding: 64px 24px 0;
  }
}

@media (min-width: 1024px) {
  .footer {
    padding: 64px 40px 0;
  }
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
    gap: 40px;
  }
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 300px;
}

.footer h5 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-contact {
  font-size: 13px;
  line-height: 1.75;
}

.footer-contact p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.footer-bottom {
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.55);
}

/* Inner pages */
.page-hero {
  background: linear-gradient(135deg, #1a2236 0%, #2a3040 100%);
  color: #fff;
  padding: 48px 16px 40px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

.page-content.wide {
  max-width: 1200px;
}

.about-page {
  padding-top: 8px;
}

.about-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 40px;
  max-width: 900px;
}

.about-section {
  margin-bottom: 48px;
}

.about-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.about-section-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0;
  max-width: 900px;
}

.about-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .about-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.about-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 10px;
  line-height: 1.35;
}

.about-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0;
}

.about-contact {
  background: var(--bg-alt, #f6f8fb);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}

.about-contact-list {
  margin: 0 0 20px;
  display: grid;
  gap: 14px;
}

.about-contact-list dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.about-contact-list dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

.about-contact-hint {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0 0 20px;
  line-height: 1.6;
}

.about-contact-actions {
  margin: 0;
}

.about-tagline {
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin: 8px 0 0;
  padding: 32px 16px 0;
  border-top: 1px solid var(--border);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.contact-form-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form-grid .full {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark2);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--dark2);
  color: #fff;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Knowledge demo */
.chat-shell {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
}

.chat-messages {
  height: min(420px, 50vh);
  overflow-y: auto;
  padding: 16px;
  background: var(--bg);
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.chat-bubble.user {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
}

.chat-bubble.bot {
  background: #fff;
  border: 1px solid var(--border);
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.chat-input-row input {
  flex: 1;
}

/* Shop (goohome.online /shop) + product detail */
.shop-soon {
  background: linear-gradient(180deg, #2a2f3a 0%, #1e232c 100%);
  color: #fff;
  text-align: center;
  padding: 56px 20px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-soon h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.shop-soon p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.65;
}

.shop-flows {
  padding: 48px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.shop-flows .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.shop-flow-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .shop-flow-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.shop-flow-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
}

.shop-flow-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.shop-flow-card-lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.shop-flow-steps {
  margin: 0 0 20px 1.15rem;
  padding: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--mid);
}

.shop-flow-steps li {
  margin-bottom: 10px;
}

.shop-flow-steps li:last-child {
  margin-bottom: 0;
}

.shop-flow-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.55;
}

.shop-flow-cta {
  display: inline-flex;
  text-decoration: none;
}

.shop-pay-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--orange-light);
  border: 1px solid rgba(242, 101, 34, 0.28);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.shop-pay-badge--compact {
  margin-top: 12px;
}

.shop-pay-badge-soon {
  font-weight: 500;
  color: var(--muted);
}

.shop-browse {
  padding: 40px 16px 56px;
  background: var(--white);
}

.shop-browse .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.shop-chip {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--mid);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.shop-chip:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.shop-chip[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.shop-cart-box {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  max-width: 520px;
}

.shop-cart-box h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
}

.shop-cart-box .cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
}

.cart-line--total {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 16px;
}

.cart-empty-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.cart-empty-hint[hidden],
[data-cart-empty][hidden] {
  display: none;
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-line-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.cart-line-item-main strong {
  display: block;
  font-size: 14px;
}

.cart-line-item-meta {
  color: var(--muted);
  font-size: 12px;
}

.cart-line-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cart-line-item-price {
  font-weight: 600;
  min-width: 72px;
  text-align: right;
}

.cart-qty-btn,
.cart-remove-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.cart-remove-btn {
  color: var(--muted);
}

.shop-cart-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.shop-pay-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.checkout-layout {
  display: grid;
  gap: 32px;
  max-width: 960px;
}

@media (min-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.checkout-summary-box {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt, #f8f9fb);
}

.checkout-summary-box h2 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 12px;
}

.order-confirm-page {
  max-width: 560px;
}

.order-confirm-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 160, 80, 0.12);
  color: #1a7a3a;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.order-confirm-summary {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.products-banner {
  background: var(--orange-light);
  border: 1px solid rgba(242, 101, 34, 0.25);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--dark2);
}

.products-banner a {
  color: var(--orange);
  font-weight: 600;
}

.product-detail-page {
  padding-bottom: 64px;
}

.product-detail-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.product-detail-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.product-detail-breadcrumb a:hover {
  text-decoration: underline;
}

.product-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.product-panel[hidden] {
  display: none !important;
}

.product-detail-hero {
  background: linear-gradient(135deg, #1a2236 0%, #2d3548 100%);
  color: #fff;
  padding: 32px 16px 28px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.product-detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.product-detail-hero .lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  margin-bottom: 12px;
}

.product-detail-hero .price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
}

.product-detail-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--dark2);
  margin-bottom: 16px;
}

.product-detail-bullets {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 28px;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-card-wrap {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card-wrap .product-card {
  height: 100%;
}

/* Catalog / shop — add product (WooCommerce-style admin preview) */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.catalog-toolbar--shop {
  margin-bottom: 16px;
}

.catalog-toolbar-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.5;
}

.catalog-add-btn {
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  padding: 10px 18px;
}

.product-card--custom {
  outline: 2px solid rgba(27, 95, 168, 0.2);
  outline-offset: -2px;
}

.product-create-page {
  padding-bottom: 64px;
}

.product-create-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .product-create-layout {
    grid-template-columns: 1fr;
  }
}

.product-create-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.product-create-fieldset {
  border: none;
  margin: 0 0 24px;
  padding: 0;
}

.product-create-fieldset legend {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 14px;
  padding: 0;
}

.product-create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .product-create-grid {
    grid-template-columns: 1fr;
  }
}

.product-create-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--dark2);
}

.product-create-field--full {
  grid-column: 1 / -1;
}

.product-create-field input,
.product-create-field select,
.product-create-field textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.product-create-field small {
  font-size: 11px;
  color: var(--muted);
}

.product-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.product-create-cancel {
  font-size: 13px;
  color: var(--blue);
  margin-left: auto;
}

.product-create-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.product-create-sidebar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.product-create-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-create-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.product-create-list-item:last-child {
  border-bottom: none;
}

.product-create-list-meta {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.product-create-list-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.product-create-delete {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.product-create-delete:hover {
  color: #b42318;
}

.product-create-empty {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.product-images-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 640px) {
  .product-images-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.product-image-tile {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image-tile .product-image-meta {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 8px;
  border-radius: 999px;
}

.product-image-tile .product-image-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 8px;
  border-radius: 999px;
}

.product-image-tile .product-image-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.product-image-tile .product-image-remove:hover {
  background: rgba(0, 0, 0, 0.75);
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0 18px;
}

@media (min-width: 800px) {
  .product-gallery {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.product-gallery-main {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  aspect-ratio: 16 / 9;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 800px) {
  .product-gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-gallery-thumb {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.product-gallery-thumb.is-active {
  outline: 2px solid rgba(77, 159, 232, 0.7);
  outline-offset: 1px;
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-create-draft-badge {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
