:root {
  --cream: #fff6f9;
  --sand: #fde0ea;
  --blush: #f59abc;
  --rose: #e52d70;
  --coffee: #171316;
  --ink: #171316;
  --muted: #73616a;
  --line: #f1c7d5;
  --white: #ffffff;
  --sage: #5c735c;
  --danger: #a72845;
  --shadow: 0 18px 38px rgba(229, 45, 112, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}

button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 246, 249, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav, .footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav { min-height: 88px; }
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 124px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
}

.footer-logo {
  width: 124px;
  height: 78px;
  object-fit: contain;
  object-position: left center;
}

.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

.cart-trigger {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--coffee);
  padding: 8px 12px;
  font-weight: 850;
  cursor: pointer;
}

.cart-trigger span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  font-size: .78rem;
}

.hero {
  padding: clamp(38px, 7vw, 86px) 0 48px;
  min-height: calc(100vh - 88px);
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 6vw, 5.8rem);
  line-height: .96;
  margin: 0 0 22px;
  letter-spacing: 0;
  max-width: 780px;
}

.hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
  max-width: 640px;
  margin: 0 0 28px;
}

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

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  color: var(--rose);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-media { position: relative; }
.hero-media img,
.hero-holder {
  width: 100%;
  height: min(68vh, 680px);
  min-height: 430px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img { object-fit: cover; }
.hero-holder {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.28)),
    linear-gradient(145deg, #ffffff, #fff6f9 54%, #f59abc);
}

.hero-holder::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(229, 45, 112, .2);
  border-radius: 999px 999px 8px 8px;
}

.hero-holder img {
  position: relative;
  width: min(78%, 380px);
  max-height: 64%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(229, 45, 112, .14));
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--rose); color: var(--white); }
.btn.secondary { background: var(--white); border-color: var(--line); color: var(--coffee); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--coffee); }
.btn.danger { background: var(--danger); color: var(--white); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.service-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid div {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.service-grid div:first-child { border-left: 1px solid var(--line); }
.service-grid strong { color: var(--ink); }
.service-grid span { color: var(--muted); font-size: .92rem; }

.collection-section {
  padding: 72px 0;
  background: #fff0f5;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
}

.collection-card {
  min-height: 290px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 22px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--coffee);
  color: var(--white);
  position: relative;
  isolation: isolate;
  text-decoration: none;
  cursor: pointer;
}

.collection-card::before {
  content: "";
  position: absolute;
  inset: 20px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px 999px 10px 10px;
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(23, 19, 22, .08) 0%, rgba(23, 19, 22, .18) 42%, rgba(23, 19, 22, .78) 100%),
    linear-gradient(90deg, rgba(229, 45, 112, .18), transparent 54%);
}

.collection-card img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.collection-card:hover img { transform: scale(1.035); }
.collection-card:hover { box-shadow: 0 16px 34px rgba(229, 45, 112, .16); }
.collection-card > * { position: relative; }
.collection-card span {
  color: #ff8fb5;
  font-weight: 900;
}

.collection-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1;
}

.collection-card p { margin: 0; color: rgba(255, 255, 255, .9); max-width: 330px; }

.collection-detail-hero {
  padding: 54px 0 34px;
  background: #fff0f5;
  border-bottom: 1px solid var(--line);
}

.collection-detail-head {
  display: grid;
  gap: 10px;
}

.collection-detail-head h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 5vw, 5rem);
  line-height: .96;
}

.catalog-status {
  margin: 8px 0 0;
  color: var(--rose);
  font-weight: 850;
}

.back-link {
  width: fit-content;
  color: var(--muted);
  text-decoration: none;
  font-weight: 850;
}

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

.collection-detail-section {
  padding: 34px 0 78px;
  background: var(--white);
}

.collection-page .description {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .92rem;
}

.catalog-section { padding: 64px 0 80px; background: var(--white); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: flex-end;
  margin-bottom: 22px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin: 0;
  letter-spacing: 0;
}

.section-summary { max-width: 520px; color: var(--muted); margin: 0; }

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(128px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff9fb;
}

label { display: grid; gap: 6px; color: var(--muted); font-weight: 760; font-size: .9rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid #ddcec0;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 11px;
}

textarea { resize: vertical; min-height: 96px; }
.catalog-meta { min-height: 38px; display: flex; align-items: center; color: var(--muted); }

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(229, 45, 112, .07);
  display: grid;
}

.product-image {
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #fde0ea, #fff6f9);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}

.image-holder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(229, 45, 112, .72);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.16)),
    var(--holder-bg, linear-gradient(145deg, #fde0ea, #fff6f9));
}

.image-holder::before {
  content: "";
  width: min(62%, 150px);
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(229, 45, 112, .24);
  border-radius: 999px 999px 12px 12px;
  background: rgba(255, 255, 255, .28);
  box-shadow: inset 0 0 0 18px rgba(255,255,255,.13);
}

.product-card:hover .image-holder { transform: scale(1.025); }
.product-card:hover .product-image img { transform: scale(1.025); }
.product-body { padding: 15px; }
.product-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
}

