:root {
  --bg: #f7f3f7;
  --card: #ffffff;
  --text: #221b24;
  --muted: #766977;
  --accent: #cc3f8f;
  --accent-dark: #a92d73;
  --border: #eadfeb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(40, 20, 45, 0.06);

  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff73c6, #8f4fff);
  color: white;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(143, 79, 255, 0.25);
}

.site-header h1 {
  margin: 0;
  font-size: 28px;
}

.site-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-link,
.back-link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 60px;
}

.hero {
  background: linear-gradient(135deg, #fff, #ffeaf6);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  margin-bottom: 24px;
}

.hero h2 {
  margin: 0 0 10px;
  font-size: 34px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 240px 130px;
  gap: 12px;
  margin-bottom: 28px;
}

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

.filters input,
.filters select,
.login-card input {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}

button,
.button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  display: inline-block;
}

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

.secondary-button {
  background: #34283a;
}

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

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(40, 20, 45, 0.06);
}

.preview {
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.preview img,
.detail-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.placeholder-preview {
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  background: radial-gradient(circle at top left, #ff9bdd, #8f4fff);
}

.placeholder-preview.large {
  min-height: 480px;
  border-radius: 24px;
}

.product-info {
  padding: 18px;
}

.category {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.product-info h3 a {
  text-decoration: none;
}

.price {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
}

.price.big {
  font-size: 34px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
}

.detail-preview,
.detail-info,
.admin-panel,
.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
}

.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.small-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.login-card h1,
.login-card h2 {
  margin-top: 0;
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

.login-card input {
  width: 100%;
}

.error {
  background: #ffe5e5;
  color: #a40000;
  border: 1px solid #ffb5b5;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

@media (max-width: 950px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 560px) {
  .site-header {
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

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

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.secondary-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.admin-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.product-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.product-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.product-form input,
.product-form textarea {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
}

.checkbox-row input {
  width: auto;
}

.danger-button {
  background: #b00020;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}

.danger-button:hover {
  background: #850018;
}

.actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.actions-cell form {
  margin: 0;
}

.small-button,
.toggle-button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #34283a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.toggle-button {
  background: #6b4bb8;
}

.small-button:hover,
.toggle-button:hover {
  filter: brightness(0.9);
}

.status-shown {
  color: #147a2e;
}

.status-hidden {
  color: #a40000;
}

.edit-preview {
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
}
.checkout-box {
  margin: 24px 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.download-panel {
  max-width: 720px;
}
.success-message {
  background: #e7ffe9;
  color: #146b25;
  border: 1px solid #9ee5aa;
  border-radius: 12px;
  padding: 12px;
  margin: 16px 0;
}

.link-cell {
  min-width: 260px;
}

.copy-link-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  font-size: 13px;
}
.reset-request-cell {
  min-width: 260px;
}

.reset-request-list {
  display: grid;
  gap: 10px;
}

.reset-request-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.pending-request {
  border-color: #ffb5b5;
  background: #fff5f5;
}

.resolved-request {
  border-color: #bde5c4;
  background: #f4fff6;
}

.request-message {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 14px;
}
.tiny-error {
  margin-top: 6px;
  padding: 6px;
  background: #ffe5e5;
  color: #a40000;
  border: 1px solid #ffb5b5;
  border-radius: 8px;
  font-size: 12px;
  max-width: 220px;
  word-break: break-word;
}
.actions-cell {
  width: 230px;
  min-width: 230px;
  white-space: nowrap;
  vertical-align: middle;
}

.actions-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

.actions-row form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.actions-row a,
.actions-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 58px;
  margin: 0;
  white-space: nowrap;
}
.products-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.products-table img {
  width: 52px;
  height: 52px;
  object-fit: cover;
}
.store-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cart-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.cart-link.active {
  color: var(--accent-dark);
}

.product-card-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
}

.product-card-actions form,
.product-purchase-actions form {
  margin: 0;
}

.product-card-actions button,
.product-card-actions .button {
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}

.product-purchase-actions {
  margin: 22px 0;
}

.product-purchase-actions .button {
  min-width: 180px;
}

.compact-button {
  padding: 10px 14px;
  border-radius: 12px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
}

.text-button:hover {
  background: transparent;
  color: var(--accent-dark);
}

.cart-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
}

.cart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.cart-heading h1,
.cart-panel h1 {
  margin: 0 0 8px;
}

.empty-cart {
  display: grid;
  place-items: start;
  gap: 10px;
  padding: 32px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: #fffafd;
}

.cart-list {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.cart-thumb {
  display: block;
  width: 92px;
  height: 92px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.placeholder-preview.small {
  min-height: 92px;
  font-size: 22px;
}

.cart-item-info h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.cart-item-info h2 a {
  text-decoration: none;
}

.cart-item-price {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 110px;
}

.cart-item-price form {
  margin: 0;
}

.cart-summary {
  margin-top: 18px;
  margin-left: auto;
  max-width: 420px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fffafd;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.total-row {
  font-size: 22px;
}

@media (max-width: 720px) {
  .cart-heading {
    flex-direction: column;
  }

  .cart-item {
    grid-template-columns: 76px 1fr;
  }

  .cart-thumb {
    width: 76px;
    height: 76px;
  }

  .cart-item-price {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .product-card-actions {
    grid-template-columns: 1fr;
  }
}
.cart-link.bag-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cart-link.bag-link:hover {
  background: #fff0fa;
  transform: translateY(-1px);
}

.bag-icon {
  position: relative;
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 8px 8px 11px 11px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(143, 79, 255, 0.14);
}

.bag-icon::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 14px;
  height: 10px;
  border: 2px solid var(--accent);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  transform: translateX(-50%);
  background: transparent;
}

.bag-count {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.cart-link.bag-link.active .bag-icon,
.cart-link.bag-link:hover .bag-icon {
  background: linear-gradient(135deg, #fff7fd, #f7f0ff);
  border-color: var(--accent-dark);
}

.cart-link.bag-link.active .bag-icon::before,
.cart-link.bag-link:hover .bag-icon::before {
  border-color: var(--accent-dark);
}

@media (max-width: 560px) {
  .bag-text {
    display: none;
  }

  .cart-link.bag-link {
    padding: 6px;
  }
}
/* Coupon / discounts pass */
.coupon-form {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.coupon-form label {
  font-weight: 800;
  color: var(--text);
}

.coupon-entry-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.coupon-entry-row input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  background: #fff;
  text-transform: uppercase;
}

.applied-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid #bde5c4;
  border-radius: 12px;
  background: #f4fff6;
  color: #146b25;
}

.applied-coupon form {
  margin: 0;
}

.discount-row strong {
  color: #147a2e;
}

.discounts-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 24px;
  align-items: start;
}

.discount-form-card,
.discount-list-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.discount-form-card h2,
.discount-list-card h2 {
  margin-top: 0;
}

.compact-form {
  gap: 14px;
}

.compact-form input,
.compact-form select,
.compact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  background: #fff;
}

.two-column-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.discounts-table td,
.discounts-table th {
  vertical-align: middle;
}

@media (max-width: 950px) {
  .discounts-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .coupon-entry-row,
  .two-column-fields {
    grid-template-columns: 1fr;
  }
}

/* My Downloads / order lookup pass */
.nav-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  background: #fff0fa;
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.lookup-panel {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(40, 20, 45, 0.06);
}

.lookup-intro h1 {
  margin: 0 0 10px;
  font-size: 34px;
}

.lookup-intro p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.download-lookup-form {
  max-width: none;
  margin-top: 22px;
}

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

.lookup-note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.lookup-note-grid > div {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: #fffafd;
}

.lookup-note-grid h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.lookup-note-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 720px) {
  .lookup-note-grid {
    grid-template-columns: 1fr;
  }
}

/* Storefront visual polish pass */
:root {
  --bg: #fbf7fb;
  --card: #ffffff;
  --text: #241827;
  --muted: #7f6c81;
  --accent: #d63f98;
  --accent-dark: #9e236c;
  --accent-soft: #fff0fa;
  --purple: #7a43d8;
  --border: #ecddec;
  --shadow: 0 18px 45px rgba(84, 35, 95, 0.09);
  --shadow-soft: 0 10px 28px rgba(84, 35, 95, 0.06);
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 168, 220, 0.28), transparent 34rem),
    radial-gradient(circle at top right, rgba(143, 79, 255, 0.16), transparent 30rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 52%);
  z-index: -1;
}

.brand-home-link {
  display: flex;
  align-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(234, 223, 235, 0.8);
  box-shadow: 0 12px 30px rgba(84, 35, 95, 0.08);
}

.site-header h1 {
  letter-spacing: -0.03em;
}

.site-header p {
  font-size: 14px;
}

.admin-link,
.back-link,
.secondary-link {
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.admin-link:hover,
.back-link:hover,
.secondary-link:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.storefront-container {
  padding-top: 28px;
}

.hero-polished {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.92), transparent 15rem),
    linear-gradient(135deg, #ffffff 0%, #fff0fa 52%, #f3edff 100%);
  box-shadow: var(--shadow);
}

.hero-polished::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(214, 63, 152, 0.12);
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(214, 63, 152, 0.1);
  color: var(--accent-dark) !important;
  font-size: 13px !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-polished h2 {
  max-width: 760px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-polished p {
  max-width: 680px;
  line-height: 1.55;
}

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

.hero-button {
  min-width: 150px;
  box-shadow: 0 12px 28px rgba(214, 63, 152, 0.18);
}

.hero-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 48px rgba(84, 35, 95, 0.11);
  backdrop-filter: blur(12px);
}

.hero-card-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff73c6, #8f4fff);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 28px;
}

.trust-strip > div {
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 4px;
  color: var(--text);
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.shop-section {
  scroll-margin-top: 120px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 0 0 16px;
}

.section-heading-row h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.product-count {
  margin: 0 0 4px;
  color: var(--muted);
  font-weight: 700;
}

.filters-polished {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.filters input:focus,
.filters select:focus,
.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus,
.compact-form input:focus,
.compact-form select:focus,
.compact-form textarea:focus {
  outline: 3px solid rgba(214, 63, 152, 0.15);
  border-color: rgba(214, 63, 152, 0.55);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 0 26px;
}

.category-chip {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.category-chip:hover,
.category-chip.active {
  border-color: rgba(214, 63, 152, 0.45);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.product-grid-polished {
  align-items: stretch;
}

.product-card-polished {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card-polished:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 63, 152, 0.34);
  box-shadow: 0 22px 46px rgba(84, 35, 95, 0.12);
}

.product-card-polished .preview {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.86) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.86) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.86) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.86) 75%),
    #f8f1f8;
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.product-card-polished .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-card-polished h3 {
  line-height: 1.25;
}

