/* Top bar + Change Country drawer + Shop Worldwide */

.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-top);
  background: #fff;
}

.top-bar {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.5rem max(0.75rem, var(--safe-left)) 0.5rem max(0.75rem, var(--safe-right));
  text-align: center;
}

.top-bar-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #111;
  letter-spacing: 0.01em;
}

.site-top .site-header {
  position: relative;
  top: auto;
  padding-top: 0;
}

.geo-flag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.geo-flag-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.28);
  font-size: 15px;
  line-height: 1;
  overflow: hidden;
  background: #fff;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.geo-flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.geo-flag-circle.sm {
  width: 22px;
  height: 22px;
  font-size: 0.85rem;
}

.geo-drawer-trigger {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: none;
  font: inherit;
  padding: 0.65rem 0;
  cursor: pointer;
  color: var(--ink);
}

/* Overlay drawer */
.geo-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(14, 26, 43, 0.45);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.geo-overlay.open {
  opacity: 1;
  visibility: visible;
}

.geo-drawer {
  width: min(100%, 420px);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(12px);
  transition: transform 0.2s ease;
}

.geo-overlay.open .geo-drawer {
  transform: translateX(0);
}

.geo-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.1);
}

.geo-drawer-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.geo-close {
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.geo-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 1.25rem;
}

.geo-field-label {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.geo-select {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(11, 31, 58, 0.25);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: start;
}

.geo-select #geoSelectText {
  flex: 1;
}

.geo-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  margin-bottom: 0.2rem;
}

.geo-country-list {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
  max-height: 240px;
  overflow: auto;
  border: 1px solid rgba(11, 31, 58, 0.15);
}

.geo-country-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  cursor: pointer;
  text-align: start;
}

.geo-country-item:hover {
  background: #f4f3f1;
}

.geo-country-item.active {
  background: #1a1a1a;
  color: #fff;
}

.geo-hint {
  margin: 1.15rem 0 0.35rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink);
}

.geo-view-all {
  display: block;
  text-align: center;
  margin: 0 0 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.geo-lang-list {
  display: grid;
  gap: 0.55rem;
}

.geo-lang-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(11, 31, 58, 0.2);
  background: #f3f2ef;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
}

.geo-lang-btn.active {
  border-color: #1a1a1a;
  background: #fff;
  box-shadow: inset 0 0 0 1px #1a1a1a;
}

.geo-drawer-foot {
  padding: 1rem 1.25rem 1.35rem;
  border-top: 1px solid rgba(11, 31, 58, 0.1);
}

.geo-shop-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: #1a1a1a;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.geo-shop-btn:hover {
  background: #000;
}

/* Shop Worldwide page */
.countries-page {
  padding: 2rem 0 4rem;
}

.countries-brand {
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.countries-title {
  text-align: center;
  margin: 0 0 2rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
}

.countries-featured,
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem 1rem;
}

.countries-featured {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.countries-region {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.countries-region-title {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.country-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.45rem 0.35rem;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  text-align: start;
}

.country-card:hover {
  color: var(--navy-mid);
}

.country-card.active {
  font-weight: 700;
}

@media (max-width: 860px) {
  .top-bar-text {
    font-size: 0.8rem;
    line-height: 1.3;
    padding-inline: 0.5rem;
  }
}
