/* ==========================================================================
   SleighHouse Apparel - Design Tokens
   Colors derived from the brand mark: cranberry sleigh, forest-green cabin,
   snow-white ground, amber window glow.
   ========================================================================== */
:root {
  /* Brand palette */
  --color-red: #8b2635;
  --color-red-dark: #6e1e2b;
  --color-red-light: #a9364a;
  --color-forest: #1f3d2e;
  --color-forest-dark: #142a1f;
  --color-forest-light: #2d5540;
  --color-amber: #e8b54d;
  --color-amber-dark: #c9932c;

  /* Neutrals */
  --color-snow: #f6f7f5;
  --color-snow-soft: #eef1ee;
  --color-white: #ffffff;
  --color-ink: #1a231d;
  --color-ink-soft: #445048;
  --color-border: #dde3dd;

  /* Semantic */
  --color-bg: var(--color-snow);
  --color-surface: var(--color-white);
  --color-text: var(--color-ink);
  --color-text-muted: var(--color-ink-soft);
  --color-accent: var(--color-red);
  --color-accent-hover: var(--color-red-dark);
  /* Darker than --color-amber-dark: that shade only hits 2.7:1 against
     white/snow backgrounds, under the 3:1 WCAG non-text contrast minimum
     for focus indicators (SC 1.4.11). This shade clears 3:1 against every
     background a focus ring appears on (white, snow, forest-dark). */
  --color-focus: #a67424;

  /* Typography */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Motion */
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.18s;
  --duration-standard: 0.32s;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-forest-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  max-width: 65ch;
}

ul {
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
}

/* Visible focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-forest-dark);
  color: var(--color-white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--duration-fast) var(--ease-standard);
}

.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

main {
  display: block;
}

section {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.section-heading p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section-tight .section-heading {
  margin-bottom: 1.5rem;
}

.bg-forest {
  background: var(--color-forest-dark);
  color: var(--color-snow);
}

.bg-forest h2,
.bg-forest h3,
.bg-forest h4 {
  color: var(--color-white);
}

.bg-forest p {
  color: #cddbd2;
}

.bg-white {
  background: var(--color-white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(139, 38, 53, 0.25);
}

.btn-primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 38, 53, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-forest-dark);
  border-color: var(--color-forest-dark);
}

.btn-secondary:hover {
  background: var(--color-forest-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.bg-forest .btn-secondary {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.bg-forest .btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-forest-dark);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-forest-dark);
}

.btn-light:hover {
  background: var(--color-amber);
  color: var(--color-forest-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 245, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--duration-standard) var(--ease-standard),
    border-color var(--duration-standard) var(--ease-standard);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(20, 42, 31, 0.08);
  border-bottom-color: var(--color-border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-forest-dark);
  flex-shrink: 0;
}

.nav-brand img {
  height: 40px;
  width: 40px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-standard) var(--ease-standard);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-links a.is-active {
  color: var(--color-red);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.nav-cta {
  min-height: 44px;
  padding: 0.6rem 1.4rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-icon {
  position: relative;
  width: 24px;
  height: 18px;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-forest-dark);
  border-radius: 2px;
  transition: transform var(--duration-standard) var(--ease-standard),
    opacity var(--duration-standard) var(--ease-standard);
}

.nav-toggle-icon span:nth-child(1) {
  top: 0;
}

.nav-toggle-icon span:nth-child(2) {
  top: 8px;
}

.nav-toggle-icon span:nth-child(3) {
  top: 16px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--color-forest-dark);
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--duration-standard) var(--ease-standard),
    opacity var(--duration-standard) var(--ease-standard),
    visibility 0s;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu a {
  display: block;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 44px;
}

.mobile-menu a.is-active {
  color: var(--color-amber);
}

.mobile-menu .btn {
  margin-top: 1.5rem;
  width: 100%;
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-actions {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-forest-dark);
  color: #cddbd2;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  height: 36px;
  width: 36px;
}

.footer-col h3 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: #cddbd2;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--color-amber);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  transition: background var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.footer-socials a:hover {
  background: var(--color-amber);
  color: var(--color-forest-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9fb3a8;
}

.footer-bottom a {
  color: #9fb3a8;
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Scroll-reveal utility (JS toggles .is-visible on intersect)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-standard), transform 0.6s var(--ease-standard);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .nav-links a::after,
  .footer-socials a,
  .mobile-menu {
    transition: none !important;
  }
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-forest-dark);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  min-height: 48px;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-red);
  outline: 3px solid rgba(139, 38, 53, 0.25);
  outline-offset: 1px;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e6f1e9;
  color: var(--color-forest-dark);
  border: 1px solid var(--color-forest-light);
}

.form-status.is-error {
  display: block;
  background: #fbe9ea;
  color: var(--color-red-dark);
  border: 1px solid var(--color-red);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  max-width: 18ch;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 40ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-visual {
  width: 100%;
}

.hero-visual svg {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Promo bento grid
   ========================================================================== */