.product-card-polished .product-card-actions {
  margin-top: auto;
}

button,
.button {
  box-shadow: 0 10px 24px rgba(214, 63, 152, 0.14);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(214, 63, 152, 0.2);
}

.secondary-button {
  background: #382640;
}

.product-detail-polished .detail-preview,
.product-detail-polished .detail-info,
.cart-panel,
.lookup-panel,
.download-page-panel,
.celebration-panel {
  box-shadow: var(--shadow);
}

.detail-info-polished h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.product-description {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.product-benefits,
.download-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.product-benefits > div,
.download-status-grid > div {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffafd;
}

.product-benefits strong,
.product-benefits span,
.download-status-grid strong,
.download-status-grid span {
  display: block;
}

.product-benefits strong,
.download-status-grid strong {
  margin-bottom: 5px;
  font-size: 14px;
}

.product-benefits span,
.download-status-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.checkout-box-polished {
  background: linear-gradient(135deg, #fff, #fff7fd);
  box-shadow: var(--shadow-soft);
}

.cart-item,
.cart-summary,
.empty-cart,
.lookup-note-grid > div,
.discount-form-card,
.discount-list-card {
  box-shadow: var(--shadow-soft);
}

.cart-item {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.cart-item:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 63, 152, 0.32);
}

.cart-summary {
  position: sticky;
  bottom: 18px;
}

.download-panel h1,
.download-panel h2,
.lookup-intro h1 {
  letter-spacing: -0.04em;
}

.download-product-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fffafd;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 34px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.empty-results {
  grid-column: 1 / -1;
}

@media (max-width: 950px) {
  .hero-polished {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .product-benefits,
  .download-status-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .hero-polished {
    padding: 28px 22px;
  }

  .cart-summary {
    position: static;
    max-width: none;
  }

  .download-product-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: stretch;
  }

  .brand-home-link {
    align-items: flex-start;
  }

  .store-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .nav-link,
  .admin-link,
  .back-link,
  .secondary-link {
    padding: 8px 9px;
    font-size: 14px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .filters-polished {
    padding: 12px;
  }
}

/* Admin settings / category manager */
.settings-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 24px;
  align-items: start;
}

.settings-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.settings-card h2 {
  margin-top: 0;
}

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

.category-manager-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffafc;
}

