@font-face {
  font-family: 'Shelten';
  src: url('fonts/Shelten.ttf');
}
body {
  font-family: 'Times New Roman', serif;
  text-align: center;
  background-color: #fafafa;
}

h1 {
font-family: 'Shelten', serif;
  margin-top: 40px;
}

img {
  width: 200px;
  height: auto;
  margin: 10px;
  border-radius: 10px;
}
.cake-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cake {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.tier {
  --cake-color: #f9dad8;
  --cake-border: #f4c3c6;

  position: relative;
  width: 220px;
  height: 70px;
  margin: 0;

  background: var(--cake-color);
  border: 2px solid var(--cake-border);
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  font-size: 20px;

  z-index: 1;
}

.tier::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 6px;
  width: calc(100% - 12px);
  height: 20px;

  background: var(--cake-color);
  border: 2px solid var(--cake-border);

  border-radius: 50%;
  z-index: 2;
}

.tier::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 6px;
  width: calc(100% - 12px);
  height: 20px;

  background: var(--cake-color);
  border: 2px solid var(--cake-border);

  border-radius: 50%;
  clip-path: inset(50% 0 0 0);

  z-index: 0;
}

.filling-line {
  display: none;
}

#customizer-visual .filling-line {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 23px;
  background: #fffaf0;
  z-index: 1;

  clip-path: polygon(
  0% 28%,
  10% 45%,
  25% 60%,
  50% 70%, 
  75% 60%,
  90% 45%,
  100% 28%,
  100% 55%,
  90% 72%,
  75% 85%,
  50% 92%,
  25% 85%,
  10% 72%,
  0% 55%
);
}

#customizer-visual .filling-top {
  top: 24%;
}

#customizer-visual .filling-bottom {
  top: 54%;
}

/* Tier labels */
.tier span {
  position: relative;
  z-index: 3;
}

#customizer-visual .tier span {
  display: none;
}

#cake-visuals {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin-top: 20px;
}

.visual-card {
  flex: 1;
  max-width: 300px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  padding: 20px;

  border-right: 1px solid rgba(0,0,0,0.06);

  justify-content: space-between;
  min-height: 300px;
}

.visual-label {
  text-align: center;
  line-height: 1.4;
}

.tiered-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tiered-visual .tier + .tier {
  margin-top: -9 px;
}

.tiered-visual .tier {
  z-index: calc(100 - var(--i));
}

.single-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.combo-visual {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.sheet {
  height: 40px;
  border-radius: 8px;
  background: #f3d8b6;
  border: 2px solid #caa27c;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  line-height: 40px;
  padding: 0 10px;
}

.customize-btn {
  margin-top: auto;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

.customize-btn:hover {
  background: #f5f5f5;
}

.servings {
  font-size: 0.95rem;
  color: #666;
}

.cake-name {
  margin-top: 4px;
}

#customizer {
  margin: 30px auto;
  max-width: 700px;
  padding: 20px;
  text-align: center;
}

#customizer-visual {
  margin: 20px 0;
}
#customizer {
  margin: 40px auto;
  max-width: 1200px;
  padding: 20px;
}

#customizer-layout {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 32px;
  align-items: start;
}

.customizer-panel {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 24px;
  padding: 24px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

#customizer-left h3,
#customizer-right h3 {
  text-align: center;
  margin-top: 0;
}

#customizer-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#customizer-visual {
  margin: 20px auto 10px;
}

#total-servings {
  margin-top: 20px;
  font-weight: bold;
}

#back-btn {
  margin-bottom: 20px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

#customizer-right label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: bold;
  color: #4d4d4d;
}

#customizer-right select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
}

#customizer-layout {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 32px;
  align-items: stretch;
}

#customizer-left-wrap {
  position: relative;
  height: 100%;
}

#customizer-left {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

#customizer-left.customizer-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.back-btn {
  position: absolute;
  top: -70px;
  left: 0;

  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  font-size: 14px;
}

.back-btn:hover {
  background: #f5f5f5;
}

.order-section {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.tier-summary {
  margin-top: 10px;
  padding-left: 10px;
}

.tier-summary p {
  margin: 2px 0;
  font-size: 16px;
}

.tier-summary p strong {
  color: #6495ed; /* tier titles */
}

.tier-summary p:not(:first-child) {
  color: #4d4d4d; /* Flavor + Filling */
}

.tier-summary span {
  color: #222; /* darker for selected values */
  font-weight: 500;
}

.tier-summary span.price-inline,
.tier-summary span.price-upcharge {
  color: #6494ed;
}
.active-tier {
  outline: 3px solid #6495ed;
  outline-offset: 4px;
}
.active-tier-row {
  border-left: 3px solid #6494ed;
  padding-left: 8px;
}

/* price left justified */
.tier-summary p {
  position: relative;
  padding-right: 60px;
}

.price-upcharge,
.price-inline {
  color: #6494ed;
  font-size: 0.9em;
  position: absolute;
  right: 0;
}