:root {
  --bg: #fff7f5;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --line: #f0d9d5;
  --ink: #2f1f25;
  --muted: #7f6670;
  --accent: #c85d7d;
  --accent-dark: #a84665;
  --accent-soft: #ffe4ea;
  --shadow: 0 24px 60px rgba(121, 63, 81, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 215, 226, 0.8), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 233, 212, 0.8), transparent 28%),
    linear-gradient(180deg, #fff8f5, #fff2ef);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

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

button {
  cursor: pointer;
}

.page-shell {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card,
.catalog-panel,
.admin-panel {
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1;
  margin-bottom: 18px;
}

h2 {
  font-size: 24px;
}

.status-pill {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
}

.admin-layout {
  grid-template-columns: 380px minmax(0, 1fr);
}

.top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.top-strip-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-note,
.login-status {
  color: var(--muted);
  line-height: 1.6;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head-compact {
  align-items: center;
}

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

.login-card {
  width: min(420px, calc(100vw - 24px));
  display: grid;
  gap: 14px;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.media-input {
  margin-top: 8px;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.field-block label {
  margin-top: 0;
}

.media-input:focus {
  outline: 2px solid rgba(200, 93, 125, 0.18);
  border-color: var(--accent);
}

.media-input-copy {
  display: grid;
}

.media-input-copy strong {
  font-size: 16px;
  color: var(--ink);
}

.media-preview {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  min-height: 140px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.media-preview img,
.media-preview video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.preview-card {
  position: relative;
}

.preview-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 31, 37, 0.78);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 1;
}

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

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

.product-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.image-wrap {
  position: relative;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  background: #fff3f1;
}

.image-wrap img,
.image-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.status-pill {
  position: absolute;
  top: 14px;
  left: 14px;
}

.product-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.product-category,
.product-brand,
.product-description {
  color: var(--muted);
}

.product-category {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-body h3 {
  font-size: 21px;
}

.product-description {
  line-height: 1.6;
  font-size: 14px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.product-footer strong {
  font-size: 22px;
}

.admin-card {
  border-radius: 20px;
}

.admin-card .product-body {
  padding: 14px;
  gap: 8px;
}

.admin-card .product-body h3 {
  font-size: 18px;
}

.admin-card .product-description {
  font-size: 13px;
}

.admin-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.product-form {
  display: grid;
  gap: 14px;
}

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

.orders-panel {
  margin-top: 20px;
}

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

.order-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
  display: grid;
  gap: 10px;
}

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

.order-head span,
.order-note,
.order-items p,
.shop-stock {
  color: var(--muted);
}

.order-items {
  display: grid;
  gap: 4px;
}

.compact-empty {
  margin-top: 0;
}

.primary-button,
.ghost-button,
.danger-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.primary-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
  color: var(--ink);
}

.link-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.danger-button {
  background: #fff1f2;
  border-color: #f2c9cf;
  color: #bf405f;
}

.empty-state {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
}

.shop-shell {
  padding-top: 32px;
}

.shop-hero,
.shop-filters,
.shop-catalog,
.cart-panel {
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 20px;
}

.shop-hero {
  margin-bottom: 20px;
}

.shop-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
}

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

.shop-hero-intro {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 520px;
}

.shop-hero-intro p:first-child {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.shop-hero-note {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  justify-items: start;
}

.hero-facebook-button {
  margin-top: 6px;
}

.hero-social-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-freeship-note {
  margin: 0;
  color: #d21f32;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(210, 31, 50, 0.18);
}

.shop-hero h1 {
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 10px;
}

.shop-hero .eyebrow,
.shop-filters .eyebrow,
.shop-catalog .eyebrow,
.cart-panel .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}

.shop-filters h2,
.shop-catalog h2,
.cart-panel h2 {
  font-size: 16px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr) 270px;
  gap: 16px;
}

.shop-filters {
  align-self: start;
  position: sticky;
  top: 20px;
}

.filter-stack {
  display: grid;
  gap: 10px;
}

.shop-filters input,
.shop-filters select,
.cart-summary span,
.cart-summary strong {
  font-size: 13px;
}

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

.shop-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.product-gallery {
  position: relative;
}

.gallery-media-button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 31, 37, 0.7);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.gallery-nav-left {
  left: 12px;
}

.gallery-nav-right {
  right: 12px;
}

.gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.gallery-dot.is-active {
  background: #fff;
}

.shop-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.shop-card .product-body {
  padding: 14px;
  gap: 8px;
}

.shop-card .product-category {
  font-size: 9px;
}

.shop-card .product-body h3 {
  font-size: 14px;
}

.shop-card .product-description {
  font-size: 10px;
  line-height: 1.4;
}

.shop-card .product-brand,
.shop-stock {
  font-size: 11px;
}

.shop-card-footer strong {
  font-size: 15px;
}

.shop-card-footer .primary-button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.shop-cart-button {
  min-width: 44px;
  width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  display: grid;
  place-items: center;
  line-height: 1;
  text-indent: 0;
}

.shop-cart-button svg {
  width: 22px;
  height: 22px;
  display: block;
}

.shop-cart-button svg path,
.shop-cart-button svg circle {
  fill: #fff;
}

.shop-cart-button svg .cart-plus {
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.cart-panel {
  align-self: start;
  position: sticky;
  top: 20px;
}

.cart-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.cart-item-media {
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff3f1;
}

.cart-item-media img,
.cart-item-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-body {
  display: grid;
  gap: 8px;
}

.cart-item-body strong {
  font-size: 13px;
}

.cart-item-body span {
  color: var(--muted);
  font-size: 12px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-mini-btn {
  min-height: 34px;
  min-width: 34px;
  padding: 0 10px;
}

.cart-summary {
  display: grid;
  gap: 10px;
}

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

.checkout-modal {
  width: min(520px, calc(100vw - 24px));
  border: 0;
  border-radius: 28px;
  padding: 0;
}

.checkout-modal::backdrop {
  background: rgba(18, 8, 13, 0.55);
}

.checkout-form {
  background: #fff;
  padding: 24px;
  display: grid;
  gap: 14px;
  position: relative;
}

.checkout-close-btn {
  position: sticky;
  top: 0;
  justify-self: end;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  margin-bottom: -6px;
}

.checkout-block,
.checkout-section,
.checkout-note-box,
.checkout-total-box {
  display: grid;
  gap: 12px;
}

[hidden] {
  display: none !important;
}

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

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.checkout-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.choice-card {
  margin-top: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.choice-card input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.info-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 244, 247, 0.75);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.info-box strong {
  font-size: 14px;
}

.info-box p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.info-box .bank-note-warning {
  color: #c92b2b;
  font-weight: 800;
}

.facebook-link-button {
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #1877f2;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.facebook-link-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  text-transform: lowercase;
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.map-card iframe {
  width: 100%;
  height: 180px;
  border: 0;
  display: block;
}

.checkout-note-box,
.checkout-total-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 251, 0.92);
  padding: 14px;
}

.lightbox-modal {
  width: min(92vw, 1100px);
  border: 0;
  padding: 0;
  background: transparent;
}

.lightbox-modal::backdrop {
  background: rgba(18, 8, 13, 0.78);
}

.lightbox-shell {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 16px;
}

.lightbox-stage {
  min-height: 60vh;
  max-height: 82vh;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.lightbox-stage img,
.lightbox-stage video {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  background: #fff;
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 30px;
  display: grid;
  place-items: center;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(47, 31, 37, 0.78);
}

@media (max-width: 960px) {
  .hero,
  .content-grid,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-hero-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

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

  .top-strip,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-filters,
  .cart-panel {
    position: static;
  }

  .lightbox-shell {
    grid-template-columns: 1fr;
  }

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

  .customer-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
  }

  #lightboxPrevBtn {
    left: 12px;
  }

  #lightboxNextBtn {
    right: 12px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100vw - 20px, 1220px);
    padding: 14px 0 24px;
  }

  .hero-copy,
  .hero-card,
  .catalog-panel,
  .admin-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .toolbar,
  .form-actions,
  .product-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-product-grid {
    grid-template-columns: 1fr;
  }
}