.category-edit-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 90px 130px 90px auto;
  gap: 10px;
  align-items: end;
  margin: 0;
}

.category-edit-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.category-edit-form input,
.category-edit-form select,
.product-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  background: #fff;
  color: var(--text);
}

.category-product-count {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.category-product-count strong {
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 950px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .category-manager-row {
    grid-template-columns: 1fr;
  }

  .category-edit-form {
    grid-template-columns: 1fr 90px 130px 90px auto;
  }
}

@media (max-width: 700px) {
  .category-edit-form {
    grid-template-columns: 1fr;
  }
}

/* My Downloads history */
.lookup-panel-polished {
  max-width: 980px;
  margin: 0 auto;
}

.download-history-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(40, 20, 45, 0.08);
}

.empty-state-card {
  margin-top: 20px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 22px;
  background: #fffafd;
  text-align: center;
}

.history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fffafd;
}

.history-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.download-history-list {
  display: grid;
  gap: 14px;
}

.download-history-card {
  display: grid;
  grid-template-columns: 82px 74px minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #fff8fc);
}

.history-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.history-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.history-preview img,
.placeholder-preview.tiny {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  object-fit: cover;
}

.placeholder-preview.tiny {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff0fa, #f5edff);
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 13px;
}

.history-info h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.download-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.download-status-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.download-status-pills .status-good {
  color: #177245;
  background: #edfff6;
  border-color: #bfead3;
}

