/* CHOCOLOCO components — chocolate bars, shop, cart, product wrapper */
.choco-bar {
  display: block;
  position: relative;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  background: transparent;
  text-decoration: none;
}
.choco-bar .paper {
  border-radius: 10px 10px 18px 18px;
  padding: 10px 10px 14px;
  box-shadow: 0 10px 0 rgba(0,0,0,.18), var(--shadow);
  position: relative;
  overflow: hidden;
}
.choco-bar .paper::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 8px, transparent 8px 16px);
}
.choco-bar .choco-photo {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 0 8px;
  background: #3e1f10;
  box-shadow: 0 6px 0 rgba(0,0,0,.18);
}
.shape-mini .choco-photo { height: 88px; }
.shape-square .choco-photo { height: 150px; }
.shape-chunky .choco-photo { height: 168px; }
.shape-filled .choco-photo { height: 140px; }
.shape-layered .choco-photo { height: 148px; }
.shape-long .choco-photo { height: 118px; }

.choco-bar .foil-name {
  font-family: "Lilita One", cursive;
  font-size: 15px;
  line-height: 1.15;
  margin: 8px 4px 10px;
}
.choco-bar .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; }
.choco-bar .badge {
  position: absolute; top: 14px; right: 10px;
  background: #ec407a; color: #fff; font-size: 10px; font-weight: 800;
  padding: 4px 8px; border-radius: 999px; z-index: 2;
}
.choco-bar .actions { display: flex; gap: 6px; margin-top: 8px; }

.shape-long .choco-photo { height: 118px; }
.shape-mini .choco-photo { height: 88px; }
.shape-square .choco-photo { height: 150px; }
.shape-chunky .choco-photo { height: 168px; }
.shape-filled .choco-photo { height: 140px; }
.shape-layered .choco-photo { height: 148px; }

