
:root {
  --color-primary: #1B4F72;
  --color-primary-light: #2E6B99;
  --color-secondary: #52A788;
  --color-secondary-light: #6FBF9E;
  --color-bg: #F7F9F8;
  --color-surface: #FFFFFF;
  --color-text: #1F2A2E;
  --color-text-muted: #5C6B6E;
  --color-border: #DCE4E2;
  --color-error: #E5575F;
  --color-success: #52A788;
  --shadow-soft: 0 4px 24px rgba(27, 79, 114, 0.08);
  --shadow-card: 0 8px 40px rgba(27, 79, 114, 0.12);
  --radius: 14px;
}

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

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

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

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

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.logo-mark img { width: 100%; height: 100%; object-fit: contain; }

.logo-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.1;
}

.logo-text p {
  font-size: 10.5px;
  color: var(--color-text-muted);
}

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: none;
}

.header-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 13.5px;
  background: var(--color-bg);
  font-family: 'Inter', sans-serif;
}

.header-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.header-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-icon-wrap svg {
  width: 23px;
  height: 23px;
  color: var(--color-text);
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  background: var(--color-error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.account-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
}

.account-pill svg {
  width: 16px;
  height: 16px;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger-btn span {
  width: 21px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.25s ease;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-search {
  display: block;
  padding: 0 16px 12px;
  position: relative;
}

.mobile-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 13.5px;
  background: var(--color-bg);
  font-family: 'Inter', sans-serif;
}

.mobile-search input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.mobile-search svg {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 8px 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-bg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu a:active {
  background: var(--color-bg);
}

@media (min-width: 860px) {
  .header-search { display: flex; align-items: center; }
  .nav-links { display: flex; }
  .hamburger-btn { display: none; }
  .mobile-search { display: none; }
  .mobile-menu { display: none !important; }
}

.site-footer {
  background: var(--color-primary);
  color: #fff;
  margin-top: 50px;
  padding: 40px 20px 18px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-col p, .footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  line-height: 1.9;
  display: block;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-align: center;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.loading-state, .empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  opacity: 0.5;
}

.spinner-block {
  width: 28px;
  height: 28px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.toast svg {
  width: 16px;
  height: 16px;
  color: var(--color-secondary-light);
  flex-shrink: 0;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-float-label {
  background: var(--color-text);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float-label {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  flex-shrink: 0;
  animation: pulse-wa 2.4s infinite;
}

.whatsapp-float-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.7); }
  100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); }
}

@media (max-width: 480px) {
  .whatsapp-float-label { display: none; }
}

.lang-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border, #e2e2e2);
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.lang-toggle-btn:hover {
  background: var(--color-bg, #f6f6f6);
}