.download-status-pills .status-warning {
  color: #9b5200;
  background: #fff8ea;
  border-color: #f1d39a;
}

.history-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.history-card-actions .secondary-button,
.history-card-actions .small-button {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .download-history-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .history-preview img,
  .placeholder-preview.tiny {
    width: 86px;
    height: 86px;
  }

  .history-card-actions,
  .history-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .history-toolbar-actions {
    justify-content: stretch;
  }

  .history-toolbar-actions .button,
  .history-toolbar-actions .secondary-button,
  .history-card-actions .secondary-button,
  .history-card-actions .small-button {
    width: 100%;
  }
}

/* Admin reports */
.reports-page {
  display: grid;
  gap: 24px;
}

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

.report-stat-card {
  background: linear-gradient(135deg, #ffffff, #fff0fa);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(40, 20, 45, 0.06);
}

.report-stat-card strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.report-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.reports-section h2 {
  margin-top: 0;
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.reports-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.table-scroll {
  overflow-x: auto;
}

.reports-table {
  min-width: 760px;
}

.compact-report-table {
  min-width: 520px;
}

.reports-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.report-product-cell img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 1050px) {
  .report-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .report-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Storefront search and category filters */
.filters-polished {
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 260px) auto;
  align-items: end;
  gap: 14px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.filter-field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.filter-field input,
.filter-field select {
  min-height: 50px;
  width: 100%;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
}

.filter-actions button {
  min-height: 50px;
  padding-left: 22px;
  padding-right: 22px;
}

.clear-filter-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.clear-filter-link:hover {
  text-decoration: underline;
}

.active-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -12px 0 22px;
}

.active-filter-summary span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 12px;
}

