:root {
  color-scheme: dark;
  --bg: #030409;
  --panel: rgba(9, 12, 27, 0.78);
  --panel-strong: rgba(4, 6, 16, 0.94);
  --line: rgba(139, 68, 255, 0.42);
  --pink: #f020ff;
  --purple: #8d35ff;
  --blue: #008cff;
  --cyan: #23d5ff;
  --text: #ffffff;
  --muted: #bfc6dd;
  --danger: #ff4d95;
  --success: #32e4a4;
  --shadow: 0 0 34px rgba(141, 53, 255, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 12%, rgba(240, 32, 255, 0.22), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(0, 140, 255, 0.24), transparent 30%),
    linear-gradient(180deg, #020308 0%, #070717 46%, #020308 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(16px, 4vw, 54px);
  background: rgba(2, 3, 8, 0.78);
  border-bottom: 1px solid rgba(0, 140, 255, 0.22);
  backdrop-filter: blur(18px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.24rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand span:last-child,
.hero h1,
.section-heading h2,
.about-copy h2 {
  background: linear-gradient(100deg, #fff 8%, var(--pink) 35%, var(--blue) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(240, 32, 255, 0.72);
  border-radius: 8px;
  color: var(--text);
  box-shadow: 0 0 18px rgba(240, 32, 255, 0.45), inset 0 0 18px rgba(0, 140, 255, 0.2);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.header-cart,
.login-link,
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(35, 213, 255, 0.48);
  border-radius: 8px;
  background: rgba(0, 140, 255, 0.1);
  color: var(--text);
  font-weight: 850;
  white-space: nowrap;
}

.login-link {
  border-color: rgba(240, 32, 255, 0.48);
  background: rgba(240, 32, 255, 0.1);
}

.social-link {
  width: 42px;
  padding: 0;
  border-color: rgba(240, 32, 255, 0.62);
  background: linear-gradient(105deg, rgba(240, 32, 255, 0.16), rgba(0, 140, 255, 0.13));
  color: #fff;
}

.whatsapp-link {
  border-color: rgba(50, 228, 164, 0.58);
  background: rgba(50, 228, 164, 0.1);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.header-cart span {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  text-align: center;
  font-size: 0.78rem;
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 74px));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 3, 8, 0.92), rgba(2, 3, 8, 0.64) 47%, rgba(2, 3, 8, 0.22)),
    linear-gradient(0deg, #030409 0%, transparent 38%);
}

.hero-content {
  width: min(820px, calc(100% - 32px));
  padding: 94px clamp(16px, 5vw, 60px) 46px;
}

.eyebrow,
.mini-label {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 740px;
  margin: 12px 0 16px;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.hero p {
  max-width: 650px;
  color: #eef2ff;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.6;
}

.hero p a,
.site-footer a {
  color: var(--cyan);
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.whatsapp-btn,
.add-btn,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 950;
  text-transform: uppercase;
}

.small-btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.primary-btn,
.whatsapp-btn,
.add-btn {
  background: linear-gradient(105deg, var(--pink), var(--purple) 46%, var(--blue));
  color: white;
  box-shadow: var(--shadow);
}

.ghost-btn {
  border: 1px solid rgba(35, 213, 255, 0.55);
  background: rgba(2, 3, 8, 0.72);
  color: white;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
  max-width: 880px;
}

.trust-row span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(35, 213, 255, 0.32);
  border-radius: 8px;
  background: rgba(2, 3, 8, 0.72);
  color: #f8f8ff;
  font-size: 0.84rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.shop-section,
.about-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-heading h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.9rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.section-heading p,
.about-copy p,
.about-list span,
.cart-note {
  color: var(--muted);
  line-height: 1.55;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 22px;
}

.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(139, 68, 255, 0.52);
  border-radius: 8px;
  background: rgba(7, 9, 22, 0.82);
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}

.filter-btn.active {
  border-color: rgba(35, 213, 255, 0.82);
  background: linear-gradient(105deg, rgba(240, 32, 255, 0.22), rgba(0, 140, 255, 0.22));
  color: var(--text);
  box-shadow: 0 0 22px rgba(0, 140, 255, 0.22);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid rgba(139, 68, 255, 0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(10, 13, 31, 0.96), rgba(3, 4, 12, 0.96));
  box-shadow: 0 0 24px rgba(0, 140, 255, 0.08);
}

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

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.puff-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(35, 213, 255, 0.66);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 0 22px rgba(240, 32, 255, 0.4);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.product-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(240, 32, 255, 0.7);
  border-radius: 999px;
  background: rgba(7, 9, 22, 0.82);
  box-shadow: 0 0 22px rgba(0, 140, 255, 0.32);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.product-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.product-title {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.product-brand {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.product-price {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 1000;
  text-shadow: 0 0 18px rgba(240, 32, 255, 0.5);
  white-space: nowrap;
}

.price-stack {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.old-price {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: line-through;
  white-space: nowrap;
}

.product-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 7px 9px;
  border: 1px solid rgba(35, 213, 255, 0.24);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.field-row {
  display: grid;
  gap: 8px;
}

.field-row label,
.customer-fields label {
  color: #f8f8ff;
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid rgba(139, 68, 255, 0.48);
  border-radius: 8px;
  background: rgba(2, 3, 8, 0.8);
  color: var(--text);
  outline: none;
}

select,
input {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  padding: 11px 12px;
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(35, 213, 255, 0.12);
}

.card-actions {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
}

.qty-control {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(139, 68, 255, 0.48);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button {
  height: 100%;
  border: 0;
  background: rgba(139, 68, 255, 0.18);
  color: #fff;
  font-size: 1.2rem;
}

.qty-control span {
  text-align: center;
  font-weight: 900;
}

.cart-panel {
  position: sticky;
  top: 88px;
  border: 1px solid rgba(35, 213, 255, 0.38);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cart-panel::before,
.age-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
}

.cart-heading,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.cart-heading h2 {
  margin: 3px 0 0;
  text-transform: uppercase;
}

.clear-cart {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.cart-items {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 0 16px 16px;
}

.empty-cart {
  margin: 0;
  padding: 24px 14px;
  border: 1px dashed rgba(139, 68, 255, 0.38);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-products {
  margin: 0;
  padding: 28px;
  border: 1px dashed rgba(139, 68, 255, 0.38);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(139, 68, 255, 0.36);
  border-radius: 8px;
  background: rgba(7, 9, 22, 0.86);
}

.cart-item strong {
  text-transform: uppercase;
}

.cart-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.remove-item {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-weight: 900;
}

.customer-fields {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.customer-fields label {
  display: grid;
  gap: 7px;
}

.coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.coupon-message {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: none;
}

.coupon-message.success-message {
  color: #a7f3d0;
}

.coupon-message.error-message {
  color: #ffd5e8;
}

.cart-total {
  border-top: 1px solid rgba(35, 213, 255, 0.22);
  font-size: 1rem;
  text-transform: uppercase;
}

.cart-total-values {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.cart-total-values small {
  color: #a7f3d0;
  font-weight: 900;
}

.cart-total strong {
  font-size: 1.7rem;
}

.whatsapp-btn {
  width: calc(100% - 32px);
  margin: 0 16px 12px;
}

.whatsapp-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.62;
}

.cart-note {
  margin: 0;
  padding: 0 16px 18px;
  font-size: 0.82rem;
}

.about-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 28px;
}

.about-copy {
  display: grid;
  gap: 16px;
}

.about-copy h2 {
  max-width: 660px;
}

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

.about-list article {
  display: grid;
  gap: 4px;
  padding: 15px;
  border-left: 3px solid var(--pink);
  background: rgba(7, 9, 22, 0.72);
}

.about-list strong {
  text-transform: uppercase;
}

.about-image {
  width: 100%;
  border: 1px solid rgba(35, 213, 255, 0.36);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(16px, 4vw, 54px);
  border-top: 1px solid rgba(139, 68, 255, 0.36);
  color: var(--muted);
  background: #020308;
}

.site-footer strong {
  color: white;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 18%, rgba(240, 32, 255, 0.28), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(0, 140, 255, 0.28), transparent 34%),
    rgba(2, 3, 8, 0.94);
}

.age-gate.hidden {
  display: none;
}

.age-card {
  width: min(480px, 100%);
  overflow: hidden;
  border: 1px solid rgba(35, 213, 255, 0.38);
  border-radius: 8px;
  background: rgba(3, 4, 12, 0.95);
  box-shadow: var(--shadow);
}

.age-card > *:not(:first-child) {
  margin-left: 22px;
  margin-right: 22px;
}

.age-card .mini-label {
  display: block;
  margin-top: 22px;
}

.age-card h1 {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: clamp(2rem, 7vw, 3.1rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.age-card p {
  color: var(--muted);
  line-height: 1.55;
}

.age-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 22px;
}

.hidden {
  display: none !important;
}

.admin-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 70px;
}

.login-panel {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}

.admin-card,
.metric-card {
  border: 1px solid rgba(35, 213, 255, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(10, 13, 31, 0.94), rgba(3, 4, 12, 0.94));
  box-shadow: 0 0 26px rgba(0, 140, 255, 0.12);
}

.login-card {
  width: min(520px, 100%);
  padding: 22px;
}

.login-card h1,
.admin-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  background: linear-gradient(100deg, #fff 8%, var(--pink) 35%, var(--blue) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-card p,
.admin-hero p,
.form-message {
  color: var(--muted);
  line-height: 1.55;
}

.admin-content {
  display: grid;
  gap: 22px;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 18px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}

.metric-card strong {
  align-self: end;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.finance-card {
  margin: 18px 0;
}

.backend-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 77, 149, 0.55);
  border-radius: 8px;
  background: rgba(74, 6, 32, 0.6);
  color: #ffd5e8;
  font-weight: 900;
}

.form-message.success-message {
  color: #a7f3d0;
}

.form-message.error-message {
  color: #ffd5e8;
}

.finance-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
}

.finance-toolbar label {
  display: grid;
  gap: 6px;
  color: #f8f8ff;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(35, 213, 255, 0.35);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(2, 5, 16, 0.74);
  font-size: 0.8rem;
  font-weight: 900;
}

.sync-status.offline {
  border-color: rgba(255, 77, 149, 0.45);
  color: #ffd5e8;
}

.finance-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.finance-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(0, 140, 255, 0.28);
  border-radius: 8px;
  background: rgba(2, 5, 16, 0.72);
}

.finance-panel h3 {
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
}

.finance-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.finance-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(139, 68, 255, 0.22);
}

.finance-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.finance-row dt {
  color: var(--muted);
  font-weight: 800;
}

.finance-row dd {
  margin: 0;
  color: #ffffff;
  font-weight: 950;
  text-align: right;
}

.finance-row.strong dd {
  color: #66d9ff;
}

.finance-row.negative dd {
  color: #ffd5e8;
}

.admin-card {
  padding: 18px;
}

.admin-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-card-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form.two-cols,
.coupon-form,
.product-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #f8f8ff;
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-form button[type="submit"] {
  align-self: end;
}

.full-field {
  grid-column: 1 / -1;
}

.image-upload-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(0, 140, 255, 0.34);
  border-radius: 16px;
  background: rgba(2, 5, 16, 0.72);
  box-shadow: inset 0 0 22px rgba(159, 46, 255, 0.12);
}

.image-upload-box strong,
.image-upload-box span {
  display: block;
}

.image-upload-box strong {
  color: #ffffff;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.image-upload-box span,
.upload-status {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.image-upload-box input[type="file"],
.upload-status {
  grid-column: 1;
}

.image-preview {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(189, 83, 255, 0.55);
  border-radius: 14px;
  object-fit: cover;
  background: #05060d;
  box-shadow: 0 0 24px rgba(0, 140, 255, 0.22);
}

.upload-status {
  min-height: 18px;
  margin: 0;
  color: #66d9ff;
}

.check-field {
  grid-template-columns: auto 1fr !important;
  align-items: center;
}

.check-field input {
  width: 20px;
  min-height: 20px;
}

.product-admin-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
}

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.inventory-form {
  align-self: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-panels {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.inventory-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.inventory-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(0, 140, 255, 0.26);
  border-radius: 8px;
  background: rgba(2, 5, 16, 0.6);
}

.inventory-panel h3 {
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
}

.compact-heading {
  margin-top: 20px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border: 1px solid rgba(139, 68, 255, 0.26);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #ffffff;
  background: rgba(91, 33, 182, 0.38);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--muted);
  background: rgba(7, 9, 22, 0.72);
}

.admin-table strong {
  color: #ffffff;
}

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

.daily-summary article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(0, 140, 255, 0.28);
  border-radius: 8px;
  background: rgba(2, 5, 16, 0.72);
}

.daily-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.daily-summary strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.stock-chart,
.restock-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(100px, 1.5fr) auto;
  align-items: center;
  gap: 10px;
  color: #f8f8ff;
  font-size: 0.86rem;
  font-weight: 850;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(139, 68, 255, 0.18);
}

.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  box-shadow: 0 0 14px rgba(35, 213, 255, 0.35);
}

.restock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 77, 149, 0.28);
  border-radius: 8px;
  background: rgba(74, 6, 32, 0.26);
}

