:root {
  --bg: #fafafa;
  --bg-alt: #f3f4f6;
  --card: #ffffff;
  --text: #111827;
  --text-secondary: #4b5563;
  --muted: #9ca3af;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --success: #10b981;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;

  --site-header-bg: #1e40af;
  --site-menu-text: #ffffff;
  --site-price-color: #2563eb;
  --site-footer-bg: #111827;
  --site-footer-text: #d1d5db;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 0 8px;
}

/* Header */
.header {
  background: var(--site-header-bg);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  letter-spacing: -0.5px;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-link {
  color: var(--site-menu-text);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-link:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle .arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s;
}

.nav-dropdown.open .arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(8px);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
}

.nav-dropdown-item:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

/* Main */
.main {
  flex: 1;
  padding: 20px 0;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

.breadcrumbs a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  text-align: center;
  padding: 48px 0 40px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: none;
  margin: 0 auto;
}

.category-hero p {
  text-align: left;
  max-width: none;
  margin: 0;
}

.category-hero .category-desc + .category-desc {
  margin-top: 12px;
}

.hero .price {
  font-size: 32px;
  margin-top: 20px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  gap: 16px;
  align-items: center;
  text-align: left;
}

.product-hero-media {
  width: 100%;
  max-width: 280px;
}

.product-hero-media img,
.product-hero-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
}

.product-hero-content h1 {
  margin-bottom: 8px;
}

@media (min-width: 769px) {
  .product-hero {
    justify-content: center;
    justify-items: center;
    text-align: center;
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    margin: 0 auto;
  }

  .product-hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    margin: 0 auto;
  }

  .product-hero-content {
    text-align: center;
  }

  .product-hero-content .order-cta {
    display: block;
    margin: 12px auto 8px;
  }

  .product-hero-content .order-cta-note {
    margin-top: 8px;
  }
}

.product-hero-content p {
  margin: 0;
}

.order-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #facc15;
  color: #111827;
  border: 1px solid #eab308;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 12px;
}

.order-cta:hover {
  background: #fbbf24;
}

.order-cta-note {
  margin-top: 8px;
  color: #15803d;
  font-size: 14px;
  font-weight: 600;
  background: #f0fdf4;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  display: inline-block;
}

.mobile-consent-note {
  display: none;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 8px 0 4px;
}

/* Section */
section {
  margin-bottom: 48px;
}

section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Card */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  background: #fff;
}

.card-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

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

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.card h3 a {
  color: #111827;
  text-decoration: none;
}

.card h3 a:hover {
  color: #111827;
  text-decoration: none;
}

.card p {
  color: var(--text-secondary);
  font-size: 14px;
  flex: 1;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--site-price-color);
  margin-top: 16px;
}

/* Details */
.details {
  background: var(--card);
  border-radius: var(--radius);
  padding: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.details--plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.details h2 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.details h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.details p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.order-form {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.order-form--plain {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.order-form--plain .order-form-header {
  border-radius: 10px 10px 0 0;
}

.order-form--plain .order-form-body {
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.order-form-header {
  background: #1769ff;
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  font-size: 18px;
}

.order-form-body {
  padding: 18px;
  display: grid;
  gap: 18px;
}

.order-form-product {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: center;
}

.order-form-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8fafc;
  font-weight: 700;
  color: var(--accent);
}

.order-form-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-form-name {
  font-weight: 700;
  font-size: 18px;
}

.order-form-price {
  color: #1769ff;
  font-weight: 700;
  margin-top: 4px;
}

.order-form-cod {
  color: #15803d;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-form-dot {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  align-items: center;
  justify-content: center;
}

.order-form form {
  display: grid;
  gap: 16px;
}

.order-form .form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.order-form .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.order-form .required {
  color: #ef4444;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  font-family: inherit;
}

.order-form textarea {
  min-height: 120px;
  resize: vertical;
}

.order-form .checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 16px 0;
  text-align: left;
  flex-wrap: wrap;
  word-break: break-word;
}

.order-form .checkbox input {
  flex: 0 0 auto;
}

.order-form .checkbox a {
  word-break: break-word;
}

.order-form .checkbox input {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.order-form .checkbox a {
  color: #1769ff;
  text-decoration: underline;
}

.order-form .form-actions {
  display: flex;
  justify-content: center;
}

.order-form .form-actions button {
  background: #facc15;
  color: #111827;
  border: 1px solid #eab308;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  min-width: 240px;
}

.order-form .form-actions button:hover {
  background: #fbbf24;
}

.order-form .cart-icon {
  margin-right: 8px;
}

/* Footer */
.footer {
  background: var(--site-footer-bg);
  color: var(--site-footer-text);
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--site-footer-text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  white-space: normal;
  word-break: break-word;
}

.footer-links a:hover {
  color: currentColor;
}

.footer-copy {
  font-size: 13px;
  color: var(--site-footer-text);
}

/* Responsive */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 2px;
  }

  .mobile-consent-note {
    display: block;
  }

  .order-form .consent-checkbox {
    display: none;
  }

  .header-inner {
    height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: #1e3a8a;
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    max-height: 0;
    overflow: hidden;
    transition: all 0.2s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 480px;
  }

  .nav-link {
    width: 100%;
    text-align: left;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .nav-link {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .hero {
    padding: 16px 0;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .details {
    padding: 8px;
  }

  .product-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-hero-media {
    margin: 0 auto;
  }

  .order-cta {
    width: 100%;
  }

  .order-form,
  .order-form-body,
  .order-form form {
    width: 100%;
  }
}
