:root {
  --ink: #161211;
  --soft-ink: #5f5450;
  --cream: #f7e8e8;
  --butter: #f6dfb3;
  --gold: #c48b36;
  --rose: #c84f68;
  --cocoa: #4a2c25;
  --paper: #ffffff;
  --line: #eadbc8;
  --shadow: 0 24px 60px rgba(73, 44, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

main {
  margin-top: 0.5cm;
}

a {
  color: inherit;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  position: relative;
  min-height: 57px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 3px clamp(18px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(22, 18, 17, 0.06);
  backdrop-filter: blur(12px);
}

.desktop-nav,
.right-nav,
.logo {
  display: flex;
  align-items: center;
}

.desktop-nav {
  gap: clamp(18px, 2.2vw, 34px);
  min-width: 0;
}

.right-nav {
  justify-content: flex-end;
}

.desktop-nav a,
.desktop-nav button {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.desktop-nav a:hover,
.desktop-nav button:hover {
  color: var(--cocoa);
}

.nav-dropdown {
  position: relative;
  padding: 12px 0;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 35;
  width: min(620px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  border: 1.5px solid rgba(22, 18, 17, 0.12);
  border-radius: 8px;
  background: #fffaf4;
  box-shadow: 0 26px 66px rgba(73, 44, 34, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.dropdown-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-panel h3 {
  margin: 0 0 12px;
  color: var(--cocoa);
  font-size: 14px;
  line-height: 1.2;
}

.dropdown-panel a {
  display: block;
  padding: 5px 0;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.dropdown-panel > div + div {
  border-left: 1px solid rgba(22, 18, 17, 0.1);
  padding-left: 16px;
}

.baked-treats-panel {
  width: min(760px, calc(100vw - 36px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dropdown-panel a:hover {
  color: var(--rose);
}

.logo {
  grid-column: 2;
  justify-self: center;
  gap: 9px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  z-index: 2;
}


.logo-mark {
  display: grid;
  width: 24px;
  height: 30px;
  place-items: center;
  border: 0;
  line-height: 1;
}

.logo-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #191528;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo strong {
  display: block;
  color: #191528;
  font-family: "Pacifico", cursive;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.logo small {
  display: block;
  margin-top: 4px;
  color: #191528;
  font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.cart-button span {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  margin-left: 6px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--rose);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.search-pill {
  min-width: min(250px, 22vw);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--soft-ink) !important;
  background: #f5f3f1 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

.search-pill span:first-child {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.cart-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.mobile-cart {
  display: none !important;
  min-width: 42px;
  min-height: 42px;
  justify-self: end;
  padding: 0 8px;
  text-decoration: none;
}

.mobile-cart svg {
  width: 21px;
  height: 21px;
}

.signup-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px !important;
  border-radius: 999px;
  color: #111 !important;
  background: #ffdd00 !important;
  font-weight: 500 !important;
}

.icon-button,
.close-menu,
.close-search {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.mobile-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(340px, 84vw);
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(-105%);
  transition: transform 220ms ease;
}

body.menu-open .mobile-menu {
  transform: translateX(0);
}

.mobile-menu a,
.mobile-menu summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}

.mobile-menu > a::after {
  content: '>';
  font-family: monospace;
  font-size: 22px;
  color: var(--gold);
  font-weight: 800;
}

@media (min-width: 768px) {
  #stickyCartBar {
    display: none !important;
  }
}

.close-menu {
  align-self: flex-end;
  color: var(--soft-ink);
  font-size: 32px;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  margin-bottom: -10px;
  transition: color 150ms ease;
}

.close-menu:hover {
  color: var(--rose);
}

.mobile-menu details {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.mobile-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
}

.mobile-menu details[open] summary::after {
  content: "-";
}

.mobile-menu details a {
  display: block;
  margin: 10px 0 0 14px;
  color: var(--soft-ink);
  font-size: 15px;
  font-weight: 500;
}

.mobile-menu h3 {
  margin: 18px 0 4px 14px;
  color: var(--cocoa);
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100vh - 57px);
  display: grid;
  align-items: center;
  padding: 96px clamp(18px, 5vw, 74px);
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.admin-home-text {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.admin-home-text h1 {
  color: var(--cocoa);
}

.admin-home-text p:last-child {
  max-width: 560px;
  color: var(--soft-ink);
  font-size: 18px;
  line-height: 1.65;
}

.hero-copy {
  max-width: 680px;
}

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

.hero .eyebrow {
  color: var(--rose);
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.hero-copy p {
  max-width: 600px;
  color: var(--soft-ink);
  font-size: 19px;
  line-height: 1.65;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  color: var(--paper);
  background: var(--rose);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.primary-link.dark {
  background: var(--cocoa);
}

.section {
  padding: 82px clamp(18px, 5vw, 74px);
}

.section-title {
  max-width: 720px;
  margin-bottom: 34px;
}

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

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

.cake-menu-card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cake-menu-card h3 {
  margin-bottom: 18px;
  color: var(--cocoa);
  font-size: 24px;
}

.cake-menu-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cake-menu-card li {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(234, 219, 200, 0.8);
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.35;
}

.cake-menu-card li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-added-products {
  margin-top: 28px;
}

.admin-added-products:empty {
  display: none;
}

.home-product-menu {
  margin-top: 0;
}

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

.order-category {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.order-category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(234, 219, 200, 0.8);
}

.order-category-title h3 {
  margin: 0;
  color: var(--cocoa);
  font-size: 20px;
  line-height: 1.2;
}

.order-category-title span {
  flex: 0 0 auto;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 800;
}

.order-item-list {
  display: grid;
  gap: 0;
}

.order-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 12px 18px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(234, 219, 200, 0.72);
}

.order-item:last-child {
  border-bottom: 0;
}

.order-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--cream);
}

.order-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-thumb.missing-image::before {
  content: "Cake";
  color: var(--cocoa);
  font-size: 12px;
  font-weight: 900;
}

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

.order-item strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.order-item small {
  margin-top: 4px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.order-item em {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--cocoa);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.order-item:hover {
  background: #fffaf4;
}

.admin-added-title {
  margin-top: 20px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}

.product-info {
  padding: 22px;
}

.product-info p,
.custom-copy p,
.story-content p,
.faq p,
.footer p {
  color: var(--soft-ink);
  line-height: 1.62;
}

.add-to-cart {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 1px solid var(--cocoa);
  border-radius: 8px;
  color: var(--cocoa);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.add-to-cart:hover {
  color: var(--paper);
  background: var(--cocoa);
}

.desserts {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  gap: 32px;
  align-items: center;
  background: var(--butter);
}

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

.dessert-list span {
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.testimonials {
  background: var(--paper);
}

.testimonial-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 760px) auto;
  gap: 18px;
  align-items: center;
}

.testimonial-card {
  min-height: 220px;
  display: grid;
  align-content: center;
  margin: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.testimonial-card p {
  font-size: 22px;
  line-height: 1.55;
}

.testimonial-card cite {
  color: var(--cocoa);
  font-style: normal;
  font-weight: 800;
}

.slider-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.custom-cakes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: stretch;
  background: var(--cream);
}

.custom-copy {
  display: grid;
  align-content: center;
  padding: 82px clamp(18px, 5vw, 74px);
}

.custom-cakes img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.story {
  background: var(--paper);
}

.story-content {
  max-width: 820px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--paper);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 12px 0 0;
}

.contact {
  background: var(--butter);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(74, 44, 37, 0.2);
  border-radius: 8px;
  padding: 14px 15px;
  background: var(--paper);
}

.contact-form textarea,
.form-button,
.form-status {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 24px;
  color: var(--cocoa);
  font-weight: 800;
}

.footer {
  margin-top: 24px;
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 32px clamp(18px, 4vw, 40px);
  color: #191528;
  background: #f7f3e8;
}

.copyright {
  color: #191528;
  font-size: 15px;
  font-weight: 500;
}

.copyright {
  margin: 0;
}

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

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.social-links span {
  color: #191528;
  font-size: 15px;
  font-weight: 500;
}

.social-links a {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #191528;
  text-decoration: none;
}

.social-links svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(340px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--cocoa);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-page {
  background: var(--cream);
}

.product-detail {
  min-height: calc(100vh - 177px);
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 72px clamp(18px, 5vw, 74px);
}

.product-image-panel img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-image-panel img[src=""] {
  display: none;
}

.image-placeholder {
  min-height: 440px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px;
  border: 1.5px dashed rgba(74, 44, 37, 0.28);
  border-radius: 8px;
  color: var(--soft-ink);
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.image-placeholder span {
  color: var(--cocoa);
  font-size: 22px;
  font-weight: 700;
}

.image-placeholder small {
  display: block;
  font-size: 14px;
}

.product-image-panel.has-image .image-placeholder {
  display: none;
}

.product-detail-panel {
  max-width: 620px;
}

.product-detail-panel h1 {
  margin-bottom: 16px;
  color: var(--cocoa);
  font-size: clamp(28px, 3.6vw, 40px);
}

.product-title-line {
  width: 100px;
  height: 3px;
  margin-bottom: 26px;
  background: var(--cocoa);
}

.product-main-price {
  margin-bottom: 30px;
  color: var(--cocoa);
  font-size: 20px;
  line-height: 1.2;
}

.product-order-box {
  max-width: 560px;
}

.option-row {
  display: grid;
  grid-template-columns: 80px minmax(220px, 280px);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--cocoa);
  font-size: 14px;
}

.option-row select,
.note-label input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dedbd8;
  border-radius: 0;
  padding: 0 12px;
  color: var(--cocoa);
  background: #f7f7f7;
  font: inherit;
}

.option-row select:focus,
.note-label input:focus {
  outline: 2px dotted var(--cocoa);
  outline-offset: -4px;
}

.note-label {
  display: grid;
  gap: 10px;
  margin: 14px 0 20px;
  color: var(--cocoa);
  font-size: 18px;
  font-weight: 800;
}

.note-label input {
  background: var(--paper);
}

.quantity-block {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--cocoa);
  font-size: 18px;
  font-weight: 800;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 38px 68px 38px;
  width: max-content;
  border: 1px solid #ece8e5;
}

.quantity-stepper button,
.quantity-stepper input {
  width: 100%;
  height: 46px;
  border: 0;
  border-right: 1px solid #ece8e5;
  color: var(--cocoa);
  background: var(--paper);
  text-align: center;
}

.quantity-stepper button:last-child {
  border-right: 0;
}

.quantity-stepper button {
  cursor: pointer;
  font-size: 18px;
}

.quantity-stepper input {
  font-weight: 700;
}

.sold-out-button {
  width: min(280px, 100%);
  min-height: 48px;
  border: 0;
  border-radius: 3px;
  color: #ffd75c;
  background: #4b2023;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.product-extra-details {
  max-width: 560px;
  margin-top: 24px;
  border: 0;
  padding: 0;
  background: transparent;
}

.product-extra-details summary {
  color: var(--cocoa);
}

.product-extra-details ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--soft-ink);
  line-height: 1.6;
}

.cart-page {
  background: var(--cream);
}

.cart-shell {
  min-height: calc(100vh - 177px);
  padding: 72px clamp(18px, 5vw, 74px);
}

.cart-heading {
  margin-bottom: 30px;
}

.cart-heading h1 {
  color: var(--cocoa);
  font-size: clamp(34px, 4vw, 52px);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
}

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

.cart-item,
.cart-summary,
.empty-cart {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.cart-thumb {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f3e8;
}

.cart-thumb img,
.cart-thumb-placeholder {
  width: 100%;
  height: 100%;
}

.cart-thumb img {
  object-fit: cover;
}

.cart-thumb-placeholder {
  display: grid;
  place-items: center;
  color: var(--cocoa);
  font-size: 30px;
  font-weight: 800;
}

.cart-item-info h2 {
  margin-bottom: 6px;
  color: var(--cocoa);
  font-size: 20px;
}

.cart-item-info p,
.cart-item-info span,
.cart-item-info small,
.cart-item-meta span {
  display: block;
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.45;
}

.cart-item-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--cocoa);
}

.cart-item-meta button,
.clear-cart-button {
  border: 0;
  padding: 0;
  color: var(--rose);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.cart-summary {
  display: grid;
  gap: 16px;
  padding: 22px;
}

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

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid #dedbd8;
  border-radius: 4px;
  padding: 12px;
  color: var(--cocoa);
  background: #fffdfb;
  font: inherit;
}

.checkout-form .checkout-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.checkout-status {
  min-height: 22px;
  margin: 0;
  color: var(--cocoa);
  font-size: 14px;
  line-height: 1.4;
}

.continue-shopping {
  color: var(--cocoa);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.cart-summary h2 {
  margin-bottom: 4px;
  color: var(--cocoa);
  font-size: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--soft-ink);
}

.summary-row strong {
  color: var(--cocoa);
}

.checkout-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 3px;
  color: #ffd75c;
  background: #4b2023;
  text-decoration: none;
  font-weight: 700;
}

.empty-cart {
  padding: 28px;
}

.empty-cart h2 {
  color: var(--cocoa);
  font-size: 26px;
}

.admin-page {
  min-height: 100vh;
  padding: 72px clamp(18px, 5vw, 74px);
  background: var(--cream);
}

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

.admin-dashboard {
  display: grid;
  gap: 28px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--cocoa);
}

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

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

.admin-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: none;
}

.admin-card h1,
.admin-card h2,
.admin-top h1 {
  color: var(--cocoa);
}

.admin-top h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 52px);
}

