/* EasyFormula — shared styles (simplified) */

:root {
  --ef-red: #D62828;
  --ef-red-dark: #B11E1E;
  --ef-yellow: #F4B400;
  --ef-black: #14181F;
  --ef-charcoal: #1F242C;
  --ef-gray-900: #1F242C;
  --ef-gray-700: #3A4150;
  --ef-gray-600: #5A6172;
  --ef-gray-500: #7A8294;
  --ef-gray-300: #C8CDD6;
  --ef-gray-200: #E4E7EC;
  --ef-gray-100: #F2F4F7;
  --ef-gray-50: #F8F9FA;
  --ef-white: #FFFFFF;

  --ef-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --ef-radius: 6px;
  --ef-shadow: 0 1px 3px rgba(20, 24, 31, 0.06), 0 1px 2px rgba(20, 24, 31, 0.04);
  --ef-shadow-lg: 0 10px 30px rgba(20, 24, 31, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--ef-font);
  color: var(--ef-black);
  background: var(--ef-white);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--ef-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: var(--ef-black);
}

p { margin: 0; }

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

.eyebrow {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ef-red);
  margin-bottom: 12px;
}

/* ============ HEADER ============ */
.ef-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ef-white);
  border-bottom: 1px solid var(--ef-gray-200);
}
.ef-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.ef-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ef-black);
  letter-spacing: -0.01em;
}
.ef-brand img { height: 32px; width: auto; }
.ef-brand .easy { color: var(--ef-black); }
.ef-brand .formula { color: var(--ef-red); }

.ef-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.ef-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ef-gray-700);
  transition: color .15s;
}
.ef-nav a:hover { color: var(--ef-black); }
.ef-nav a.active { color: var(--ef-red); }

.ef-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ef-black);
  color: var(--ef-white);
  border: none;
  padding: 9px 16px;
  font-family: var(--ef-font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border-radius: var(--ef-radius);
  transition: background .15s;
}
.ef-cart-btn:hover { background: var(--ef-red); }
.ef-cart-btn .badge {
  background: var(--ef-red);
  color: var(--ef-white);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.ef-cart-btn:hover .badge { background: var(--ef-yellow); color: var(--ef-black); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--ef-font);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--ef-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.btn-primary { background: var(--ef-red); color: var(--ef-white); }
.btn-primary:hover { background: var(--ef-red-dark); }
.btn-yellow { background: var(--ef-yellow); color: var(--ef-black); }
.btn-yellow:hover { background: #E0A400; }
.btn-outline { background: transparent; color: var(--ef-white); border-color: rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--ef-white); background: rgba(255,255,255,0.06); }
.btn-outline-dark { background: transparent; color: var(--ef-black); border-color: var(--ef-gray-300); }
.btn-outline-dark:hover { border-color: var(--ef-black); }

/* ============ FOOTER ============ */
.ef-footer {
  background: var(--ef-gray-50);
  color: var(--ef-gray-600);
  padding: 56px 0 24px;
  border-top: 1px solid var(--ef-gray-200);
  font-size: 14px;
}
.ef-footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.ef-footer h4 {
  color: var(--ef-black);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.ef-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ef-footer a { transition: color .15s; }
.ef-footer a:hover { color: var(--ef-red); }
.ef-footer .brand-block { line-height: 1.6; max-width: 340px; }
.ef-footer .brand-block .ef-brand { margin-bottom: 14px; }
.ef-footer-bottom {
  border-top: 1px solid var(--ef-gray-200);
  margin-top: 48px;
  padding-top: 20px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  color: var(--ef-gray-500);
}

/* ============ PRODUCT CARDS ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--ef-white);
  border: 1px solid var(--ef-gray-200);
  border-radius: var(--ef-radius);
  overflow: hidden;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--ef-gray-300);
  box-shadow: var(--ef-shadow-lg);
}
.product-card .photo {
  aspect-ratio: 4/3;
  background-color: var(--ef-gray-100);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .photo .label {
  font-weight: 500;
  font-size: 14px;
  color: var(--ef-gray-500);
  text-align: center;
  padding: 0 16px;
}
.product-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card .meta {
  font-size: 12px;
  color: var(--ef-gray-500);
}
.product-card h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ef-black);
}
.product-card .desc {
  font-size: 14px;
  color: var(--ef-gray-600);
  line-height: 1.5;
  flex: 1;
  margin-top: 4px;
}
.product-card .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--ef-gray-200);
}
.product-card .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ef-black);
}
.product-card .price small { font-size: 12px; color: var(--ef-gray-500); font-weight: 400; }
.product-card .add {
  background: var(--ef-white);
  color: var(--ef-black);
  border: 1px solid var(--ef-gray-300);
  padding: 8px 14px;
  font-family: var(--ef-font);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-radius: 5px;
  transition: all .15s;
}
.product-card .add:hover { background: var(--ef-black); color: var(--ef-white); border-color: var(--ef-black); }

/* ============ SECTIONS ============ */
section { padding: 72px 0; }
section h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 12px;
}
section .section-head {
  margin-bottom: 40px;
  max-width: 640px;
}
section .section-head p {
  color: var(--ef-gray-600);
  font-size: 16px;
}

/* ============ CART DRAWER ============ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,24,31,0.4);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: var(--ef-white);
  z-index: 101;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ef-shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ef-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-head h3 { font-size: 18px; font-weight: 600; }
.cart-close {
  background: transparent;
  border: none;
  color: var(--ef-gray-600);
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.cart-close:hover { background: var(--ef-gray-100); }
.cart-body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ef-gray-500);
}
.cart-empty svg { margin: 0 auto 16px; opacity: 0.3; }

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ef-gray-200);
  align-items: center;
}
.cart-item .thumb {
  width: 56px;
  height: 56px;
  background: var(--ef-gray-100);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--ef-gray-500);
  text-align: center;
  padding: 0 4px;
}
.cart-item .info h4 { font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.cart-item .info .price-line { font-size: 13px; color: var(--ef-gray-500); }
.cart-item .qty {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  border: 1px solid var(--ef-gray-200);
  border-radius: 4px;
}
.cart-item .qty button {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ef-gray-700);
}
.cart-item .qty span { padding: 0 10px; font-size: 13px; font-weight: 500; min-width: 28px; text-align: center; }
.cart-item .line-price { font-size: 14px; font-weight: 600; }
.cart-item .remove {
  background: transparent;
  border: none;
  color: var(--ef-gray-500);
  cursor: pointer;
  font-size: 12px;
  margin-top: 6px;
  padding: 0;
}
.cart-item .remove:hover { color: var(--ef-red); }

.cart-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--ef-gray-200);
}
.cart-totals {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.cart-foot .small {
  font-size: 13px;
  color: var(--ef-gray-500);
  margin-bottom: 14px;
}
.cart-foot .btn { width: 100%; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 100px);
  background: var(--ef-black);
  color: var(--ef-white);
  padding: 12px 20px;
  border-radius: 6px;
  z-index: 200;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--ef-shadow-lg);
  opacity: 0;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* utilities */
.hidden { display: none !important; }
.text-red { color: var(--ef-red); }
.text-muted { color: var(--ef-gray-600); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .ef-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  section h2 { font-size: 26px; }
  .ef-nav a:not(.ef-cart-btn) { display: none; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .ef-footer-inner { grid-template-columns: 1fr; }
}
