:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --muted: #eef4fb;
  --muted-foreground: #64748b;
  --primary: #152b64;
  --primary-2: #203a86;
  --accent: #f7bd16;
  --warm: #d96a00;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 92px;
  padding: 18px clamp(20px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
}

.site-header,
.footer,
.admin-main {
  overflow-wrap: anywhere;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand span {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  color: var(--accent);
  background: var(--primary);
  font-weight: 900;
  font-size: 1.4rem;
}

.brand strong {
  color: #10172b;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 34px);
}

.nav a,
.admin-sidebar nav a {
  border-radius: 999px;
  padding: 13px 26px;
  color: #334155;
  font-weight: 700;
}

.nav a.active,
.nav a:hover,
.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(21, 43, 100, 0.28);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--primary);
  background: #f6f7fb;
  font-weight: 900;
}

.icon-btn.accent {
  color: #fff;
  background: var(--warm);
  box-shadow: 0 12px 28px rgba(217, 106, 0, 0.25);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--foreground);
  background: transparent;
  font-size: 1.5rem;
}

.hero,
.page-hero {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 86px 24px 110px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(21, 43, 100, 0.94) 0%, rgba(28, 52, 126, 0.9) 58%, rgba(255, 255, 255, 0.98) 100%),
    url("https://images.unsplash.com/photo-1519167758481-83f550bb49b3?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.hero-content {
  width: min(860px, 100%);
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin: 24px auto 14px;
  max-width: 980px;
  font-size: clamp(2.65rem, 7vw, 5.8rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: 0;
}

.hero h1 {
  color: #fff;
}

.hero h1::first-line {
  color: var(--accent);
}

.hero p,
.page-hero p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 14px 30px;
  color: #fff;
  background: linear-gradient(135deg, #f08a00, #d55e00);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(217, 106, 0, 0.24);
  cursor: pointer;
}

.section {
  padding: 74px clamp(22px, 4vw, 54px);
}

.section.soft {
  background: #edf5ff;
}

.section-head {
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2,
.values h2,
.contact-section h1,
.message-card h2,
.admin-main h1 {
  margin: 0 0 8px;
  color: #10172b;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: #475569;
  font-size: 1.2rem;
}

.category-grid,
.product-grid,
.value-grid,
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.image-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111827;
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.35s ease;
}

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

.image-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 28px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.75));
}

.image-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 950;
}

.image-card small {
  display: inline-flex;
  margin-bottom: 32px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 850;
}

.image-card span,
.quote-link {
  color: var(--accent);
  font-weight: 900;
}

.product-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.product-card div {
  padding: 22px;
}

.product-card span {
  color: var(--warm);
  font-weight: 850;
}

.product-card h3 {
  margin: 8px 0 8px;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 950;
}

.product-card p {
  min-height: 78px;
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.55;
}

.card-price {
  display: block;
  margin: 0 0 12px;
  color: #10172b;
  font-size: 1.25rem;
  font-weight: 950;
}

.page-hero {
  min-height: 450px;
  background:
    linear-gradient(180deg, rgba(21, 43, 100, 0.98) 0%, rgba(24, 47, 112, 0.98) 72%, rgba(255, 255, 255, 1) 100%),
    url("https://images.unsplash.com/photo-1496024840928-4c417adf211d?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.search-bar {
  width: min(840px, 100%);
  margin: 26px auto 0;
}

.search-bar input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.login-card input,
.message-card input,
.message-card textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  padding: 18px 22px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
}

.search-bar input {
  min-height: 72px;
  border-radius: 999px;
  font-size: 1.1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
}

.filters a {
  border-radius: 999px;
  padding: 16px 28px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  font-weight: 850;
}

.filters a.active {
  color: #fff;
  background: var(--primary);
}

.detail {
  padding: 56px clamp(22px, 4vw, 54px) 84px;
  background: #eef6ff;
}

.back-link {
  display: inline-flex;
  margin: 0 0 34px;
  color: #334155;
  font-weight: 850;
}