.product-heading h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.price { color: var(--coffee); white-space: nowrap; }
.category { color: var(--muted); margin: 0 0 10px; }
.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.size-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--coffee);
  font-weight: 800;
  font-size: .78rem;
}

.empty-state, .error-state {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff9fb;
  color: var(--muted);
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.footer p { margin: 4px 0 0; color: var(--muted); }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  background: rgba(23, 19, 22, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.cart-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  width: min(440px, 94vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--white);
  box-shadow: -18px 0 38px rgba(23, 19, 22, .18);
  transform: translateX(100%);
  transition: transform .22s ease;
}

.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 { font-size: 1.8rem; }
.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 16px 18px;
}

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

.cart-mini-image {
  display: block;
  width: 70px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: var(--holder-bg, var(--sand));
  object-fit: cover;
}

.cart-item h3 {
  margin: 0;
  font-size: .98rem;
}

.cart-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cart-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-weight: 900;
}

.cart-summary {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #fff9fb;
  max-height: 72vh;
  overflow: auto;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.checkout-form {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.checkout-form[hidden] { display: none; }

.checkout-form textarea {
  min-height: 72px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.quick-view-card {
  position: relative;
  width: min(900px, 96vw);
}

.quick-view-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.quick-view-image {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sand);
}

.quick-view-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-view-info {
  display: grid;
  gap: 12px;
  padding-right: 42px;
}

.quick-view-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.quick-view-price {
  font-size: 1.25rem;
}

.quick-view-info p {
  margin: 0;
  color: var(--muted);
}

.quick-view-details {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.payment-result {
  min-height: calc(100vh - 88px);
  display: grid;
  align-items: center;
  padding: 54px 0;
  background: var(--white);
}

.payment-result-panel {
  display: grid;
  gap: 16px;
  align-content: center;
}

.payment-result-panel h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .98;
}

.admin-body { background: #fff6f9; }
.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-logo {
  width: 178px;
  height: 74px;
  object-fit: contain;
  object-position: left center;
}

.login-card h1 {
  margin: 18px 0 8px;
  font-family: Georgia, serif;
  font-size: 2.3rem;
  line-height: 1;
}

.login-form { display: grid; gap: 12px; margin-top: 22px; }
.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.admin-menu { display: grid; gap: 8px; margin-top: 24px; }
.admin-menu button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 9px 11px;
  font-weight: 820;
  cursor: pointer;
}

.admin-menu button.active { background: var(--cream); color: var(--coffee); }
.admin-main { padding: 18px; min-width: 0; }
.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-top h1 { margin: 0; font-size: 1.45rem; }
.admin-top p { margin: 4px 0 0; color: var(--muted); }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.kpi {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.kpi span { color: var(--muted); font-weight: 760; }
.kpi strong {
  display: block;
  margin-top: 4px;
  color: var(--coffee);
  font-size: 2rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(229, 45, 112, .07);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-head h2, .modal-card h2 { font-size: 1.55rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th { color: var(--muted); font-size: .84rem; }
.admin-thumb {
  width: 52px;
  height: 66px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--sand);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 850;
  font-size: .78rem;
}

.status-on { background: #e8f1e3; color: var(--sage); }
.status-off { background: #f3e3e2; color: var(--danger); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.small-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 7px 9px;
  cursor: pointer;
  font-weight: 800;
}

.small-btn.danger { color: var(--danger); }
.admin-section[hidden], .login-view[hidden], .admin-shell[hidden], .modal[hidden] { display: none; }
.settings-grid, .category-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
}

.form-grid { display: grid; gap: 12px; }
.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
}

.check-row input { width: auto; }
.help { color: var(--muted); font-size: .9rem; }
.gallery-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.gallery-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.gallery-item img {
  width: 48px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 19, 22, .58);
}

.modal-card {
  width: min(820px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--coffee);
  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.toast[hidden] { display: none; }

@media (max-width: 1040px) {
  .hero-grid, .settings-grid, .category-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .btn { width: 100%; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-view-grid { grid-template-columns: 1fr; }
  .quick-view-info { padding-right: 0; }
}

@media (max-width: 680px) {
  .nav, .section-head, .footer-grid, .admin-top, .panel-head { align-items: flex-start; flex-direction: column; }
  .nav { align-items: stretch; }
  .nav-links { width: 100%; justify-content: space-between; }
  .cart-trigger { width: 100%; }
  .filters, .kpi-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid div, .service-grid div:first-child { border-left: 1px solid var(--line); }
  .hero { min-height: auto; }
  .brand-logo { width: 112px; height: 68px; }
  .hero-media img, .hero-holder { min-height: 340px; height: 430px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-actions { grid-template-columns: 1fr; }
  .admin-menu { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
}
