/* Tex-Style Company: shared styles for shop, product, contact, thank-you and 404 pages.
   Scoped under .txs so WordPress/Elementor styles can't leak in. */
:root {
  --txs-bg: #0a0a0a;
  --txs-panel: #111;
  --txs-ink: #f2f0ec;
  --txs-muted: #a8a8a8;
  --txs-dim: #6b6b6b;
  --txs-violet: #6b44cc;
  --txs-violet-2: #8b5cf6;
  --txs-gold: #c9a84c;
  --txs-line: rgba(255, 255, 255, 0.08);
  --txs-serif: "Cormorant Garamond", Georgia, serif;
  --txs-sans: "Raleway", system-ui, sans-serif;
  --txs-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --txs-gutter: clamp(16px, 5vw, 72px);
}
html, body { margin: 0; background: var(--txs-bg); }
.txs, .txs * { box-sizing: border-box; }
.txs { color: var(--txs-ink); font-family: var(--txs-sans); font-weight: 300; line-height: 1.65; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
.txs main { flex: 1; }
.txs img { display: block; max-width: 100%; height: auto; }
.txs a { color: inherit; text-decoration: none; }
.txs h1, .txs h2, .txs h3, .txs p, .txs ul, .txs dl { margin: 0; }
.txs-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--txs-gutter); }
.txs-eyebrow { font-weight: 500; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--txs-violet-2); }
.txs-display { font-family: var(--txs-serif); font-style: italic; font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; }
.txs-muted { color: var(--txs-muted); }

/* buttons */
.txs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border-radius: 999px; border: 1px solid transparent; font: 500 11px/1 var(--txs-sans); letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.16s var(--txs-ease); }
.txs-btn:active { transform: scale(0.97); }
.txs-btn--primary { background: var(--txs-violet); color: #fff; }
.txs-btn--primary:hover { background: var(--txs-violet-2); }
.txs-btn--ghost { border-color: rgba(242, 240, 236, 0.28); color: var(--txs-ink); background: transparent; }
.txs-btn--ghost:hover { border-color: var(--txs-ink); }
.txs-btn:focus-visible, .txs a:focus-visible, .txs input:focus-visible, .txs select:focus-visible, .txs textarea:focus-visible { outline: 1px solid var(--txs-violet-2); outline-offset: 3px; }
.txs-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--txs-violet-2); }
.txs-link svg { transition: transform 0.25s var(--txs-ease); }
.txs-link:hover svg { transform: translateX(5px); }

/* header */
.txs-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 10, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--txs-line); }
.admin-bar .txs-header { top: 32px; }
.txs-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.txs-brand { display: flex; align-items: center; gap: 12px; }
.txs-brand img { width: 34px; height: 34px; object-fit: contain; }
.txs-brand span { font-family: var(--txs-serif); font-size: 21px; }
.txs-nav { display: flex; gap: 4px; }
.txs-nav a { font-size: 13px; color: var(--txs-muted); padding: 8px 16px; border-radius: 999px; transition: color 0.2s ease, background 0.2s ease; }
.txs-nav a:hover { color: var(--txs-ink); }
.txs-nav a[aria-current="page"] { background: var(--txs-violet); color: #fff; }
@media (max-width: 560px) { .txs-brand span { display: none; } .txs-nav a { padding: 8px 12px; } }

/* page hero */
.txs-hero { padding: clamp(56px, 10vw, 120px) 0 clamp(32px, 5vw, 56px); }
.txs-hero h1 { font-size: clamp(44px, 7vw, 96px); margin: 18px 0 20px; }
.txs-hero p { max-width: 52ch; color: var(--txs-muted); font-size: 16px; }

/* product grid */
.txs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-bottom: clamp(64px, 10vw, 120px); }
.txs-card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; padding: 32px; background: #050505; border: 1px solid var(--txs-line); overflow: hidden; isolation: isolate; transition: border-color 0.3s ease; }
.txs-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s ease; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(139, 92, 246, 0.2), transparent 60%); }
.txs-card__img { position: absolute; inset: 7% 12% 42%; z-index: -1; display: grid; place-items: center; }
.txs-card__img img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; transition: transform 0.6s var(--txs-ease); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }
.txs-card .txs-eyebrow { margin-bottom: 10px; }
.txs-card h2 { font-family: var(--txs-serif); font-style: italic; font-weight: 300; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; margin-bottom: 8px; }
.txs-card p { color: var(--txs-muted); font-size: 14px; max-width: 40ch; }
.txs-card .txs-link { margin-top: 18px; }
@media (hover: hover) and (pointer: fine) {
  .txs-card:hover { border-color: rgba(139, 92, 246, 0.35); }
  .txs-card:hover::before { opacity: 1; }
  .txs-card:hover .txs-card__img img { transform: translateY(-10px) scale(1.04); }
}
.txs-card--wide { grid-column: 1 / -1; }
.txs-card--wide .txs-card__img { inset: 8% 6% 8% 40%; }
@media (max-width: 760px) {
  .txs-grid { grid-template-columns: 1fr; }
  .txs-card, .txs-card--wide { min-height: 440px; }
  .txs-card--wide .txs-card__img { inset: 7% 12% 42%; }
}