.detail-grid,
.about-block,
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.detail-image {
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-image img,
.about-block img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 1.12 / 1;
  object-fit: cover;
}

.detail-info .pill {
  color: #7c2d12;
  background: #fff3b0;
  border: 0;
}

.detail-info h1 {
  margin: 22px 0 18px;
  color: #10172b;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1.02;
  font-weight: 950;
}

.detail-info p,
.about-block p {
  color: #334155;
  font-size: 1.18rem;
  line-height: 1.75;
}

.quote-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0;
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
}

.quote-box strong {
  display: block;
  color: #10172b;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 950;
}

.quote-box span {
  display: block;
  margin-top: 6px;
  color: var(--warm);
  font-weight: 900;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-list span,
.value-grid div,
.stats div {
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.about-block,
.values,
.contact-section {
  padding: 74px clamp(22px, 4vw, 54px);
}

.about-block h2 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 1.05;
  font-weight: 950;
}

.values {
  text-align: center;
  background: #edf5ff;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  text-align: left;
}

.value-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.value-grid span {
  color: #475569;
  line-height: 1.55;
}

.contact-section {
  align-items: start;
  background: #f8fafc;
}

.contact-card,
.message-card,
.login-card {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-card span {
  display: grid;
  place-items: center;
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  color: var(--accent);
  background: var(--primary);
  font-size: 1.8rem;
}

.contact-card strong {
  font-size: 1.25rem;
}

.contact-card p {
  margin: 8px 0 0;
  color: #334155;
  line-height: 1.5;
}

.message-card,
.login-card,
.admin-form {
  display: grid;
}

.message-card {
  gap: 18px;
}

.message-card label,
.login-card label,
.admin-form label {
  display: grid;
  gap: 9px;
  font-weight: 850;
}

.message-card textarea,
.admin-form textarea {
  min-height: 130px;
  resize: vertical;
}

.footer {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 48px;
  padding: 74px clamp(22px, 4vw, 54px) 36px;
  color: #b7c6df;
  background: #0f1b34;
}

.footer .brand strong {
  color: #fff;
}

.footer p {
  max-width: 460px;
  line-height: 1.7;
}

.footer h3 {
  margin-top: 10px;
  color: #fff;
}

.footer a:not(.brand) {
  display: block;
  margin: 14px 0;
}

.footer small {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  text-align: center;
}

.float-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: #1da851;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.22);
  font-weight: 950;
}

.mobile-cta {
  display: none;
}

.admin-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: #edf5ff;
}

.login-card {
  width: min(430px, 100%);
}

.notice {
  border-radius: 14px;
  padding: 14px 16px;
  color: #16346f;
  background: #e7f0ff;
  font-weight: 800;
}

.admin-lead {
  max-width: 860px;
  margin: 8px 0 22px;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.65;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1060px;
  margin: 20px 0 24px;
}

