/* Premium Online Store — Luxury Escort */
.store-shell {
  --store-panel: rgba(22, 20, 18, 0.92);
  --store-line: rgba(255, 255, 255, 0.1);
  --store-gold: var(--accent, #c9a24a);
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1rem 5.5rem;
}

.store-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--store-line);
}
.store-hero h1 {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f4efe6;
}
.store-hero p {
  margin: 0.4rem 0 0;
  max-width: 34rem;
  color: var(--muted, #9a9590);
  font-size: 0.95rem;
  line-height: 1.5;
}

.store-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.store-toolbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--store-line);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.store-toolbar__btn:hover,
.store-toolbar__btn.is-active {
  border-color: var(--store-gold);
  background: rgba(201, 162, 74, 0.12);
}
.store-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--store-gold);
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-recipient {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(201, 162, 74, 0.22);
  background:
    linear-gradient(135deg, rgba(201, 162, 74, 0.1), transparent 55%),
    var(--store-panel);
}
@media (min-width: 720px) {
  .store-recipient {
    grid-template-columns: auto 1fr auto;
    align-items: end;
  }
}
.store-recipient label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--store-gold);
  margin-bottom: 0.35rem;
}
.store-recipient select {
  width: 100%;
  min-width: 0;
}

.store-cats {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0 1rem;
  margin-bottom: 0.35rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.store-cats a {
  flex: 0 0 auto;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--store-line);
  color: #d8d2c8;
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.02);
}
.store-cats a.is-active {
  border-color: var(--store-gold);
  color: #111;
  background: var(--store-gold);
  font-weight: 700;
}

/* Desktop: catalog + right cart */
.store-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .store-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 1100px) {
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .store-layout:not(.store-layout--full) .store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.store-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--store-line);
  background: var(--store-panel);
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.store-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 74, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.store-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #141210;
  display: block;
}
.store-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.store-card:hover .store-card__media img { transform: scale(1.04); }
.store-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(8, 7, 6, 0.78), transparent);
  pointer-events: none;
}
.store-card__body {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 0.85rem 0.95rem;
  flex: 1;
}
.store-card__cat {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--store-gold);
}
.store-card__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
}
.store-card__name a {
  color: inherit;
  text-decoration: none;
}
.store-card__short {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted, #9a9590);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.store-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.55rem;
}
.store-card__price {
  font-weight: 750;
  color: #f3ebdd;
  font-size: 0.95rem;
}
.store-card__add {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--store-gold);
  color: #111;
  white-space: nowrap;
}
.store-card__add:hover { filter: brightness(1.08); }
.store-card__add:disabled { opacity: 0.6; cursor: wait; }

