:root {
  --primary: #c2185b;
  --primary-dark: #8f0f3f;
  --cream: #fff8f1;
  --card: #ffffff;
  --text: #24161b;
  --muted: #6d5d63;
  --border: #ead7df;
  --shadow: 0 14px 35px rgba(97, 24, 51, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Montestart';
  src: url(/fonts/Montserrat/static/Montserrat-Medium.ttf);
  font-weight: 500;
}

body {
  margin: 0;
  font-family: 'Montestart', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff2f7 0%, var(--cream) 55%, #ffffff 100%);
}

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

.page {
  min-height: 100vh;
}

.hero {
  padding: 28px 18px 44px;
  background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, .75), transparent 26%),
    linear-gradient(135deg, #e91e63 0%, #aa1554 48%, #6d0f39 100%);
  color: #fff;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}

.full-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-inner,
.simple-header-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.brand-row,
.simple-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-row {
  margin-bottom: 34px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: xx-large;
}

.logo-mark {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: #f7a9c8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 78%;
  object-fit: contain;
  display: block;
}

.nav-links,
.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 14px;
  font-weight: 800;
}

.header-btn {
  background: #fff0f6;
  border-color: var(--border);
  color: var(--primary-dark);
}

.header-btn.active,
.header-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.header-btn.manage {
  background: #24161b;
  color: #fff;
  border-color: #24161b;
}

.header-btn.manage:hover,
.header-btn.manage.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 26px;
  align-items: center;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 7vw, 68px);
  line-height: .98;
  letter-spacing: -1.6px;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.55;
}

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

.primary-btn,
.secondary-btn,
.primary-dark-btn,
.secondary-dark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

