/* Scarpetta – roda do cardápio */
.scp-roda {
	--verde: #00472B;
	--verde-fundo: #002A1A;
	--creme: #F5E7B5;
	--creme-suave: rgba(245, 231, 181, .72);
	--madeira: #9A6837;
	--madeira-escura: #6E4423;
	--W: min(980px, 74vw);          /* diâmetro da tábua */
	--R: calc(var(--W) * .31);      /* raio onde as pizzas ficam */
	--P: calc(var(--W) * .30);      /* tamanho da pizza ativa */
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: var(--creme);
	background:
		radial-gradient(90% 70% at 72% 105%, rgba(154, 104, 55, .28), transparent 60%),
		radial-gradient(120% 100% at 20% 0%, #0A5A39 0%, var(--verde) 40%, var(--verde-fundo) 100%);
	padding: clamp(20px, 3vw, 40px) clamp(20px, 5vw, 72px) 0;
	margin-block: 0 !important;
}
.scp-roda * { box-sizing: border-box; }
.scp-roda:focus { outline: none; }
.scp-roda-noscript a { color: var(--creme); }

.scp-roda-top {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	max-width: 1280px; margin: 0 auto; position: relative; z-index: 30;
}
.scp-roda-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .22); }
.scp-roda-tab {
	appearance: none; border: 0; cursor: pointer; font: inherit; font-size: .95rem;
	padding: 8px 18px; border-radius: 999px; color: var(--creme-suave); background: transparent; min-height: 40px;
}
.scp-roda-tab[aria-selected="true"] { background: var(--creme); color: var(--verde); font-weight: 600; }
.scp-roda-pedido {
	display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important;
	color: var(--creme) !important; border: 1px solid rgba(245, 231, 181, .45); border-radius: 999px;
	padding: 7px 8px 7px 16px; font-size: .95rem; min-height: 40px;
}
.scp-roda-pedido-n {
	min-width: 26px; height: 26px; border-radius: 999px; display: inline-grid; place-items: center;
	background: rgba(245, 231, 181, .16); font-weight: 700; font-size: .85rem; padding: 0 6px;
}
.scp-roda-pedido.has-items .scp-roda-pedido-n { background: var(--creme); color: var(--verde); }

.scp-roda-stage {
	display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; align-items: center;
	max-width: 1280px; margin: 0 auto; min-height: clamp(560px, 78vh, 760px);
}

