/* ============================================
   BLOOMIA — Common Styles
   Palette: primary #F50057, bg #F7F7F7, surface #FFF,
            text #0F0F27, muted #807D86, accent #4CAF50
   Fonts: Inter (headings/logo), Roboto (body)
   ============================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/roboto-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/roboto-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #0F0F27;
  background: #F7F7F7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

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

/* --- Main --- */
.main {
  flex: 1;
  padding-bottom: 80px; /* space for mobile tab bar */
}

@media (min-width: 769px) {
  .main {
    padding-bottom: 0;
  }
}

/* --- Header --- */
.header {
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 12px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header__logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #0F0F27;
}

.header__geo-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F7F7F7;
  border: 1px solid #E8E8E8;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #0F0F27;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}

.header__geo-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #F50057;
}

.header__geo-pill:hover {
  background: #EFEFEF;
}

.header__fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #807D86;
  transition: color 0.2s;
}

.header__fav-btn svg {
  width: 20px;
  height: 20px;
}

.header__fav-btn:hover {
  color: #F50057;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Nav Chips (desktop categories) --- */
.nav__chips {
  display: none;
  gap: 8px;
  padding: 8px 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav__chips::-webkit-scrollbar {
  display: none;
}

@media (min-width: 769px) {
  .nav__chips {
    display: flex;
    overflow: visible;
  }
}

.nav__chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F7F7F7;
  border: 1px solid #E8E8E8;
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #0F0F27;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.nav__chip svg {
  width: 16px;
  height: 16px;
  color: #807D86;
}

.nav__chip:hover,
.nav__chip[aria-expanded="true"] {
  background: #F50057;
  color: #fff;
  border-color: #F50057;
}

.nav__chip:hover svg,
.nav__chip[aria-expanded="true"] svg {
  color: #fff;
}

/* --- Geo Dropdown --- */
.nav__dropdown {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 200;
  flex-direction: column;
  overflow: hidden;
}

.nav__dropdown.is-open {
  display: flex;
}

@media (min-width: 769px) {
  .nav__dropdown {
    position: fixed;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 420px;
    max-height: 480px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border: 1px solid #E8E8E8;
    z-index: 9999;
  }
}

.nav__dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #F0F0F0;
  flex-shrink: 0;
}

.nav__dropdown-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.nav__dropdown-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F7F7F7;
}

.nav__dropdown-close svg {
  width: 18px;
  height: 18px;
}

.nav__dropdown-search {
  margin: 12px 16px 0;
  padding: 10px 16px;
  border: 1px solid #E8E8E8;
  border-radius: 50px;
  font-size: 14px;
  outline: none;
  background: #F7F7F7;
  flex-shrink: 0;
  font-family: 'Roboto', sans-serif;
}

.nav__dropdown-search:focus {
  border-color: #F50057;
  background: #fff;
}

.nav__dropdown-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}

.nav__dropdown-link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  color: #0F0F27;
  background: #F7F7F7;
  transition: all 0.15s;
}

.nav__dropdown-link:hover {
  background: #F50057;
  color: #fff;
}

/* Backdrop: overlay behind dropdown, click to close */
.nav__backdrop {
  display: none;
}

.nav__backdrop.is-visible {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
}

/* --- Mobile Tab Bar --- */
.tab-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid #E8E8E8;
  z-index: 100;
  padding: 4px 0;
  padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 769px) {
  .tab-bar {
    display: none;
  }
}

.tab-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  font-size: 10px;
  color: #807D86;
  transition: color 0.2s;
}

.tab-bar__item svg {
  width: 22px;
  height: 22px;
}

.tab-bar__item.is-active,
.tab-bar__item:hover {
  color: #F50057;
}

/* --- Bottom Sheet (mobile menu) --- */
.bottom-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}

.bottom-sheet.is-open {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bottom-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.bottom-sheet__panel {
  position: relative;
  background: #fff;
  border-radius: 24px 24px 0 0;
  max-height: 85vh;
  overflow-y: auto;
  padding: 12px 0 24px;
  z-index: 1;
}

.bottom-sheet__handle {
  width: 40px;
  height: 4px;
  background: #DDD;
  border-radius: 2px;
  margin: 0 auto 16px;
}

.bottom-sheet__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 0 20px 12px;
}

.bottom-sheet__category {
  padding: 0 20px;
  margin-bottom: 8px;
}

.bottom-sheet__category-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #807D86;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 0 8px;
}

.bottom-sheet__group {
  margin-bottom: 4px;
}

.bottom-sheet__group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: #0F0F27;
}