.primary-btn {
  background: #fff;
  color: var(--primary-dark);
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.primary-dark-btn {
  background: var(--primary);
  color: #fff;
}

.secondary-dark-btn {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

.hero-card {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .12);
}

.hero-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.hero-card span {
  display: block;
  color: rgba(255, 255, 255, .84);
  line-height: 1.45;
  font-size: 15px;
}

.content {
  width: min(1120px, calc(100% - 32px));
  margin: -26px auto 60px;
}

.products-content {
  margin: 30px auto 60px;
}

.landing-content {
  margin-top: -70px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.feature-card,
.search-panel,
.product-card,
.admin-card,
.product-detail,
.not-found,
.landing-cta,
.page-title-card,
.modal-card,
.confirm-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.feature-card {
  padding: 18px;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff0f6;
  font-size: 24px;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.landing-cta {
  padding: 28px;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.landing-cta h2,
.page-title-card h1 {
  margin: 0;
  color: var(--text);
}

.landing-cta p,
.page-title-card p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.page-title-card {
  padding: 24px;
  margin-bottom: 18px;
}

.page-title-card h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -1px;
}

.search-panel {
  border-radius: 28px;
  padding: 18px;
  position: sticky;
  top: 12px;
  z-index: 5;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.search-input,
.url-output,
.item-form input,
.item-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
  background: #fffafc;
  font-family: inherit;
}

.search-input:focus,
.item-form input:focus,
.item-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(194, 24, 91, .11);
}

.clear-btn {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 15px 18px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
}

.filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 2px 0;
  scrollbar-width: thin;
}

.filter-btn {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

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

.section-head.no-margin {
  margin: 0 0 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

.count {
  color: var(--muted);
  font-weight: 700;
}

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

.product-card {
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(70, 27, 43, .08);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-image {
  height: 180px;
  background: linear-gradient(135deg, #ffe1ec, #fff9ec);
  display: grid;
  place-items: center;
  font-size: 54px;
  overflow: hidden;
}

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

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag,
.status-badge {
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-dark);
  background: #fff0f6;
  border-radius: 999px;
  padding: 6px 9px;
  display: none;
}

.status-badge.inactive {
  color: #555;
  background: #eee;
}

.product-title {
  margin: 0 0 7px;
  font-size: 20px;
  line-height: 1.2;
}

.item-id {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.description {
  min-height: 42px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  background: var(--text);
  color: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  font-weight: 800;
  cursor: pointer;
  margin-top: auto;
}

.empty-state {
  display: none;
  text-align: center;
  padding: 42px 20px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.simple-header {
  padding: 20px 18px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.back-link {
  font-weight: 800;
  color: var(--primary-dark);
}

.product-detail-wrap,
.admin-page-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 30px auto 60px;
}

.product-detail {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  padding: 24px;
}

.detail-media {
  background: #fff4f8;
  border-radius: 18px;
  overflow: hidden;
  min-height: 360px;
}

.detail-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.detail-content h1 {
  color: var(--text);
  font-size: clamp(32px, 5vw, 52px);
}

.detail-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.detail-section h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.muted-text {
  color: var(--muted);
  line-height: 1.5;
}

.not-found {
  padding: 34px;
  text-align: center;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-toolbar h1 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 42px;
}

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

.admin-card {
  padding: 20px;
}

/* Better custom dropdown design */
.admin-filters {
  display: grid;
  grid-template-columns: 1fr 220px 260px;
  gap: 14px;
  margin-bottom: 18px;
  align-items: start;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  min-height: 54px;
  border: 1px solid #ead7df;
  background: #fff7fb;
  border-radius: 24px;
  padding: 0 48px 0 22px;
  font-size: 18px;
  font-weight: 800;
  color: #8f0f3f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 10px 24px rgba(97, 24, 51, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  background: #fff0f6;
  border-color: #c2185b;
  box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.1);
}

.select-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.select-arrow {
  position: absolute;
  right: 22px;
  top: 40%;
  transform: translateY(-54%);
  color: #c2185b;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.custom-select.open .select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 100;
  display: none;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #ead7df;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(97, 24, 51, 0.18);
  max-height: 260px;
  overflow-y: auto;
}

.custom-select.open .custom-options {
  display: grid;
  gap: 4px;
}

.custom-options button {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #24161b;
  cursor: pointer;
}

.custom-options button:hover,
.custom-options button.selected {
  background: #fff0f6;
  color: #8f0f3f;
}

.table-scroll {
  overflow: auto;
  max-height: 650px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
  font-size: 14px;
}

.preview-table th,
.preview-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.preview-table th {
  background: #fff0f6;
  color: var(--primary-dark);
  position: sticky;
  top: 0;
}

.preview-table td {
  color: var(--muted);
}

.preview-table a {
  color: var(--primary-dark);
  font-weight: 800;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mini-btn.danger {
  color: #7a1f1f;
  background: #fff6f6;
}

.mini-btn.success {
  color: #176b3a;
  background: #f1fff6;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 22, 27, .62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 20px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.modal-header h2 {
  margin: 0;
  font-size: 30px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

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

.item-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: var(--primary-dark);
}

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

.confirm-card {
  width: min(460px, 100%);
  padding: 28px;
  text-align: center;
}

.confirm-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff0f6;
  font-size: 28px;
}

.confirm-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.confirm-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.danger-btn {
  background: #b42318;
}

@media (max-width: 900px) {

  .hero-grid,
  .feature-strip,
  .product-detail {
    grid-template-columns: 1fr;
  }

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

  .admin-toolbar {
    flex-direction: column;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }

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

  .custom-select-trigger {
    min-height: 52px;
    font-size: 16px;
  }

}

@media (max-width: 640px) {
  .hero {
    padding-top: 20px;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
  }

  .full-hero {
    min-height: auto;
  }

  .brand-row,
  .simple-header-inner {
    align-items: flex-start;
  }

  .brand-row {
    margin-bottom: 24px;
    flex-direction: column;
  }

  .nav-links,
  .header-actions {
    width: 100%;
  }

  .nav-links a,
  .header-btn {
    flex: 1;
    justify-content: center;
  }

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

  .clear-btn {
    width: 100%;
  }

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

  .product-image {
    height: 155px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .simple-header-inner {
    flex-direction: column;
  }

  .landing-content {
    margin-top: -30px;
  }
}


/* Pink edit icon/button styling */
.edit-btn {
  color: var(--primary-dark);
  background: #fff0f6;
  border-color: var(--border);
}

.edit-btn:hover {
  background: #ffe1ec;
  border-color: var(--primary);
}

.edit-icon {
  color: #c2185b;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}


/* Firebase admin image preview */
.admin-image-preview {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fffafc;
  display: none;
}

/* Align product card buttons evenly */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.description {
  flex: 1;
}

.view-btn {
  margin-top: auto;
}

/* Pink edit icon/button styling */
.edit-btn {
  color: var(--primary-dark);
  background: #fff0f6;
  border-color: var(--border);
}

.edit-btn:hover {
  background: #ffe1ec;
  border-color: var(--primary);
}

.edit-icon {
  color: #c2185b;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}


/* Bulk upload section */
.bulk-upload-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}

.bulk-upload-card h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.bulk-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.upload-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--primary-dark);
  background: #fff0f6;
  border: 1px solid var(--border);
  cursor: pointer;
}

.upload-file-btn input {
  display: none;
}

.bulk-summary {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
  padding: 5px 0px 0px 2px;
}

.bulk-preview-wrap {
  max-height: 360px;
}


/* Required field indicator */
.required-mark {
  color: #c2185b;
  font-weight: 900;
  margin-left: 3px;
}

.item-form input:required,
.item-form textarea:required {
  border-left: 4px solid #c2185b;
}


/* Product detail label-style page */
.label-detail-page {
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
  width: min(760px, 100%);
  margin: 0 auto;
}

.label-hero-image {
  width: 100%;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.label-hero-image img {
  width: 100%;
  height: clamp(220px, 38vw, 330px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.label-orange-line {
  width: 100%;
  height: 10px;
  background: #ff7a00;
}

.label-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 62px 20px 52px;
  color: #ec1687;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
}

.label-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.label-content-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 34px;
  padding: 0 48px 48px;
  align-items: start;
}

.label-product-info h1 {
  margin: 0 0 18px;
  color: #000000;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.14;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.label-category {
  display: none;
}

.label-product-info .item-id {
  margin: 0 0 22px;
  color: #666666;
  font-size: 15px;
}

.label-section {
  margin-top: 18px;
}

.label-section h2 {
  margin: 0 0 12px;
  color: #ec1687;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  letter-spacing: 0.3px;
}

.label-section p {
  margin: 0;
  color: #555555;
  font-size: 15px;
  line-height: 1.45;
}

.allergen-section p {
  color: #ec1687;
  font-weight: 800;
}

.small-note {
  color: #666666 !important;
  font-size: 13px !important;
}

.nutrition-card {
  border: 3px solid #000000;
  background: #ffffff;
  color: #000000;
  width: 100%;
}

.nutrition-card h2 {
  margin: 0;
  padding: 8px 10px 4px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  font-weight: 900;
  border-bottom: 8px solid #000000;
}

.nutrition-row,
.nutrition-calories {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 10px;
  border-bottom: 1px solid #9b9b9b;
  font-size: 15px;
}

.nutrition-row span,
.nutrition-calories span {
  font-weight: 800;
}

.nutrition-row strong {
  font-weight: 800;
  text-align: right;
}

.nutrition-calories {
  border-bottom: 6px solid #000000;
}

.nutrition-calories span {
  font-size: 22px;
}

.nutrition-calories strong {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1;
  font-weight: 900;
}

.nutrition-note {
  margin: 0;
  padding: 10px;
  font-size: 12px;
  line-height: 1.35;
  color: #333333;
}

.label-actions {
  padding: 0 48px 50px;
  margin-top: 0;
}

.product-detail-wrap {
  width: min(900px, calc(100% - 24px));
  margin: 24px auto 60px;
}

@media (max-width: 800px) {
  .label-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 28px 38px;
  }

  .nutrition-card {
    max-width: 520px;
    margin: 0 auto;
  }

  .label-brand-row {
    padding: 46px 18px 38px;
  }

  .label-actions {
    padding: 0 28px 42px;
  }
}

@media (max-width: 520px) {
  .product-detail-wrap {
    width: 100%;
    margin: 0 auto 40px;
  }

  .label-detail-page {
    width: 100%;
  }

  .label-hero-image img {
    height: 220px;
  }

  .label-orange-line {
    height: 7px;
  }

  .label-brand-row {
    padding: 34px 16px 30px;
    gap: 10px;
    font-size: 22px;
  }

  .label-logo {
    width: 34px;
    height: 34px;
  }

  .label-content-grid {
    padding: 0 20px 32px;
    gap: 26px;
  }

  .label-product-info h1 {
    font-size: 31px;
  }

  .label-section h2 {
    font-size: 21px;
  }

  .label-section p {
    font-size: 14px;
  }

  .nutrition-card h2 {
    font-size: 32px;
  }

  .nutrition-calories span {
    font-size: 20px;
  }

  .nutrition-calories strong {
    font-size: 42px;
  }

  .label-actions {
    padding: 0 20px 36px;
    flex-direction: column;
  }

  .label-actions a {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .label-hero-image img {
    height: 190px;
  }

  .label-brand-row {
    font-size: 19px;
  }

  .label-product-info h1 {
    font-size: 27px;
  }

  .nutrition-card h2 {
    font-size: 28px;
  }
}


/* Nutrition facts image card */
.nutrition-image-card {
  width: 100%;
  background: #ffffff;
  color: #000000;
}

.nutrition-image-card h2 {
  margin: 0 0 14px;
  color: #000000;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.nutrition-image-wrap {
  width: 100%;
  border: 3px solid #000000;
  background: #ffffff;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nutrition-facts-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.nutrition-missing-text {
  margin: 0;
  padding: 20px;
  color: #666666;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 800px) {
  .nutrition-image-card {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .nutrition-image-card h2 {
    font-size: 30px;
  }

  .nutrition-image-wrap {
    min-height: 220px;
  }
}


/* Required star beside label */
.field-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-dark);
  font-weight: 800
}

.required-mark {
  color: #c2185b;
  font-weight: 900;
  margin-left: 2px
}

/* Label-style product detail page */
.label-page-body {
  background: #fff;
  margin: 0
}

.label-page {
  min-height: 100vh;
  background: #fff
}

.label-detail-page {
  background: #fff;
  width: min(760px, 100%);
  margin: 0 auto;
  border: none;
  box-shadow: none;
  overflow: hidden
}

.label-hero-image {
  width: 100%;
  background: #f8f8f8;
  overflow: hidden
}

.label-hero-image img {
  width: 100%;
  height: clamp(250px, 40vw, 330px);
  object-fit: cover;
  object-position: top center;
  display: block
}

.label-orange-line {
  width: 100%;
  height: 10px;
  background: #ff7a00
}

.label-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 62px 20px 52px;
  color: #ec1687;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: .5px;
  text-align: center
}

.label-logo-fallback {
  width: 72px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ec1687;
  font-size: 28px;
  line-height: 1
}

.label-logo-fallback img{
  width: 100%;
  height: 100%;
}

.label-content-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 34px;
  padding: 0 48px 48px;
  align-items: start
}

.label-product-info h1 {
  margin: 0;
  color: #000;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.14;
  letter-spacing: .5px;
  text-transform: uppercase
}

.label-category {
  display: none
}

.label-item-id {
  margin: 10px 0 14px;
  color: #666;
  font-size: 14px
}

.label-pink-rule {
  width: 100%;
  height: 7px;
  background: #ec1687;
  margin: 12px 0 14px
}

.label-section {
  margin-top: 18px
}

.label-section h2 {
  margin: 0 0 12px;
  color: #ec1687;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  letter-spacing: .3px
}

.label-section p {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.45
}

.allergen-section p {
  color: #ec1687;
  font-weight: 800
}

.small-note {
  color: #666 !important;
  font-size: 13px !important
}

.nutrition-image-card {
  width: 100%;
  background: #fff;
  color: #000
}

.nutrition-facts-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain
}

.nutrition-missing-text {
  margin: 0;
  padding: 24px;
  border: 3px solid #000;
  color: #666;
  text-align: center;
  font-weight: 700
}

.label-actions {
  padding: 0 48px 50px;
  margin-top: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.label-not-found {
  width: min(760px, calc(100% - 32px));
  margin: 40px auto;
  padding: 28px
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1
}

.description {
  flex: 1
}

.view-btn {
  margin-top: auto
}

@media(max-width:800px) {
  .label-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 28px 38px
  }

  .nutrition-image-card {
    max-width: 520px;
    margin: 0 auto
  }

  .label-brand-row {
    padding: 46px 18px 38px
  }

  .label-actions {
    padding: 0 28px 42px
  }
}

@media(max-width:520px) {
  .label-detail-page {
    width: 100%
  }

  .label-hero-image img {
    height: 230px
  }

  .label-orange-line {
    height: 7px
  }

  .label-brand-row {
    padding: 34px 16px 30px;
    gap: 10px;
    font-size: 22px
  }

  .label-logo-fallback {
    width: 34px;
    height: 34px;
    font-size: 23px
  }

  .label-content-grid {
    padding: 0 20px 32px;
    gap: 26px
  }

  .label-product-info h1 {
    font-size: 31px
  }

  .label-section h2 {
    font-size: 21px
  }

  .label-section p {
    font-size: 14px
  }

  .label-actions {
    padding: 0 20px 36px;
    flex-direction: column
  }

  .label-actions a {
    width: 100%
  }
}

@media(max-width:380px) {
  .label-hero-image img {
    height: 200px
  }

  .label-brand-row {
    font-size: 19px
  }

  .label-product-info h1 {
    font-size: 27px
  }
}

/* Static no-image product detail layout */
.no-hero-product {
  padding-top: 0
}

.no-image-brand {
  padding-top: 44px;
  padding-bottom: 44px
}

.no-image-grid {
  align-items: start
}

.label-page-body {
  background: #fff;
  margin: 0
}

.label-page {
  min-height: 100vh;
  background: #fff
}

.label-detail-page {
  background: #fff;
  width: min(760px, 100%);
  margin: 0 auto;
  border: none;
  box-shadow: none;
  overflow: hidden
}

.label-orange-line {
  width: 100%;
  height: 10px;
  background: #ff7a00
}

.label-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ec1687;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: .5px;
  text-align: center
}

.label-content-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 34px;
  padding: 0 48px 48px;
  align-items: start
}

