/* =============================================================
   SINAMEDIC — Global Styles
   /css/style.css
   ============================================================= */

:root {
  --cream:    #F9F7F2;
  --sage:     #8A9A5B;
  --sage-dark:#6e7d45;
  --charcoal: #2F2F2F;
  --white:    #FFFFFF;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: 'Lato', sans-serif;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

/* ── Navigation Links ──────────────────────────────────────── */
.nav-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sage);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover,
.nav-link.active { color: var(--sage); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--sage);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 2.25rem;
  border: 2px solid var(--sage);
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--sage);
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 2.25rem;
  border: 2px solid var(--sage);
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.15s;
}
.btn-outline:hover {
  background: var(--sage);
  color: #fff;
  transform: translateY(-1px);
}

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  background: #c0392b; color: #fff;
  font-family: 'Lato', sans-serif; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5rem 1.2rem; border: none; border-radius: 6px;
  cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.btn-danger:hover { background: #a93226; }

/* ── Product Cards ─────────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 20px 60px rgba(47,47,47,0.12);
  transform: translateY(-4px);
}
.product-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 100%;          /* square */
  background: #f0ede6;
}
.product-card .card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .card-img-wrap img {
  transform: scale(1.06);
}
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--sage);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
}
.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.card-category {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
}
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.35;
}
.card-desc {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.6;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0ede6;
}
.card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
}
.card-price .old-price {
  font-size: 0.85rem;
  color: #aaa;
  text-decoration: line-through;
  margin-right: 0.35rem;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero-section {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e6df 0%, #f2efe8 50%, #dde3cc 100%);
}
.hero-section .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(249,247,242,0.85) 40%, rgba(249,247,242,0.1));
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

/* ── Section Labels ────────────────────────────────────────── */
.section-eyebrow {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

/* ── Divider Leaf ──────────────────────────────────────────── */
.leaf-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.leaf-divider::before,
.leaf-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(138,154,91,0.4));
}
.leaf-divider::after {
  background: linear-gradient(to left, transparent, rgba(138,154,91,0.4));
}

/* ── Ingredient strip ──────────────────────────────────────── */
.ingredient-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid rgba(138,154,91,0.3);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  color: var(--charcoal);
  white-space: nowrap;
}

/* ── Toast Notification ────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: var(--charcoal);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  padding: 0.9rem 1.6rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast .toast-icon { color: var(--sage); margin-right: 0.4rem; }

/* ── Cart Table ─────────────────────────────────────────────── */
.cart-table { border-collapse: collapse; width: 100%; }
.cart-table th {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: #888; padding: 0.75rem 1rem;
  border-bottom: 1px solid #e8e6df; font-weight: 700;
}
.cart-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #f0ede6;
  vertical-align: middle;
}
.qty-input {
  width: 60px; text-align: center;
  border: 1px solid #e0ddd6; border-radius: 6px;
  padding: 0.4rem; font-family: 'Lato', sans-serif; font-size: 0.9rem;
}

/* ── Checkout Form ──────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: #888;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(138,154,91,0.12);
}

/* ── Admin Styles ─────────────────────────────────────────── */
.admin-body {
  font-family: 'Lato', sans-serif;
  background: #f4f2ed;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  background: var(--charcoal);
  color: #fff;
  min-height: 100vh;
  padding: 2rem 0;
  flex-shrink: 0;
}
.admin-nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
  text-decoration: none; transition: background 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}
.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(138,154,91,0.15);
  color: #fff;
  border-left-color: var(--sage);
}
.admin-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.admin-stat {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex; align-items: center; gap: 1rem;
}
.admin-table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
.admin-table th {
  background: #f4f2ed;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #888; border-bottom: 1px solid #e8e6df;
}
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0ede6;
  color: var(--charcoal);
  vertical-align: middle;
}
.admin-table tr:hover td { background: #faf9f6; }
.status-badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status-pending    { background: #fff3cd; color: #856404; }
.status-processing { background: #cfe2ff; color: #084298; }
.status-shipped    { background: #d1ecf1; color: #0c5460; }
.status-delivered  { background: #d4edda; color: #155724; }
.status-cancelled  { background: #f8d7da; color: #721c24; }

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #e8e6df, #dde3cc);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.65s ease both; }
.delay-100 { animation-delay: 0.10s; }
.delay-200 { animation-delay: 0.20s; }
.delay-300 { animation-delay: 0.30s; }
.delay-400 { animation-delay: 0.40s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.float-anim { animation: floatY 4s ease-in-out infinite; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { min-height: 70vh; }
  .admin-sidebar { display: none; }
}
