/* Mobile layout stays in a single column until the desktop direction is approved. */
.visual-review {
  --surface: #3b211e;
  --petal: #fad4de;
  background: var(--surface);
  font-family: system-ui, sans-serif;
}
html[lang="ar"] .visual-review {font-family: Alexandria}
html[lang="ar"] .visual-review :is(button, input, select, textarea, .brand, .hero h1 em) {font-family: inherit}
.font-error {background:#fff8ee;color:#773028;padding:12px;text-align:center}
.visual-review .top {font-size:.67rem;padding:6px 12px}
.visual-review .preview-mark {font-size:.66rem;padding:5px 10px}
.visual-review .nav-wrap {
  max-width:520px;
  grid-template-columns:1fr auto;
  padding:6px 16px 0;
  gap:4px 8px;
}
.visual-review .brand {position:relative;font-size:1rem;gap:6px}
.visual-review .brand img {width:clamp(116px,43vw,160px);height:43px;object-fit:cover;object-position:center;border-radius:8px}
.visual-review .brand img.brand-ornament {
  position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:100%;height:auto;border-radius:0;pointer-events:none;
}
.visual-review .tools {grid-column:2;gap:8px}
.visual-review .tools button {min-height:44px;padding-inline:9px;font-size:.74rem}
.visual-review .nav-wrap nav {grid-column:1/-1;grid-row:2;font-size:.8rem;gap:26px}
.visual-review .nav-wrap nav a {display:flex;align-items:center;min-height:44px}
.visual-review main {width:min(100%,520px);margin-inline:auto}
.visual-review .hero {background:radial-gradient(ellipse at 50% 62%,#613432,transparent 70%);border-bottom:0}
.visual-review .hero-inner {display:flex;flex-direction:column;align-items:center;gap:0;padding:23px 16px 21px}
.visual-review .hero-copy {display:contents}
.visual-review .hero h1 {order:0;margin:0;text-align:center;font-size:clamp(1.65rem,7vw,2.4rem);line-height:1.3;color:var(--petal)}
.visual-review .hero h1 em {display:inline;font-size:inherit;font-style:normal;letter-spacing:0;color:#f48fb1}
.visual-review .hero p {order:1;margin:5px 0 0;text-align:center;font-size:.88rem}
.visual-review .hero-image {order:2;max-width:320px;width:100%;height:clamp(220px,68vw,270px);aspect-ratio:auto;margin:5px 0 8px}
.visual-review .hero-image::before {inset:11% 16%;border:1px solid #fad4de42;border-radius:50%}
.visual-review .hero-image::after {content:none}
.visual-review .hero-image .hero-food {position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
.visual-review .catalog {padding:24px 16px 40px}
.visual-review .catalog h2 {font-size:1.22rem;margin:0 0 13px}
.visual-review .product-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.visual-review .product-card {
  display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:0;min-width:0;overflow:hidden;
  border-radius:16px;background:var(--petal);
  scroll-margin-block-start:16px;
}
.visual-review .product-card::before {content:none}
.visual-review .product-card:target {outline:3px solid #fff8ee;outline-offset:2px}
.visual-review .product-card .preview-food {
  width:100%;height:auto;aspect-ratio:1.16;object-fit:cover;
  border-radius:0;filter:none;
}
.visual-review .card-summary {flex:1;padding:9px 10px 11px;gap:7px}
.visual-review .card-summary h3 {margin:0;font-size:.86rem;line-height:1.5}
.visual-review .card-summary .unit-price {margin-block-start:auto;font-size:.68rem}
.visual-review .card-summary .unit-price strong {display:block;font-size:1rem;color:var(--surface)}
.visual-review .choose-box {padding:6px 5px;min-height:44px;background:var(--surface);font-size:.73rem}
.visual-review .box-dialog {width:min(430px,calc(100% - 24px))}
.visual-review .box-dialog .product-info {text-align:start}
.visual-review .nav-wrap :focus-visible {outline-color:var(--petal)}
@media(max-width:365px) {
  .visual-review .nav-wrap,.visual-review .hero-inner {padding-inline:12px}
  .visual-review .catalog {padding-inline:12px}
}
.visual-review .hero-inner {padding-block:12px 14px}
.visual-review .hero h1 {font-size:clamp(12px,5.2vw,28px);white-space:nowrap;letter-spacing:normal}
.visual-review .hero-image {height:clamp(160px,47vw,198px);margin:0 0 5px}
.visual-review .hero-image::before {inset:13% 24%}
.visual-review .catalog {padding-block:16px 22px}
.visual-review .product-grid {row-gap:16px}
.visual-review .product-card {position:relative;isolation:isolate;background:transparent;overflow:visible}
.visual-review .product-card::before {content:"";inset:52px 0 0}
.visual-review .product-card .preview-food {
  display:block;width:100%;height:120px;aspect-ratio:auto;
  object-fit:contain;filter:drop-shadow(0 7px 7px #3b211e54);
}
.visual-review .card-summary {padding:4px 10px 10px}
.packaging {padding:16px 16px 28px}
.packaging h2 {margin:0 0 12px;color:#fad4de;font-size:1.12rem}
.packaging-photos {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.packaging-photos figure {margin:0;min-width:0}
.packaging-photos img {display:block;width:100%;height:auto;aspect-ratio:1.28;object-fit:cover;border-radius:12px}
.packaging-photos figcaption {margin-top:5px;color:#f2d4ce;font-size:.75rem}
.box-dialog .product-fields {grid-template-columns:minmax(0,1fr);gap:12px}
.box-stepper {display:inline-grid;grid-template-columns:44px minmax(36px,auto) 44px;align-items:center;gap:8px;text-align:center}
.box-stepper button {width:44px;height:44px;padding:0;font-size:1.15rem}
.box-stepper button:disabled {opacity:.5;cursor:default}
.box-quantity {font-weight:700}
.add-toast {
  box-sizing:border-box;min-height:34px;padding:5px 12px;text-align:center;
  background:#f48fb1;color:#3b211e;font-size:.72rem;font-weight:700;
  opacity:0;transform:translateY(-3px);
  transition:opacity .18s ease,transform .18s ease;pointer-events:none;
}
.add-toast.is-visible {opacity:1;transform:translateY(0)}
.visual-review .site-header {position:sticky;top:0;z-index:10}
.visual-review :is(#products,#packaging,.product-card) {scroll-margin-block-start:132px}
.visual-review .box-stepper {direction:ltr;grid-auto-flow:column}
.box-stepper > :first-child {grid-column:1}
.box-stepper > :nth-child(2) {grid-column:2}
.box-stepper > :nth-child(3) {grid-column:3}
.visual-review #cartButton.cart-updated {
  animation:sweet-cart-pulse .46s ease-out, sweet-cart-ring .66s ease-out;
}
.visual-review .cart-updated #cartCount {animation:sweet-count-pulse .36s ease-out}
@keyframes sweet-cart-pulse {0%,100% {transform:scale(1)} 40% {transform:scale(1.055)}}
@keyframes sweet-cart-ring {0% {box-shadow:0 0 0 0 #f48fb199} 100% {box-shadow:0 0 0 8px #f48fb100}}
@keyframes sweet-count-pulse {0%,100% {transform:scale(1)} 40% {transform:scale(1.22)}}
@media(prefers-reduced-motion:reduce) {
  .add-toast {transform:none;transition:none}
  .visual-review #cartButton.cart-updated,.visual-review .cart-updated #cartCount {animation:none}
}

/* Keep the header compact; reserve its feedback lane so it cannot cover controls. */
.visual-review .nav-wrap {padding-block:5px;grid-template-rows:auto}
.visual-review :is(#products,#packaging,.product-card) {scroll-margin-block-start:102px}
.visual-review #product-large-donut .preview-food,
.visual-review #product-large-filled-donut .preview-food {height:138px}
.visual-review #product-large-cinnamon .preview-food {scale:1.12}

html[lang="ar"] .visual-review .box-stepper > :first-child {grid-column:3;grid-row:1}
html[lang="ar"] .visual-review .box-stepper > :nth-child(3) {grid-column:1;grid-row:1}
.visual-review .box-stepper > :nth-child(2) {grid-row:1}
.add-toast {background:#ffafd0;color:#3b211e}
.add-toast-bottom {
  position:fixed;z-index:10;bottom:max(8px,env(safe-area-inset-bottom));
  inset-inline:12px;width:fit-content;max-width:calc(100% - 24px);margin-inline:auto;
  border-radius:10px;box-shadow:0 3px 14px #1e0b1066;transform:translateY(6px);
}
@media(prefers-reduced-motion:reduce) {.add-toast-bottom {transform:none}}
.visual-review #cartCount {display:inline-grid;place-items:center}
@keyframes sweet-cart-pulse {0%,100% {transform:scale(1)} 35% {transform:scale(1.10);background:#6b3047}}
@keyframes sweet-cart-ring {0% {box-shadow:0 0 0 2px #ffafd0} 100% {box-shadow:0 0 0 8px #ffafd000}}
@keyframes sweet-count-pulse {0%,100% {transform:scale(1)} 38% {transform:scale(1.4)}}

.pack-track {
  display:flex;gap:10px;max-width:100%;overflow-x:auto;
  scroll-snap-type:x mandatory;scrollbar-width:none;padding-block:4px;
}
.pack-track::-webkit-scrollbar {display:none}
.pack-track::after {content:'';flex:0 0 calc(18% - 20px)}
.pack-tile {flex:0 0 82%;min-width:0;padding:0;scroll-snap-align:start;border-radius:14px;background:#4d2b28;overflow:hidden}
.pack-tile img {width:100%;height:clamp(170px,62vw,310px);display:block;object-fit:contain}
.pack-viewer form button {min-width:44px;min-height:44px;padding:0;border-radius:12px;background:#fad4de;color:#3b211e;font-size:1.35rem}
.pack-viewer {width:min(92vw,740px);max-height:90dvh;padding:10px 12px 14px;border:1px solid #f48fb1;border-radius:16px;background:#3b211e;color:#fad4de;position:fixed;inset:0;margin:auto}
.pack-viewer::backdrop {background:#160a09da}
.pack-viewer form {display:flex;justify-content:flex-end;margin-bottom:8px}
.pack-viewer img {display:block;width:100%;height:auto;max-height:62dvh;object-fit:contain}
.pack-viewer p {margin:6px 0;text-align:center;font-size:.83rem}

/* The campaign image has its own lighting and shadows. */
.visual-review .hero-image.hero-campaign {
  width:100%;max-width:440px;height:auto;aspect-ratio:3 / 2;
  margin:6px 0 3px;overflow:hidden;border-radius:14px;
}
.visual-review .hero-image.hero-campaign::before {content:none}
.visual-review .hero-image.hero-campaign .hero-food {object-fit:cover}

.visual-review :is(#products,#packaging,.product-card) {scroll-margin-block-start:64px}
.box-dialog {max-height:calc(100dvh - 24px);overflow:auto}
.flavor-picker {min-inline-size:0;padding:0 8px 6px;margin:4px 0;border:1px solid var(--border);border-radius:12px}
.flavor-picker legend {padding-inline:5px;font-weight:700}
.flavor-progress {margin:3px 0;font-size:.77rem}
.flavor-row {display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.77rem}
.flavor-row + .flavor-row {margin-block-start:4px}
.flavor-hint,.line-flavors {font-size:.72rem;margin:2px 0}
.product-bottom .add:disabled,#flavorEditorSave:disabled {opacity:.5;cursor:not-allowed}
.flavor-editor {width:min(92vw,385px);padding:14px;border:1px solid var(--border);border-radius:16px;background:#fff8ee;color:#3b211e}
.flavor-editor h2 {font-size:1rem}
.flavor-editor form:first-child {display:flex;justify-content:flex-end}
.flavor-editor form:first-child button {min-width:44px;min-height:44px}
.flavor-editor::backdrop {background:#160a0977}
.visual-review .cart-line img {object-fit:contain;border:0;border-radius:0;background:none}
.line-info {min-width:0}
.edit-flavors {min-height:44px;font-size:.72rem;margin-block:4px}
.pack-tile {border:0;border-radius:0;background:transparent}
.pack-viewer {border:0;border-radius:0;padding:8px 0;background:transparent}
.pack-viewer form {padding-inline:4px}
.pack-zoom-track {display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.pack-viewer .pack-zoom-track img {flex:0 0 100%;min-width:0;height:min(70dvh,650px);max-height:none;scroll-snap-align:start}
.sweet-contact {margin:0 16px 28px;padding:18px;border-radius:16px;background:#fad4de;color:#3b211e}
.sweet-contact h2,.sweet-contact h3,.sweet-contact p {margin:0 0 8px}
.sweet-contact p {font-size:.85rem}
.sweet-contact .contact-link {display:inline-flex;align-items:center;min-height:44px;padding:6px 14px;margin-top:4px;border-radius:12px;background:#3b211e;color:#fff8ee;font-size:.8rem}
.floating-contact {position:fixed;z-index:8;inset-inline-end:6px;bottom:max(8px,env(safe-area-inset-bottom));display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#236343;color:#fff}
.visual-review {padding-bottom:51px}
.floating-contact.overlaps-purchase {visibility:hidden}
.visual-review .add-toast-bottom {z-index:11}
body:has(dialog[open]) .floating-contact,body:has(.add-toast-bottom.is-visible) .floating-contact {visibility:hidden}


.checkout-warning {
  margin:0 0 8px;padding:10px 12px;border-radius:10px;
  background:#ffe4ed;color:#653019;font-size:.9rem;font-weight:700;line-height:1.6;
}

.store-footer {text-align:center;overflow-wrap:anywhere}

.visual-review .tools select {
  min-height:44px;
  width:auto;
  border-radius:var(--radius, 12px);
  padding:0 5px 0 8px;
  font-size:.74rem;
}
.visual-review .tools select option {background:var(--surface);color:var(--petal)}
html[lang="en"] .visual-review .hero h1 {white-space:normal;text-wrap:balance}
html[lang="en"] .visual-review .hero h1 em {display:block;white-space:nowrap}

.checkout-details :is(input, textarea):is(:focus, :user-invalid) {
  outline:1px solid var(--accent);
  outline-offset:-1px;
  box-shadow:none;
}

.filled-donut-detail {display:block;width:100%;height:112px;object-fit:contain;filter:drop-shadow(0 5px 5px #3b211e40)}

.box-promo {
  display:block;
  margin-inline:16px;
}
.box-promo picture,
.box-promo-image {
  display:block;
}
.box-promo-image {
  width:100%;
  height:auto;
}
.box-promo:focus-visible {
  outline:2px solid var(--petal);
  outline-offset:2px;
}
@media (max-width:365px) {.box-promo {margin-inline:12px}}
