@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700;800;900&display=swap');

:root {
  /* Amazon brand colors */
  --orange: #FF9900;
  --orange-dark: #E47911;
  --orange-glow: rgba(255,153,0,0.18);
  --navy: #131921;
  --navy-mid: #232F3E;
  --navy-light: #37475A;
  --teal: #00A8B5;
  --bg: #F3F3F3;
  --card-bg: #FFFFFF;
  --text: #0F1111;
  --text-muted: #565959;
  --border: #DDD;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --radius: 8px;
  --radius-sm: 6px;
  /* keep old vars mapped for compat */
  --green: #007185;
  --green-light: #00A8B5;
  --green-dark: #131921;
  --green-pale: #E6F2F3;
}

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

body {
  font-family: 'Heebo', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
}

/* ===== HEADER ===== */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 24px rgba(0,0,0,0.35);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 44px;
  height: 44px;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-size: 22px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-name .az {
  color: var(--orange);
}

.logo-tag {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* Currency toggle */
.currency-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.currency-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: 'Heebo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.currency-btn.active {
  background: var(--orange);
  color: white;
}

/* Search */
.search-wrap {
  flex: 1;
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border-radius: 24px;
  border: none;
  background: rgba(255,255,255,0.13);
  color: white;
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  outline: none;
  transition: background 0.2s;
}
.search-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.search-wrap input:focus { background: rgba(255,255,255,0.22); }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
}

/* Rate bar */
.rate-bar {
  background: rgba(0,0,0,0.25);
  padding: 4px 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}
.rate-bar .rate-value {
  color: #7DFFC0;
  font-weight: 700;
}
.rate-bar .rate-source {
  color: rgba(255,255,255,0.35);
  font-size: 10px;
}

/* Nav */
nav {
  background: var(--navy-mid);
  display: flex;
  gap: 0;
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }

nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
nav a:hover { color: white; background: rgba(255,255,255,0.08); }
nav a.active { color: white; border-bottom-color: var(--orange); }

/* ===== MAIN ===== */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 12px;
}

/* ===== HERO BANNER ===== */
.hero-banner {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,107,0,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-banner:hover { filter: brightness(1.06); }

.hero-icon { font-size: 32px; flex-shrink: 0; }
.hero-text h3 { font-size: 15px; font-weight: 800; color: white; margin-bottom: 2px; }
.hero-text p { font-size: 12px; color: rgba(255,255,255,0.7); }
.hero-arrow { margin-right: auto; font-size: 18px; color: rgba(255,255,255,0.5); flex-shrink: 0; }

/* ===== FEED HEADER ===== */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}
.feed-header h2 { font-size: 15px; font-weight: 800; }
.feed-count { font-size: 12px; color: var(--text-muted); background: var(--border); padding: 2px 10px; border-radius: 20px; }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.11);
}

.card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: linear-gradient(90deg, #FFF4EC, #FFF9F5);
  border-bottom: 1px solid #FFE4CC;
}

.card-badge {
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

.card-body {
  display: flex;
  gap: 14px;
  padding: 14px;
  align-items: flex-start;
}

.card-image-wrap {
  position: relative;
  flex-shrink: 0;
}

.card-image {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #F8F8F8;
  padding: 8px;
  display: block;
  border: 1px solid var(--border);
}

.discount-circle {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 800;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(255,107,0,0.4);
}

.card-info { flex: 1; min-width: 0; }

.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--text);
}

.price-display {
  margin-bottom: 10px;
}

.price-main {
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  display: block;
}

.price-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-original {
  text-decoration: line-through;
  color: #aaa;
}

.card-category {
  font-size: 11px;
  color: var(--green);
  background: var(--green-pale);
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}

.btn-amazon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--orange);
  color: white;
  text-decoration: none;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Heebo', sans-serif;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
  box-shadow: 0 3px 10px rgba(255,107,0,0.3);
}
.btn-amazon:hover { background: var(--orange-dark); }
.btn-amazon:active { transform: scale(0.98); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px 4px;
  border-top: 1px solid #F5F5F5;
}

.card-disclaimer {
  font-size: 10px;
  color: #999;
  text-align: center;
  padding: 4px 14px 8px;
  background: #FAFAFA;
  border-top: 1px solid #F0F0F0;
}

