/* ==========================================================
   VIBRA Ă¢â‚¬â€ custom styles (extends Tailwind)
   ========================================================== */

:root {
  --ink: #000000;
  --bone: #ffffff;
  --mist: #a0a0a0;
  --hairline: #1f1f1f;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: #ffffff;
  color: #000000;
}

/* Scrollbar (subtle) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #1f1f1f;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a2a2a;
}

/* ==========================================================
   HEADER Ă¢â‚¬â€ sticky scroll state
   ========================================================== */
#site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}

/* ==========================================================
   HERO Ă¢â‚¬â€ scroll line indicator animation
   ========================================================== */
.scroll-line {
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-100%);
  animation: scroll-pulse 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scroll-pulse {
  0% {
    transform: translateY(-100%);
  }
  60% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* ==========================================================
   REVEAL ON SCROLL
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-line::after {
    animation: none;
  }
}

/* ==========================================================
   SIZE SELECTOR
   ========================================================== */
.size-btn {
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  font-weight: 600;
}
.size-btn.is-active {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

/* ==========================================================
   FOCUS STATES (accessibility)
   ========================================================== */
a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: 3px;
}

/* ==========================================================
   HERO HEADLINE TIGHTENING
   ========================================================== */
h1.font-display,
h2.font-display {
  letter-spacing: -0.01em;
}

/* ==========================================================
   LOGO Ă¢â‚¬â€ cropped wordmark
   The Logo_VIBRA.png contains a wordmark surrounded by ~41%
   transparent padding top/bottom and ~20% left/right.
   Rendered as a plain <img>, the visible "VIBRA" reads tiny
   relative to the bounding box.  We crop to just the wordmark
   via a fixed-aspect wrapper + background-image, so the height
   declared here is the height of the *visible wordmark*.
   ========================================================== */
.logo-mark {
  display: block;
  background-image: url("Logo_VIBRA.png");
  background-repeat: no-repeat;
  background-size: 169% auto;
  background-position: 50% 48%;
  aspect-ratio: 908 / 134; /* matches the wordmark's natural aspect */
}

/* Header logo: 26px on mobile, 30px on desktop Ă¢â‚¬â€ refined, not dominant */
.logo-mark--header {
  height: 26px;
}
@media (min-width: 768px) {
  .logo-mark--header {
    height: 30px;
  }
}

/* Footer logo: smaller than the header Ă¢â‚¬â€ secondary, understated */
.logo-mark--footer {
  height: 20px;
}
@media (min-width: 768px) {
  .logo-mark--footer {
    height: 24px;
  }
}

/* ==========================================================
   PURCHASE Ă¢â‚¬â€ jacket framing
   Source: 2179x722 (~3:1) with the jacket centred at ~27.6%
   horizontally and spanning 15-40% of the frame.
   We use a moderately tall container with object-cover so the
   image's height fills the frame and the visible vertical strip
   is centred on the jacket. No transforms Ă¢â‚¬â€ zoom is controlled
   by the container's aspect ratio, preserving image fidelity
   and keeping shoulders + sleeves fully in frame.
   ========================================================== */
.purchase-jacket-img {
  object-fit: cover;
  object-position: 17% 50%;
}
@media (min-width: 768px) {
  .purchase-jacket-img {
    object-position: 19% 50%;
  }
}

/* Global black / white direction */
.text-gold,
.text-gold-light {
  color: var(--bone) !important;
}

.bg-gold {
  background-color: var(--bone) !important;
}

.border-gold {
  border-color: var(--bone) !important;
}

.hover\:text-gold:hover,
.hover\:border-gold:hover {
  color: var(--bone) !important;
  border-color: var(--bone) !important;
}

/* ==========================================================
   VIBRA TYPOGRAPHY LOCK
   Keep WooCommerce / WordPress checkout styles from overriding
   the original static site's font system.
   ========================================================== */
html body,
html body .woocommerce,
html body .wc-block-components,
html body input,
html body select,
html body textarea,
html body button {
  font-family: "Inter", Helvetica, Arial, sans-serif !important;
}

html body .font-display,
html body main h1,
html body main h2,
html body .woocommerce h1,
html body .woocommerce h2,
html body .woocommerce h3,
html body .wc-block-components-title,
html body .wc-block-components-checkout-step__title,
html body .wc-block-components-order-summary__title {
  font-family: "Bebas Neue", Oswald, Impact, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  line-height: 0.95 !important;
  text-transform: uppercase;
}

html body .font-serif {
  font-family: "Cormorant Garamond", Georgia, serif !important;
}

/* ==========================================================
   VIBRA WORDMARK RESTORE
   Match the original static site's large header/footer logo.
   ========================================================== */
