/* ========================================
   TOPBAR
======================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3000;
  background: #d0d0d0;
  backdrop-filter: none;
  border-bottom: 0;
}

.site-logo {
  display: inline-block;
  position: relative;
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1;
  padding: 0 2px;
  background-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 48%,
    #39ff14 48%,
    #39ff14 76%,
    transparent 76%,
    transparent 100%
  );
}

.topbar-nav {
  display: none;
}

.topbar-nav__home,
.topbar-nav > a {
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1;
  white-space: nowrap;
}

.topbar-nav__divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(0, 0, 0, 0.45);
}

/* ========================================
   MENU BUTTON
======================================== */
.menu-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  position: relative;
}

.menu-button span {
  position: absolute;
  left: 10px;
  width: 22px;
  height: 1px;
  background: #000;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.menu-button span:nth-child(1) {
  top: 17px;
}

.menu-button span:nth-child(2) {
  top: 25px;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ========================================
   DRAWER
======================================== */
.drawer {
  position: fixed;
  top: 68px;
  right: 0;
  width: min(360px, 100vw);
  height: calc(100vh - 68px);
  padding: 0 20px 24px;
  background: #d0d0d0;
  transform: translateX(100%);
  transition: transform 0.45s ease;
  z-index: 2500;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  overflow-y: auto;
}

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

.drawer-nav {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.drawer-group {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.drawer-parent {
  width: 100%;
  min-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  color: #000;
}

.drawer-parent__plus {
  font-size: 18px;
  line-height: 1;
  opacity: 0.5;
  transition: transform 0.24s ease;
}

.drawer-group.is-open .drawer-parent__plus {
  transform: rotate(45deg);
}

.drawer-subnav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.drawer-group.is-open .drawer-subnav {
  max-height: 180px;
}

.drawer-subnav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0 10px 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.drawer-nav > a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ========================================
   DRAWER INFORMATION LINK
======================================== */
.drawer-information {
  margin-top: 34px;
  padding: 14px 20px 20px;
  border: 0 !important;
}

.drawer-information::before,
.drawer-information::after {
  content: none !important;
  display: none !important;
}

.drawer-information__link {
  display: inline-block;
  padding: 0;
  margin: 0;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none;
  color: #000;
  opacity: 0.56;
  font-size: 13px;
  line-height: 1.2;
}

.drawer-information__link::before,
.drawer-information__link::after {
  content: none !important;
  display: none !important;
}

/* ========================================
   DRAWER BACKDROP
======================================== */
.drawer-backdrop {
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  height: calc(100vh - 68px);
  background: rgba(0, 0, 0, 0.10);
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.45s ease;
  z-index: 2400;
}

.drawer-backdrop.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

/* ========================================
   BUTTON LINK
======================================== */
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.75);
  font-size: 12px;
  letter-spacing: 0.16em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-link:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ========================================
   SHOP FILTER
======================================== */
.shop-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.shop-filter__link {
  position: relative;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1;
  opacity: 0.55;
}

.shop-filter__link.is-active {
  opacity: 1;
}

.shop-filter__link::after,
.shop-filter__link.is-active::after,
.shop-filter__link[aria-current="page"]::after {
  content: none;
  display: none;
}

/* ========================================
   SHOP GRID
======================================== */
.shop-grid {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 24px;
  align-items: start;
}

/* ========================================
   SHOP CARD
======================================== */
.shop-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  width: 100%;
}

.shop-card__imagewrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #c8c8c8;
  line-height: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-card__image {
  display: block;
  width: 100%;
  height: 100%;
}

.shop-card--soundpack .shop-card__imagewrap {
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-card--soundpack .shop-card__image {
  width: auto;
  height: 100%;
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

.shop-card--session .shop-card__image,
.shop-card--square .shop-card__image {
  object-fit: cover;
  object-position: center;
}

.shop-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 80px;
}

.shop-card__title {
  margin: 0 0 6px;
  min-height: auto;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.shop-card__meta {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.55;
}

.shop-card__price {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  opacity: 0.7;
}

.shop-card__price--soldout {
  color: #c40000;
  opacity: 1;
}

/* ========================================
   DESKTOP NAV
======================================== */
@media (min-width: 641px) {
  .topbar {
    justify-content: flex-start;
    padding: 0 20px;
  }

  .site-logo {
    display: none;
  }

  .topbar-nav {
    width: 100%;
    display: grid;
    grid-template-columns: max-content 1px max-content max-content max-content;
    justify-content: space-between;
    align-items: center;
  }

  .topbar-nav__home,
  .topbar-nav > a {
    font-size: 11px;
    letter-spacing: 0.16em;
    line-height: 1;
    white-space: nowrap;
  }

  .topbar-nav__home {
    display: inline-block;
    position: relative;
    padding: 0 2px;
    background-image: linear-gradient(
      to bottom,
      transparent 0,
      transparent 48%,
      #39ff14 48%,
      #39ff14 76%,
      transparent 76%,
      transparent 100%
    );
  }

  .topbar-nav__divider {
    display: block;
    width: 1px;
    height: 14px;
    background: rgba(0, 0, 0, 0.45);
  }

  .menu-button,
  .drawer,
  .drawer-backdrop {
    display: none !important;
  }
}

@media (min-width: 641px) {
  .topbar-nav__divider {
    opacity: 0;
  }
}

/* ========================================
   MOBILE
======================================== */
@media (max-width: 640px) {
  .topbar {
    padding: 0 16px;
  }

  .site-logo {
    font-size: 10px;
    letter-spacing: 0.14em;
    background-image: linear-gradient(
      to bottom,
      transparent 0,
      transparent 50%,
      #39ff14 50%,
      #39ff14 74%,
      transparent 74%,
      transparent 100%
    );
  }

  .topbar-nav {
    display: none;
  }

  .drawer {
    top: 68px;
    width: 100vw;
    height: calc(100vh - 68px);
    padding: 0 16px 20px;
    border-left: 0;
  }

  .drawer-nav {
    margin-top: 0;
  }

  .drawer-parent {
    min-height: 50px;
    font-size: 14px;
    letter-spacing: 0.4em;
  }

  .drawer-subnav a {
    min-height: 40px;
    padding: 9px 0 9px 10px;
    font-size: 12px;
    line-height: 1.3;
  }

  .drawer-nav > a {
    min-height: 50px;
    font-size: 14px;
    letter-spacing: 0.4em;
  }

  .drawer-information {
    margin-top: 28px;
    padding: 0;
    border: 0 !important;
  }

  .drawer-information__link {
    font-size: 12px;
    letter-spacing: 0 !important;
  }

  .button-link {
    width: 100%;
  }

  .shop-filter {
    gap: 18px;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 16px;
  }

  .shop-card__imagewrap {
    border-radius: 8px;
    margin-bottom: 14px;
  }

  .shop-card__body {
    min-height: 80px;
  }

  .shop-card__title {
    font-size: 13px;
  }

  .shop-card__meta,
  .shop-card__price {
    font-size: 11px;
  }
}