.label-product-info h1 {
  margin: 0;
  color: #000;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.14;
  letter-spacing: .5px;
  text-transform: uppercase
}

.label-category {
  display: none
}

.label-item-id {
  margin: 10px 0 14px;
  color: #666;
  font-size: 14px
}

.label-pink-rule {
  width: 100%;
  height: 7px;
  background: #ec1687;
  margin: 12px 0 14px
}

.label-section {
  margin-top: 18px
}

.label-section h2 {
  margin: 0 0 12px;
  color: #ec1687;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  letter-spacing: .3px
}

.label-section p {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.45
}

.allergen-section p {
  color: #ec1687;
  font-weight: 800
}

.small-note {
  color: #666 !important;
  font-size: 13px !important
}

.nutrition-image-card {
  width: 100%;
  background: #fff;
  color: #000
}

.nutrition-facts-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain
}

.nutrition-missing-text {
  margin: 0;
  padding: 24px;
  border: 3px solid #000;
  color: #666;
  text-align: center;
  font-weight: 700
}

.label-actions {
  padding: 0 48px 50px;
  margin-top: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.label-not-found {
  width: min(760px, calc(100% - 32px));
  margin: 40px auto;
  padding: 28px
}

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

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1
}

.description {
  flex: 1
}

.view-btn {
  margin-top: auto
}

