/* ═══════════════════════════════════════════════════════════════
   TikMart — style.css
   Light theme · Navy/Orange · Cairo + Playfair Display
   Matches: Tik-Mart Final_updated_8
═══════════════════════════════════════════════════════════════ */

:root {
  --brand:      #1B3A5C;
  --brand-dark: #0D2137;
  --brand-mid:  #2A5298;
  --accent:     #E8A020;
  --accent2:    #C0392B;
  --surface:    #F4F7FB;
  --surface2:   #EAF0F8;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background: #fff;
  color: #1a1a1a;
  overflow-x: hidden;
}
img, video { display: block; }
a { text-decoration: none; color: inherit; }


/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 20px rgba(27,58,92,0.10);
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.03em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--brand);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid rgba(27,58,92,0.1);
  padding: 12px 24px 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--brand);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(27,58,92,0.06);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile a:last-child { border-bottom: none; }


/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--brand-mid) 100%);
}

/* Full-bleed video background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,33,55,0.78)  0%,
    rgba(27,58,92,0.48) 45%,
    rgba(13,33,55,0.82) 100%
  );
  z-index: 1;
}

/* Gold radial glow */
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(232,160,32,0.14), transparent 42%);
  z-index: 1;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  backdrop-filter: blur(3px);
  padding: 20px 10px;
}

/* ── Floating animated logo ──────────────────────────────────── */
.hero-logo-large {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 0 40px rgba(232,160,32,0.55),
    0 10px 30px rgba(0,0,0,0.55);
  animation: float 3.5s ease-in-out infinite;
  display: inline-block;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-logo-large span { color: var(--accent); }

.logo-glow {
  width: 180px;
  height: 6px;
  background: radial-gradient(ellipse, rgba(232,160,32,0.95), transparent);
  margin: 8px auto 0;
  border-radius: 50%;
  animation: glow-pulse 3.5s ease-in-out infinite;
  filter: blur(0.4px);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-15px); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scaleX(1); }
  50%       { opacity: 1;   transform: scaleX(1.3); }
}

.hero h1 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  margin: 20px 0 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* ── CTA Buttons ─────────────────────────────────────────────── */
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 15px 36px;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(232,160,32,0.45);
  transition: 0.3s;
  display: inline-block;
}
.btn-primary:hover {
  transform: scale(1.06);
  box-shadow: 0 15px 40px rgba(232,160,32,0.65);
}

.btn-secondary {
  background: rgba(255,255,255,0.16);
  color: #fff;
  padding: 15px 36px;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

.btn-wa-icon { width: 24px; height: 24px; flex-shrink: 0; }


/* ═══════════════════════════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════════════════════════ */
.marquee-wrap {
  background: linear-gradient(90deg, #0f0b00, #1e1500, #2a1d00, #1e1500, #0f0b00);
  border-top:    2px solid rgba(232,160,32,0.6);
  border-bottom: 2px solid rgba(232,160,32,0.6);
  overflow: hidden;
  position: relative;
}

/* Fade edges */
.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrap::before { left:  0; background: linear-gradient(to right, #0f0b00, transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(to left,  #0f0b00, transparent); }

.marquee-inner { display: flex; align-items: stretch; }

.marquee-track {
  display: flex;
  align-items: center;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-left: 1px solid rgba(232,160,32,0.2);
  color: #F5E6C0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(232,160,32,0.4);
}

.marquee-item .m-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px rgba(232,160,32,0.7));
}

.marquee-item.highlight {
  color: var(--accent);
  font-weight: 900;
  background: rgba(232,160,32,0.07);
}

.m-num {
  direction: ltr;
  display: inline-block;
  unicode-bidi: embed;
  font-family: 'Cairo', sans-serif;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════════════════════════
   SHARED SECTION
═══════════════════════════════════════════════════════════════ */
.section {
  max-width: 1200px;
  margin: auto;
  padding: 80px 24px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 50px;
  color: var(--brand);
}


/* ═══════════════════════════════════════════════════════════════
   CATEGORIES
═══════════════════════════════════════════════════════════════ */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.cat-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.cat-card:hover img { transform: scale(1.1); }

.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.80), transparent);
}

.cat-name {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}