.bottom-sheet__group-toggle svg {
  width: 18px;
  height: 18px;
  color: #807D86;
  transition: transform 0.2s;
}

.bottom-sheet__group.is-expanded .bottom-sheet__group-toggle svg {
  transform: rotate(180deg);
}

.bottom-sheet__items {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 12px;
}

.bottom-sheet__group.is-expanded .bottom-sheet__items {
  display: flex;
}

.bottom-sheet__link {
  display: inline-block;
  padding: 6px 14px;
  background: #F7F7F7;
  border-radius: 50px;
  font-size: 13px;
  color: #0F0F27;
  transition: all 0.15s;
}

.bottom-sheet__link:hover {
  background: #F50057;
  color: #fff;
}

.bottom-sheet__static {
  border-top: 1px solid #F0F0F0;
  margin-top: 12px;
  padding: 12px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bottom-sheet__static a {
  font-size: 14px;
  color: #807D86;
  padding: 6px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  padding: 12px 28px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: #F50057;
  color: #fff;
}

.btn--primary:hover {
  background: #D50049;
}

.btn--outline {
  background: transparent;
  color: #F50057;
  border: 2px solid #F50057;
}

.btn--outline:hover {
  background: #F50057;
  color: #fff;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn--sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 16px;
}

.trust-bar::-webkit-scrollbar {
  display: none;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 16px;
  background: #FFFFFF;
  border-radius: 50px;
  border: 1px solid #E8E8E8;
}

.trust-bar__icon {
  display: flex;
  color: #4CAF50;
}

.trust-bar__icon svg {
  width: 18px;
  height: 18px;
}

.trust-bar__text {
  font-size: 12px;
  font-weight: 500;
  color: #807D86;
  white-space: nowrap;
}

/* --- Footer --- */
.footer {
  background: #FFFFFF;
  border-top: 1px solid #E8E8E8;
  padding: 32px 0;
  margin-bottom: 60px; /* mobile tab bar */
}

@media (min-width: 769px) {
  .footer {
    margin-bottom: 0;
  }
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 769px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0F0F27;
}

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

.footer__link {
  font-size: 14px;
  color: #807D86;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #F50057;
}

.footer__bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #F0F0F0;
}

.footer__copy {
  font-size: 13px;
  color: #807D86;
}

/* --- Page Header --- */
.page-header {
  margin-bottom: 12px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: #0F0F27;
}

@media (min-width: 769px) {
  .page-title {
    font-size: 28px;
  }
}

/* --- Cards Count --- */
.cards-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #807D86;
  margin-bottom: 16px;
}

.cards-count svg {
  width: 16px;
  height: 16px;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: #0F0F27;
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  transition: all 0.2s;
}

.pagination__item:hover {
  border-color: #F50057;
  color: #F50057;
}

.pagination__item--active {
  background: #F50057;
  color: #fff;
  border-color: #F50057;
}

.pagination__item--active:hover {
  color: #fff;
}

.pagination__item--prev svg,
.pagination__item--next svg {
  width: 18px;
  height: 18px;
}

.pagination__dots {
  padding: 0 4px;
  color: #807D86;
}

/* --- SEO Blocks --- */
.seo-blocks {
  padding: 24px 0;
}

.seo-block {
  margin-bottom: 12px;
}

.seo-block--h1,
.seo-block--h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0F0F27;
  margin-bottom: 8px;
}

.seo-block--text {
  font-size: 14px;
  color: #807D86;
  line-height: 1.6;
}

/* --- Location Info --- */
.location-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 4px;
  color: #807D86;
  font-size: 13px;
}

.location-info svg {
  width: 16px;
  height: 16px;
  color: #F50057;
}

/* --- Hero Block (desktop main) --- */
.hero {
  display: none;
  position: relative;
  background: #0F0F27;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 24px;
  min-height: 220px;
}

@media (min-width: 769px) {
  .hero {
    display: flex;
    align-items: center;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,39,0.9) 0%, rgba(245,0,87,0.3) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 48px 40px;
  max-width: 600px;
}

.hero__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* --- Quick Nav Links --- */
.nav__quick-wrap {
  padding: 6px 0 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav__quick-wrap::-webkit-scrollbar {
  display: none;
}

.nav__quick {
  display: flex;
  gap: 6px;
}

.nav__quick-link {
  display: inline-block;
  padding: 5px 14px;
  background: #F7F7F7;
  border-radius: 50px;
  font-size: 12px;
  color: #807D86;
  white-space: nowrap;
  transition: all 0.15s;
}

.nav__quick-link:hover {
  background: #F50057;
  color: #fff;
}

/* --- Utility --- */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