/* Informações */
.scp-roda-info { position: relative; z-index: 20; max-width: 30rem; padding-block: 24px 120px; }
.scp-roda-count { margin: 0 0 10px; font-size: .9rem; letter-spacing: .04em; color: var(--creme-suave); font-variant-numeric: tabular-nums; }
.scp-roda-name {
	margin: 0; color: var(--creme) !important; font-size: clamp(2.4rem, 5.2vw, 4.4rem);
	line-height: .98; letter-spacing: -.025em; font-weight: 700; text-wrap: balance;
}
.scp-roda-desc { margin: 18px 0 0; font-size: 1.05rem; line-height: 1.55; color: var(--creme-suave); max-width: 34ch; }
.scp-roda-chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scp-roda-chips li {
	font-size: .85rem; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(245, 231, 181, .38); color: var(--creme);
}
.scp-roda-buy { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.scp-roda-price { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.scp-roda-cta, .scp-roda-dgo {
	appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1rem;
	background: var(--creme); color: var(--verde); border-radius: 999px; padding: 12px 24px; min-height: 48px;
	transition: transform .15s ease, background-color .15s ease;
}
.scp-roda-cta:hover, .scp-roda-dgo:hover { background: #fff3cc; }
.scp-roda-cta:active, .scp-roda-dgo:active { transform: scale(.97); }
.scp-roda :focus-visible, .scp-roda-drawer :focus-visible { outline: 3px solid var(--creme); outline-offset: 3px; }
.scp-roda-info.is-swap > * { animation: scp-roda-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.scp-roda-info.is-swap > :nth-child(2) { animation-delay: .04s; }
.scp-roda-info.is-swap > :nth-child(3) { animation-delay: .08s; }
.scp-roda-info.is-swap > :nth-child(4) { animation-delay: .12s; }
@keyframes scp-roda-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Roda */
.scp-roda-view { position: relative; align-self: stretch; min-height: 100%; touch-action: pan-y; user-select: none; }
.scp-roda-wheel {
	position: absolute; width: var(--W); height: var(--W);
	left: calc(50% - var(--W) / 2); top: clamp(24px, 6vh, 64px);
}
.scp-roda-board {
	position: absolute; inset: 0; border-radius: 50%;
	background:
		radial-gradient(circle closest-side, transparent 0 85.6%, rgba(40, 20, 6, .38) 86% 86.6%, transparent 87%),
		radial-gradient(circle closest-side, rgba(255, 222, 170, .14) 0 40%, transparent 80%, rgba(0, 0, 0, .42) 100%),
		repeating-linear-gradient(90deg, transparent 0 3px, rgba(60, 30, 10, .09) 3px 4px, transparent 4px 13px, rgba(255, 235, 200, .05) 13px 15px),
		linear-gradient(90deg,
			#9A6837 0 16.2%, #5E3A1E 16.2% 16.6%, #A3713F 16.6% 33%, #5E3A1E 33% 33.4%,
			#8D5E31 33.4% 50%, #5E3A1E 50% 50.4%, #A06C3A 50.4% 66.6%, #5E3A1E 66.6% 67%,
			#93633A 67% 83.3%, #5E3A1E 83.3% 83.7%, #9A6837 83.7% 100%);
	box-shadow: 0 0 0 10px rgba(0, 0, 0, .18), 0 40px 90px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 230, 190, .18);
	transition: transform .9s cubic-bezier(.22, .9, .25, 1);
}
.scp-roda-rim { position: absolute; inset: 0; width: 100%; height: 100%; }
.scp-roda-rim text { fill: rgba(245, 231, 181, .42); font-size: 24px; font-weight: 600; }
.scp-roda-track { position: absolute; inset: 0; }
.scp-roda-item {
	appearance: none; border: 0; padding: 0; background: none; cursor: pointer;
	position: absolute; left: 50%; top: 50%; width: var(--P); height: var(--P);
	margin: calc(var(--P) / -2) 0 0 calc(var(--P) / -2); border-radius: 50%;
	transition: transform .9s cubic-bezier(.22, .9, .25, 1), opacity .5s ease;
	will-change: transform;
}
.scp-roda-item img, .scp-roda-noimg {
	width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; pointer-events: none;
	box-shadow: 0 22px 40px rgba(0, 0, 0, .5), 0 4px 10px rgba(0, 0, 0, .35);
}
.scp-roda-noimg {
	display: grid; place-items: center; text-align: center; padding: 18%; font-weight: 700; font-size: 1.1rem;
	background: radial-gradient(circle at 50% 45%, #f2d9a6 0 55%, #c98a4a 62%, #8a4f22 70%); color: #5a2e12;
}
.scp-roda-item.is-active { cursor: zoom-in; }
.scp-roda-item:focus-visible { outline: 3px solid var(--creme); outline-offset: 6px; }

.scp-roda-navs {
	position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 25;
	display: flex; gap: 12px;
}
.scp-roda-nav {
	appearance: none; cursor: pointer; width: 52px; height: 52px; border-radius: 50%;
	border: 1px solid rgba(245, 231, 181, .5); background: rgba(0, 42, 26, .72); color: var(--creme);
	font-size: 1.8rem; line-height: 1; display: grid; place-items: center; backdrop-filter: blur(4px);
}
.scp-roda-nav:hover { background: var(--verde); }
.scp-roda.is-single .scp-roda-navs { display: none; }

/* Gaveta */
.scp-roda-backdrop {
	position: fixed; inset: 0; z-index: 99998; background: rgba(0, 20, 12, .55);
	opacity: 0; transition: opacity .28s ease;
}
.scp-roda-backdrop.is-open { opacity: 1; }
.scp-roda-drawer {
	--verde: #00472B; --creme: #F5E7B5;
	position: fixed; z-index: 99999; top: 0; right: 0; height: 100%; width: min(460px, 100vw);
	background: #fffaf0; color: #1f2a24; display: flex; flex-direction: column;
	box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
	transform: translateX(102%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.scp-roda-drawer.is-open { transform: none; }
.scp-roda-dscroll { overflow-y: auto; padding: 28px 28px 12px; flex: 1; }
.scp-roda-close {
	position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid rgba(0, 71, 43, .25); background: #fffaf0; color: var(--verde); font-size: 1.6rem; cursor: pointer;
}
.scp-roda-dimg { width: 150px; height: 150px; margin: 4px 0 18px; }
.scp-roda-dimg img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 12px 26px rgba(0, 0, 0, .25); }
.scp-roda-drawer .scp-roda-count { color: #5b6b62; }
.scp-roda-dname { margin: 0; font-size: 2rem; line-height: 1.05; letter-spacing: -.02em; color: var(--verde) !important; }
.scp-roda-ddesc { margin: 12px 0 0; line-height: 1.55; color: #33413a; }
.scp-roda-dsec h3 { margin: 22px 0 8px; font-size: .95rem; color: var(--verde); }
.scp-roda-drawer .scp-roda-chips { margin: 0; }
.scp-roda-drawer .scp-roda-chips li { border-color: rgba(0, 71, 43, .3); color: #1f2a24; background: #fff; }
.scp-roda-modes { border: 0; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scp-roda-modes legend { font-weight: 700; font-size: .95rem; color: var(--verde); margin-bottom: 8px; padding: 0; }
.scp-roda-mode {
	position: relative; display: flex; flex-direction: column; gap: 2px; cursor: pointer;
	border: 1.5px solid rgba(0, 71, 43, .25); border-radius: 14px; padding: 12px 14px; background: #fff;
}
.scp-roda-mode input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.scp-roda-mode:has(input:checked) { border-color: var(--verde); box-shadow: inset 0 0 0 1px var(--verde); background: #f1f6ef; }
.scp-roda-mode:has(input:focus-visible) { outline: 3px solid var(--verde); outline-offset: 2px; }
.scp-roda-mt { font-weight: 700; color: var(--verde); }
.scp-roda-ms { font-size: .85rem; color: #5b6b62; }
.scp-roda-note { margin: 14px 0 0; font-size: .9rem; line-height: 1.5; color: #4a5a51; }
.scp-roda-qty { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.scp-roda-qlabel { font-weight: 700; color: var(--verde); }
.scp-roda-stepper { display: inline-flex; align-items: center; border: 1.5px solid rgba(0, 71, 43, .3); border-radius: 999px; }
.scp-roda-stepper button {
	appearance: none; border: 0; background: none; width: 46px; height: 46px; font-size: 1.4rem; color: var(--verde); cursor: pointer; border-radius: 999px;
}
.scp-roda-stepper button:disabled { opacity: .3; cursor: default; }
.scp-roda-qn { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.scp-roda-dfoot { padding: 14px 28px 22px; border-top: 1px solid rgba(0, 71, 43, .12); background: #fffaf0; }
.scp-roda-dgo { width: 100%; background: var(--verde); color: var(--creme); }
.scp-roda-dgo:hover { background: #0a5a39; }
.scp-roda-dgo:disabled { opacity: .6; cursor: progress; }
.scp-roda-msg { margin: 10px 0 0; font-size: .92rem; color: #1f2a24; min-height: 1.2em; }
.scp-roda-msg a { color: var(--verde); font-weight: 700; }
html.scp-roda-lock { overflow: hidden; }

/* Tablet e celular */
@media (max-width: 860px) {
	.scp-roda { --W: min(150vw, 720px); padding-inline: 18px; }
	.scp-roda-stage { grid-template-columns: 1fr; min-height: 0; }
	.scp-roda-view { order: -1; height: calc(var(--W) * .5); min-height: 0; margin-inline: -18px; overflow: hidden; }
	.scp-roda-wheel { top: 22px; }
	.scp-roda-navs { bottom: 10px; }
	.scp-roda-nav { width: 46px; height: 46px; }
	.scp-roda-info { padding-block: 8px 36px; max-width: none; }
	.scp-roda-name { font-size: clamp(2rem, 9vw, 2.8rem); }
	.scp-roda-drawer {
		top: auto; bottom: 0; height: auto; max-height: 90vh; width: 100%;
		border-radius: 22px 22px 0 0; transform: translateY(102%);
	}
	.scp-roda-dscroll { padding: 24px 20px 8px; }
	.scp-roda-dfoot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); }
	.scp-roda-dimg { width: 110px; height: 110px; }
	.scp-roda-dname { font-size: 1.6rem; padding-right: 48px; }
}

@media (prefers-reduced-motion: reduce) {
	.scp-roda-board, .scp-roda-item, .scp-roda-drawer, .scp-roda-backdrop { transition: none !important; }
	.scp-roda-info.is-swap > * { animation: none !important; }
}

/* O atributo hidden sempre vence o display das classes acima */
.scp-roda [hidden], .scp-roda-drawer[hidden], .scp-roda-drawer [hidden], .scp-roda-backdrop[hidden] { display: none !important; }
