/* ============================================================
   Organic Traveller Skincare - Global Styles
   ============================================================ */

:root {
  --green: #7fb69e;
  --green-dark: #5c9579;
  --green-deep: #3f6e54;
  --cream: #f7f3ea;
  --cream-dark: #efe8d6;
  --ink: #2a2a26;
  --ink-soft: #6b6b62;
  --line: #e6e0d2;
  --sale: #c44a3f;
  --badge-bg: #2a2a26;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.16);
  --header-h: 72px;
  --announce-h: 38px;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: 14px; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- Announcement Bar ---------------- */
.announce {
  background: var(--green-deep);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 10px 16px;
  letter-spacing: 0.02em;
  overflow: hidden;
  white-space: nowrap;
}
.announce span { display: inline-block; animation: marqueeText 22s linear infinite; }
@keyframes marqueeText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.announce a { text-decoration: underline; }

/* ---------------- Header ---------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-deep);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo .leaf { color: var(--green); font-size: 26px; }
.logo small { display: block; font-size: 9px; letter-spacing: 0.32em; color: var(--ink-soft); font-weight: 500; font-family: "Segoe UI", sans-serif; text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 26px; flex: 1; }
.nav a, .nav .dropdown > span {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav a:hover, .nav .dropdown:hover > span { color: var(--green-deep); }
.nav .deal { color: var(--sale); }
.nav .deal .pill {
  background: var(--sale);
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

.dropdown { position: relative; }
.dropdown > span { cursor: pointer; }
.dropdown > span::after { content: "▾"; font-size: 9px; margin-left: 2px; color: var(--ink-soft); }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s var(--ease);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.dropdown-menu a:hover { background: var(--cream); color: var(--green-deep); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  position: relative;
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--cream); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute;
  top: 4px; right: 2px;
  background: var(--sale);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px; height: 17px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  transform: scale(0); transition: transform 0.2s var(--ease);
}
.cart-count.show { transform: scale(1); }

.hamburger { display: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--green-deep); color: #fff; }
.btn-primary:hover { background: #2f5540; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 14px; }

/* ---------------- Product Card ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--badge-bg);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 3px;
  z-index: 2;
}
.card-badge.sale { background: var(--sale); }
.card-fav {
  position: absolute;
  top: 8px; right: 8px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s var(--ease);
}
.card:hover .card-fav { opacity: 1; transform: translateY(0); }
.card-fav svg { width: 18px; height: 18px; color: var(--ink); }
.card-fav.active svg { color: var(--sale); fill: var(--sale); }

.card-add {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.22s var(--ease);
  z-index: 2;
}
.card:hover .card-add { opacity: 1; transform: translateY(0); }
.card-add:hover { background: var(--green-deep); }

.card-body { padding: 14px 12px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  min-height: 38px;
}
.card:hover .card-title { color: var(--green-deep); }
.card-prices { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 15px; font-weight: 700; color: var(--ink); }
.compare { font-size: 12.5px; color: var(--ink-soft); text-decoration: line-through; }
.save-tag { font-size: 10px; color: var(--sale); font-weight: 700; letter-spacing: 0.04em; }

/* ---------------- Section Heading ---------------- */
.section { padding: 56px 0; }
.section-head {
  text-align: center;
  margin-bottom: 30px;
}
.section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.section-head .sub { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.section-head .center-link { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-deep); border-bottom: 1.5px solid var(--green-deep); padding-bottom: 2px; }
.section-head .center-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------------- Cart Drawer ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease);
}
.overlay.show { opacity: 1; visibility: visible; }

.cart-drawer, .search-modal, .mobile-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  background: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  box-shadow: var(--shadow-lg);
}
.cart-drawer { width: 420px; max-width: 100%; }
.cart-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.close-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--ink); }
.close-btn:hover { background: var(--cream); }

.cart-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.cart-empty svg { width: 56px; height: 56px; margin: 0 auto 14px; opacity: 0.4; }
.cart-empty a { color: var(--green-deep); font-weight: 700; text-decoration: underline; }