.quick-actions a {
  display: grid;
  gap: 8px;
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.quick-actions strong {
  color: #10172b;
  font-size: 1.1rem;
}

.quick-actions span {
  color: #64748b;
  line-height: 1.5;
}

.admin-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  background: linear-gradient(180deg, #f7fbff, #eef4fb);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.08);
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}

.admin-sidebar nav a {
  border-radius: 14px;
}

.admin-main {
  width: min(1280px, 100%);
  padding: 34px;
}

.admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 22px 0 32px;
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-form label:has(textarea),
.admin-form label:has(input[name="seo_title"]),
.admin-form label:has(input[name="site_url"]),
.admin-form label:has(input[name="og_image"]),
.admin-fieldset,
.advanced-fields,
.admin-form .check,
.admin-form button {
  grid-column: 1 / -1;
}

.advanced-fields {
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  background: #f8fafc;
}

.advanced-fields summary {
  cursor: pointer;
  color: #334155;
  font-weight: 900;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.admin-setting-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1180px;
  margin: 18px 0 0;
}

.admin-setting-tabs a {
  border-radius: 999px;
  padding: 10px 14px;
  color: #1e3a8a;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  font-weight: 850;
}

.admin-fieldset {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px;
  background: #fbfdff;
}

.admin-fieldset legend {
  padding: 0 8px;
  color: #10172b;
  font-size: 1.1rem;
  font-weight: 950;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-field-grid label:has(textarea),
.admin-field-grid label:has(input[name="seo_title"]),
.admin-field-grid label:has(input[name="site_url"]),
.admin-field-grid label:has(input[name="og_image"]) {
  grid-column: 1 / -1;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.login-card input:focus,
.message-card input:focus,
.message-card textarea:focus {
  border-color: rgba(21, 43, 100, 0.45);
  box-shadow: 0 0 0 4px rgba(21, 43, 100, 0.08);
}

.admin-form .check {
  display: flex;
  align-items: center;
}

.admin-form .check input {
  width: auto;
}

.admin-table {
  display: grid;
  gap: 10px;
  max-width: 1180px;
}

.admin-table > div {
  display: grid;
  grid-template-columns: 1fr 0.7fr auto auto;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.admin-table button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  background: #dc2626;
  cursor: pointer;
}

.admin-table a {
  color: var(--primary);
  font-weight: 850;
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
  margin: 24px 0;
}

.stats strong {
  display: block;
  color: var(--primary);
  font-size: 2.4rem;
}

.stats span,
.admin-help {
  color: #475569;
}

.admin-recommendations {
  max-width: 920px;
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-recommendations h2 {
  margin: 0 0 12px;
  color: #10172b;
  font-size: 1.4rem;
}

.admin-recommendations p {
  margin: 10px 0;
  color: #475569;
  line-height: 1.65;
}

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

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .admin-layout {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .nav,
  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

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

@media (max-width: 760px) {
  .site-header {
    gap: 12px;
    min-height: auto;
    padding: 14px 16px;
  }

  .brand span {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .brand strong {
    font-size: 1.12rem;
    max-width: calc(100vw - 132px);
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav a {
    width: 100%;
    padding: 12px 16px;
    text-align: center;
  }

  .nav.open {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .hero,
  .page-hero {
    min-height: 470px;
    padding: 70px 18px 94px;
  }

  .category-grid,
  .product-grid,
  .detail-grid,
  .about-block,
  .contact-section,
  .value-grid,
  .footer,
  .stats,
  .admin-form,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .footer {
    gap: 28px;
    padding-bottom: 110px;
  }

  .image-card,
  .image-card img {
    min-height: 300px;
  }

  .quote-box {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .admin-sidebar nav {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .admin-sidebar nav a {
    flex: 0 0 auto;
    padding: 11px 16px;
  }

  .admin-main {
    padding: 18px;
  }

  .admin-table > div {
    grid-template-columns: 1fr;
  }

  .admin-form {
    padding: 18px;
  }

  .admin-setting-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .admin-setting-tabs a {
    flex: 0 0 auto;
  }

  .admin-field-grid {
    grid-template-columns: 1fr;
  }

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

  .float-whatsapp {
    display: none;
  }

  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 18px;
    padding: 13px 16px;
    color: #fff;
    background: #15803d;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.28);
    font-weight: 950;
  }

  .mobile-cta span,
  .mobile-cta strong {
    display: block;
  }

  .mobile-cta strong {
    font-size: 0.85rem;
    opacity: 0.86;
  }

  body {
    padding-bottom: 78px;
  }
}

@media (max-width: 420px) {
  .section,
  .about-block,
  .values,
  .contact-section,
  .detail {
    padding-left: 16px;
    padding-right: 16px;
  }

  .primary-btn,
  .filters a {
    width: 100%;
  }

  .brand {
    gap: 10px;
  }

  .brand span {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.25rem;
  }

  .section-head h2,
  .values h2,
  .contact-section h1,
  .message-card h2,
  .admin-main h1 {
    font-size: 2rem;
  }

  .contact-card {
    flex-direction: column;
  }
}