/* product page */
.txs-crumbs { padding-top: 28px; font-size: 12px; color: var(--txs-dim); letter-spacing: 0.06em; }
.txs-crumbs a:hover { color: var(--txs-ink); }
.txs-product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); padding: 28px 0 clamp(64px, 9vw, 112px); align-items: start; }
.txs-gallery { position: sticky; top: 100px; }
.txs-gallery__main { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 45%, rgba(107, 68, 204, 0.22), transparent 62%), #050505; border: 1px solid var(--txs-line); display: grid; place-items: center; overflow: hidden; }
.txs-gallery__main img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.25s ease, transform 0.4s var(--txs-ease); }
.txs-gallery__main img.is-swapping { opacity: 0; transform: scale(0.98); }
.txs-gallery__main.is-photo img { object-fit: cover; }
.txs-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.txs-thumbs button { width: 72px; height: 72px; padding: 0; border: 1px solid var(--txs-line); background: #050505; cursor: pointer; opacity: 0.55; transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.16s var(--txs-ease); }
.txs-thumbs button:hover { opacity: 0.85; }
.txs-thumbs button:active { transform: scale(0.95); }
.txs-thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--txs-violet-2); }
.txs-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.txs-swatches { display: flex; gap: 10px; margin: 6px 0 4px; }
.txs-swatches button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--txs-line); background: transparent; color: var(--txs-muted); font: 400 13px var(--txs-sans); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, transform 0.16s var(--txs-ease); }
.txs-swatches button:active { transform: scale(0.97); }
.txs-swatches button[aria-pressed="true"] { border-color: var(--txs-ink); color: var(--txs-ink); }
.txs-swatches i { width: 18px; height: 18px; border-radius: 50%; }
.txs-info h1 { font-size: clamp(38px, 5vw, 64px); margin: 14px 0 18px; }
.txs-info .txs-lede { font-size: 17px; color: var(--txs-muted); max-width: 46ch; }
.txs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; list-style: none; padding: 0; }
.txs-chips li { font-size: 12px; letter-spacing: 0.04em; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--txs-line); color: var(--txs-ink); }
.txs-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.txs-note { font-size: 13px; color: var(--txs-dim); }
.txs-specs { margin-top: 44px; border-top: 1px solid var(--txs-line); }
.txs-specs > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--txs-line); }
.txs-specs dt { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--txs-muted); padding-top: 3px; }
.txs-specs dd { margin: 0; font-size: 15px; }
.txs-specs ul { padding-left: 18px; }
@media (max-width: 860px) {
  .txs-product { grid-template-columns: 1fr; }
  .txs-gallery { position: static; }
  .txs-specs > div { grid-template-columns: 1fr; gap: 6px; }
}
.txs-more { padding: 0 0 clamp(64px, 9vw, 112px); }
.txs-more h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 28px; }
.txs-more .txs-grid { grid-template-columns: repeat(3, 1fr); padding: 0; }
.txs-more .txs-card { min-height: 360px; padding: 24px; }
.txs-more .txs-card__img { inset: 8% 14% 38%; }
@media (max-width: 860px) { .txs-more .txs-grid { grid-template-columns: 1fr; } }

/* contact */
.txs-contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(64px, 10vw, 120px); }
.txs-contact__about p { color: var(--txs-muted); margin-bottom: 18px; max-width: 48ch; }
.txs-contact__ways { list-style: none; padding: 0; margin-top: 32px; border-top: 1px solid var(--txs-line); }
.txs-contact__ways li { padding: 16px 0; border-bottom: 1px solid var(--txs-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.txs-contact__ways span { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--txs-muted); }
.txs-contact__ways a:hover { color: var(--txs-violet-2); }
.txs-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); background: var(--txs-panel); border: 1px solid var(--txs-line); }
.txs-form label { display: grid; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--txs-muted); }
.txs-form input, .txs-form select, .txs-form textarea { width: 100%; padding: 14px 16px; background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; color: var(--txs-ink); font: 400 16px var(--txs-sans); letter-spacing: normal; text-transform: none; transition: border-color 0.2s ease; }
.txs-form input:hover, .txs-form select:hover, .txs-form textarea:hover { border-color: rgba(255, 255, 255, 0.28); }
.txs-form input:focus, .txs-form select:focus, .txs-form textarea:focus { border-color: var(--txs-violet-2); outline: none; }
.txs-form textarea { min-height: 140px; resize: vertical; }
.txs-form .txs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.txs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.txs-form .txs-btn { justify-self: start; }
.txs-form .txs-btn[disabled] { opacity: 0.6; cursor: progress; }
@media (max-width: 860px) { .txs-contact { grid-template-columns: 1fr; } .txs-form .txs-row { grid-template-columns: 1fr; } }

/* simple centered pages: thank-you, 404 */
.txs-center { display: grid; place-items: center; text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.txs-center h1 { font-size: clamp(48px, 8vw, 104px); margin: 18px 0 20px; }
.txs-center p { color: var(--txs-muted); max-width: 46ch; margin: 0 auto 36px; }
.txs-center .txs-ctas { justify-content: center; }
.txs-code { font-family: var(--txs-serif); font-size: clamp(96px, 18vw, 200px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(139, 92, 246, 0.5); }

/* footer */
.txs-footer { border-top: 1px solid var(--txs-line); background: #000; padding: 56px 0 32px; font-size: 13px; }
.txs-footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--txs-line); }
.txs-footer h4 { margin: 0 0 12px; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--txs-dim); }
.txs-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; color: var(--txs-muted); }
.txs-footer a:hover { color: var(--txs-ink); }
.txs-footer__bottom { padding-top: 24px; color: var(--txs-dim); font-size: 12px; }

/* reveal on scroll (only hidden once JS has confirmed it runs) */
.txs-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--txs-ease), transform 0.6s var(--txs-ease); }
.txs-js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .txs-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .txs *, .txs *::before { transition-duration: 0.01ms !important; }
}
