/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: 0.3s var(--ease);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-hot);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost:hover {
  background: var(--gold);
  color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
}

.btn-ink:hover {
  background: var(--gold);
  color: var(--ink);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.88rem;
}

/* Product mosaic / grid */
.product-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.product-mosaic .product-card:nth-child(1) {
  grid-column: span 7;
}
.product-mosaic .product-card:nth-child(2) {
  grid-column: span 5;
}
.product-mosaic .product-card:nth-child(3),
.product-mosaic .product-card:nth-child(4),
.product-mosaic .product-card:nth-child(5) {
  grid-column: span 4;
}
.product-mosaic .product-card:nth-child(n + 6) {
  grid-column: span 4;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-grid .product-card {
  transform: none;
}

.product-card {
  background: #0f0f0f;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.section-paper .product-card {
  background: #fff;
  border-color: var(--line-dark);
  color: var(--ink);
}

.product-card:hover {
  border-color: var(--gold);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1c1c1c;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s;
}

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

.product-tags {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.tag {
  background: var(--gold);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 5px 8px;
}

.tag-sale {
  background: var(--rose);
  color: #fff;
}

.cat-badge {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 5px 9px;
  border: 1px solid rgba(245, 197, 24, 0.35);
}

.product-actions {
  position: absolute;
  inset-inline: 10px;
  inset-block-end: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.product-actions .btn {
  flex: 1;
  min-width: 0;
  padding-inline: 8px;
  font-size: 0.78rem;
}

.product-body {
  padding: 16px 16px 20px;
}

.product-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}

.price {
  color: var(--gold);
  font-weight: 900;
  font-size: 1.15rem;
}

.section-paper .price {
  color: #b45309;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

/* Toolbar */
.store-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  background: #0c0c0c;
  padding: 6px;
  border: 1px solid var(--line);
}

.filter-tabs button {
  padding: 10px 18px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
}

.filter-tabs button.is-on {
  background: var(--gold);
  color: var(--ink);
}

.toolbar-side {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-box,
.sort-box,
.field {
  position: relative;
}

.search-box input,
.sort-box select,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  background: #101010;
  border: 1px solid var(--line);
  color: #fff;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.25s;
}

.search-box input {
  min-width: 240px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.search-box input:focus,
.sort-box select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
}

/* Drawer */
.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s;
  z-index: 124;
}

.modal-backdrop {
  z-index: 114;
}

.drawer-backdrop.is-open,
.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(440px, 100%);
  height: 100vh;
  max-height: 100dvh;
  background: #101010;
  z-index: 125;
  transform: translateX(-105%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(245, 197, 24, 0.2);
}

.cart-drawer.is-open {
  transform: none;
}

.drawer-head,
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  background: #101010;
  position: sticky;
  top: 0;
  z-index: 2;
}

.cart-keep-shopping {
  flex: 0 0 auto;
  width: auto;
  min-width: 220px;
  margin: 12px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.drawer-head h3,
.modal-head h3 {
  font-size: 1.1rem;
}

.drawer-body {
  flex: 1 1 0;
  min-height: 0;
  max-height: 26vh;
  overflow-y: auto;
  padding: 8px 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 8px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-item img {
  width: 56px;
  height: 64px;
  object-fit: cover;
}

.cart-item h4 {
  font-size: 0.95rem;
}

.cart-item small {
  color: var(--muted);
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  margin-top: 4px;
}

.qty-box button {
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
}

.qty-box span {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
}

.cart-remove {
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-remove:hover {
  color: var(--rose);
}

.drawer-foot {
  flex: 0 0 auto;
  overflow: visible;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #0c0c0c;
}

.checkout-actions {
  padding-top: 6px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkout-form .field input,
.checkout-form .field select {
  min-height: 38px;
  padding: 6px 10px;
}

.checkout-form .field label {
  margin-bottom: 2px;
  font-size: 0.72rem;
}

.checkout-form .btn {
  min-height: 44px;
}

.totals {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.totals div {
  display: flex;
  justify-content: space-between;
}

.totals .grand {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold);
}

.checkout-form {
  display: grid;
  gap: 6px;
  margin-top: 0;
}

.empty-cart {
  text-align: center;
  padding: 24px 12px;
  color: var(--muted);
}

/* Quick view */
.quick-modal {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: none;
  place-items: center;
  padding: 24px;
}

.quick-modal.is-open {
  display: grid;
}

.quick-panel {
  width: min(980px, 100%);
  background: #141414;
  border: 1px solid rgba(245, 197, 24, 0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: min(88vh, 720px);
  overflow: auto;
  animation: rise 0.4s var(--ease);
  position: relative;
}

.qv-toolbar {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #141414;
  border-bottom: 1px solid var(--line);
}

.qv-close-btn {
  min-height: 44px;
  padding: 0 18px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}

.quick-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.quick-info {
  padding: 24px 28px 28px;
}

.qv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.quick-info h2 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 10px 0 12px;
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.size-row button {
  min-width: 58px;
  height: 40px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.size-row button.is-on {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* Admin */
.admin-lock {
  min-height: calc(100vh - var(--header));
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.lock-card {
  width: min(420px, 100%);
  background: #161616;
  border: 1px solid rgba(245, 197, 24, 0.25);
  padding: 36px 28px;
}

.lock-card h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: #161616;
  border: 1px solid var(--line);
  padding: 22px;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.admin-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

.admin-card {
  background: #161616;
  border: 1px solid var(--line);
  padding: 22px;
}

.admin-card h2 {
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  text-align: right;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table img {
  width: 48px;
  height: 56px;
  object-fit: cover;
}

.admin-table .row-actions {
  display: flex;
  gap: 6px;
}

/* Contact / about extras */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
}

.info-card {
  border: 1px solid var(--line);
  padding: 22px;
  margin-bottom: 14px;
  background: #141414;
}

.info-card b {
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

.promo-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: var(--gold);
  color: var(--ink);
  margin-top: 36px;
}

.promo-banner > div {
  padding: 36px;
}

.promo-banner h3 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 16px;
  color: var(--muted);
  border: 1px dashed var(--line);
}
