/* ============ LactoBloom Catalog — Global Styles ============ */
:root {
  --coral: #E85D3D;
  --coral-dark: #C94A2E;
  --teal: #1B9E8F;
  --teal-dark: #147F73;
  --sun: #F5A623;
  --ink: #2A2420;
  --muted: #7A6F66;
  --bg: #FFFDF9;
  --tint: #FFF3EA;
  --card: #FFFFFF;
  --line: #F0E4D8;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(42, 36, 32, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.center { text-align: center; }
.hidden { display: none !important; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,249,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.logo-light { color: #fff; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 600; }
.nav a { color: var(--ink); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--coral); border-color: var(--coral); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 600; cursor: pointer; }
.menu-toggle { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: 999px; font-weight: 700; transition: .25s; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-light { background: #fff; color: var(--coral); }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--tint) 0%, #EAF7F3 100%); padding: 70px 0 80px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.badge { display: inline-block; background: var(--teal); color: #fff; padding: 6px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700; margin-bottom: 18px; }
.hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.2; margin-bottom: 16px; }
.hero p { color: var(--muted); font-size: 1.05rem; margin-bottom: 26px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.5rem; color: var(--coral); }
.hero-stats span { font-size: .85rem; color: var(--muted); }
.hero-cards { position: relative; min-height: 320px; }
.float-card {
  position: absolute; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 26px; font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; gap: 10px; animation: floaty 4s ease-in-out infinite;
}
.fc1 { top: 8%; left: 6%; }
.fc2 { top: 30%; right: 4%; animation-delay: .8s; }
.fc3 { top: 58%; left: 14%; animation-delay: 1.6s; }
.fc4 { top: 82%; right: 12%; animation-delay: 2.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Sections */
.section { padding: 70px 0; }
.section-tinted { background: var(--tint); }
.section-title { text-align: center; font-size: 1.9rem; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 44px; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.cat-card { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: .25s; border: 1px solid var(--line); }
.cat-card:hover { transform: translateY(-6px); border-color: var(--coral); }
.cat-emoji { font-size: 2.2rem; }
.cat-card h3 { margin: 10px 0 6px; }
.cat-card p { color: var(--muted); font-size: .95rem; }

/* Products */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn { padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; transition: .2s; }
.filter-btn.active, .filter-btn:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.prod-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; transition: .25s; }
.prod-card:hover { transform: translateY(-5px); }
.prod-thumb { height: 200px; background: #FDF8F2; display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.prod-card:hover .prod-thumb img { transform: scale(1.06); }
.prod-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.prod-body h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 8px; }
.prod-price { color: var(--coral); font-weight: 800; font-size: .92rem; margin-bottom: 4px; }
.prod-moq { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag-green { background: #E4F5EC; color: #1E7A4C; }
.tag-orange { background: #FDEEDC; color: #B25E0A; }
.tag-blue { background: #E7F0FB; color: #2563AE; }
.price-note { margin-top: 28px; color: var(--muted); font-size: .85rem; text-align: center; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.why-card span { font-size: 2rem; }
.why-card h3 { margin: 10px 0 6px; }
.why-card p { color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--coral) 0%, var(--sun) 100%); padding: 64px 0; color: #fff; }
.cta-band h2 { font-size: 1.8rem; margin-bottom: 8px; }
.cta-band p { margin-bottom: 24px; opacity: .92; }

/* Page head */
.page-head { background: linear-gradient(135deg, var(--tint), #EAF7F3); padding: 54px 0; text-align: center; }
.page-head h1 { font-size: 2rem; margin-bottom: 6px; }
.page-head p { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 44px; align-items: start; }
.about-grid h2 { margin: 22px 0 10px; font-size: 1.35rem; }
.about-grid p { color: var(--muted); margin-bottom: 12px; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: sticky; top: 90px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; text-align: center; box-shadow: var(--shadow); }
.fact strong { display: block; font-size: 1.7rem; color: var(--coral); }
.fact span { color: var(--muted); font-size: .85rem; }
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.flow-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.flow-step span { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }
.flow-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.flow-step p { color: var(--muted); font-size: .9rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.info-card span { font-size: 1.6rem; }
.info-card h3 { font-size: 1rem; }
.info-card p { color: var(--muted); font-size: .92rem; }
.inquiry-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.inquiry-box h2 { margin-bottom: 18px; }
.inquiry-box label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
.inquiry-box input, .inquiry-box select, .inquiry-box textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: var(--bg); color: var(--ink);
}
.inquiry-box input:focus, .inquiry-box select:focus, .inquiry-box textarea:focus { outline: none; border-color: var(--teal); }
.inquiry-box .btn { margin-top: 20px; }
.form-success { text-align: center; padding: 30px 0; }
.success-emoji { font-size: 3rem; }

/* Footer */
.footer { background: #2A2420; color: #D8CFC7; padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer h4 { color: #fff; margin-bottom: 12px; }
.footer a { display: block; padding: 4px 0; color: #D8CFC7; }
.footer a:hover { color: var(--sun); }
.footer p { padding: 3px 0; font-size: .95rem; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: .85rem; color: #9C9188; }

/* RTL (Arabic) */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .nav, html[dir="rtl"] .hero-actions, html[dir="rtl"] .filter-bar { direction: rtl; }
html[dir="rtl"] .footer-grid { direction: rtl; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
  .about-facts { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 18px 6%;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 14px;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .hero-stats { gap: 20px; }
}