.no-image-card {
  min-height: 260px
}

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

@media(max-width:800px) {
  .label-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 28px 38px
  }

  .nutrition-image-card {
    max-width: 520px;
    margin: 0 auto
  }

  .label-actions {
    padding: 0 28px 42px
  }
}

@media(max-width:520px) {
  .label-detail-page {
    width: 100%
  }

  .no-image-brand {
    padding: 34px 16px 30px;
    gap: 10px;
    font-size: 22px
  }

  .label-logo-fallback {
    width: 34px;
    height: 34px;
    font-size: 23px
  }

  .label-content-grid {
    padding: 0 20px 32px;
    gap: 26px
  }

  .label-product-info h1 {
    font-size: 31px
  }

  .label-section h2 {
    font-size: 21px
  }

  .label-section p {
    font-size: 14px
  }

  .label-actions {
    padding: 0 20px 36px;
    flex-direction: column
  }

  .label-actions a {
    width: 100%
  }

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

@media(max-width:380px) {
  .no-image-brand {
    font-size: 19px
  }

  .label-product-info h1 {
    font-size: 27px
  }
}


/* Final Firebase product detail layout: no top image, nutrition image on right */
.no-hero-product {
  padding-top: 0;
}

.no-image-brand {
  padding-top: 44px;
  padding-bottom: 44px;
}

.no-image-grid {
  align-items: start;
}

.label-page-body {
  background: #ffffff;
  margin: 0;
}

.label-page {
  min-height: 100vh;
  background: #ffffff;
}

.label-detail-page {
  background: #ffffff;
  width: min(760px, 100%);
  margin: 0 auto;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.label-orange-line {
  width: 100%;
  height: 10px;
  background: #ff7a00;
}

.label-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ec1687;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
}

.label-content-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 34px;
  padding: 0 48px 48px;
  align-items: start;
}