.admin-card h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.admin-card form,
.admin-product-list,
.admin-orders {
  display: grid;
  gap: 14px;
}

.admin-card label {
  display: grid;
  gap: 8px;
  color: var(--cocoa);
  font-weight: 700;
}

.admin-card input,
.admin-card textarea,
.admin-card select {
  width: 100%;
  border: 1px solid #dedbd8;
  border-radius: 0;
  padding: 12px;
  color: var(--cocoa);
  background: #f7f7f7;
  font: inherit;
}

.admin-hint,
.admin-status {
  color: var(--soft-ink);
}

.admin-noscript {
  max-width: 620px;
  margin: 24px auto;
}

.admin-product-row,
.admin-order-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px minmax(220px, 1.2fr) 180px 120px 110px;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}

.admin-order-row {
  grid-template-columns: minmax(180px, 1fr) 120px 120px 120px;
  align-items: center;
}

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

.admin-pricing-field > span {
  color: var(--cocoa);
  font-size: 13px;
  font-weight: 800;
}

.admin-pricing-rows {
  display: grid;
  gap: 8px;
}

.admin-pricing-row {
  display: grid;
  grid-template-columns: minmax(68px, 0.8fr) minmax(90px, 1fr) 34px;
  gap: 8px;
}

.admin-pricing-row input {
  min-width: 0;
}

