:root {
  --green: #0b5d34;
  --green-dark: #05331d;
  --green-deep: #022415;
  --gold: #d4a832;
  --gold-light: #f3dd9a;
  --cream: #f7f3ea;
  --white: #ffffff;
  --ink: #1d1d1f;
  --muted: #8a8378;
  --red: #c0392b;
  --shadow-sm: 0 2px 8px rgba(5, 51, 29, 0.08);
  --shadow-md: 0 10px 30px rgba(5, 51, 29, 0.12);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
em { font-style: normal; color: var(--gold-light); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(2, 36, 21, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(212, 168, 50, 0.35);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 50, 0.25);
}
.brand-text h1, .brand-text h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.1;
}
.brand-text h3 { font-size: 1.15rem; }
.brand-sub { color: var(--gold); font-weight: 700; letter-spacing: 5px; font-size: 0.72rem; }

.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.15s;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.1); color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.call-link { color: #fff; font-size: 0.88rem; font-weight: 700; white-space: nowrap; }
.call-link span { color: var(--gold-light); }
.cart-btn {
  background: linear-gradient(135deg, var(--gold), #e0b64a);
  color: var(--green-deep);
  border: none;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s;
}
.cart-btn:hover { transform: translateY(-2px); }
.cart-count {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 2px 7px;
  margin-left: 4px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green) 55%, #0e7a46 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 168, 50, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
  padding: 54px 20px 90px;
}
.hero-kicker {
  display: inline-block;
  background: rgba(212, 168, 50, 0.15);
  border: 1px solid rgba(212, 168, 50, 0.5);
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.78rem;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 16px;
}
.hero-title .gold { color: var(--gold); }
.hero-sub { max-width: 520px; font-size: 1.05rem; opacity: 0.92; margin-bottom: 22px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: transform 0.12s, filter 0.12s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #e0b64a); color: var(--green-deep); }
.btn-primary { background: linear-gradient(135deg, var(--green), #0e7a46); color: #fff; }
.btn-outline { background: transparent; border: 2px solid rgba(255, 255, 255, 0.6); color: #fff; }
.btn-block { width: 100%; }

.hero-art { position: relative; height: 320px; }
.float-img {
  position: absolute;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 22px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  animation: floaty 6s ease-in-out infinite;
}
.fi-1 { top: 0; left: 6%; transform: rotate(-8deg); }
.fi-2 { top: 40px; right: 4%; transform: rotate(7deg); animation-delay: 1.2s; }
.fi-3 { bottom: 0; left: 24%; transform: rotate(5deg); animation-delay: 2.2s; }
.fi-4 { bottom: 14px; right: 30%; width: 130px; height: 130px; transform: rotate(-5deg); animation-delay: 0.6s; }
@keyframes floaty {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -12px; }
}
.float-badge {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.fb-cod { top: 34px; left: 40%; background: #fff; color: var(--green); }
.fb-azadi { bottom: 40px; right: 10%; background: var(--red); color: #fff; animation: floaty 5s ease-in-out infinite; }

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--cream);
  border-radius: 100% 100% 0 0 / 40px 40px 0 0;
}

/* ============ AZADI MARQUEE ============ */
.azadi-strip {
  background: linear-gradient(90deg, #fff 50%, var(--green) 50%);
  overflow: hidden;
  padding: 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.azadi-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.azadi-track span {
  white-space: nowrap;
  padding: 10px 0;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 0.95rem;
}
.azadi-track span:nth-child(odd) { color: var(--green); }
.azadi-track span:nth-child(even) { color: #fff; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ CATALOG ============ */
main#catalog { padding-top: 30px; padding-bottom: 70px; }
.catalog-head { margin: 6px 0 18px; }
.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.7rem;
  color: var(--green-dark);
}
.section-sub { color: var(--muted); font-size: 0.92rem; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tab {
  background: #fff;
  border: 1.5px solid #e6dfcf;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.cat-tab:hover { border-color: var(--gold); }
.cat-tab.active {
  background: linear-gradient(135deg, var(--green), #0e7a46);
  border-color: var(--green);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.toolbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-box input {
  width: 210px;
  padding: 10px 14px;
  border: 1.5px solid #e6dfcf;
  border-radius: 999px;
  font-size: 0.9rem;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 93, 52, 0.12); }
.sort-select {
  padding: 10px 12px;
  border: 1.5px solid #e6dfcf;
  border-radius: 12px;
  font-size: 0.88rem;
  background: #fff;
  cursor: pointer;
}

/* ============ GRID / CARDS ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 18px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { position: relative; background: #fff; overflow: hidden; }
.card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-img { transform: scale(1.06); }
.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--red), #e74c3c);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}
.card-cat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(2, 36, 21, 0.75);
  color: var(--gold-light);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.quick-view {
  position: absolute;
  inset: auto 10px 10px auto;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green);
  border: none;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 7px 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s;
}
.card:hover .quick-view { opacity: 1; transform: translateY(0); }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-weight: 700; font-size: 0.92rem; color: var(--green-dark); line-height: 1.3; }
.card-price { font-size: 1.2rem; font-weight: 800; color: var(--red); }
.card-price small { color: var(--muted); font-weight: 600; font-size: 0.78rem; }
.variant-select {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #e6dfcf;
  border-radius: 10px;
  font-size: 0.85rem;
  background: #fff;
}
.add-btn { margin-top: auto; background: linear-gradient(135deg, var(--green), #0e7a46); color: #fff; }
.add-btn:hover { filter: brightness(1.08); }

.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.empty span { font-size: 2.4rem; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 44px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 34px;
}
.footer-col h4 { color: var(--gold); margin-bottom: 12px; font-size: 0.95rem; letter-spacing: 1px; }
.footer-col a { display: block; margin: 6px 0; color: rgba(255, 255, 255, 0.85); }
.footer-col a:hover { color: var(--gold-light); }
.footer-about { margin-top: 12px; font-size: 0.9rem; opacity: 0.85; }
.support-link { color: var(--gold-light) !important; font-weight: 800; font-size: 1.05rem; }
.whatsapp-btn {
  display: inline-block;
  margin-top: 8px;
  background: #25d366;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 16px 20px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ============ MOBILE CART BAR ============ */
.mob-cart-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: none;
}
.mob-cart-btn {
  background: linear-gradient(135deg, var(--gold), #e0b64a);
  color: var(--green-deep);
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* ============ CART DRAWER ============ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 20, 12, 0.5);
  z-index: 90;
  display: none;
}
.overlay.show { display: block; }
.cart {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  max-width: 94vw;
  height: 100%;
  background: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: right 0.28s ease;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
}
.cart.open { right: 0; }
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
  background: var(--green-deep);
  color: #fff;
}
.cart-head h3 { color: #fff; }
.close-btn { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 16px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1ecdf; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 0.85rem; color: var(--green-dark); }
.cart-item-meta { color: var(--muted); font-size: 0.75rem; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1.5px solid #ddd;
  background: #fbf7ee;
  cursor: pointer;
  font-weight: 800;
  color: var(--green);
}
.qty-val { font-weight: 800; min-width: 22px; text-align: center; }
.remove-item { margin-left: auto; background: none; border: none; color: var(--red); cursor: pointer; font-size: 0.78rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.cart-foot { padding: 16px 18px; border-top: 1px solid #eee; display: flex; flex-direction: column; gap: 10px; background: #fdfbf5; }
.cart-total { font-weight: 800; font-size: 1.1rem; }

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 20, 12, 0.6);
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h3 { color: var(--green-dark); }
.modal-head .close-btn { color: var(--ink); position: static; }
.modal label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; }
.modal input,
.modal textarea,
.modal select {
  width: 100%;
  margin-top: 5px;
  padding: 11px;
  border: 1.5px solid #e2dbc9;
  border-radius: 11px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fdfbf5;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.modal input:focus, .modal textarea:focus, .modal select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 93, 52, 0.12);
}
.summary {
  background: var(--cream);
  border-radius: 14px;
  padding: 14px;
  margin: 6px 0 14px;
}
.summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 4px 0; }
.total-row { border-top: 1.5px dashed #cfc7b4; margin-top: 8px; padding-top: 10px; font-weight: 900; font-size: 1.08rem; color: var(--red); }
.secure-note { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

.quick-modal { max-width: 520px; }
.quick-modal .close-btn { position: absolute; top: 14px; right: 14px; color: var(--ink); z-index: 2; background: #fff; border-radius: 50%; width: 34px; height: 34px; }
.quick-body { display: flex; gap: 18px; align-items: flex-start; }
.quick-body img { width: 46%; border-radius: 14px; object-fit: cover; aspect-ratio: 1; }
.quick-info { flex: 1; }
.quick-info h3 { color: var(--green-dark); margin-bottom: 6px; }
.quick-cat { color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.quick-price { font-size: 1.6rem; font-weight: 900; color: var(--red); margin-bottom: 14px; }
.quick-info .btn { margin-top: 12px; }

.success { text-align: center; }
.success-icon { font-size: 3rem; }
.success h2 { color: var(--green); font-size: 1.8rem; margin: 6px 0; }
.success p { margin: 6px 0; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--green-deep);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 130;
  border: 1px solid rgba(212, 168, 50, 0.5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 80px; }
  .hero-art { height: 300px; margin-top: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .call-link span { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .toolbar-right { width: 100%; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
  .mob-cart-bar { display: block; }
  .quick-body { flex-direction: column; }
  .quick-body img { width: 100%; }
  .cart { width: 94vw; }
}
