/* ============================================================
   ShoppingMz — Main Stylesheet
   Modern e-commerce design for Mozambique electronics store
   ============================================================ */

/* --- CSS Variables ---------------------------------------- */
:root {
  --primary:          #1747cf;
  --primary-dark:     #1035a0;
  --primary-light:    #e8effe;
  --accent:           #f59e0b;
  --accent-dark:      #d97706;
  --tickets-event:    #7c3aed;
  --tickets-transport:#059669;
  --success:          #10b981;
  --danger:           #ef4444;
  --warning:          #f59e0b;
  --bg:               #f8fafc;
  --surface:          #ffffff;
  --surface-hover:    #f1f5f9;
  --text:             #1e293b;
  --text-light:       #64748b;
  --text-muted:       #94a3b8;
  --border:           #e2e8f0;
  --border-dark:      #cbd5e1;
  --shadow-sm:        0 1px 3px rgba(0,0,0,.08);
  --shadow:           0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:        0 8px 32px rgba(0,0,0,.14);
  --radius-sm:        6px;
  --radius:           12px;
  --radius-lg:        20px;
  --radius-full:      9999px;
  --transition:       .2s ease;
  --font:             'Segoe UI', system-ui, -apple-system, sans-serif;
  --header-h:         70px;
}

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
button { font-family: var(--font); cursor: pointer; }
ul { list-style: none; }
input, select, textarea { font-family: var(--font); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Bar ---------------------------------------------- */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-bar a { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: #fff; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar i { margin-right: 4px; font-size: .75rem; }
.top-bar .social-links { display: flex; gap: 10px; }
.top-bar .social-links a { font-size: .85rem; }

/* --- Header ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
}
.header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo img { height: 44px; width: 44px; border-radius: 30%; object-fit: contain; }
.site-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0;
}
.site-logo-text span { color: var(--accent); }

/* Search */
.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search-form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23,71,207,.12);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 18px;
  font-size: .95rem;
  background: transparent;
  color: var(--text);
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: .9rem;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.header-action-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.btn-bilhetes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tickets-event);
  color: #fff !important;
  border: none !important;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
}
.btn-bilhetes:hover { opacity: .92; }

/* --- Category Navigation ---------------------------------- */
.cat-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 900;
}
.cat-nav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  font-size: .88rem;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  position: relative;
}
.cat-nav-link:hover,
.cat-nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.cat-nav-link i { font-size: .8rem; }

/* Dropdown */
.cat-nav-item {
  position: relative;
}
.cat-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 8px 0;
  z-index: 1000;
}
.cat-nav-item:hover .cat-nav-dropdown { display: block; }
.cat-nav-dropdown a {
  display: block;
  padding: 8px 18px;
  font-size: .88rem;
  color: var(--text);
}
.cat-nav-dropdown a:hover { background: var(--surface-hover); color: var(--primary); }

/* --- Hero Banner ------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  height: 480px;
}
.hero-slider {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-slide-fallback {
  background: var(--primary);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.48);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  max-width: 540px;
  color: #fff;
}
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-desc {
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 24px;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--accent);
  color: var(--text);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-hero-primary:hover { background: var(--accent-dark); color: var(--text); transform: translateY(-1px); }
.btn-hero-secondary {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  background: transparent;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* Slider controls */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active { background: #fff; width: 24px; }
.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,.35); }

/* --- Section Headings ------------------------------------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--primary);
  border-radius: var(--radius-full);
  margin-top: 6px;
}
.section-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.section-link:hover { color: var(--primary-dark); }

/* --- Sections --------------------------------------------- */
.section { padding: 48px 0; }
.section-alt { background: var(--surface); }

/* --- Category Grid ---------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.category-card:hover .cat-icon { background: var(--primary); color: #fff; }
.cat-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 10px;
  transition: all var(--transition);
}
.cat-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.cat-count {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Product Cards ---------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }

.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}
.badge-discount { background: var(--danger); color: #fff; }
.badge-new      { background: var(--success); color: #fff; }
.badge-featured { background: var(--accent); color: var(--text); }

.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(-8px);
  transition: all var(--transition);
}
.product-action-btn {
  width: 34px;
  height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .85rem;
  transition: all var(--transition);
}
.product-action-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.product-info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-cat-tag {
  font-size: .72rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 4px;
}
.product-name {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.price-current {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}
.price-original {
  font-size: .85rem;
  color: var(--danger);
  text-decoration: line-through;
}
.price-discount {
  font-size: .75rem;
  font-weight: 700;
  color: var(--danger);
}
.btn-add-cart {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px;
  font-size: .88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
  margin-top: auto;
}
.btn-add-cart:hover { background: var(--primary-dark); }
.btn-add-cart:active { transform: scale(.98); }
.btn-add-cart:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: .9;
}
.btn-add-cart:disabled:hover {
  background: #9ca3af;
}

/* --- Bilhetes Section ------------------------------------- */
.bilhetes-section {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bilhetes-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,.6);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
}
.bilhetes-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.bilhetes-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.bilhetes-tab[data-type="event"].active { background: var(--tickets-event); }
.bilhetes-tab[data-type="transport"].active { background: var(--tickets-transport); }

