/* Global Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #222;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header.site-header {
  background: linear-gradient(90deg, #4cb8ff, #79d1ff);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-wrap img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
}

nav.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

nav.main-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 0.93rem;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: rgba(255, 255, 255, 0.18);
}

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

.header-cart {
  position: relative;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  border: none;
  color: #fff;
}

.header-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff5a5f;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 999px;
}

/* Footer */
footer.site-footer {
  background: linear-gradient(90deg, #4cb8ff, #79d1ff);
  border-top: none;
  margin-top: 40px;
  color: #e8f4ff;
}

.footer-inner {
  padding: 24px 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(232, 244, 255, 0.35);
  padding: 10px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #e8f4ff;
}

/* Hero Banner */
.hero {
  background: linear-gradient(135deg, #e6f5ff, #ffffff);
  padding: 32px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero-subtitle {
  color: #555;
  margin-bottom: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(76, 184, 255, 0.08);
  color: #0f6ea6;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.hero-banner-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Search Bar */
.search-section {
  margin-top: 10px;
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search-bar input[type="text"] {
  flex: 1 1 220px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #c6d7ea;
  outline: none;
}

.search-bar select {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #c6d7ea;
  background: #fff;
}

.btn {
  border-radius: 999px;
  border: none;
  padding: 10px 18px;
  background: #0f88d6;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary {
  background: #e3f3ff;
  color: #0f6ea6;
}

.btn-outline {
  background: transparent;
  border: 1px solid #c6d7ea;
  color: #0f6ea6;
}

.btn:hover {
  background: #0a6aa6;
  box-shadow: 0 4px 10px rgba(15, 136, 214, 0.3);
}

.btn-secondary:hover {
  background: #d3ecff;
  box-shadow: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.price-range-panel {
  margin-top: 10px;
  display: none;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.price-range-panel input[type="number"] {
  width: 110px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #c6d7ea;
}

/* Sections */
.section {
  padding: 26px 0 6px;
}

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

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.9rem;
  color: #666;
}

/* Category Pills Row */
.category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

/* Categories – dropdown for iPad & mobile */
.categories-mobile-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.categories-dropdown-trigger {
  display: none;
  position: relative;
}

.categories-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 220px;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #c6d7ea;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
}

.categories-dropdown-panel[hidden] {
  display: none !important;
}

.categories-dropdown-panel .filter-list {
  display: flex;
  flex-direction: column;
  padding: 6px;
}

/* iPad & mobile: show dropdown trigger, hide pills */
@media (max-width: 1024px) {
  .categories-mobile-wrap .category-row,
  .categories-mobile-wrap > .filter-list {
    display: none !important;
  }
  .categories-dropdown-trigger {
    display: block;
  }
}

/* Desktop: show pills, hide dropdown trigger */
@media (min-width: 1025px) {
  .categories-dropdown-trigger {
    display: none;
  }
  .categories-mobile-wrap > .filter-list,
  .categories-mobile-wrap .category-row {
    display: flex !important;
  }
}

.category-pill {
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #c6d7ea;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}

.category-pill.active {
  background: #0f88d6;
  color: #fff;
  border-color: #0f88d6;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.product-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-number {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #0b4980;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.product-meta {
  font-size: 0.85rem;
  color: #555;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: #e6f7ff;
  color: #0f6ea6;
}

.badge-danger {
  background: #ffe7ea;
  color: #d9304e;
}

/* Two-column layouts (home lead, store, contact) */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: 24px;
  align-items: flex-start;
}

.side-banner {
  background: linear-gradient(135deg, #d7efff, #ffffff);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #c6d7ea;
  font-size: 0.9rem;
}

.form-group textarea {
  min-height: 90px;
  resize: vertical;
}

.error-text {
  color: #d9304e;
  font-size: 0.8rem;
}

/* Sim logo icon for "number not found" */
.sim-logo-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0f88d6 0%, #4cb8ff 100%);
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
}
.sim-logo-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 3px;
}

/* Store filters layout */
.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.27fr) minmax(0, 0.73fr);
  gap: 20px;
}

.category-filter-card {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.filter-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d7e3f2;
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-pill.active {
  background: #0f88d6;
  color: #fff;
  border-color: #0f88d6;
}

/* Cart */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cart-table th,
.cart-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #e3e7f0;
  text-align: left;
}

.cart-summary {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

/* Admin layout */
.admin-wrapper {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: #0f6ea6;
  color: #fff;
  padding: 18px 14px;
}

.admin-sidebar h1 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.admin-nav button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #e6f5ff;
  cursor: pointer;
  font-size: 0.9rem;
}

.admin-nav button.active {
  background: rgba(255, 255, 255, 0.14);
}

.admin-main {
  background: #f5f7fb;
  padding: 18px 18px 30px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  border-bottom: 1px solid #e3e7f0;
  padding: 6px 5px;
  text-align: left;
}

.chip {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e6f5ff;
  font-size: 0.75rem;
}

/* Blog */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.blog-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.blog-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.blog-meta {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 8px;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 18px;
  left: 16px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 60;
}

/* Full-width container variant for store */
.container.store-container {
  max-width: 100%;
}

/* Full-width for offers and numerology */
.container.container-full {
  max-width: 100%;
}

/* Store grid: aim for 4 products per row on desktop */
.store-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Numerology grid: 4 per row */
.numerology-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .store-grid,
  .numerology-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .store-grid,
  .numerology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Top banner below header on home */
.top-banner {
  background: url("../img/home-banner.jpg") center/cover no-repeat,
    linear-gradient(90deg, #4cb8ff, #79d1ff);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.top-banner-inner {
  padding: 20px 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .store-layout {
    grid-template-columns: 1fr;
  }

  .admin-wrapper {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  nav.main-nav {
    justify-content: center;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
}