.label-product-info h1 {
  margin: 0;
  color: #000000;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.14;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.label-category {
  display: none;
}

.label-item-id {
  margin: 10px 0 14px;
  color: #666666;
  font-size: 14px;
}

.label-pink-rule {
  width: 100%;
  height: 7px;
  background: #ec1687;
  margin: 12px 0 14px;
}

.label-section {
  margin-top: 18px;
}

.label-section h2 {
  margin: 0 0 12px;
  color: #ec1687;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  letter-spacing: 0.3px;
}

.label-section p {
  margin: 0;
  color: #555555;
  font-size: 15px;
  line-height: 1.45;
}

.allergen-section p {
  color: #ec1687;
  font-weight: 800;
}

.small-note {
  color: #666666 !important;
  font-size: 13px !important;
}

.nutrition-image-card {
  width: 100%;
  background: #ffffff;
  color: #000000;
}

.nutrition-facts-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.nutrition-missing-text {
  margin: 0;
  padding: 24px;
  border: 3px solid #000000;
  color: #666666;
  text-align: center;
  font-weight: 700;
}

.label-actions {
  padding: 0 48px 50px;
  margin-top: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.label-not-found {
  width: min(760px, calc(100% - 32px));
  margin: 40px auto;
  padding: 28px;
}

/* Product list visibility and button alignment */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.description {
  flex: 1;
}

.view-btn {
  margin-top: auto;
}

/* Required field indicator beside label */
.field-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-dark);
  font-weight: 800;
}