html body .logo-mark {
  display: inline-block !important;
  background-image: url("Logo_VIBRA.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  aspect-ratio: auto !important;
}

html body .vibra-logo-link {
  position: relative;
  width: 180px;
  height: 57px;
}

html body .vibra-text-logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: block !important;
  color: #fff;
  font-family: Arial Black, Arial, Helvetica, sans-serif !important;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

html body .logo-mark--header {
  width: 180px !important;
  height: 57px !important;
}

html body .logo-mark--footer {
  width: 200px !important;
  height: 63px !important;
  opacity: 0.6;
}

@media (min-width: 768px) {
  html body .logo-mark--header {
    width: 280px !important;
    height: 88px !important;
  }

  html body .vibra-logo-link {
    width: 280px;
    height: 88px;
  }

  html body .vibra-text-logo {
    font-size: 48px;
  }
}

/* ==========================================================
   VIBRA FONT RESTORE
   Re-apply the exact static-site families after WordPress and
   WooCommerce inject their own checkout/account styles.
   ========================================================== */
html body,
html body .font-body,
html body .woocommerce,
html body .wc-block-components,
html body p,
html body a,
html body li,
html body label,
html body span,
html body input,
html body select,
html body textarea,
html body button {
  font-family: "Inter", Helvetica, Arial, sans-serif !important;
}

html body .font-display,
html body main h1.font-display,
html body main h2.font-display,
html body main h3.font-display,
html body .woocommerce h1,
html body .woocommerce h2,
html body .woocommerce h3,
html body .wc-block-components-title,
html body .wc-block-components-checkout-step__title,
html body .wc-block-components-order-summary__title {
  font-family: "Bebas Neue", Oswald, Impact, sans-serif !important;
  font-weight: 400 !important;
}

html body .font-serif,
html body .font-serif *,
html body #reviews .font-serif {
  font-family: "Cormorant Garamond", Georgia, serif !important;
}

/* ==========================================================
   HEADER LOGO RESTORE
   Match the old static homepage header wordmark exactly.
   ========================================================== */
html body .logo-mark {
  display: inline-block !important;
  background-image: url("Logo_VIBRA.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  aspect-ratio: auto !important;
}

html body .logo-mark--header {
  width: 180px !important;
  height: 57px !important;
}

@media (min-width: 768px) {
  html body .logo-mark--header {
    width: 280px !important;
    height: 88px !important;
  }
}

/* ==========================================================
   GLOBAL CART DRAWER
   Opens as a right-side slide panel instead of a cart page.
   ========================================================== */
html body.cart-drawer-open {
  overflow: hidden;
}

html body .cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

html body .cart-drawer.is-open {
  pointer-events: auto;
}

html body .cart-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
  transition: background 0.28s ease;
}

html body .cart-drawer.is-open .cart-overlay {
  background: rgba(0, 0, 0, 0.78);
}

html body .cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(92vw, 540px);
  height: 100%;
  overflow-y: auto;
  background: #000;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--bone);
  padding: 34px 36px 42px;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -34px 0 90px rgba(0, 0, 0, 0.62);
}

html body .cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

@media (min-width: 768px) {
  html body .cart-panel {
    width: 540px;
  }
}

html body .cart-panel__header {
  position: relative;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0 72px 24px 0;
}

html body .cart-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

html body .cart-panel__header h2 {
  margin: 8px 0 0;
  font-family: "Bebas Neue", Oswald, Impact, sans-serif !important;
  font-size: clamp(68px, 8vw, 86px);
  font-weight: 400 !important;
  line-height: 0.88;
  letter-spacing: 0.02em !important;
}

html body .cart-close {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #fff;
}

html body .cart-close:hover {
  background: #fff;
  color: #000;
}

html body .cart-empty {
  padding: 42px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
}

html body .cart-content[hidden],
html body .cart-empty[hidden] {
  display: none !important;
}

html body .payment-box {
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px;
}

html body .payment-options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

html body .payment-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.26em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

html body .payment-option.is-active,
html body .payment-option:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

html body .checkout-button,
html body a.checkout-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  width: 100% !important;
  margin-top: 18px;
  padding: 0 24px;
  border: 1px solid #fff;
  background: #fff !important;
  color: #000 !important;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.24em;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

html body .checkout-button:hover,
html body a.checkout-button:hover {
  background: #d8d8d8 !important;
  border-color: #d8d8d8;
  color: #000 !important;
}

html body .checkout-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

/* ==========================================================
   FINAL TYPOGRAPHY PASS
   Put the original VIBRA type system above Woo block defaults.
   ========================================================== */
html body :where(p, a, li, label, input, select, textarea, button, table, td, th, small, strong),
html body :where(.woocommerce, .woocommerce *, .wc-block-components, .wc-block-components *) {
  font-family: "Inter", Helvetica, Arial, sans-serif !important;
}

html body :where(.font-display, h1.font-display, h2.font-display, h3.font-display),
html body :where(.woocommerce h1, .woocommerce h2, .woocommerce h3),
html body :where(.wc-block-components-title, .wc-block-components-checkout-step__title, .wc-block-components-order-summary__title),
html body .cart-panel__header h2 {
  font-family: "Bebas Neue", Oswald, Impact, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase;
}

html body :where(.font-serif, .font-serif *, #reviews .font-serif, #reviews .font-serif *) {
  font-family: "Cormorant Garamond", Georgia, serif !important;
}