/* Right cart panel (desktop) */
.store-side-cart {
  display: none;
}
@media (min-width: 1024px) {
  .store-side-cart {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    border-radius: 18px;
    border: 1px solid rgba(201, 162, 74, 0.25);
    background:
      linear-gradient(180deg, rgba(201, 162, 74, 0.08), transparent 28%),
      var(--store-panel);
    overflow: hidden;
  }
}
.store-side-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.05rem 0.75rem;
  border-bottom: 1px solid var(--store-line);
}
.store-side-cart__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display, Georgia, serif);
}
.store-side-cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.9rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}
.store-side-cart__empty {
  text-align: center;
  color: var(--muted, #9a9590);
  padding: 2rem 0.75rem;
  font-size: 0.9rem;
}
.store-mini {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid var(--store-line);
  background: rgba(0, 0, 0, 0.22);
}
.store-mini__img {
  width: 64px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}
.store-mini__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.store-mini__name {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.25;
}
.store-mini__meta {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--muted, #9a9590);
}
.store-mini__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4rem;
}
.store-mini__qty button {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--store-line);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.store-mini__qty span {
  min-width: 1.4rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.store-mini__right {
  text-align: right;
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}
.store-mini__price {
  font-size: 0.86rem;
  font-weight: 750;
}
.store-mini__remove {
  border: 0;
  background: transparent;
  color: var(--muted, #9a9590);
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.store-side-cart__foot {
  padding: 0.9rem 1.05rem 1.1rem;
  border-top: 1px solid var(--store-line);
  background: rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 0.65rem;
}
.store-side-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.05rem;
}
.store-side-cart__total strong {
  font-size: 1.25rem;
  color: #f5ecdc;
}
.store-side-cart__foot .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Floating cart button + mobile drawer */
.store-fab {
  position: fixed;
  right: 1rem;
  bottom: 1.15rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 74, 0.45);
  background: linear-gradient(135deg, #d4b05a, #b8923a);
  color: #111;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
@media (min-width: 1024px) {
  .store-fab { display: none; }
}
.store-fab .store-badge {
  background: #111;
  color: var(--store-gold);
}

.store-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.store-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.store-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  max-height: min(88vh, 720px);
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(201, 162, 74, 0.28);
  border-bottom: 0;
  background: #161412;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.store-drawer.is-open { transform: translateY(0); }
@media (min-width: 1024px) {
  .store-drawer,
  .store-drawer-backdrop { display: none !important; }
}
.store-drawer__grab {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0.55rem auto 0.2rem;
}
.store-drawer .store-side-cart__head,
.store-drawer .store-side-cart__body,
.store-drawer .store-side-cart__foot {
  /* reuse panel pieces inside drawer */
}
.store-drawer .store-side-cart__body {
  flex: 1;
  overflow-y: auto;
}

.store-toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 90;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(22, 20, 18, 0.96);
  border: 1px solid rgba(201, 162, 74, 0.4);
  color: #f3ebdd;
  font-size: 0.86rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.store-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 1024px) {
  .store-toast { bottom: 1.5rem; }
}

.is-disabled { pointer-events: none; opacity: 0.45; }

/* Product detail / tip / checkout polish */
.store-page { max-width: 1120px; margin: 0 auto; padding: 1.25rem 1rem 5.5rem; }
.store-qty input {
  width: 4.5rem;
  text-align: center;
}
.store-detail {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .store-detail { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}
.store-gallery {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--store-line);
  background: #161412;
}
.store-gallery__main {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: #121010;
}
.store-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.store-buy {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem !important;
  border-radius: 18px;
}
.store-tip-box {
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(201, 162, 74, 0.4);
  background: rgba(201, 162, 74, 0.06);
  display: grid;
  gap: 0.65rem;
}
.store-tip-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.store-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted, #9a9590);
  border: 1px solid var(--store-line);
  border-radius: 16px;
}

/* Cart page (full) */
.store-cart-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .store-cart-layout { grid-template-columns: 1.4fr 0.9fr; align-items: start; }
}
.store-cart-lines { display: grid; gap: 0.85rem; }
.store-cart-line {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
  grid-template-columns: 96px 1fr;
  align-items: start;
  border-radius: 16px;
}
@media (min-width: 640px) {
  .store-cart-line { grid-template-columns: 110px 1fr auto; }
}
.store-cart-line__media {
  width: 96px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #111;
  border: 1px solid var(--store-line);
}
@media (min-width: 640px) {
  .store-cart-line__media { width: 110px; height: 138px; }
}
.store-cart-line__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-cart-line__body { display: grid; gap: 0.35rem; min-width: 0; }
.store-cart-line__name { margin: 0; font-size: 1.05rem; }
.store-cart-line__name a { color: inherit; text-decoration: none; }
.store-cart-line__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.store-cart-aside {
  padding: 1.1rem;
  position: sticky;
  top: 1rem;
  border-radius: 18px;
}
.store-cart-aside__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0 0.65rem;
  border-bottom: 1px solid var(--store-line);
  margin-bottom: 0.5rem;
}

/* Admin dropzone keep */
.store-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}
.store-dropzone.is-drag {
  border-color: var(--store-gold);
  background: rgba(201, 162, 74, 0.08);
}
.store-dropzone__preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.store-dropzone__preview figure { width: 88px; margin: 0; }
.store-dropzone__preview img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.has-store-drawer { overflow: hidden; }