.required-mark {
  color: #c2185b;
  font-weight: 900;
  margin-left: 2px;
}

/* Status badge visibility */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.status-badge.active {
  color: #176b3a;
  background: #eafaf0;
  border: 1px solid #bfe8cc;
}

.status-badge.inactive {
  color: #7a1f1f;
  background: #fff1f1;
  border: 1px solid #f0c3c3;
}

/* Pink edit icon/button */
.edit-btn {
  color: var(--primary-dark);
  background: #fff0f6;
  border-color: var(--border);
}

.edit-icon {
  color: #c2185b;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}

/* Admin image previews */
.admin-image-preview {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fffafc;
  display: none;
}

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

@media (max-width: 800px) {
  .label-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 28px 38px;
  }

  .nutrition-image-card {
    max-width: 520px;
    margin: 0 auto;
  }

  .label-actions {
    padding: 0 28px 42px;
  }
}

@media (max-width: 520px) {
  .label-detail-page {
    width: 100%;
  }

  .no-image-brand {
    padding: 34px 16px 30px;
    gap: 10px;
    font-size: 22px;
  }

  .label-logo-fallback {
    width: 34px;
    height: 34px;
    font-size: 23px;
  }

  .label-content-grid {
    padding: 0 20px 32px;
    gap: 26px;
  }

  .label-product-info h1 {
    font-size: 31px;
  }

  .label-section h2 {
    font-size: 21px;
  }

  .label-section p {
    font-size: 14px;
  }

  .label-actions {
    padding: 0 20px 36px;
    flex-direction: column;
  }

  .label-actions a {
    width: 100%;
  }

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

@media (max-width: 380px) {
  .no-image-brand {
    font-size: 19px;
  }

  .label-product-info h1 {
    font-size: 27px;
  }
}


/* Spreadsheet field sections */
.form-section-title {
  margin: 18px 0 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
}

.yellow-section {
  background: #fffbe5;
  color: #8a6500;
  border: 1px solid #f3df7b;
}

.blue-section {
  background: #eaf8ff;
  color: #075985;
  border: 1px solid #b8e5ff;
}

/* Ensure readonly web URL looks intentional */
#webUrl[readonly] {
  background: #f8f8f8;
  color: #666666;
  cursor: not-allowed;
}