/* Affiliate notice bar - sticky under header */
.affiliate-bar {
  background: #FFF3CD;
  border-bottom: 1px solid #FFD700;
  padding: 7px 16px;
  font-size: 12px;
  color: #664D03;
  text-align: center;
  font-weight: 500;
}
.affiliate-bar a { color: #0066C0; font-weight: 700; text-decoration: underline; cursor: pointer; }
.card-date { font-size: 10px; color: #bbb; }
.card-shipping { font-size: 10px; color: var(--green); font-weight: 600; }

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}
.no-results .emoji { font-size: 44px; margin-bottom: 10px; }

/* ===== PAGES ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== INFO / SHIPPING PAGE ===== */
.info-page {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.page-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.threshold-box {
  background: var(--navy);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 18px;
  color: white;
  display: flex;
  align-items: center;
  gap: 14px;
}
.threshold-amount {
  font-size: 34px;
  font-weight: 900;
  color: #7DFFC0;
  line-height: 1;
}
.threshold-text { font-size: 13px; line-height: 1.5; }
.threshold-text strong { color: #7DFFC0; }

.step-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: #F8FDF9;
  border: 1px solid #C8E6C9;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.step-num {
  width: 30px;
  height: 30px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}
.step-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; color: var(--green-dark); }
.step-text p { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

.warning-box {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #5D4037;
}
.warning-box strong { color: var(--orange-dark); }

.tip-box {
  background: #E8F5EE;
  border: 1px solid #A5D6A7;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--green-dark);
}
.tip-box strong { color: var(--green); }

/* ===== CONTACT PAGE ===== */
.contact-page {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 13px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  direction: rtl;
  outline: none;
  transition: border-color 0.2s;
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--green); }
.form-group textarea { min-height: 110px; resize: vertical; }

.btn-submit {
  background: var(--green);
  color: white;
  border: none;
  width: 100%;
  padding: 13px;
  border-radius: 24px;
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
  box-shadow: 0 3px 12px rgba(11,107,58,0.3);
}
.btn-submit:hover { background: var(--green-light); }

.success-msg {
  display: none;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  color: var(--green-dark);
  font-weight: 700;
  margin-top: 14px;
  font-size: 14px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 22px 20px;
  font-size: 12px;
  margin-top: 32px;
}
footer .footer-logo {
  font-size: 20px;
  font-weight: 900;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
footer .footer-logo span { color: var(--orange); }
footer a {
  color: #7DFFC0;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
footer .footer-links { margin: 6px 0 10px; }
footer .footer-links a { margin: 0 8px; }
footer .footer-disclaimer { font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 6px; }

/* ===== FAB ===== */
.fab {
  position: fixed;
  bottom: 22px;
  left: 22px;
  background: var(--green);
  color: white;
  border-radius: 50px;
  padding: 12px 18px;
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(11,107,58,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.15s, background 0.15s;
  z-index: 99;
  border: none;
}
.fab:hover { background: var(--green-light); transform: scale(1.04); }

/* ===== ADMIN ===== */
.admin-page {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.admin-login { text-align: center; }
.admin-login h2 { font-size: 20px; font-weight: 800; margin-bottom: 20px; color: var(--green-dark); }
.admin-login input {
  width: 100%; max-width: 280px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  direction: rtl;
  outline: none;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.btn-login {
  background: var(--green);
  color: white;
  border: none;
  padding: 11px 32px;
  border-radius: 24px;
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.admin-panel { display: none; }
.admin-panel h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; color: var(--green-dark); }
.admin-panel .form-group input,
.admin-panel .form-group textarea,
.admin-panel .form-group select {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  direction: rtl;
  outline: none;
}
.btn-add {
  background: var(--orange);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 24px;
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}
.product-list-admin { margin-top: 20px; }
.admin-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
  gap: 8px;
}
.btn-delete {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
  border-radius: 20px;
  padding: 4px 12px;
  font-family: 'Heebo', sans-serif;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .logo-name { font-size: 18px; }
  .header-top { flex-wrap: wrap; }
  .currency-toggle { order: -1; }
  .card-image { width: 120px; height: 120px; }
  .price-main { font-size: 18px; }
}