.bilhetes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* --- Ticket Cards ----------------------------------------- */
.ticket-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.ticket-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}
.ticket-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}
.ticket-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ticket-card:hover .ticket-img-wrap img { transform: scale(1.05); }
.ticket-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #fff;
}
.ticket-type-badge.event     { background: var(--tickets-event); }
.ticket-type-badge.transport { background: var(--tickets-transport); }
.ticket-type-badge.other     { background: var(--text-light); }
.ticket-vendor-logo {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid #fff;
  overflow: hidden;
  background: #fff;
}
.ticket-vendor-logo img { width: 100%; height: 100%; object-fit: cover; }

.ticket-info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ticket-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: 6px;
}
.ticket-meta i { font-size: .72rem; }
.ticket-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.ticket-vendor-name {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ticket-vendor-name i { color: var(--success); font-size: .7rem; }
.ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ticket-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}
.ticket-price small {
  font-size: .7rem;
  font-weight: 500;
  color: var(--text-muted);
}
.btn-ticket {
  background: var(--tickets-event);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-size: .82rem;
  font-weight: 600;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-ticket:hover { opacity: .88; color: #fff; }
.btn-ticket.transport { background: var(--tickets-transport); }

/* --- Trust Badges ----------------------------------------- */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-icon {
  width: 46px;
  height: 46px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.trust-label { font-size: .85rem; font-weight: 700; color: var(--text); }
.trust-sub   { font-size: .78rem; color: var(--text-light); }

/* --- Newsletter ------------------------------------------- */
.newsletter-section {
  background: var(--primary);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.newsletter-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.newsletter-sub {
  font-size: 1rem;
  opacity: .85;
  margin-bottom: 28px;
}
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.3);
}
.newsletter-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: .95rem;
  background: rgba(255,255,255,.15);
  color: #fff;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.65); }
.newsletter-btn {
  background: var(--accent);
  color: var(--text);
  border: none;
  padding: 14px 28px;
  font-weight: 700;
  font-size: .9rem;
  transition: background var(--transition);
}
.newsletter-btn:hover { background: var(--accent-dark); }
.newsletter-msg {
  margin-top: 14px;
  font-size: .88rem;
  opacity: .9;
  min-height: 20px;
}

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .site-logo-text { color: #fff; }
.footer-desc {
  font-size: .88rem;
  line-height: 1.7;
  margin: 14px 0 20px;
  opacity: .75;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  transition: all var(--transition);
  font-size: .9rem;
}
.footer-social-btn:hover { background: var(--primary); color: #fff; }

.footer-col-title {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: #fff; }
.footer-links i { font-size: .75rem; color: var(--primary); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
}
.footer-contact-item i {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  font-size: .84rem;
  font-weight: 700;
}
.payment-logos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.payment-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.payment-logo.mpesa  { background: #4caf50; color: #fff; }
.payment-logo.paypal { background: #003087; color: #fff; }
.payment-logo.visa   { background: #1a1f71; color: #fff; font-style: italic; font-size: 1rem; letter-spacing:.04em; }
.payment-logo.mc     { background: #fff; color: #333; position: relative; overflow: visible; }
.payment-logo.mc::before,
.payment-logo.mc::after {
  content: '';
  display: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .82rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.55); }
.footer-bottom-links a:hover { color: #fff; }

/* --- Generic Buttons -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline   { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-accent    { background: var(--accent); color: var(--text); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.9); }
.btn-sm        { padding: 7px 16px; font-size: .82rem; }
.btn-lg        { padding: 14px 30px; font-size: 1rem; }
.btn-block     { width: 100%; justify-content: center; }
.btn-rounded   { border-radius: var(--radius-full); }

/* --- Form Controls ---------------------------------------- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label.required::after {
  content: ' *';
  color: var(--danger);
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .92rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23,71,207,.1);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: var(--danger); }
.form-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-error {
  font-size: .78rem;
  color: var(--danger);
  margin-top: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Alerts ----------------------------------------------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid rgba(16,185,129,.25); }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid rgba(239,68,68,.25); }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid rgba(245,158,11,.25); }
.alert-info    { background: var(--primary-light); color: var(--primary-dark); border: 1px solid rgba(23,71,207,.20); }

/* --- Toast Notification ----------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  min-width: 280px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  animation: toastIn .3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast i { font-size: 1.1rem; flex-shrink: 0; }
.toast.success i { color: var(--success); }
.toast.error   i { color: var(--danger); }
.toast.info    i { color: var(--primary); }
.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .8rem;
  padding: 2px;
}

/* --- Skeleton Loader -------------------------------------- */
.skeleton {
  background: var(--border);
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0%, 100% { opacity: .65; }
  50% { opacity: 1; }
}
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.skeleton-img  { aspect-ratio: 1/1; }
.skeleton-line { height: 14px; margin: 8px 14px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

/* --- Breadcrumb ------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  padding: 14px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border-dark); font-size: .75rem; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* --- Pagination ------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 32px 0;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- Utility ---------------------------------------------- */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex         { display: flex; }
.align-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* --- Empty State ------------------------------------------ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i   { font-size: 3rem; margin-bottom: 16px; opacity: .4; }
.empty-state h3  { font-size: 1.2rem; color: var(--text-light); margin-bottom: 8px; }
.empty-state p   { font-size: .9rem; }

/* --- Scroll to top ---------------------------------------- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  background: var(--primary);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  font-size: .95rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
  display: none;
}
.scroll-top.visible { display: flex; align-items: center; justify-content: center; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* --- Fade In Animation ------------------------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* 1024px — tablet landscape */
@media (max-width: 1024px) {
  .category-grid  { grid-template-columns: repeat(4, 1fr); }
  .products-grid  { grid-template-columns: repeat(3, 1fr); }
  .bilhetes-grid  { grid-template-columns: repeat(3, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 28px; }
  .trust-items    { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* 768px — tablet portrait */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .hero { height: 340px; }
  .hero-title { font-size: 1.7rem; }
  .hero-content { padding: 24px; }
  .top-bar-left  { display: none; }
  .header-search { max-width: none; }
  .header-action-btn span { display: none; }
  .cat-nav { display: none; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .bilhetes-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* 480px — mobile */
@media (max-width: 480px) {
  .hero { height: 280px; }
  .hero-title { font-size: 1.35rem; }
  .hero-prev, .hero-next { display: none; }
  .container { padding: 0 14px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bilhetes-grid { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius); }
  .newsletter-input, .newsletter-btn { border-radius: var(--radius) !important; }
  .trust-items { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section-title { font-size: 1.15rem; }
}

/* Extra responsive hardening for Turbo Host/mobile browsers */
@media (min-width: 1440px) {
  .container { max-width: 1360px; }
  .products-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .header-main { gap: 12px; }
  .header-action-btn,
  .btn-bilhetes { padding-inline: 12px; }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-main {
    height: auto;
    min-height: var(--header-h);
    padding: 10px 0;
    flex-wrap: wrap;
  }
  .site-logo { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .header-search {
    order: 3;
    flex: 0 0 100%;
    max-width: none;
  }
  .search-form { border-radius: var(--radius); }
  .hero { height: 320px; }
  .hero-content { max-width: 100%; }
  .hero-actions { flex-wrap: wrap; }
  .products-grid,
  .bilhetes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .top-bar { display: none; }
  .container { padding: 0 12px; }
  .site-logo img { height: 36px; width: 36px; border-radius: 30%; }
  .site-logo-text { font-size: 1.05rem; }
  .header-actions { gap: 6px; }
  .header-action-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
  .header-action-btn span { display: none; }
  .btn-bilhetes {
    padding: 8px 12px;
    font-size: .78rem;
    height: 40px;
  }
  .search-input { min-width: 0; padding: 10px 12px; }
  .search-btn { padding: 10px 14px; }
  .hero { height: 290px; }
  .hero-content { padding: 18px; }
  .hero-title { font-size: 1.45rem; line-height: 1.15; }
  .hero-desc { font-size: .9rem; }
  .hero-actions { gap: 8px; }
  .btn-hero-primary,
  .btn-hero-secondary { width: 100%; justify-content: center; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-info { padding: 10px; }
  .product-name { font-size: .84rem; }
  .price-current { font-size: 1rem; }
  .btn-add-cart { min-height: 38px; padding: 8px; font-size: .78rem; }
  .bilhetes-tabs {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius);
  }
  .bilhetes-tab { flex: 0 0 auto; white-space: nowrap; }
  .newsletter-section { padding: 42px 0; }
  .footer-grid { gap: 22px; }
}

@media (max-width: 380px) {
  .products-grid,
  .bilhetes-grid,
  .category-grid { grid-template-columns: 1fr; }
  .hero { height: 260px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-bottom-links { flex-direction: column; gap: 8px; }
}