.active-filter-summary strong {
  color: var(--accent-dark);
}

@media (max-width: 760px) {
  .filters-polished {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-actions button,
  .clear-filter-link {
    width: 100%;
    text-align: center;
  }
}

/* Admin order detail */
.admin-orders-table .order-date-cell {
  min-width: 150px;
  color: var(--muted);
  font-size: 13px;
}

.order-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.order-product-cell img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.order-detail-page {
  display: grid;
  gap: 22px;
}

.order-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.order-product-summary {
  display: flex;
  align-items: center;
  gap: 22px;
}

.order-product-summary img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(84, 35, 95, 0.08);
}

.order-product-summary h2 {
  margin: 4px 0 6px;
  font-size: 28px;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-actions form {
  margin: 0;
}

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

.detail-card h2 {
  margin-top: 0;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.detail-meta-grid dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-meta-grid dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.wide-copy-input {
  width: 100%;
  font-size: 14px;
}

.compact-error {
  margin: 16px 0 0;
}

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

@media (max-width: 850px) {
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .order-product-summary {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .order-product-summary {
    flex-direction: column;
  }

  .order-product-summary img {
    width: 100%;
    height: auto;
    max-height: 240px;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}
.site-logo {
  display: block;
  width: 150px;
  max-height: 72px;
  object-fit: contain;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

@media (max-width: 640px) {
  .site-logo {
    width: 120px;
    max-height: 58px;
  }
}
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(217, 70, 170, 0.18);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(47, 33, 53, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.social-links a:hover {
  transform: translateY(-1px);
  background: #fff0fa;
  box-shadow: 0 12px 24px rgba(217, 70, 170, 0.16);
}

.social-links img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  display: block;
}

.header-social-links {
  margin-left: 4px;
  margin-right: 2px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-social-links {
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .header-social-links {
    order: 10;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-social-links {
    justify-content: center;
  }
}
/* Compact storefront hero: moves products higher on the page */
.storefront-container {
  padding-top: 22px;
}

.hero-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 0;
  margin: 18px auto 18px;
  padding: 26px 32px;
}

.hero-compact .hero-copy {
  max-width: 860px;
}

.hero-compact .eyebrow {
  margin-bottom: 8px;
}

.hero-compact h2 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(2.15rem, 4vw, 4.2rem);
  line-height: 0.98;
}

.hero-compact .hero-copy > p:not(.eyebrow) {
  max-width: 840px;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.45;
}

.hero-actions-compact {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.compact-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.compact-benefits span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(204, 63, 143, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px 11px;
  color: #7f6a82;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(66, 31, 70, 0.06);
}

.shop-section {
  scroll-margin-top: 125px;
}

.section-heading-row {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .hero-compact {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .hero-actions-compact {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .storefront-container {
    padding-top: 14px;
  }

  .hero-compact {
    margin-top: 12px;
    padding: 20px;
  }

  .hero-compact h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-actions-compact {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions-compact .button {
    width: 100%;
    text-align: center;
  }
}


/* Automatic sales */
.sale-price-block {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.sale-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff1c6;
  color: #9a5a00;
  border: 1px solid #f2cf72;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.small-sale-badge {
  font-size: 10px;
  padding: 4px 8px;
}

.sale-price,
.cart-sale-price,
.admin-sale-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 700;
}

.new-price {
  color: var(--accent);
  font-weight: 900;
}

.detail-sale-price .sale-price {
  margin-bottom: 0;
}

.sale-note {
  margin-top: 0;
}

.cart-item-price .sale-badge {
  margin-bottom: 2px;
}

.admin-sale-price {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.sales-table td,
.sales-table th {
  vertical-align: middle;
}

.sale-target-label {
  font-weight: 800;
}

.sale-target-field {
  display: grid;
}
