/* ===== Variables ===== */
:root {
  --ocean-deep: #0c4a6e;
  --ocean: #0284c7;
  --ocean-light: #38bdf8;
  --sky: #f0f9ff;
  --sand: #fef3c7;
  --sand-dark: #fde68a;
  --coral: #f97316;
  --coral-light: #fb923c;
  --seafoam: #5eead4;
  --white: #ffffff;
  --text: #1e3a5f;
  --text-muted: #64748b;
  --shadow: 0 4px 24px rgba(12, 74, 110, 0.12);
  --shadow-lg: 0 12px 48px rgba(12, 74, 110, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--sky);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-light));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-nav {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

.btn-cart {
  padding: 10px 20px;
  background: var(--ocean);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-cart:hover {
  background: var(--ocean-deep);
  transform: scale(1.05);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 10px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.4rem;
}

.logo-icon {
  font-size: 1.6rem;
}

.header:not(.scrolled) .logo-text,
.header:not(.scrolled) .nav-links a:not(.btn) {
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.header.scrolled .logo-text {
  color: var(--ocean-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.header.scrolled .nav-links a:not(.btn) {
  color: var(--text);
}

.nav-links a:not(.btn):hover {
  color: var(--coral);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.header.scrolled .nav-toggle span {
  background: var(--ocean-deep);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 74, 110, 0.75) 0%,
    rgba(2, 132, 199, 0.45) 50%,
    rgba(249, 115, 22, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 24px 100px;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--sand);
}

.hero-content > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  color: var(--white);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.stat span {
  font-size: 0.85rem;
  opacity: 0.85;
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 60px;
}

/* ===== Promo Carousel ===== */
.promo-section {
  padding: 60px 0 20px;
}

.promo-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 21/9;
  min-height: 280px;
}

.promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.promo-slide.active {
  opacity: 1;
}

.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(12, 74, 110, 0.85));
  color: var(--white);
}

.promo-tag {
  display: inline-block;
  background: var(--coral);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.promo-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.promo-text p {
  opacity: 0.9;
  margin-bottom: 16px;
  max-width: 480px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ocean-deep);
  transition: var(--transition);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.carousel-btn:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  color: var(--ocean);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--ocean-deep);
  margin-bottom: 12px;
}

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

/* ===== Products ===== */
.products {
  padding: 80px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--coral);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.badge-kids { background: #eab308; }
.badge-eco { background: #10b981; }
.badge-sport { background: var(--ocean); }
.badge-face { background: #ec4899; }
.badge-after { background: #06b6d4; }

.product-image {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sand) 100%);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
}

.product-image img {
  max-height: 220px;
  object-fit: contain;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 24px;
}

.product-spf {
  display: inline-block;
  background: var(--sky);
  color: var(--ocean);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-info h3 {
  font-size: 1.2rem;
  color: var(--ocean-deep);
  margin-bottom: 8px;
}

.product-info > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.product-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.product-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--sky);
  padding: 4px 10px;
  border-radius: 6px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ocean-deep);
}

/* ===== Family ===== */
.family {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--sky) 100%);
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.family-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--ocean-deep);
  margin-bottom: 16px;
}

.family-content > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.family-features {
  margin-bottom: 32px;
}

.family-features li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.family-features strong {
  display: block;
  color: var(--ocean-deep);
  margin-bottom: 4px;
}

.family-features p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.family-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.family-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.family-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.family-card strong {
  display: block;
  color: var(--ocean-deep);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.family-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.family-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--coral);
}

.family-price s {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  margin-left: 8px;
}

/* ===== Articles ===== */
.articles {
  padding: 80px 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ocean-light);
}

.article-card.featured {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  color: var(--white);
}

.article-card.featured .article-date,
.article-card.featured p {
  color: rgba(255, 255, 255, 0.85);
}

.article-card.featured h3 {
  color: var(--white);
}

.article-card.featured .article-link {
  color: var(--sand);
}

.article-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.article-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 1.15rem;
  color: var(--ocean-deep);
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.article-link {
  color: var(--ocean);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.article-link:hover {
  color: var(--coral);
}

/* ===== Reviews ===== */
.reviews {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sand) 50%, var(--sky) 100%);
}

.reviews-summary {
  text-align: center;
  margin-bottom: 48px;
}

.rating-big {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  padding: 24px 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rating-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--ocean-deep);
  line-height: 1;
}

.stars {
  color: #fbbf24;
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin: 8px 0;
}