/* ═══════════════════════════════════════════════════════════════
   CATEGORY ARROW
═══════════════════════════════════════════════════════════════ */
.cat-arrow {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(232,160,32,0.85);
  color: #fff;
  font-size: 0.7rem;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.cat-card.active .cat-arrow { transform: rotate(180deg); }
.cat-card.active { outline: 3px solid var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   PRODUCTS PANEL
═══════════════════════════════════════════════════════════════ */
.products-panel {
  margin-top: 36px;
}

.products-list {
  display: none;
  animation: fadeSlideIn 0.35s ease;
}
.products-list.visible { display: block; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.prods-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.prods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.prod-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  border: 1px solid rgba(27,58,92,0.08);
  transition: 0.3s;
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.13);
}

.prod-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  display: block;
}

.prod-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--brand);
  margin-bottom: 6px;
}

.prod-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.prod-btn {
  display: block;
  background: var(--brand);
  color: #fff;
  padding: 8px;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  transition: 0.3s;
}
.prod-btn:hover { background: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   OFFERS
═══════════════════════════════════════════════════════════════ */
.offers-section {
  background: var(--surface);
  padding: 80px 0;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.offer-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: 0.3s;
  border: 1px solid rgba(27,58,92,0.08);
}
.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.offer-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.offer-body { padding: 20px; }

.offer-badge {
  background: var(--accent2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.offer-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand);
  margin-bottom: 8px;
}

.offer-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
}

.offer-price-old {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 8px;
}

.offer-btn {
  display: block;
  text-align: center;
  background: var(--brand);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  margin-top: 14px;
  transition: 0.3s;
}
.offer-btn:hover { background: var(--accent); }


/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.test-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  border-right: 4px solid var(--accent);
}

.test-stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 12px; }

.test-text {
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.test-name { font-weight: 800; color: var(--brand); }


/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
footer {
  background: var(--brand-dark);
  color: #fff;
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }

.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-addr {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Social icons */
.social-icons { display: flex; gap: 12px; margin-top: 16px; }

.social-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  flex-shrink: 0;
}
.social-icon:hover { transform: translateY(-4px); opacity: 0.88; }

.si-fb { background: #1877F2; }
.si-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.si-tt { background: #000; }
.si-wa { background: #25D366; }

/* Footer columns */
.footer-col h4 {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.70);
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.50);
  font-size: 0.85rem;
  max-width: 1200px;
  margin: auto;
}


/* ═══════════════════════════════════════════════════════════════
   WHATSAPP FLOAT
═══════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #25D366;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.50);
  z-index: 999;
  transition: 0.3s;
}
.wa-float:hover { transform: scale(1.1); }


/* ═══════════════════════════════════════════════════════════════
   CHATBOT
═══════════════════════════════════════════════════════════════ */
.chat-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 62px; height: 62px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(27,58,92,0.40);
  z-index: 999;
  transition: 0.3s;
  border: none;
}
.chat-btn:hover { transform: scale(1.1); }

.chat-window {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 340px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.20);
  z-index: 998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: 500px;
}
.chat-window.open { display: flex; }

.chat-header {
  background: var(--brand);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.chat-header-info { flex: 1; }
.chat-header-info h4 { font-size: 1rem; font-weight: 700; }
.chat-header-info p  { font-size: 0.75rem; opacity: 0.8; margin-top: 2px; }

.chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.chat-close:hover { color: #fff; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f5f7fa;
}

.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  font-family: 'Cairo', sans-serif;
}
.msg.bot {
  background: #fff;
  color: #1a1a1a;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  align-self: flex-end;
}
.msg.user {
  background: var(--brand);
  color: #fff;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #eee;
}

.quick-btn {
  background: var(--surface2);
  color: var(--brand);
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: 0.2s;
}
.quick-btn:hover { background: var(--accent); color: #fff; }

.chat-input-wrap {
  display: flex;
  padding: 12px;
  border-top: 1px solid #eee;
  gap: 8px;
  background: #fff;
}

.chat-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 10px 16px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  outline: none;
  direction: rtl;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--brand); }

.chat-send {
  background: var(--brand);
  color: #fff;
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--accent); }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 90px 16px 50px; }
  .hero p { font-size: 0.95rem; }

  .cats-grid { grid-template-columns: 1fr 1fr; }

  .chat-window { width: calc(100vw - 48px); right: 24px; }

  .wa-float  { bottom: 20px; left:  20px; width: 54px; height: 54px; }
  .chat-btn  { bottom: 20px; right: 20px; width: 54px; height: 54px; }

  .footer-inner { gap: 28px; }
}

@media (max-width: 480px) {
  .cats-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
  .section { padding: 56px 16px; }
}
