/* ==========================================================================
   VNIC — Product Page Styles (productstyle.css)

   SCOPING NOTE:
   Every rule and every custom property in this file lives under the single
   wrapper class `.pw-scope`, and every class name is prefixed `pw-`. This
   file can be dropped onto any existing page without touching that page's
   own :root variables, resets, or components — nothing here targets a bare
   element selector (div, section, a, button, etc.) or the global :root.
   ========================================================================== */

.pw-scope {
  /* ---- BRAND COLORS (edit these to re-skin only this component) ---- */
  --brand-primary: #0B5D6B;        /* deep petrol teal — main brand color */
  --brand-primary-dark: #073E48;   /* darker teal — headers, footer, hover */
  --brand-primary-light: #E8F3F4;  /* pale teal tint — section backgrounds */
  --brand-accent: #00C2CB;         /* bright aqua/cyan — links, highlights */
  --brand-highlight: #FFB648;      /* warm amber — CTA buttons, badges */
  --brand-highlight-dark: #E8961F; /* amber hover state */
  --brand-ink: #0A2027;            /* near-black blue-ink — body text */
  --brand-muted: #5C7981;          /* muted slate — secondary text */
  --brand-bg: #F6FAFB;             /* page background, cool off-white */
  --brand-white: #FFFFFF;
  --brand-border: #DCE9EB;

  /* ---- TYPOGRAPHY ---- */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ---- LAYOUT TOKENS ---- */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 50px -22px rgba(10, 32, 39, 0.28);
  --shadow-tight: 0 10px 24px -14px rgba(10, 32, 39, 0.3);
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Base surface for anything rendered directly inside the scope */
  display: block;
  background: var(--brand-bg);
  color: var(--brand-ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

.pw-scope img { max-width: 100%; display: block; }

.pw-scope h1,
.pw-scope h2,
.pw-scope h3 {
  font-family: var(--font-display);
  color: var(--brand-ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.pw-scope p { margin: 0; }

.pw-scope a { text-decoration: none; }

.pw-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.pw-hidden { display: none !important; }

.pw-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.pw-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 100px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.pw-btn:active { transform: translateY(1px); }

.pw-btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }

.pw-btn-primary {
  background: var(--brand-primary);
  color: var(--brand-white);
  box-shadow: var(--shadow-tight);
}
.pw-btn-primary:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-2px);
}

.pw-btn-accent {
  background: var(--brand-highlight);
  color: var(--brand-primary-dark);
  box-shadow: 0 12px 24px -10px rgba(255, 182, 72, 0.45);
}
.pw-btn-accent:hover {
  background: var(--brand-highlight-dark);
  color: var(--brand-white);
  transform: translateY(-2px);
}

.pw-btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--brand-white);
  border-color: rgba(255,255,255,0.28);
}
.pw-btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   Page header
   ========================================================================== */
.pw-page-head {
  position: relative;
  background: var(--brand-primary-dark);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.pw-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-highlight);
  margin-bottom: 1rem;
}

.pw-page-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--brand-white) !important;
  line-height: 1.05;
}

.pw-page-sub {
  margin-top: 1.2rem;
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  max-width: 52ch;
}

.pw-wave { line-height: 0; margin-top: -2px; }
.pw-wave svg { width: 100%; height: 60px; display: block; }
.pw-wave path { fill: var(--brand-bg); }

/* ==========================================================================
   Filter row
   ========================================================================== */
.pw-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 2.6rem;
}

.pw-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pw-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--brand-border);
  background: var(--brand-white);
  color: var(--brand-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.3rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.pw-filter-pill:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.pw-filter-pill.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-white);
}

.pw-filter-count {
  font-size: 0.9rem;
  color: var(--brand-muted);
  font-weight: 500;
}
.pw-filter-count span {
  font-weight: 700;
  color: var(--brand-ink);
  font-family: var(--font-display);
}

/* ==========================================================================
   Product grid & cards
   ========================================================================== */
.pw-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.pw-product-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pw-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.pw-product-card.pw-is-hidden { display: none; }

.pw-product-media {
  position: relative;
  aspect-ratio: 6 / 5;
  overflow: hidden;
}
.pw-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.pw-product-card:hover .pw-product-media img { transform: scale(1.06); }

.pw-product-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(255,255,255,0.92);
  color: var(--brand-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}
.pw-product-tag {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: var(--brand-highlight);
  color: var(--brand-primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}

.pw-product-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.pw-product-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}
.pw-product-desc {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--brand-muted);
  flex-grow: 1;
}

.pw-spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.pw-spec-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--brand-primary-light);
  color: var(--brand-primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
}
.pw-spec-row i { color: var(--brand-primary); }

.pw-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--brand-border);
}
.pw-price { display: flex; flex-direction: column; line-height: 1.2; }
.pw-price-label { font-size: 0.72rem; color: var(--brand-muted); font-weight: 500; }
.pw-price-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--brand-ink);
}
.pw-buy-btn { padding: 0.65rem 1.3rem; font-size: 0.88rem; }

.pw-empty-state {
  text-align: center;
  padding: 3rem 0;
  color: var(--brand-muted);
  font-size: 1rem;
}

/* ==========================================================================
   Mini CTA
   ========================================================================== */
.pw-cta {
  background: var(--brand-primary-dark);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.pw-cta-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.pw-cta-title { color: var(--brand-white) !important; font-size: clamp(2rem, 4.2vw, 2.8rem); font-weight: 700; }
.pw-cta-sub {
  display: block;
  margin-top: 0.9rem;
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
}
.pw-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.1rem;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .pw-scope .pw-product-card,
  .pw-scope .pw-product-media img,
  .pw-scope .pw-btn,
  .pw-scope .pw-filter-pill {
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
  .pw-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .pw-product-grid { grid-template-columns: 1fr; }
  .pw-filter-row { flex-direction: column; align-items: flex-start; }
}
