/* ---------- Fonts ---------- */
@font-face {
  font-family: "HostGrotesk";
  src: url("../assets/fonts/HostGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HostGrotesk";
  src: url("../assets/fonts/HostGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HostGrotesk";
  src: url("../assets/fonts/HostGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HostGrotesk";
  src: url("../assets/fonts/HostGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: 40 75 99;
  --card: 32 60 79;
  --card-stroke: 40 75 99;
  --primary: 255 191 70;
  --primary-foreground: 255 255 255;
  --border: 255 191 70;
  --text: 255 255 255;
  --muted: 255 255 255;
  --text-soft: 152 162 179;
  --text-sub: 71 83 103;
  --bg-weak: 240 242 245;
  --success-lighter: 231 246 236;
  --neutral-900: 16 25 40;
  --radius: 8px;
  --container: 1280px;
  --font: "HostGrotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gradient-bg: linear-gradient(0.63deg, rgba(40, 75, 99, 0.6) 5.47%, rgba(255, 191, 70, 0.6) 99.44%);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: rgb(var(--bg));
  color: rgb(var(--text));
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: 12px;
  background-color: rgb(var(--card));
  box-shadow: inset 0 0 0 1px rgb(var(--card-stroke));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand-nav {
  display: flex;
  margin-right: 16px;
}

.brand {
  display: flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  border-radius: 4px;
  background-color: #f5f5f5;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

.search-desktop {
  display: none;
  align-items: center;
  gap: 12px;
  width: 400px;
  max-width: 36vw;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  background-color: #fff;
  color: rgb(var(--text-soft));
  box-shadow: inset 0 0 0 1px #d0d5dd, 0 1px 2px rgba(10, 13, 20, 0.03);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-desktop:hover {
  background-color: #f9fafb;
}

.search-desktop svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

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

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: rgb(var(--bg-weak));
  color: rgb(var(--text-sub));
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn:hover {
  background-color: #fff;
  color: rgb(var(--neutral-900));
  box-shadow: 0 1px 2px rgba(10, 13, 20, 0.06);
}

.flag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background-color: transparent;
}

.flag-btn img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 999px;
}

.cart-btn {
  background-color: #fff;
  color: #2f3b47;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background-color: rgb(var(--primary));
  color: #101928;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.cart-badge.is-bumped {
  animation: bump 0.35s ease;
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ---------- Banner ---------- */
.site-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.banner {
  position: relative;
  height: 132px;
  overflow: hidden;
  background-image: var(--gradient-bg);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Store header ---------- */
.store-header {
  position: relative;
  margin-top: -48px;
}

.store-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.shop-logo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  background-color: #f7f9fc;
  box-shadow: 0 0 0 4px #fff;
  object-fit: cover;
}

.store-socials {
  display: flex;
  align-items: center;
  gap: 24px;
}

.store-socials img {
  width: auto;
  height: 24px;
}

.store-socials--desktop {
  display: none;
  padding-bottom: 4px;
}

.store-info {
  margin-top: 24px;
  min-width: 0;
}

.store-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.store-name {
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: rgb(var(--primary));
}

.store-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 25.6px;
  word-break: break-word;
}

.store-desc p + p {
  margin-top: 4px;
}

.store-desc br {
  display: block;
  content: "";
}

.see-more {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: rgb(var(--primary));
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.see-more:hover {
  text-decoration-color: currentColor;
}

.store-socials--mobile {
  margin-top: 24px;
}

/* ---------- Store body / tabs ---------- */
.store-body {
  padding-top: 40px;
  padding-bottom: 40px;
}

.tabs {
  display: flex;
  gap: 16px;
  width: 100%;
  padding-bottom: 40px;
  border-bottom: 1px solid rgb(var(--border));
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid rgb(var(--bg-weak));
  border-radius: var(--radius);
  background-color: #fff;
  color: rgb(var(--text-soft));
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tab svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.tab:hover {
  color: rgb(var(--text-sub));
  border-color: #d0d5dd;
}

.tab.is-active {
  border-color: rgb(var(--primary));
  background-color: rgb(var(--primary));
  color: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid #e4e7ec;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: 0;
}

.badge.is-active {
  border-color: transparent;
  background-color: #fff;
  color: rgb(var(--primary));
}

/* ---------- Sections ---------- */
.content-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.content-section {
  padding-top: 40px;
}

.content-section + .content-section {
  border-top: 1px solid rgb(var(--border));
}

.content-section[hidden] {
  display: none;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.browse-link {
  display: none;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.browse-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- Events ---------- */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.event-card {
  display: flex;
  flex-direction: column-reverse;
  gap: 24px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgb(var(--card-stroke));
  border-radius: var(--radius);
  background-color: rgb(var(--card));
  color: #fff;
  text-align: left;
}

.event-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.event-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.event-title a {
  color: inherit;
}

.event-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-desc {
  margin-top: 4px;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block: 16px;
  font-size: 14px;
  line-height: 20px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.meta-row svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: rgb(var(--text-soft));
}

.meta-row p {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-overflow: ellipsis;
}

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background-color: rgb(var(--success-lighter));
  color: rgb(var(--neutral-900));
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  padding: 0 24px;
  background-color: rgb(var(--primary));
  color: rgb(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: rgba(var(--primary), 0.5);
}

.btn-ticket {
  margin-left: auto;
  padding: 0 14px;
}

.btn-secondary {
  padding: 0 16px;
  background-color: rgb(var(--bg-weak));
  color: rgb(var(--text-sub));
}

.btn-secondary:hover {
  background-color: #fff;
  color: rgb(var(--neutral-900));
  box-shadow: inset 0 0 0 1px #d0d5dd;
}

.event-media {
  display: block;
  width: 100%;
  height: 224px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 16px;
  margin-top: 40px;
}

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 16px;
  border: 1px solid rgb(var(--card-stroke));
  border-radius: var(--radius);
  background-color: rgb(var(--card));
}

.product-media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #d0d5dd;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.03);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block: 24px;
}

.product-title {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  overflow-wrap: break-word;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.product-price .old {
  text-decoration: line-through;
}

.product-price .new {
  color: rgb(var(--primary));
}

.product-options {
  color: rgb(var(--primary));
  font-size: 16px;
  font-style: italic;
  line-height: 24px;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.product-actions .btn {
  flex: 0 1 auto;
}

/* ---------- About ---------- */
.about {
  margin-block: 64px;
}

.about-inner {
  display: block;
  padding-top: 64px;
  border-top: 1px solid rgb(var(--border));
}

.about-desc h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.about-desc-body {
  max-width: 512px;
  margin-top: 0;
  font-size: 14px;
  line-height: 20px;
}

.about-desc-body p + p {
  margin-top: 0;
}

.about-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 16px;
}

.about-links h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.about-links ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.about-links li a {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.011em;
  overflow-wrap: anywhere;
  transition: opacity 0.2s ease;
}

.about-links > div:first-child li {
  line-height: 20px;
}

.about-links > div:first-child li a {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.006em;
}

.about-links li a:hover {
  opacity: 0.75;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #000;
  color: #fff;
}

.footer-top {
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
}

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

.footer-logo {
  width: auto;
  height: 24px;
  align-self: flex-start;
}

.footer-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 24px;
}

.footer-line img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.footer-line svg {
  flex: 0 0 18px;
}

.footer-line span {
  display: inline-block;
  min-width: 50px;
}

.footer-socials {
  margin-top: 64px;
}

.footer-socials h3 {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.footer-social-row {
  display: flex;
  gap: 24px;
}

.footer-social-row img {
  width: auto;
  height: 24px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(212, 212, 212, 0.2);
  text-align: center;
}

.copyright {
  font-size: 16px;
  line-height: 1.5;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 16px;
  margin-top: 32px;
}

.footer-legal a {
  padding-bottom: 24px;
  color: rgb(var(--primary));
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: #fff;
}

/* ---------- Chat button ---------- */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: #22c55e;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.chat-fab:hover {
  transform: translateY(-2px);
  background-color: #16a34a;
}

/* ---------- Small screens (>= 640px) ---------- */
@media (min-width: 640px) {
  .store-header {
    margin-top: -64px;
  }

  .shop-logo {
    width: 108px;
    height: 108px;
  }

  .browse-link {
    display: inline-flex;
  }

  .event-card {
    flex-direction: row;
    justify-content: space-between;
  }

  .event-media {
    width: 240px;
    flex: 0 0 15rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .footer-socials {
    max-width: 28rem;
  }
}

/* ---------- Tablets (>= 768px) ---------- */
@media (min-width: 768px) {
  .search-desktop {
    display: inline-flex;
  }

  .search-mobile {
    display: none;
  }

  .banner {
    height: 320px;
  }

  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 32px;
    text-align: left;
  }

  .footer-legal {
    justify-content: flex-end;
    margin-top: 0;
  }
}

/* ---------- Desktop (>= 1024px) ---------- */
@media (min-width: 1024px) {
  .store-socials--desktop {
    display: flex;
  }

  .store-socials--mobile {
    display: none;
  }

  .store-name {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
  }

  .verified {
    width: 32px;
    height: 32px;
  }

  .brand-nav {
    margin-right: 24px;
  }

  .store-desc {
    font-size: 18px;
    line-height: 24px;
  }

  .store-body {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-head h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card {
    flex-direction: column-reverse;
  }

  .event-media {
    width: 100%;
    flex: 0 0 auto;
  }

  .event-meta {
    margin-block: 32px;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .about-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .footer-socials {
    margin-top: 0;
  }
}

/* ---------- Wide desktop (>= 1280px) ---------- */
@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .event-card {
    flex-direction: row;
  }

  .event-media {
    width: 240px;
    flex: 0 0 15rem;
  }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 8px;
  background-color: #101928;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
}

.toast[hidden] {
  display: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
