/* ==========================================================================
   EASYWOX — RICH PHOTOGRAPHIC + CRISP INDUSTRIAL DESIGN SYSTEM
   Combines full-bleed real-world photography & interactive storytelling
   with taut 6px machined hardware geometry (Zero 30px bubbles / 999px pills)
   ========================================================================== */

:root {
  /* Surfaces — Pure Matte Obsidian & Cool Precision Studio (Zero warm beige) */
  --obsidian: #111316;
  --carbon: #181b20;
  --carbon-2: #20242b;
  --carbon-line: rgba(255, 255, 255, 0.1);

  --canvas: #f4f5f7;
  --stone: #eaedf1;
  --white: #ffffff;

  /* Ink */
  --ink: #111316;
  --ink-2: #2b3037;
  --muted: #5a626d;
  --subtle: #858d98;
  --line: #dfe3e8;
  --line-strong: #c5ccd5;

  /* Dual Product Line Identities */
  --green: #52be43;
  --green-dark: #256f1b;
  --green-soft: #eaf7e8;

  --yellow: #ffc845;
  --yellow-dark: #8c5f00;
  --yellow-soft: #fff6de;

  --accent: var(--green);

  /* Typography */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Taut Industrial Chamfer (Crisp, muscular, never bubbly) */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(17, 19, 22, 0.05);
  --shadow-md: 0 14px 34px rgba(17, 19, 22, 0.09);
  --shadow-lg: 0 28px 64px rgba(17, 19, 22, 0.24);

  --container: 1340px;
  --header-h: 70px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme-series="yellow"],
.series-context-yellow {
  --accent: var(--yellow);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

h1, h2, h3, .section-title, .studio-hero__title {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }
}

/* Editorial Kicker & Headings */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker-bar {
  width: 18px;
  height: 3.5px;
  background: var(--accent);
  border-radius: 1px;
}

.kicker-bar--green {
  background: var(--green);
}

.kicker-bar--yellow {
  background: var(--yellow);
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-sub {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.6;
}

/* Crisp Rectangular Buttons (6px industrial chamfer) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn--dark {
  background: var(--obsidian);
  color: #ffffff;
  border: 1px solid var(--obsidian);
}

.btn--dark:hover {
  background: #262a31;
}

.btn--green {
  background: var(--green);
  color: #091308;
  border: 1px solid var(--green);
}

.btn--green:hover {
  background: #47af39;
}

.btn--yellow {
  background: var(--yellow);
  color: #141109;
  border: 1px solid var(--yellow);
}

.btn--yellow:hover {
  background: #f3ba31;
}

.btn--outline {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn--outline:hover {
  border-color: var(--obsidian);
}

.btn--ghost-light {
  background: rgba(17, 19, 22, 0.68);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn--ghost-light:hover {
  background: var(--obsidian);
  border-color: #ffffff;
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.sq-arrow {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s var(--ease);
  flex-shrink: 0;
}

.sq-arrow:hover {
  background: var(--obsidian);
  color: #ffffff;
  border-color: var(--obsidian);
}

.sq-bag-btn {
  cursor: pointer;
}

.product-card[data-series="green"] .sq-bag-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.product-card[data-series="yellow"] .sq-bag-btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--obsidian);
}

.btn[disabled] {
  opacity: 0.68;
  cursor: wait;
  pointer-events: none;
}

/* Top Utility Bar */
.top-bar {
  background: var(--obsidian);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  height: 34px;
  display: flex;
  align-items: center;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.82);
}

.top-bar a:hover {
  color: #ffffff;
}

@media (max-width: 480px) {
  .top-bar {
    font-size: 11.5px;
    height: 32px;
  }
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-logo svg {
  height: 21px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  opacity: 0.82;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  transition: opacity 0.16s;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
  color: var(--ink);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--ink);
}

.series-ind {
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
}

.series-ind--green {
  background: var(--green);
}

.series-ind--yellow {
  background: var(--yellow);
}

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

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  position: relative;
  transition: background 0.16s, border-color 0.16s;
}

.header-icon-btn:hover {
  background: var(--stone);
  border-color: var(--line);
}

.bag-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 3px;
  background: var(--green);
  color: #081207;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
}

@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .header-cta-desktop {
    display: none;
  }
}

/* Rich Product Card (Modeled after v1 richness + crisp 6px hardware edges) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1140px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1.04 / 1;
  background: #ffffff;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: opacity 0.32s var(--ease), transform 0.38s var(--ease);
}

.product-card__img--hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.28s var(--ease), transform 0.38s var(--ease);
}

.product-card:hover .product-card__img--hover {
  opacity: 1;
  transform: scale(1.03);
}

.product-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  background: rgba(244, 245, 247, 0.94);
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
  color: var(--ink-2);
}

.product-card__stars {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  color: var(--ink);
}

.product-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__title {
  margin: 0 0 6px;
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.product-card__tagline {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

.product-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 16px;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  padding: 3.5px 8px;
  border-radius: 3px;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-2);
  white-space: nowrap;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.product-card__price del {
  font-size: 13px;
  font-weight: 500;
  color: var(--subtle);
  margin-left: 6px;
}

/* Overlays, Bag Drawer, Search Modal & Cinema Video Modal */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 14, 17, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
}

.overlay-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100vw);
  z-index: 210;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.3s var(--ease);
}

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

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--canvas);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.search-modal {
  position: fixed;
  top: 9vh;
  left: 50%;
  transform: translate(-50%, -10px);
  width: min(700px, calc(100vw - 32px));
  max-height: 80vh;
  z-index: 220;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s var(--ease);
  overflow: hidden;
}

.search-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
}

.search-results {
  overflow-y: auto;
  padding: 14px 20px 20px;
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  transition: border-color 0.15s, background 0.15s;
}

.search-result-item:hover {
  background: var(--canvas);
  border-color: var(--ink);
}

.search-result-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--r-sm);
  padding: 4px;
}

/* Video Cinema Modal */
.video-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  width: min(920px, calc(100vw - 32px));
  z-index: 230;
  background: var(--obsidian);
  color: #ffffff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s var(--ease);
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.video-modal__head {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--carbon-line);
}

.video-modal__stage {
  position: relative;
  width: 100%;
  background: #000;
}

.video-modal video {
  width: 100%;
  max-height: 74vh;
  background: #000;
  display: block;
}

.video-modal iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  background: #000;
}

/* Footer */
.site-footer {
  background: var(--obsidian);
  color: rgba(255, 255, 255, 0.82);
  padding: 72px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--carbon-line);
}

.footer-brand-desc {
  margin: 16px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  max-width: 33ch;
  line-height: 1.65;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #ffffff;
}

.newsletter-form {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--green);
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.44);
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

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

.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 300;
  background: var(--obsidian);
  color: #ffffff;
  padding: 13px 18px;
  border-radius: var(--r-sm);
  border-left: 4px solid var(--green);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 600;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s var(--ease);
}

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