:root {
  --blue: #005bd8;
  --blue-light: #1479e8;
  --blue-dark: #002c78;
  --blue-glow: #2d9cff;
  --red: #e2212f;
  --red-dark: #a60f1a;
  --black: #05070b;
  --ink: #0d1220;
  --panel: #101827;
  --soft-panel: #162033;
  --white: #ffffff;
  --muted: #a9b6cf;
  --light: #f4f7fb;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 24, 70, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
  --top-strip-height: 40px;
  --header-height: 86px;
  --fixed-nav-offset: calc(var(--top-strip-height) + var(--header-height));
}

*, *::before, *::after { box-sizing: border-box; }
html { width: 100%; max-width: 100%; scroll-behavior: smooth; }
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
body.admin-bar .top-strip { top: 32px; }
body.admin-bar .site-header { top: calc(32px + var(--top-strip-height)); }
body.admin-bar .page-shell { padding-top: calc(var(--fixed-nav-offset) + 32px); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.page-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--fixed-nav-offset);
  background:
    radial-gradient(circle at top left, rgba(0, 91, 216, 0.32), transparent 36rem),
    radial-gradient(circle at top right, rgba(226, 33, 47, 0.20), transparent 31rem),
    linear-gradient(180deg, #05070b 0%, #07101d 38%, #f4f7fb 38%, #f4f7fb 100%);
}
.site-main { width: 100%; max-width: 100%; }
.container { width: min(var(--max), calc(100vw - 32px)); margin: 0 auto; }
.full-width-band { width: 100%; }