.admin-pricing-row button,
.admin-add-price {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cocoa);
  background: var(--paper);
  cursor: pointer;
  font-weight: 900;
}

.admin-add-price {
  width: 100%;
  padding: 0 10px;
  color: var(--paper);
  background: var(--cocoa);
}

.admin-product-row h3,
.admin-order-row h3 {
  margin-bottom: 4px;
  color: var(--cocoa);
  font-size: 18px;
}

.admin-product-row p,
.admin-order-row p {
  margin: 0;
  color: var(--soft-ink);
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .desktop-nav {
    display: none;
  }

  .logo {
    justify-self: center;
  }

  .mobile-cart {
    display: inline-flex !important;
    justify-self: end;
  }

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

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

@media (max-width: 760px) {
  .logo small {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    align-items: center;
  }

  .admin-home-text {
    display: none;
  }

  .product-section {
    padding-top: 0;
  }

  .desserts,
  .custom-cakes,
  .product-detail,
  .cart-layout,
  .contact-form,
  .admin-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .admin-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .admin-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-product-row,
  .admin-order-row {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
  }

  .admin-product-row button {
    width: 100%;
  }

  .footer,
  .social-links {
    justify-items: center;
    justify-content: center;
    text-align: center;
  }

  .testimonial-slider {
    grid-template-columns: 1fr;
  }

  .slider-button {
    width: 100%;
  }

  .custom-cakes img {
    min-height: 360px;
  }

  .cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

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

  .cart-item-meta {
    grid-column: 2;
    justify-items: start;
  }

  .mobile-order-menu {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .order-category {
    max-height: none;
  }

  .order-category-title {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--paper);
  }

  .order-item-list {
    max-height: none;
    overflow-y: visible;
  }

  .mobile-menu details[open] {
    max-height: min(520px, 72vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 540px) {
  .topbar {
    min-height: 76px;
    padding-inline: 14px;
  }

  .logo strong {
    font-size: 17px;
  }

  .logo-mark {
    width: 44px;
    height: 44px;
    font-size: 12px;
  }

  h1 {
    font-size: 42px;
  }

  .section,
  .custom-copy {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .product-grid,
  .cake-menu-grid,
  .dessert-list {
    grid-template-columns: 1fr;
  }
}

/* Black Forest product page */
.black-forest-page {
  background: #f8f7fb;
  color: #0d0824;
}

.black-forest-page .product-topbar {
  min-height: 56px;
  padding: 4px 40px;
  background: #ffffff;
  box-shadow: none;
}

.black-forest-page .desktop-nav {
  gap: 30px;
}

.black-forest-page .desktop-nav a {
  color: #17131f;
  font-size: 15px;
  font-weight: 500;
}

.black-forest-page .dropdown-panel h3 {
  color: var(--cocoa);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.black-forest-page .dropdown-panel a {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.black-forest-page .logo strong {
  color: #181329;
  font-size: 27px;
}

.black-forest-page .logo small {
  color: #181329;
  font-size: 11px;
}

.black-forest-page .cart-button span {
  background: #7439ee;
}

.black-forest-product {
  background: #f8f7fb;
}

.black-forest-detail {
  min-height: calc(100vh - 56px);
  grid-template-columns: minmax(320px, 436px) minmax(480px, 560px);
  justify-content: center;
  gap: 72px;
  align-items: center;
  padding: 78px clamp(24px, 7vw, 96px) 92px;
}

.black-forest-image-panel {
  justify-self: center;
  width: min(100%, 310px);
}

.black-forest-image-panel img {
  width: 100%;
  aspect-ratio: 1.02 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 26px 52px rgba(21, 12, 36, 0.11);
}

.black-forest-info {
  max-width: 560px;
}

.black-forest-info .eyebrow {
  margin-bottom: 10px;
  color: #7239ff;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.black-forest-info h1 {
  margin-bottom: 12px;
  color: #0d0824;
  font-size: clamp(34px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.12;
}

.black-forest-info .product-title-line {
  width: 100px;
  height: 3px;
  margin-bottom: 24px;
  background: #1d1531;
}

.black-forest-info .product-main-price {
  margin-bottom: 30px;
  color: #0d0824;
  font-size: 21px;
  font-weight: 600;
}

.black-forest-order {
  display: grid;
  gap: 18px;
}

.size-choice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #0d0824;
  font-size: 14px;
  font-weight: 600;
}

.size-choice-row > span {
  margin-right: 2px;
}

.size-choice-row label {
  cursor: pointer;
}

.size-choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-choice-row label span {
  min-width: 74px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd7f0;
  border-radius: 999px;
  color: #4d4260;
  background: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.size-choice-row input:checked + span {
  color: #ffffff;
  border-color: #0d0824;
  background: #0d0824;
  box-shadow: 0 10px 24px rgba(13, 8, 36, 0.16);
}

.black-forest-info .note-label {
  gap: 12px;
  margin: 0;
  color: #0d0824;
  font-size: 16px;
  font-weight: 900;
}

.black-forest-info .note-label input {
  min-height: 48px;
  border: 1px solid #ddd7f0;
  border-radius: 10px;
  padding: 0 17px;
  color: #0d0824;
  background: #ffffff;
  font-weight: 700;
}

.black-forest-info .note-label input::placeholder {
  color: #746f7d;
}

.black-forest-cart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 22px;
  margin-top: 4px;
}

.black-forest-info .quantity-block {
  gap: 10px;
  margin: 0;
  color: #0d0824;
  font-size: 16px;
}

.black-forest-info .quantity-stepper {
  grid-template-columns: 38px 68px 38px;
  overflow: hidden;
  border: 1px solid #ddd7f0;
  border-radius: 22px;
  background: #ffffff;
}

.black-forest-info .quantity-stepper button,
.black-forest-info .quantity-stepper input {
  height: 46px;
  color: #100a2b;
  border-right: 1px solid #ddd7f0;
  background: #ffffff;
  font-weight: 900;
}

.black-forest-info .quantity-stepper button:last-child {
  border-right: 0;
}

.black-forest-info .sold-out-button {
  width: 220px;
  min-height: 48px;
  border-radius: 999px;
  color: #ffffff;
  background: #0d0824;
  box-shadow: 0 12px 22px rgba(13, 8, 36, 0.22);
  font-size: 16px;
}

.black-forest-info .product-extra-details {
  margin-top: 24px;
  color: #0d0824;
  font-size: 16px;
  font-weight: 900;
}

.black-forest-info .product-extra-details summary {
  color: #0d0824;
}

@media (max-width: 1180px) {
  .black-forest-detail {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 52px;
  }

  .black-forest-page .logo strong {
    font-size: clamp(19px, 1.8vw, 24px);
  }

  .black-forest-info {
    justify-self: center;
    width: min(100%, 620px);
  }
}

@media (max-width: 540px) {
  .black-forest-page .product-topbar {
    padding-inline: 14px;
  }

  .black-forest-page .logo strong {
    font-size: 17px;
  }

  .black-forest-page .logo small {
    display: none;
  }

  .black-forest-detail {
    padding-inline: 18px;
  }

  .size-choice-row label span {
    min-width: 66px;
  }

  .black-forest-info .sold-out-button {
    width: 100%;
  }
}