.restock-item strong,
.restock-item span {
  display: block;
}

.restock-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.stock-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-status.ok {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.16);
}

.stock-status.low {
  color: #ffd5e8;
  background: rgba(255, 77, 149, 0.16);
}

.table-action {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 77, 149, 0.6);
  border-radius: 8px;
  background: rgba(7, 9, 22, 0.72);
  color: #ffd5e8;
  font-weight: 900;
  cursor: pointer;
}

.product-list,
.orders-list {
  display: grid;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
}

.admin-product-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(139, 68, 255, 0.34);
  border-radius: 8px;
  background: rgba(7, 9, 22, 0.72);
  color: var(--text);
  text-align: left;
}

.admin-product-item.active {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(35, 213, 255, 0.18);
}

.admin-product-item img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-product-item span,
.order-item {
  min-width: 0;
}

.admin-product-item strong,
.admin-product-item small {
  display: block;
}

.admin-product-item small {
  margin-top: 4px;
  color: var(--muted);
}

.danger-btn {
  border-color: rgba(255, 77, 149, 0.6);
  color: #ffd5e8;
}

.order-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(139, 68, 255, 0.34);
  border-radius: 8px;
  background: rgba(7, 9, 22, 0.72);
}

.order-item div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-item span,
.order-item p {
  color: var(--muted);
}