/* Native form dropdown used for Bin Type */
.form-control,
.item-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #24161b;
  background: #ffffff;
  outline: none;
}

.form-control:focus,
.item-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.1);
}

.inactive-reason-box {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-top: 12px;
}

.table-note {
  margin-top: 5px;
  color: #7a1f1f;
  font-size: 12px;
  font-weight: 700;
}


/* Product detail page with top product image */
.with-hero-product {
  width: min(760px, 100%);
  background: #ffffff;
  margin: 0 auto;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.label-hero-image {
  width: 100%;
  height: clamp(250px, 38vw, 330px);
  background: #f8f8f8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.label-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-hero-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 76px;
  background: #fff7fb;
}

.image-brand-row {
  padding: 56px 20px 50px;
}

.image-detail-grid {
  grid-template-columns: 1fr 0.95fr;
  align-items: start;
}

.image-detail-grid .nutrition-image-card {
  align-self: start;
}

.image-detail-grid .nutrition-facts-image {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

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

  .image-detail-grid .nutrition-image-card {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .label-hero-image {
    height: 220px;
  }

  .image-brand-row {
    padding: 34px 16px 30px;
  }
}


/* SQL split support additions only */
.form-control,
.item-form select,
.admin-filters select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border, #f0cddd);
  border-radius: 16px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #24161b;
  background: #ffffff;
  outline: none;
}

.form-control:focus,
.item-form select:focus,
.admin-filters select:focus {
  border-color: var(--primary, #ec1687);
  box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.1);
}

.inactive-reason-box {
  width: 100%;
  border: 1px solid var(--border, #f0cddd);
  border-radius: 14px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-top: 12px;
}

.table-note {
  margin-top: 5px;
  color: #7a1f1f;
  font-size: 12px;
  font-weight: 700;
}


/* Conditional inactive reason field */
.conditional-inactive-reason {
  display: none;
}

.conditional-inactive-reason.visible {
  display: block;
}


/* Product detail desktop-only improvements; mobile label UI remains unchanged */
@media (min-width: 901px) {
  .label-page-body {
    background: #ffffff;
  }

  .label-detail-page {
    width: min(1080px, calc(100% - 64px));
    margin: 0 auto 60px;
  }

  .label-hero-image {
    height: 360px;
    border-radius: 0 0 0 0;
  }

  .label-brand-row {
    padding-top: 54px;
    padding-bottom: 48px;
  }

  .label-content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    gap: 56px;
    align-items: start;
    padding-left: 64px;
    padding-right: 64px;
  }

  .label-product-info h1 {
    max-width: 520px;
    line-height: 1.05;
  }

  .label-product-info p {
    font-size: 17px;
    line-height: 1.55;
  }

  .label-pink-rule {
    max-width: 440px;
  }

  .nutrition-image-card {
    display: flex;
    justify-content: center;
  }

  .nutrition-facts-image {
    max-width: 390px;
    width: 100%;
    max-height: 620px;
  }

  .label-actions {
    padding-left: 64px;
    padding-right: 64px;
  }
}

.extra-product-info {
  margin-top: 24px;
}

.extra-product-info p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.35;
  color: #4d4248;
}

