@charset "UTF-8";

:root {
  --nav-bg: #12243c;
  --nav-alt: #1a304d;
  --accent: #00c853;
  --accent-2: #ffcc4d;
  --text: #1f2a3d;
  --muted: #6b7280;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
  background: #f4f7fb;
}

.market-header {
  background: var(--nav-bg);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.market-header .header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.mobile-menu-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
  }
}

.header-logo img {
  height: 52px;
  width: auto;
}

.header-search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 320px;
  box-shadow: var(--shadow);
}

.header-search-form input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 14px;
  background: transparent;
}

.header-search-form button {
  background: var(--accent);
  border: 0;
  color: #0f1c2b;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.action-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.cart-link {
  background: var(--accent);
  color: #0f1c2b;
  border: none;
}

.cart-count {
  background: #fff;
  color: var(--nav-bg);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  margin-left: 6px;
}

.cart-text {
  margin-left: 4px;
  font-weight: 700;
}

.header-subnav {
  background: var(--nav-alt);
  padding: 10px 0;
}

.nav-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
  flex-wrap: wrap;
}

.nav-pill {
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
}

.nav-chip {
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  margin-bottom: 8px;
}

.nav-chip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mobile-search {
  padding: 12px 0;
}

.mobile-search .header-search-form {
  box-shadow: none;
  min-width: auto;
}

.page-home {
  background: #f4f7fb;
}

.hero-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 16px auto;
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 43, 74, 0.85) 0%, rgba(19, 43, 74, 0.4) 60%, rgba(19, 43, 74, 0.05) 100%);
}

.hero-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 15px;
  gap: 20px;
}

.hero-text {
  color: #fff;
  max-width: 480px;
}

.hero-text h1 {
  font-size: 36px;
  margin: 4px 0;
  font-weight: 800;
}

.eyebrow {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
  margin: 0;
}

.subtitle {
  font-size: 18px;
  margin: 0 0 16px;
}

.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-actions .pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 6px 12px;
  font-weight: 600;
}

.btn-hero {
  margin-top: 12px;
  display: inline-block;
  background: var(--accent);
  color: #0f1c2b;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.hero-side-img {
  max-height: 220px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.category-strip {
  padding: 12px 0 4px;
}

.pill-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
}

.pill-row .nav-chip,
.pill-row .category-chip {
  flex: 0 0 auto;
}

.category-chip {
  background: #fff;
  color: var(--text);
  border-radius: 18px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  min-width: 140px;
  justify-content: center;
}
.category-chip img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.product-section {
  padding: 12px 0 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-chip {
  background: var(--nav-alt);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
}

.tab-chip.active {
  background: var(--accent);
  color: #0f1c2b;
  opacity: 1;
}

.hero-tabs-mobile {
  display: none;
}

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

.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #0f1c2b;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 2;
}

.card-image {
  position: relative;
  padding-top: 70%;
  z-index: 0;
  overflow: visible;
  background: #ffffff;
  border-bottom: 1px solid #f4f7fb;
}

.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  z-index: 1 !important;
}

.sale-badge, .product-card .card-image .sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #0f1c2b;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 999 !important;
}

.product-card .card-image img { z-index: 10 !important; 
  background: #ffffff !important;
}

.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-rating i {
  color: #ffb400;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.price-new {
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}

.price-old {
  color: #8b95a3;
  text-decoration: line-through;
  font-size: 13px;
}

.card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-pill {
  background: #eef2f7;
  color: #4a5568;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.card-button {
  margin-top: auto;
  display: inline-block;
  background: var(--nav-bg);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.card-button:hover {
  background: var(--accent);
  color: #0f1c2b;
}

.pager {
  margin-top: 16px;
  text-align: center;
}

.pager a {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.pager a.active {
  background: var(--accent);
  color: #0f1c2b;
  font-weight: 700;
}

@media (max-width: 991px) {
  .header-main {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .header-search {
    flex: 1 1 100%;
  }

  .header-search-form {
    width: 100%;
    min-width: auto;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-side {
    width: 100%;
    text-align: center;
    margin-top: 12px;
  }
}

@media (max-width: 767px) {
  .header-search.hidden-xs.hidden-sm {
    display: none !important;
  }
  .section-tabs { display:none !important; }
  .hero-actions-cta { display:flex !important; }
  .hero-tabs-mobile { display:flex; gap:8px; flex-wrap:wrap; margin: 12px 0 0; justify-content:center; }
  .hero-tabs-mobile .tab-chip { font-size:14px; padding:8px 10px; }

  .hero-banner {
    margin: 8px 0;
  }

  .hero-container {
    padding: 24px 15px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

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