.order-item p {
  margin: 0;
}

@media (max-width: 1040px) {
  .shop-layout,
  .about-section,
  .admin-grid,
  .finance-board,
  .inventory-layout,
  .inventory-charts,
  .product-admin-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

  .about-image {
    max-height: 680px;
    object-fit: cover;
    object-position: top;
  }

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

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    width: 100%;
  }

  .main-nav {
    order: 2;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    font-size: 0.8rem;
  }

  .header-actions {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    gap: 8px;
  }

  .header-cart,
  .login-link,
  .social-link {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .social-link {
    width: auto;
    padding: 0;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 70px;
  }

  .trust-row,
  .product-grid,
  .dashboard-grid,
  .admin-form.two-cols,
  .coupon-form,
  .inventory-form,
  .product-form {
    grid-template-columns: 1fr;
  }

  .coupon-row,
  .bar-row {
    grid-template-columns: 1fr;
  }

  .daily-summary {
    grid-template-columns: 1fr;
  }

  .image-upload-box {
    grid-template-columns: 1fr;
  }

  .image-upload-box input[type="file"],
  .upload-status,
  .image-preview {
    grid-column: 1;
  }

  .image-preview {
    grid-row: auto;
    width: 100%;
    height: min(260px, 64vw);
  }

  .product-top,
  .site-footer,
  .admin-hero,
  .finance-toolbar,
  .admin-card-heading,
  .order-item div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .qty-control {
    grid-template-columns: 44px 1fr 44px;
  }

  .age-actions,
  .hero-actions {
    flex-direction: column;
  }

  .admin-shell {
    width: min(100% - 24px, 1240px);
    padding-top: 28px;
  }

  .metric-card {
    min-height: 104px;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .site-header {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
  }
}
