.store-shell {
  display: flex;
  flex-direction: column;
}

.store-hero {
  padding: 24px max(24px, calc((100vw - 1180px) / 2)) 0;
  border-bottom: 1px solid rgba(255, 210, 17, 0.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(10, 115, 46, 0.34), rgba(3, 34, 13, 0.1) 48%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.16));
}

.store-header {
  height: auto;
  min-height: 64px;
  flex-wrap: wrap;
}

.store-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-area {
  display: flex;
  align-items: center;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  color: #132914;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 22px rgba(0, 0, 0, 0.3);
  font: 700 1.02rem/1.1 "Inter", system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.store-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 18px 30px rgba(0, 0, 0, 0.36);
}

.store-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.store-button.small {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.95rem;
}

.store-button.ghost {
  color: var(--white);
  background: rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 253, 248, 0.55);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 5px;
  border: 2px solid rgba(255, 253, 248, 0.55);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  font-weight: 700;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-800);
  object-fit: cover;
}

.user-avatar[src=""],
.user-avatar:not([src]) {
  visibility: hidden;
  width: 0;
}

.user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-stars {
  padding: 4px 10px;
  border-radius: 999px;
  color: #132914;
  background: var(--gold-500);
  font-size: 0.92rem;
}

.chip-button {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font: 700 0.85rem/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
}

.chip-button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.store-title {
  padding: 26px 0 8px;
  text-align: center;
}

.store-title h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  color: var(--gold-500);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.store-title p {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--muted-white);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.45;
}

.store-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 0;
}

.store-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 3px solid transparent;
  color: var(--muted-white);
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease;
}

.store-nav a:hover,
.store-nav a[aria-current="page"] {
  color: var(--gold-500);
  border-bottom-color: var(--gold-500);
}

.store-content {
  flex: 1;
  padding: 30px max(24px, calc((100vw - 1180px) / 2)) 50px;
}

.store-loading,
.store-empty {
  margin: 40px auto;
  max-width: 520px;
  color: var(--muted-white);
  font-size: 1.05rem;
  text-align: center;
}

.store-empty i {
  display: block;
  margin-bottom: 12px;
  font-size: 2.4rem;
  color: var(--gold-500);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

.section-title h2 span {
  color: var(--gold-500);
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gift-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 17, 0.42);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.gift-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.4);
}

.gift-card-status {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  background: rgba(3, 34, 13, 0.96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gift-card-status .badge {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gift-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.3);
}

.gift-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-card-body {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.gift-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.gift-meta {
  color: var(--muted-white);
  font-size: 0.92rem;
  line-height: 1.4;
}

.gift-bid-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}

.stars {
  color: var(--gold-500);
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge.gold {
  color: #132914;
  background: var(--gold-500);
}

.badge.green {
  background: rgba(15, 118, 60, 0.9);
}

.badge.red {
  background: rgba(180, 35, 24, 0.9);
}

.badge.blue {
  background: rgba(29, 78, 216, 0.9);
}

.countdown {
  position: static;
}

.offered-by a {
  color: var(--gold-500);
  text-decoration: underline;
  text-decoration-color: rgba(255, 210, 17, 0.6);
  text-underline-offset: 3px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted-white);
  font-weight: 700;
}

.back-link:hover {
  color: var(--gold-500);
}

.gift-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.gift-gallery {
  display: grid;
  gap: 10px;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 17, 0.42);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  cursor: zoom-in;
}

.gallery-main img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.25);
}

.gallery-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumbs button {
  flex: 0 0 auto;
  width: 84px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.gallery-thumbs button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs button[aria-current="true"] {
  border-color: var(--gold-500);
}

.gift-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 210, 17, 0.42);
  border-radius: 16px;
  background: var(--panel-strong);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.gift-panel h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.15;
}

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

.stat {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.26);
}

.stat span {
  display: block;
  color: var(--muted-white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.my-status {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.my-status.leading {
  background: rgba(15, 118, 60, 0.6);
}

.my-status.outbid {
  background: rgba(180, 35, 24, 0.55);
}

.my-status.won {
  color: #132914;
  background: var(--gold-500);
}

.my-status.neutral {
  background: rgba(0, 0, 0, 0.26);
}

.bid-form {
  display: grid;
  gap: 10px;
}

.bid-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.bid-form input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(255, 253, 248, 0.55);
  border-radius: 12px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.3);
  font: 700 1.1rem "Inter", system-ui, sans-serif;
}

.bid-form input:focus-visible {
  outline: 3px solid rgba(255, 210, 17, 0.72);
  outline-offset: 2px;
}

.bid-help {
  margin: 0;
  color: var(--muted-white);
  font-size: 0.9rem;
  line-height: 1.4;
}

#bidSignIn + .bid-help {
  margin-top: 12px;
}

.gift-description {
  margin: 26px 0 0;
  white-space: pre-line;
  line-height: 1.55;
  color: var(--white);
}

.gift-description h2,
.gift-video h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--gold-500);
}

.gift-video {
  margin-top: 26px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 210, 17, 0.42);
  border-radius: 16px;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.store-list {
  display: grid;
  gap: 12px;
}

.list-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 210, 17, 0.35);
  border-radius: 14px;
  background: var(--panel);
}

.list-row img {
  width: 96px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.3);
}

.list-row h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.list-row .gift-meta {
  font-size: 0.88rem;
}

.list-row-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.section-gap {
  margin-top: 36px;
}

.store-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.store-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.store-modal-panel {
  position: relative;
  width: min(440px, 100%);
  padding: 28px 24px 22px;
  border: 2px solid rgba(255, 210, 17, 0.5);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--green-850), var(--green-950));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.store-modal-panel h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.store-modal-panel p {
  margin: 0 0 18px;
  color: var(--muted-white);
  line-height: 1.45;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.provider-buttons {
  display: grid;
  gap: 10px;
}

.provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  font: 700 1.02rem "Inter", system-ui, sans-serif;
  cursor: pointer;
  transition: transform 160ms ease;
}

.provider-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.provider-button:disabled {
  opacity: 0.6;
}

.provider-button i {
  font-size: 1.3rem;
}

.modal-note {
  margin: 16px 0 0 !important;
  font-size: 0.85rem;
}

.hidden {
  display: none !important;
}

.pswp {
  --pswp-bg: #01130a;
}

@media (max-width: 840px) {
  .gift-detail {
    grid-template-columns: 1fr;
  }

  .store-nav a {
    padding: 10px 14px;
  }
}

@media (max-width: 560px) {
  .store-hero,
  .store-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .store-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .user-name {
    display: none;
  }

  .list-row {
    grid-template-columns: 72px 1fr;
  }

  .list-row img {
    width: 72px;
    height: 56px;
  }

  .list-row-side {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}