.country-origin-text {
  color: #ec1687 !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

@media (max-width: 600px) {
  .extra-product-info p {
    font-size: 12px;
  }
}

/* PDF-style product details page based on approved nutrition webpage */
.label-page-body {
  background: #ffffff;
}

.nutrition-webpage {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
}

.nutrition-product-page {
  width: min(768px, 100%);
  margin: 0 auto;
  background: #ffffff;
  color: #130711;
}

.nutrition-site-header {
  height: 145px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.nutrition-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ec1687;
}
/* Product details logo image */
.nutrition-logo-img {
  width: 85px;
  height: 47px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.nutrition-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nutrition-site-header-centered {
  justify-content: center;
}

.nutrition-site-header-centered .nutrition-brand {
  margin: 0 auto;
}

.nutrition-menu-btn {
  display: none !important;
}

@media (max-width: 700px) {
  .nutrition-logo-img {
    width: 28px;
    height: 28px;
  }

  .nutrition-brand {
    gap: 8px;
  }

  .nutrition-site-header-centered {
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
  }
}

.nutrition-brand-text {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 1px;
}

.nutrition-menu-btn {
  width: 58px;
  height: 50px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  padding: 0;
}

.nutrition-menu-btn span {
  display: block;
  width: 55px;
  height: 4px;
  background: #171717;
  border-radius: 2px;
}

.nutrition-orange-line {
  width: 100%;
  height: 20px;
  background: #ff7a00;
}

.nutrition-hero-image {
  width: 100%;
  height: 300px;
  background: #f7f7f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nutrition-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nutrition-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  padding: 80px 48px 88px;
  align-items: start;
}

.nutrition-info-column {
  min-width: 0;
}

.nutrition-item-id {
  margin: 0 0 8px;
  color: #77787b;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 3px;
}

.nutrition-product-title {
  margin: 0;
  color: #000000;
  font-size: 31px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nutrition-pink-rule {
  width: 300px;
  max-width: 100%;
  height: 6px;
  background: #ec1687;
  margin: 12px 0 8px;
}

.nutrition-section h2 {
  margin: 0 0 14px;
  color: #ec1687;
  font-size: 21px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.6px;
}

.nutrition-section p {
  margin: 0;
  color: #40363d;
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 500;
}

.nutrition-allergen-text {
  margin-top: 28px;
}

.nutrition-allergen-text p {
  margin: 0;
  color: #ec1687;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.nutrition-extra-info {
  margin-top: 24px;
}

.nutrition-extra-info p {
  margin: 8px 0 0;
  color: #50464b;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
}

.nutrition-extra-info .country-origin-text,
.country-origin-text {
  color: #ec1687 !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.nutrition-facts-column {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.nutrition-facts-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
}

.nutrition-missing-text {
  width: 100%;
  min-height: 260px;
  border: 3px solid #000000;
  padding: 24px;
  text-align: center;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000000;
  background: #ffffff;
}

.label-not-found {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto;
  padding: 40px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #f0cddd;
  border-radius: 24px;
}

@media (min-width: 1000px) {
  .nutrition-product-page {
    width: min(1120px, calc(100% - 64px));
  }

  .nutrition-site-header {
    height: 120px;
    padding: 0 64px;
  }

  .nutrition-hero-image {
    height: 310px;
  }

  .nutrition-details-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 72px;
    padding: 90px 72px 100px;
  }

  .nutrition-product-title {
    font-size: 43px;
  }

  .nutrition-section h2 {
    font-size: 26px;
  }

  .nutrition-section p {
    font-size: 16px;
    line-height: 1.35;
  }

  .nutrition-allergen-text p {
    font-size: 15px;
  }

  .nutrition-facts-image {
    max-width: 360px;
  }
}

@media (max-width: 700px) {
  .nutrition-site-header {
    height: 118px;
    padding: 0 28px;
  }

  .nutrition-brand-text {
    font-size: 20px;
  }

  .nutrition-logo-mark {
    font-size: 24px;
  }

  .nutrition-menu-btn {
    width: 44px;
  }

  .nutrition-menu-btn span {
    width: 42px;
    height: 3px;
  }

  .nutrition-hero-image {
    height: 210px;
  }

  .nutrition-details-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 58px 32px 70px;
  }

  .nutrition-facts-column {
    justify-content: flex-start;
  }

  .nutrition-facts-image {
    max-width: 360px;
  }
}

@media (max-width: 480px) {
  .nutrition-site-header {
    height: 100px;
    padding: 0 20px;
  }

  .nutrition-brand-text {
    font-size: 16px;
    letter-spacing: 0.5px;
  }

  .nutrition-orange-line {
    height: 6px;
  }

  .nutrition-hero-image {
    height: 180px;
  }

  .nutrition-details-grid {
    padding: 44px 24px 56px;
  }

  .nutrition-item-id {
    font-size: 22px;
  }

  .nutrition-product-title {
    font-size: 28px;
  }

  .nutrition-pink-rule {
    height: 5px;
  }

  .nutrition-section h2 {
    font-size: 20px;
  }

  .nutrition-section p,
  .nutrition-allergen-text p {
    font-size: 12.5px;
  }

  .nutrition-facts-image {
    max-width: 100%;
  }
}