.top-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  min-height: var(--top-strip-height);
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--red));
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.top-strip-inner {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.top-strip strong { font-weight: 800; }

.site-header {
  position: fixed;
  top: var(--top-strip-height); left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 11, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
}
.nav-wrap {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  height: var(--header-height);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 190px; }
.brand-mark {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 14px 36px rgba(0, 91, 216, 0.35);
  overflow: hidden;
}
.brand-mark img { width: 46px; filter: brightness(0) invert(1); }
.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 1px;
}
.brand-text strong { display: block; font-size: 1.3rem; letter-spacing: 0.03em; line-height: 1; font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 12px 15px;
  color: #dbe7ff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  transition: 0.25s ease;
}
.nav-links a:hover, .nav-links a.active, .nav-links .current-menu-item > a { color: var(--white); background: rgba(45, 156, 255, 0.18); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.button, button.button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  min-height: 48px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 14px 34px rgba(0, 91, 216, 0.28);
}
.button:hover, .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(0, 91, 216, 0.44); }
.button.red { background: linear-gradient(135deg, var(--red), var(--red-dark)); box-shadow: 0 14px 34px rgba(226, 33, 47, 0.25); }
.button.ghost { background: rgba(255, 255, 255, 0.08); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.18); }
.button.small { padding: 10px 14px; min-height: 40px; font-size: 0.86rem; }
.menu-toggle {
  display: none;
  width: 50px; height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  width: min(var(--max), calc(100vw - 32px));
  margin: 34px auto 0;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #05070b;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-banner { width: 100%; aspect-ratio: 1716 / 615; object-fit: contain; background: #05070b; }
.hero-clean { display: block; width: 100%; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.quick-categories {
  width: min(var(--max), calc(100vw - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.category-tile {
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-radius: 20px;
  padding: 18px 14px 16px;
  text-align: center;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 42px rgba(0, 24, 70, 0.18);
  border: 1px solid rgba(0, 91, 216, 0.12);
  overflow: hidden;
}
.category-tile span { display: block; font-size: 1.7rem; line-height: 1; margin-bottom: 8px; }
.category-tile strong { display: block; font-size: 0.95rem; line-height: 1.15; }
.category-tile small { display: block; color: #54657e; font-weight: 800; line-height: 1.2; margin-top: 8px; }

.section { width: 100%; padding: 76px 0; }
.section.dark { background: transparent; color: var(--white); }
.section.light { background: var(--light); color: var(--ink); }
.section.blue { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: var(--white); }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-glow);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
}
.section.light .section-kicker { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.02; }
h1, h2 { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; letter-spacing: 0.02em; }
h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 720px; }
.section.light .lead { color: #4b5a70; }

.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature-card {
  min-width: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 22px 50px rgba(0, 24, 70, 0.13);
  border: 1px solid rgba(0, 91, 216, 0.10);
  display: flex;
  flex-direction: column;
}
.feature-card-media { height: 230px; background: #e9eef7; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 18px; }
.feature-card-media img { width: 100%; height: 100%; object-fit: contain; }
.feature-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.feature-card p { color: #516077; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pill { display: inline-flex; padding: 8px 10px; border-radius: 999px; background: #eaf3ff; color: var(--blue-dark); font-weight: 900; font-size: 0.78rem; }

.print-room {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.print-room-panel {
  min-width: 0;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.print-room-copy { padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.print-room-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.print-room-images img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  padding: 12px;
}
.bullet-list { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.bullet-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: #d8e7ff; }
.bullet-list li::before { content: "✓"; color: var(--white); background: var(--red); width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; font-weight: 900; }

.shop-hero { padding: 56px 0 28px; }
.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.shop-sidebar {
  position: sticky;
  top: calc(var(--fixed-nav-offset) + 24px);
  border-radius: var(--radius-xl);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 18px 45px rgba(0, 24, 70, 0.12);
  padding: 22px;
}
.shop-sidebar h3 { margin-bottom: 14px; }
.filter-list { display: grid; gap: 10px; margin-top: 12px; }
.filter-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #eef5ff;
  color: var(--blue-dark);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.filter-btn.is-active { background: var(--blue-light); color: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 24, 70, 0.13);
  border: 1px solid rgba(0, 91, 216, 0.12);
}
.product-photo {
  width: 100%;
  height: 260px;
  background: #edf4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  flex: 0 0 auto;
  overflow: hidden;
}
.product-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-body h3 { font-size: 1.22rem; line-height: 1.15; }
.product-description { color: #536177; font-weight: 600; }
.product-meta, .variant-list { display: grid; gap: 8px; }
.meta-box, .variant-box {
  background: var(--blue-light);
  color: var(--white);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}
.product-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: auto; }
.product-actions .button { width: 100%; }
.no-products {
  border-radius: var(--radius-xl);
  background: #fff;
  color: var(--ink);
  padding: 32px;
  box-shadow: 0 20px 48px rgba(0, 24, 70, 0.13);
}

.cart-drawer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100vw - 36px));
  max-height: calc(100vh - 160px);
  overflow: auto;
  z-index: 1002;
  background: #ffffff;
  color: var(--ink);
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.28);
  border: 1px solid rgba(0, 91, 216, 0.18);
  transform: translateY(calc(100% + 40px));
  transition: transform 0.25s ease;
}
.cart-drawer.is-open { transform: translateY(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px; background: var(--blue-dark); color: #fff; }
.cart-head h3 { margin: 0; }
.cart-close { border: 0; background: rgba(255,255,255,0.16); color: #fff; width: 38px; height: 38px; border-radius: 999px; font-weight: 900; cursor: pointer; }
.cart-body { padding: 18px; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; border-radius: 14px; background: #eef5ff; }
.cart-item strong { display: block; }
.cart-item small { color: #516077; font-weight: 800; }
.remove-cart-item { border: 0; background: var(--red); color: #fff; border-radius: 12px; padding: 8px 10px; font-weight: 900; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 900; padding-top: 12px; border-top: 1px solid #dbe7ff; }
.floating-cart-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1001;
}
.cart-drawer.is-open + .floating-cart-button { display: none; }

.content-page { padding: 72px 0; }
.content-card {
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(26px, 5vw, 54px);
  box-shadow: 0 24px 70px rgba(0, 24, 70, 0.15);
}
.content-card p, .content-card li { color: #4b5a70; font-weight: 600; }
.content-card ul { padding-left: 24px; }
.content-card .wp-block-image img { border-radius: 18px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-box { background: #eef5ff; border-radius: 20px; padding: 24px; color: var(--ink); }
.contact-box strong { color: var(--blue-dark); }

.footer {
  width: 100%;
  background: #05070b;
  color: #dbe7ff;
  padding: 56px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h3 { color: #fff; margin-bottom: 14px; }
.footer a { color: #dbe7ff; }
.footer-links { display: grid; gap: 8px; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.social-row a { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,0.08); font-weight: 900; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); color: var(--muted); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

@media (max-width: 1060px) {
  .header-actions .button { display: none; }
  .quick-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: relative; top: 0; }
}
@media (max-width: 860px) {
  :root { --top-strip-height: 52px; --header-height: 76px; }
  body.admin-bar .top-strip { top: 46px; }
  body.admin-bar .site-header { top: calc(46px + var(--top-strip-height)); }
  body.admin-bar .page-shell { padding-top: calc(var(--fixed-nav-offset) + 46px); }
  .top-strip-inner { justify-content: center; text-align: center; gap: 6px; font-size: 0.76rem; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-links {
    position: fixed;
    top: calc(var(--fixed-nav-offset));
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(5, 7, 11, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }
  body.admin-bar .nav-links { top: calc(var(--fixed-nav-offset) + 46px); }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; text-align: center; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text span { font-size: 0.66rem; }
  .brand-mark { width: 50px; height: 50px; border-radius: 15px; }
  .brand-mark img { width: 39px; }
  .print-room, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container, .hero, .quick-categories, .nav-wrap, .top-strip-inner { width: min(100%, calc(100vw - 24px)); }
  .hero { border-radius: 18px; margin-top: 20px; }
  .quick-categories { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-tile { min-height: 122px; padding: 16px 12px; }
  .section { padding: 52px 0; }
  .section-head { display: grid; }
  .cards-grid, .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .product-photo { height: 220px; }
  .print-room-images { grid-template-columns: 1fr; }
  .print-room-images img { height: 180px; }
  h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
}

/* ===== Texiflex WordPress layout fixes v1.0.2 ===== */
body.texiflex-theme {
  overflow-x: hidden;
  background: var(--black);
}

body.texiflex-theme .page-shell,
body.texiflex-theme .site-main,
body.texiflex-theme section,
body.texiflex-theme footer {
  width: 100%;
  max-width: 100%;
}

body.texiflex-theme .container,
body.texiflex-theme .nav-wrap,
body.texiflex-theme .top-strip-inner,
body.texiflex-theme .hero,
body.texiflex-theme .quick-categories {
  width: min(1520px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
}

/* WordPress menu output fix: remove bullets and keep menu horizontal */
body.texiflex-theme .nav-links,
body.texiflex-theme .nav-links ul,
body.texiflex-theme .nav-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.texiflex-theme .nav-links ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.texiflex-theme .nav-links li {
  display: flex;
  align-items: center;
}

body.texiflex-theme .nav-links li::marker,
body.texiflex-theme .footer-links li::marker {
  content: "";
  font-size: 0;
}

body.texiflex-theme .nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

body.texiflex-theme .nav-links .current-menu-item > a,
body.texiflex-theme .nav-links .current_page_item > a,
body.texiflex-theme .nav-links a:hover {
  color: var(--white);
  background: rgba(45, 156, 255, 0.20);
}

/* Keep the hero and image areas contained */
body.texiflex-theme .hero {
  border-radius: var(--radius-xl);
}

body.texiflex-theme .hero-banner,
body.texiflex-theme .feature-card-media img,
body.texiflex-theme .print-room-images img,
body.texiflex-theme .product-photo img,
body.texiflex-theme .content-card img,
body.texiflex-theme iframe,
body.texiflex-theme embed,
body.texiflex-theme object {
  max-width: 100%;
}

body.texiflex-theme iframe,
body.texiflex-theme embed,
body.texiflex-theme object {
  width: 100%;
}

body.texiflex-theme .feature-card-media,
body.texiflex-theme .product-photo,
body.texiflex-theme .print-room-images {
  min-width: 0;
}

/* Stop category cards being cut off */
body.texiflex-theme .quick-categories {
  align-items: stretch;
  overflow: visible;
}

body.texiflex-theme .category-tile {
  min-height: 148px;
  height: auto;
  overflow: visible;
}

body.texiflex-theme .category-tile strong,
body.texiflex-theme .category-tile small {
  overflow-wrap: normal;
  word-break: normal;
}

/* Make light/content areas readable even when old page content had white text */
body.texiflex-theme .section.light,
body.texiflex-theme .content-card,
body.texiflex-theme .content-card h1,
body.texiflex-theme .content-card h2,
body.texiflex-theme .content-card h3,
body.texiflex-theme .content-card h4,
body.texiflex-theme .content-card h5,
body.texiflex-theme .content-card h6,
body.texiflex-theme .content-card label,
body.texiflex-theme .content-card strong,
body.texiflex-theme .legacy-content-card h1,
body.texiflex-theme .legacy-content-card h2,
body.texiflex-theme .legacy-content-card h3,
body.texiflex-theme .legacy-content-card h4,
body.texiflex-theme .legacy-content-card strong {
  color: var(--ink) !important;
}

body.texiflex-theme .content-card p,
body.texiflex-theme .content-card li,
body.texiflex-theme .content-card span,
body.texiflex-theme .content-card div,
body.texiflex-theme .legacy-content-card p,
body.texiflex-theme .legacy-content-card li,
body.texiflex-theme .legacy-content-card span,
body.texiflex-theme .legacy-content-card div {
  color: #4b5a70;
}

body.texiflex-theme .content-card a:not(.button):not(.wp-block-button__link) {
  color: var(--blue-dark) !important;
  font-weight: 800;
  text-decoration: underline;
}

body.texiflex-theme .content-card .button,
body.texiflex-theme .content-card .wp-block-button__link,
body.texiflex-theme .content-card button {
  color: var(--white) !important;
}

body.texiflex-theme .content-card input,
body.texiflex-theme .content-card textarea,
body.texiflex-theme .content-card select {
  color: var(--ink) !important;
  background: var(--white);
  border: 1px solid #c8d7ee;
  border-radius: 12px;
  padding: 12px 14px;
  max-width: 100%;
}

body.texiflex-theme .content-card table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  color: var(--ink);
}

/* WordPress block/content safety */
body.texiflex-theme .content-card .wp-block-columns,
body.texiflex-theme .legacy-content-card .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  align-items: start;
}

body.texiflex-theme .content-card .wp-block-column,
body.texiflex-theme .legacy-content-card .wp-block-column,
body.texiflex-theme .content-card [class*="column"],
body.texiflex-theme .legacy-content-card [class*="column"] {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

/* Contact page now gives old embedded maps/contact blocks full width */
body.texiflex-theme .contact-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

body.texiflex-theme .contact-extra-card {
  margin-top: 24px;
  width: 100%;
  overflow: hidden;
}

body.texiflex-theme .contact-extra-card iframe {
  min-height: 320px;
  border-radius: 18px;
}

body.texiflex-theme .contact-box,
body.texiflex-theme .contact-box * {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Shop cards: always photo then name then description then boxes/buttons */
body.texiflex-theme .product-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
}

body.texiflex-theme .product-photo {
  position: relative;
  z-index: 1;
  flex: 0 0 260px;
}

body.texiflex-theme .product-body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  background: var(--white);
}

body.texiflex-theme .product-description {
  display: block;
  clear: both;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
}

body.texiflex-theme .meta-box,
body.texiflex-theme .variant-box,
body.texiflex-theme .filter-btn.is-active {
  background: #247fdb;
  color: #ffffff !important;
}

/* Footer menu/contact fix */
body.texiflex-theme .footer-grid {
  grid-template-columns: minmax(240px, 1.4fr) minmax(170px, 1fr) minmax(190px, 1fr) minmax(250px, 1.1fr);
  align-items: start;
}

body.texiflex-theme .footer-grid > div,
body.texiflex-theme .footer-links,
body.texiflex-theme .footer-links ul,
body.texiflex-theme .footer-links li,
body.texiflex-theme .footer-links span,
body.texiflex-theme .footer-links a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

body.texiflex-theme .footer-links ul,
body.texiflex-theme .footer-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.texiflex-theme .footer-links ul {
  display: grid;
  gap: 8px;
}

body.texiflex-theme .footer-links a,
body.texiflex-theme .footer-links span {
  display: block;
}

@media (max-width: 1180px) {
  body.texiflex-theme .footer-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 860px) {
  body.texiflex-theme .nav-links ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.texiflex-theme .nav-links li,
  body.texiflex-theme .nav-links a {
    width: 100%;
  }

  body.texiflex-theme .contact-top-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.texiflex-theme .container,
  body.texiflex-theme .nav-wrap,
  body.texiflex-theme .top-strip-inner,
  body.texiflex-theme .hero,
  body.texiflex-theme .quick-categories {
    width: min(100%, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  body.texiflex-theme .quick-categories {
    grid-template-columns: 1fr;
  }

  body.texiflex-theme .footer-grid {
    grid-template-columns: 1fr;
  }

  body.texiflex-theme .contact-box,
  body.texiflex-theme .content-card {
    padding: 22px;
  }
}

/* ===== Texiflex WordPress layout fixes v1.0.4 ===== */
body.texiflex-theme .page-shell {
  background:
    radial-gradient(circle at top left, rgba(0, 91, 216, 0.30), transparent 34rem),
    radial-gradient(circle at top right, rgba(226, 33, 47, 0.18), transparent 28rem),
    linear-gradient(180deg, #05070b 0%, #07101d 48%, #f4f7fb 48%, #f4f7fb 100%);
}

/* Home page clean-up: removes the old light/white text area and makes the lower homepage fully readable. */
body.texiflex-theme.home .site-main,
body.texiflex-theme.page-template-template-home .site-main,
body.texiflex-theme.page-id-home .site-main {
  background: #05070b;
}

body.texiflex-theme.home .section.light,
body.texiflex-theme.page-template-template-home .section.light,
body.texiflex-theme .home-clean-section {
  background: #f4f7fb !important;
  color: #0d1220 !important;
}

body.texiflex-theme.home .section.light *,
body.texiflex-theme.page-template-template-home .section.light *,
body.texiflex-theme .home-clean-section * {
  color: inherit;
}

body.texiflex-theme.home .section.light p,
body.texiflex-theme.home .section.light li,
body.texiflex-theme.page-template-template-home .section.light p,
body.texiflex-theme.page-template-template-home .section.light li {
  color: #4b5a70 !important;
}

/* Make any imported old accordion/details content readable and open-looking instead of hidden. */
body.texiflex-theme details {
  display: block;
  background: #ffffff;
  color: #0d1220;
  border: 1px solid #d8e5f7;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 14px 0;
}
body.texiflex-theme details > summary {
  color: #002c78;
  font-weight: 900;
  cursor: pointer;
}
body.texiflex-theme details * {
  color: #4b5a70;
}

/* Extra safety for old builder sections if they appear on Home after a cache/plugin injects them. */
body.texiflex-theme.home .site-main > .wp-block-group,
body.texiflex-theme.home .site-main > .wp-block-cover,
body.texiflex-theme.home .site-main > .elementor,
body.texiflex-theme.home .site-main > .elementor-section,
body.texiflex-theme.home .site-main > .vc_row,
body.texiflex-theme.home .site-main > .wpb_row {
  background: #f4f7fb !important;
  color: #0d1220 !important;
  padding: 56px 16px !important;
}
body.texiflex-theme.home .site-main > .wp-block-group *,
body.texiflex-theme.home .site-main > .wp-block-cover *,
body.texiflex-theme.home .site-main > .elementor *,
body.texiflex-theme.home .site-main > .elementor-section *,
body.texiflex-theme.home .site-main > .vc_row *,
body.texiflex-theme.home .site-main > .wpb_row * {
  color: #0d1220 !important;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

/* Contact map */
body.texiflex-theme .contact-map-card {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 36px);
}
body.texiflex-theme .contact-map-head {
  align-items: center;
}
body.texiflex-theme .map-frame-wrap {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #d7e5f7;
  box-shadow: 0 20px 50px rgba(0, 24, 70, 0.12);
  background: #eaf3ff;
}
body.texiflex-theme .map-frame-wrap iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

/* WooCommerce basic styling if you connect the store later. */
body.texiflex-theme.woocommerce-page .woocommerce,
body.texiflex-theme .woocommerce {
  width: min(1520px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  padding: 56px 0;
  color: #0d1220;
}
body.texiflex-theme .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
body.texiflex-theme .woocommerce ul.products li.product,
body.texiflex-theme .woocommerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  background: #ffffff;
  border-radius: 24px;
  padding: 18px !important;
  box-shadow: 0 20px 48px rgba(0, 24, 70, 0.13);
  border: 1px solid rgba(0, 91, 216, 0.12);
}
body.texiflex-theme .woocommerce ul.products li.product img {
  height: 230px;
  width: 100%;
  object-fit: contain;
  background: #edf4ff;
  border-radius: 18px;
  padding: 14px;
}
body.texiflex-theme .woocommerce a.button,
body.texiflex-theme .woocommerce button.button,
body.texiflex-theme .woocommerce input.button {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1479e8, #002c78) !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
}

@media (max-width: 1060px) {
  body.texiflex-theme .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  body.texiflex-theme .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
  body.texiflex-theme .map-frame-wrap iframe {
    min-height: 320px;
  }
}

/* ===== Texiflex editable theme controls v1.0.5 ===== */
body.texiflex-theme .editable-section {
  position: relative;
}

body.texiflex-theme .texiflex-edit-link {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  padding: 9px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #002c78 !important;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid #cfe0f7;
}

body.logged-in.texiflex-theme .editable-section:hover > .texiflex-edit-link,
body.logged-in.texiflex-theme .texiflex-edit-link:focus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.texiflex-theme .texiflex-front-editor-panel {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 10050;
  width: min(260px, calc(100vw - 36px));
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(5, 7, 11, 0.94);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 60px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
}

body.texiflex-theme .texiflex-front-editor-panel strong {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

body.texiflex-theme .texiflex-front-editor-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
}

body.texiflex-theme .texiflex-front-editor-panel a:hover {
  background: var(--blue-light);
}

body.texiflex-theme .feature-card-media,
body.texiflex-theme .print-room-images img,
body.texiflex-theme .product-photo {
  overflow: hidden;
}

body.texiflex-theme .feature-card-media img,
body.texiflex-theme .print-room-images img,
body.texiflex-theme .product-photo img {
  object-fit: contain !important;
}

body.texiflex-theme .home-clean-section .feature-card-body h3,
body.texiflex-theme .home-clean-section .feature-card-body p {
  color: #0d1220 !important;
}

body.texiflex-theme .home-clean-section .feature-card-body p {
  color: #516077 !important;
}

body.texiflex-theme .meta-box,
body.texiflex-theme .variant-box,
body.texiflex-theme .filter-btn.is-active {
  background: var(--blue-light) !important;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  body.texiflex-theme .texiflex-front-editor-panel {
    left: 10px;
    bottom: 10px;
    width: min(230px, calc(100vw - 20px));
    max-height: 48vh;
    overflow: auto;
  }
  body.texiflex-theme .texiflex-edit-link {
    position: static;
    margin: 10px;
  }
  body.logged-in.texiflex-theme .editable-section > .texiflex-edit-link {
    display: inline-flex;
  }
}

/* ===== WooCommerce-only shop update v1.0.6 ===== */
body.texiflex-theme .woocommerce-shop-section {
  width: 100%;
  overflow: visible;
}
body.texiflex-theme .woocommerce-shop-container {
  width: min(1520px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  margin: 0 auto;
}
body.texiflex-theme .admin-shop-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
body.texiflex-theme .woocommerce-result-count,
body.texiflex-theme .woocommerce-ordering {
  margin-bottom: 24px;
}
body.texiflex-theme .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.texiflex-theme .woocommerce ul.products::before,
body.texiflex-theme .woocommerce ul.products::after {
  display: none !important;
}
body.texiflex-theme .woocommerce ul.products li.product,
body.texiflex-theme .woocommerce-page ul.products li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 91, 216, 0.16) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 48px rgba(0, 24, 70, 0.13) !important;
  overflow: hidden !important;
}
body.texiflex-theme .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  text-decoration: none !important;
}
body.texiflex-theme .woocommerce ul.products li.product img {
  order: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 245px !important;
  object-fit: contain !important;
  background: #eef6ff !important;
  border-radius: 18px !important;
  padding: 14px !important;
  margin: 0 0 16px !important;
}
body.texiflex-theme .woocommerce ul.products li.product .woocommerce-loop-product__title {
  order: 2 !important;
  display: block !important;
  color: #081734 !important;
  font-size: 1.15rem !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  padding: 0 !important;
  margin: 0 0 10px !important;
}
body.texiflex-theme .woocommerce ul.products li.product .price {
  order: 3 !important;
  display: inline-flex !important;
  align-self: flex-start !important;
  background: #277bd9 !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  font-weight: 900 !important;
  margin: 0 0 14px !important;
}
body.texiflex-theme .woocommerce ul.products li.product .price * {
  color: #ffffff !important;
}
body.texiflex-theme .woocommerce ul.products li.product .button,
body.texiflex-theme .woocommerce a.button,
body.texiflex-theme .woocommerce button.button,
body.texiflex-theme .woocommerce input.button,
body.texiflex-theme .woocommerce #respond input#submit {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #1479e8, #002c78) !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  border: 0 !important;
  padding: 12px 18px !important;
  margin-top: auto !important;
  text-decoration: none !important;
}
body.texiflex-theme .woocommerce span.onsale {
  background: #ff2f4f !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
}
body.texiflex-theme .woocommerce nav.woocommerce-pagination ul {
  border: 0 !important;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 36px;
}
body.texiflex-theme .woocommerce nav.woocommerce-pagination ul li {
  border: 0 !important;
}
body.texiflex-theme .woocommerce nav.woocommerce-pagination ul li a,
body.texiflex-theme .woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 999px;
  min-width: 40px;
  background: #eef6ff;
  color: #082766;
  font-weight: 900;
}
body.texiflex-theme .woocommerce nav.woocommerce-pagination ul li span.current {
  background: #1479e8;
  color: #ffffff;
}
body.texiflex-theme .woocommerce div.product {
  background: #ffffff;
  border-radius: 28px;
  padding: 24px;
  border: 1px solid rgba(0, 91, 216, 0.16);
  box-shadow: 0 20px 48px rgba(0, 24, 70, 0.12);
}
body.texiflex-theme .woocommerce div.product div.images img {
  object-fit: contain;
  background: #eef6ff;
  border-radius: 22px;
  padding: 18px;
}
body.texiflex-theme .woocommerce div.product .product_title {
  color: #081734;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
}
body.texiflex-theme .woocommerce div.product p.price,
body.texiflex-theme .woocommerce div.product span.price {
  color: #1479e8;
  font-weight: 900;
  font-size: 1.35rem;
}
body.texiflex-theme .woocommerce-message,
body.texiflex-theme .woocommerce-info,
body.texiflex-theme .woocommerce-error {
  border-radius: 18px;
  background: #eef6ff;
  color: #081734;
  border-top-color: #1479e8;
}
body.texiflex-theme .woocommerce-cart-form,
body.texiflex-theme .cart-collaterals,
body.texiflex-theme .woocommerce-checkout,
body.texiflex-theme .woocommerce-order {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 48px rgba(0, 24, 70, 0.12);
}
@media (max-width: 1060px) {
  body.texiflex-theme .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  body.texiflex-theme .woocommerce-shop-container {
    width: min(100%, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }
  body.texiflex-theme .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
  body.texiflex-theme .woocommerce ul.products li.product img {
    height: 220px !important;
  }
}


/* ===== WooCommerce cart button in header ===== */
body.texiflex-theme .header-cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #1479e8, #005bd8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(0, 91, 216, 0.26);
  font-weight: 900;
  white-space: nowrap;
}
body.texiflex-theme .header-cart-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 91, 216, 0.42);
}
body.texiflex-theme .header-cart-button .cart-icon {
  font-size: 1.05rem;
  line-height: 1;
}
body.texiflex-theme .header-cart-count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2212f;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}
body.texiflex-theme .woocommerce-message .button,
body.texiflex-theme .woocommerce-info .button {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1479e8, #005bd8) !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
}

@media (max-width: 1060px) {
  body.texiflex-theme .header-actions .header-shop-button {
    display: none;
  }
  body.texiflex-theme .header-cart-button {
    padding: 11px 14px;
  }
}

@media (max-width: 640px) {
  body.texiflex-theme .header-actions {
    gap: 8px;
  }
  body.texiflex-theme .header-cart-button {
    min-height: 44px;
    padding: 10px 12px;
  }
  body.texiflex-theme .header-cart-button .cart-label {
    display: none;
  }
}