.bar-actions button, .icon-heart, .add-cart {
  border: 0; cursor: pointer; border-radius: 999px; font-weight: 800;
}
.icon-heart {
  width: 36px; height: 36px; background: #fff; color: #ec407a;
}
.icon-heart.on { background: #ec407a; color: #fff; }
.add-cart {
  flex: 1; background: #2b1a14; color: #ffe082; padding: 8px 10px;
}

/* conveyor item */
.conv-item { width: 190px; flex: 0 0 190px; }

/* wall placements */
.wall-long { grid-column: span 4; grid-row: span 2; }
.wall-mini { grid-column: span 2; grid-row: span 1; }
.wall-square { grid-column: span 3; grid-row: span 2; }
.wall-chunky { grid-column: span 5; grid-row: span 2; }
.wall-filled { grid-column: span 3; grid-row: span 2; }
.wall-layered { grid-column: span 4; grid-row: span 2; }

/* box cell */
.box-cell {
  background: #fff6e4; color: var(--cocoa); border-radius: 12px; padding: 10px;
  min-height: 180px;
}
.box-cell img {
  width: 100%; height: 110px; object-fit: cover; border-radius: 8px;
}

/* recipe card */
.recipe-card {
  background: #fffaf5;
  border: 3px dashed #d4a017;
  border-radius: 18px;
  padding: 16px;
  transform: rotate(-1.2deg);
}
.recipe-card:nth-child(even) { transform: rotate(1.2deg); }

/* wrapper note reviews */
.wrapper-note {
  background: #fff;
  padding: 18px 16px 22px;
  border-radius: 6px 6px 22px 22px;
  box-shadow: 0 10px 0 rgba(0,0,0,.12);
  position: relative;
  transform: rotate(-1deg);
}
.wrapper-note:nth-child(2n) { transform: rotate(1deg); }
.wrapper-note:nth-child(3n) { transform: rotate(-2deg); }
.wrapper-note .stars { color: #d4a017; letter-spacing: 2px; }

/* shop */
.shop-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  padding: 20px 0 80px;
}
.filters {
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: sticky; top: 100px;
}
.filters h3 { font-size: 18px; margin: 12px 0 8px; }
.filters label { display: flex; gap: 8px; align-items: center; font-weight: 700; padding: 4px 0; cursor: pointer; }
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shop-grid.masonry {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
select.filter-sort {
  border: 2px solid #f3d19a; border-radius: 999px; padding: 8px 14px; font-weight: 800; background: #fff;
}

/* product page — chocolate wrapper */
.product-wrap-page {
  padding: 30px 0 80px;
}
.wrapper-shell {
  background: linear-gradient(#c62828, #8b0000);
  border-radius: 18px;
  padding: 18px 18px 40px;
  box-shadow: 0 28px 0 #4a0000, var(--shadow);
  color: #fff8e7;
  position: relative;
}
.wrapper-shell .brand-strip {
  text-align: center; letter-spacing: .4em; font-weight: 800; font-size: 12px; opacity: .8;
}
.wrapper-inner {
  background: #fffaf5; color: var(--cocoa);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  padding: 24px;
  margin-top: 10px;
}
.product-photo {
  border-radius: 16px; overflow: hidden; min-height: 360px;
  background: #3e2723;
  position: relative;
}
.product-photo img { width: 100%; height: 420px; object-fit: cover; }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.qty-row button {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: #ffe082; font-weight: 800; cursor: pointer;
}
.detail-tabs { margin-top: 40px; display: grid; gap: 18px; }
.detail-block {
  background: #fff; border-radius: 24px; padding: 22px;
  box-shadow: var(--shadow);
}
.also-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }

/* cart / wishlist */
.basket {
  background: #fff6e4; border-radius: 28px; padding: 18px; box-shadow: var(--shadow);
}
.basket-row {
  display: grid; grid-template-columns: 90px 1fr auto auto auto;
  gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed #f3d19a;
}
.basket-row button {
  border: 0; background: #ffe082; border-radius: 999px; font-weight: 800;
  cursor: pointer; padding: 6px 10px;
}
.basket-row img { width: 90px; height: 70px; object-fit: cover; border-radius: 10px; }
.summary-card {
  background: #2b1a14; color: #fff6e4; border-radius: 24px; padding: 22px;
}
.cart-layout { display: grid; grid-template-columns: 1.4fr .7fr; gap: 22px; padding-bottom: 80px; }

/* FAQ */
.faq-item {
  background: #fff; border-radius: 18px; margin-bottom: 10px; overflow: hidden;
  box-shadow: 0 6px 0 rgba(212,160,23,.2);
}
.faq-item button {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 16px 18px; font-weight: 800; font-size: 18px; cursor: pointer;
}
.faq-item .ans { display: none; padding: 0 18px 16px; line-height: 1.6; }
.faq-item.open .ans { display: block; }

/* forms */
.form-grid { display: grid; gap: 12px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; border: 2px solid #f3d19a; border-radius: 14px; padding: 12px 14px; font-weight: 700;
  background: #fff;
}
.form-grid textarea { min-height: 140px; resize: vertical; }
.field-error { color: #c62828; font-size: 13px; font-weight: 800; display: none; }
.field-error.show { display: block; }

/* factory process */
.process-scroll {
  display: flex; gap: 18px; overflow-x: auto; padding: 10px 0 24px;
  scroll-snap-type: x mandatory;
}
.process-card {
  flex: 0 0 min(320px, 80vw);
  scroll-snap-align: start;
  background: #fff; border-radius: 24px; padding: 18px;
  box-shadow: var(--shadow);
  min-height: 280px;
}
.process-card .num {
  font-family: "Lilita One", cursive; font-size: 42px; color: #c47a3a;
}
.gear {
  width: 54px; height: 54px; border-radius: 50%;
  border: 8px dotted #d4a017;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* timeline */
.timeline {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  margin: 30px 0;
}
.tl-step {
  background: #fff; border-radius: 18px; padding: 14px; text-align: center; font-weight: 800;
  position: relative;
}
.tl-step::after {
  content: "→"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  color: #c47a3a;
}
.tl-step:last-child::after { display: none; }

/* contact split */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 80px; }
.info-tile { background: #fff; border-radius: 20px; padding: 16px; margin-bottom: 10px; box-shadow: var(--shadow); }

/* empty states */
.empty {
  text-align: center; padding: 50px 16px; background: #fff; border-radius: 24px;
}

/* size bars visual */
.size-link { text-align: center; color: var(--cocoa); font-weight: 800; }
.size-link img, .size-photo {
  display: block;
  margin: 0 auto 8px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #3e1f10;
}

.social-tile {
  border-radius: 18px; padding: 16px; min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff8e7; font-weight: 800;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.social-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,26,20,.15), rgba(43,26,20,.72));
}
.social-tile > * { position: relative; z-index: 1; }

.builder-live-bar {
  width: 100%; height: 220px; margin: 20px auto; border-radius: 16px;
  overflow: hidden;
  background: #3e1f10;
  position: relative;
}
.builder-live-bar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.crunch-hero {
  background: #ffcc80; border-radius: 28px; padding: 24px; min-height: 240px;
  grid-row: span 2;
  background-size: cover;
  background-position: center;
  color: #fff8e7;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.mag-card .img {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.float-pic {
  position: absolute; pointer-events: none;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(0,0,0,.35);
  animation: floaty 7s ease-in-out infinite;
}
.like { background: transparent; border: 0; cursor: pointer; font-weight: 800; }

.price { font-family: "Lilita One", cursive; }
.muted { opacity: .75; }
.center { text-align: center; }
.mt { margin-top: 12px; }
.section-kicker {
  text-align: center; letter-spacing: .28em; font-weight: 800; font-size: 12px; opacity: .7;
}

.photo-frame {
  border-radius: 30px;
  overflow: hidden;
  min-height: 280px;
  background: #3e2723;
  box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

.lab-copy { max-width: 640px; line-height: 1.7; font-size: 18px; }

.wish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 80px; }

.wrapper-preview {
  margin: 12px auto 0; width: 240px; border-radius: 8px; padding: 10px;
  font-weight: 800;
}

.stars-gold { color: #d4a017; }

.category-chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0 28px; }
.category-chip-cloud a {
  background: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 800;
  box-shadow: 0 4px 0 rgba(0,0,0,.08);
}

.alert-ok { background: #e8f5e9; color: #1b5e20; padding: 12px; border-radius: 12px; display: none; font-weight: 800; }
.alert-ok.show { display: block; }