.rating-big > span:last-child {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.review-stars {
  color: #fbbf24;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean), var(--ocean-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  color: var(--ocean-deep);
  font-size: 0.95rem;
}

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

/* ===== Contact ===== */
.contact {
  padding: 80px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ocean-deep);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-details li {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 1rem;
}

.contact-form {
  background: var(--sky);
  padding: 32px;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ocean-deep);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ocean-light);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* ===== Footer ===== */
.footer {
  background: var(--ocean-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-newsletter h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--sand);
}

.footer-newsletter p {
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.875rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a:hover {
  color: var(--sand);
}

/* ===== Order Modal ===== */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.order-modal.open {
  opacity: 1;
  visibility: visible;
}

.order-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 74, 110, 0.55);
  backdrop-filter: blur(4px);
}

.order-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-modal.open .order-modal-dialog {
  transform: translateY(0) scale(1);
}

.order-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--sky);
  color: var(--ocean-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-modal-close:hover {
  background: var(--ocean);
  color: var(--white);
}

.order-modal-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ocean-deep);
  margin-bottom: 20px;
}

.order-product-summary {
  background: linear-gradient(135deg, var(--sky), var(--sand));
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.order-product-summary strong {
  display: block;
  color: var(--ocean-deep);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.order-product-summary span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--coral);
}

.order-form .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--sky);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.order-form .form-group select:focus {
  outline: none;
  border-color: var(--ocean-light);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  background: var(--white);
}

.label-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.order-form-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.order-success {
  text-align: center;
  padding-top: 12px;
}

.order-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, var(--seafoam));
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.order-success h2 {
  margin-bottom: 12px;
}

.order-success p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.order-success p strong {
  color: var(--ocean-deep);
}

body.modal-open {
  overflow: hidden;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ocean-deep);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== Legal Pages ===== */
.legal-page .header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 10px 0;
}

.legal-page .logo-text,
.legal-page .nav-links a:not(.btn) {
  color: var(--ocean-deep);
  text-shadow: none;
}

.legal-page .nav-toggle span {
  background: var(--ocean-deep);
}

.legal-hero {
  padding: 120px 0 48px;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean) 100%);
  color: var(--white);
}

.legal-hero .container {
  max-width: 820px;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 20px;
  opacity: 0.85;
}

.legal-breadcrumb a:hover {
  color: var(--sand);
}

.legal-breadcrumb span {
  opacity: 0.6;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.legal-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.legal-body {
  padding: 48px 0 80px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 74, 110, 0.08);
}

.legal-toc h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean);
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
  margin-bottom: 10px;
}

.legal-toc a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding-left: 24px;
  position: relative;
  transition: var(--transition);
}

.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--ocean-light);
}

.legal-toc a:hover,
.legal-toc a.active {
  color: var(--ocean-deep);
}

.legal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.legal-content section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(12, 74, 110, 0.08);
}

.legal-content section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ocean-deep);
  margin-bottom: 16px;
  scroll-margin-top: 100px;
}

.legal-content h3 {
  font-size: 1.05rem;
  color: var(--ocean-deep);
  margin: 20px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
  margin: 12px 0 16px 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content ul li {
  list-style: disc;
}

.legal-content ol li {
  list-style: decimal;
}

.legal-content a {
  color: var(--ocean);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--coral);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(12, 74, 110, 0.1);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(12, 74, 110, 0.08);
}

.legal-table th {
  background: var(--sky);
  color: var(--ocean-deep);
  font-weight: 600;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-info-box {
  background: var(--sky);
  border-left: 4px solid var(--ocean);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

.legal-info-box p:last-child {
  margin-bottom: 0;
}

.legal-info-box strong {
  color: var(--ocean-deep);
}

.legal-related {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(12, 74, 110, 0.08);
}

.legal-related h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.legal-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-related-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--sky);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ocean-deep);
  text-decoration: none;
  transition: var(--transition);
}

.legal-related-links a:hover {
  background: var(--ocean);
  color: var(--white);
}

.legal-related-links a.is-current {
  background: var(--ocean-deep);
  color: var(--white);
  pointer-events: none;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-toc {
    position: static;
  }

  .legal-content {
    padding: 32px 24px;
  }

  .family-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .promo-carousel {
    aspect-ratio: 16/10;
  }

  .promo-text {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a:not(.btn) {
    color: var(--text) !important;
    text-shadow: none !important;
    font-size: 1.1rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .products-grid,
  .articles-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}