.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item-img { width: 70px; height: 70px; border-radius: var(--radius); overflow: hidden; background: var(--cream); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; }
.cart-item-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cart-item-price { font-size: 13px; color: var(--green-deep); font-weight: 700; margin-top: 4px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); width: fit-content; margin-top: 8px; }
.qty-control button { width: 28px; height: 28px; font-size: 16px; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.qty-control button:hover { background: var(--cream); }
.qty-control span { min-width: 32px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-item-remove { font-size: 12px; color: var(--ink-soft); text-decoration: underline; margin-top: 8px; align-self: flex-start; }
.cart-item-remove:hover { color: var(--sale); }

.cart-foot { padding: 18px 22px; border-top: 1px solid var(--line); }
.cart-note { margin-bottom: 12px; }
.cart-note textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; font-size: 13px; resize: vertical; min-height: 50px; }
.cart-note textarea:focus { outline: 1.5px solid var(--green); border-color: var(--green); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin-bottom: 4px; }
.cart-total strong { font-size: 17px; }
.cart-tax { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 14px; }
.cart-foot .btn + .btn { margin-top: 8px; }

/* ---------------- Search Modal ---------------- */
.search-modal { width: 480px; max-width: 100%; }
.search-modal.open { transform: translateX(0); }
.search-input-wrap { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.search-input-wrap svg { width: 20px; height: 20px; color: var(--ink-soft); }
.search-input-wrap input { flex: 1; border: none; font-size: 16px; padding: 6px 0; background: transparent; }
.search-input-wrap input:focus { outline: none; }
.search-body { flex: 1; overflow-y: auto; padding: 8px 22px 22px; }
.search-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin: 14px 0 8px; font-weight: 700; }
.search-result { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.search-result img { width: 52px; height: 52px; border-radius: var(--radius); object-fit: cover; }
.search-result .info { display: flex; flex-direction: column; justify-content: center; }
.search-result .info span { font-size: 13.5px; font-weight: 600; }
.search-result .info .pr { font-size: 12.5px; color: var(--green-deep); font-weight: 700; margin-top: 2px; }
.search-empty { text-align: center; color: var(--ink-soft); padding: 40px 10px; font-size: 13.5px; }

/* ---------------- Mobile Nav ---------------- */
.mobile-nav { width: 320px; max-width: 86%; padding: 0; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .drawer-head { border-bottom: 1px solid var(--line); }
.mobile-nav-body { flex: 1; overflow-y: auto; padding: 12px 0; }
.mobile-nav-body a {
  display: block;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--cream);
}
.mobile-nav-body a:hover { background: var(--cream); color: var(--green-deep); }
.mobile-nav-body .sub a { padding-left: 36px; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-soft); }

/* ---------------- Footer ---------------- */
.footer { background: var(--cream); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; color: var(--ink); }
.footer p, .footer li, .footer a { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }
.footer a:hover { color: var(--green-deep); }
.footer .brand-name { font-family: Georgia, serif; font-size: 19px; font-weight: 700; color: var(--green-deep); margin-bottom: 8px; display: block; }
.newsletter form { display: flex; gap: 0; margin-top: 12px; }
.newsletter input { flex: 1; border: 1px solid var(--line); padding: 11px 13px; border-radius: var(--radius) 0 0 var(--radius); background: #fff; }
.newsletter button { background: var(--green-deep); color: #fff; padding: 0 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 0 var(--radius) var(--radius) 0; }
.newsletter button:hover { background: #2f5540; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); transition: all 0.2s; }
.socials a:hover { background: var(--green-deep); border-color: var(--green-deep); }
.socials a:hover svg { color: #fff !important; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--cream-dark); font-size: 12px; color: var(--ink-soft); }

/* ---------------- Breadcrumb ---------------- */
.breadcrumb { padding: 16px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--green-deep); text-decoration: underline; }
.breadcrumb span { margin: 0 7px; color: var(--line); }

/* ---------------- Floating WhatsApp ---------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 54px; height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 60;
  transition: transform 0.2s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; color: #fff; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  bottom: 26px; right: 26px;
  background: var(--ink);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s var(--ease);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .container { padding: 0 16px; }
  .logo { font-size: 18px; }
  .logo small { font-size: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 38px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px 8px 12px; }
  .card-title { font-size: 13px; min-height: 34px; }
  .price { font-size: 14px; }
  .cart-drawer { width: 100%; }
  .card-add { font-size: 11px; padding: 9px; }
}