.promo-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .promo-grid {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
  }

  .promo-card.is-primary {
    grid-row: span 2;
  }
}

.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  color: var(--color-white);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  transition: transform var(--duration-standard) var(--ease-standard),
    box-shadow var(--duration-standard) var(--ease-standard);
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(20, 42, 31, 0.22);
}

.promo-card.is-primary {
  min-height: 320px;
  background: linear-gradient(160deg, var(--color-forest) 0%, var(--color-forest-dark) 100%);
}

.promo-card.is-tone-red {
  background: linear-gradient(160deg, var(--color-red-light) 0%, var(--color-red-dark) 100%);
}

.promo-card.is-tone-amber {
  background: linear-gradient(160deg, #f0c979 0%, var(--color-amber-dark) 100%);
  color: var(--color-ink);
}

.promo-card .promo-illustration {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.9;
}

.promo-card .promo-illustration svg {
  width: 100%;
  height: 100%;
}

.promo-card h3 {
  color: inherit;
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.promo-card span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.promo-card svg.arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.promo-card:hover svg.arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Product cards & skeleton state (shared by homepage featured + products.html)
   ========================================================================== */
.products-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

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

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(20, 42, 31, 0.12);
}

.product-card__media {
  aspect-ratio: 1 / 1;
  background: var(--color-snow-soft);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 1.1rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.product-card__body h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.product-card__price {
  color: var(--color-red);
  font-weight: 700;
}

.product-card__cta {
  margin-top: auto;
  align-self: flex-start;
}

.product-skeleton {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-skeleton__media,
.product-skeleton__line {
  background: linear-gradient(90deg, var(--color-snow-soft) 25%, #e4e8e3 37%, var(--color-snow-soft) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.product-skeleton__media {
  aspect-ratio: 1 / 1;
}

.product-skeleton__line {
  height: 14px;
  margin: 1.1rem 1.25rem 0;
  border-radius: 4px;
}

.product-skeleton__line + .product-skeleton__line {
  width: 55%;
  margin-top: 0.6rem;
  margin-bottom: 1.25rem;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-skeleton__media,
  .product-skeleton__line {
    animation: none;
  }
}

.products-empty,
.products-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}

/* ==========================================================================
   About split
   ========================================================================== */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }
}

.about-visual svg {
  width: 100%;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  list-style: none;
}

.about-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.about-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--color-red);
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 48rem;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.25rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-forest-dark);
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-red);
  transition: transform var(--duration-standard) var(--ease-standard);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  padding-bottom: 1.1rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ==========================================================================
   Newsletter band
   ========================================================================== */
.newsletter {
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 32rem;
  margin: 1.75rem auto 0;
}

.newsletter-form .form-field {
  flex: 1 1 220px;
  margin-bottom: 0;
}

.newsletter-form label {
  color: inherit;
}

/* ==========================================================================
   Contact split
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
  }
}

.contact-info h3 {
  font-size: 1.2rem;
}

.contact-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--color-border);
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Portal
   ========================================================================== */
.portal-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.portal-login-wrap {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.portal-login-card {
  width: 100%;
  max-width: 26rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.portal-login-card .nav-brand {
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.portal-header {
  background: var(--color-forest-dark);
  color: var(--color-white);
}

.portal-header .nav-bar {
  height: var(--nav-height);
}

.portal-header .nav-brand {
  color: var(--color-white);
}

.portal-main {
  flex-grow: 1;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.portal-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.portal-tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.9rem 0.25rem;
  margin-right: 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-muted);
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}

.portal-tab:hover {
  color: var(--color-forest-dark);
}

.portal-tab.is-active {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

.portal-panel {
  display: none;
}

.portal-panel.is-active {
  display: block;
}

.portal-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .portal-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.portal-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.portal-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.portal-card iframe {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-snow-soft);
}

.portal-stat-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.25rem;
}

.portal-stat {
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--color-snow-soft);
  border-radius: var(--radius-sm);
}

.portal-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-forest-dark);
}

.portal-stat span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.portal-top-products {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.portal-top-products li {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-border);
}

.portal-editor-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .portal-editor-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.promo-editor-preview {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-snow-soft);
  margin-bottom: 1rem;
}

.portal-placeholder-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-snow-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}
