/**
 * Loja IADAL — seção pública do site.
 */

.iadal-site__loja {
	--loja-ink: #0f2744;
	--loja-accent: #b45309;
	--loja-gold: #c9a227;
	--loja-muted: #5b6b7c;
	--loja-line: rgba(15, 39, 68, 0.12);
	--loja-card: #ffffff;
	padding: clamp(52px, 8vw, 96px) 0;
	background:
		radial-gradient(ellipse 60% 45% at 90% 10%, rgba(201, 162, 39, 0.12), transparent 55%),
		radial-gradient(ellipse 70% 50% at 8% 0%, rgba(15, 39, 68, 0.06), transparent 50%),
		linear-gradient(180deg, #f6f3ed 0%, #eef2f6 100%);
}

.iadal-site__loja-inner {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
}

.iadal-site__loja-head {
	max-width: 38rem;
	margin-bottom: 32px;
}

.iadal-site__loja-head h2 {
	margin: 0 0 10px;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(2.1rem, 4.2vw, 3rem);
	color: var(--loja-ink);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.iadal-site__loja-head p {
	margin: 0;
	color: var(--loja-muted);
	line-height: 1.6;
	font-size: 1.02rem;
}

.iadal-site__loja-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 22px;
}

.iadal-site__loja-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 0 18px;
	background: transparent;
	border: 0;
	animation: iadal-loja-rise 0.55s ease both;
}

.iadal-site__loja-card:nth-child(2) { animation-delay: 0.06s; }
.iadal-site__loja-card:nth-child(3) { animation-delay: 0.12s; }
.iadal-site__loja-card:nth-child(4) { animation-delay: 0.18s; }

@keyframes iadal-loja-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.iadal-site__loja-card__media {
	position: relative;
	aspect-ratio: 1;
	background:
		linear-gradient(160deg, #d7e0ea 0%, #eef2f6 100%) center / cover no-repeat;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(15, 39, 68, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.iadal-site__loja-card:hover .iadal-site__loja-card__media {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(15, 39, 68, 0.12);
}

.iadal-site__loja-card__media.is-empty::after {
	content: "IADAL";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.4rem;
	letter-spacing: 0.18em;
	color: rgba(15, 39, 68, 0.28);
}

.iadal-site__loja-card h3 {
	margin: 2px 0 0;
	font-size: 1.2rem;
	line-height: 1.25;
	color: var(--loja-ink);
	font-weight: 700;
}

.iadal-site__loja-card p {
	margin: 0;
	color: var(--loja-muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.iadal-site__loja-card__sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.iadal-site__loja-card__sizes span {
	padding: 3px 8px;
	border: 1px solid var(--loja-line);
	border-radius: 999px;
	font-size: 0.78rem;
	color: var(--loja-ink);
	letter-spacing: 0.02em;
}

.iadal-site__loja-card__price {
	font-weight: 800;
	font-size: 1.15rem;
	color: var(--loja-ink);
	letter-spacing: -0.01em;
}

.iadal-site__loja-card__btn {
	align-self: start;
	margin-top: auto;
	border: 0;
	background: var(--loja-ink);
	color: #fff;
	padding: 11px 16px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: background 0.2s ease, transform 0.2s ease;
}

.iadal-site__loja-card__btn:hover {
	background: var(--loja-accent);
	transform: translateY(-1px);
}

/* —— Sacola flutuante —— */
.iadal-site__loja-bag {
	position: fixed;
	right: max(18px, env(safe-area-inset-right));
	bottom: max(22px, env(safe-area-inset-bottom));
	z-index: 11040;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border: 0;
	border-radius: 999px;
	background: #0f2744;
	color: #fff;
	box-shadow: 0 14px 36px rgba(15, 39, 68, 0.28);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
}

.iadal-site__loja-bag[hidden] {
	display: none !important;
}

.iadal-site__loja-bag__count {
	min-width: 1.5rem;
	height: 1.5rem;
	padding: 0 6px;
	border-radius: 999px;
	background: #c9a227;
	color: #0f2744;
	display: inline-grid;
	place-items: center;
	font-size: 0.85rem;
}

html.iadal-loja-sheet-open,
html.iadal-loja-sheet-open body {
	overflow: hidden;
}

/* —— Sheets / popups —— */
.iadal-loja-sheet {
	position: fixed;
	inset: 0;
	z-index: 12060;
	display: grid;
	place-items: center;
	padding: clamp(12px, 3vw, 28px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.iadal-loja-sheet.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.iadal-loja-sheet__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(7, 12, 20, 0.72);
	backdrop-filter: blur(10px);
	cursor: pointer;
}

.iadal-loja-sheet__panel {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	max-height: min(92vh, 900px);
	overflow: auto;
	background: #f7f5f1;
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	transform: translateY(18px) scale(0.985);
	transition: transform 0.32s ease;
}

.iadal-loja-sheet.is-open .iadal-loja-sheet__panel {
	transform: translateY(0) scale(1);
}

.iadal-loja-sheet__panel--add {
	width: min(760px, 100%);
	background: #fff;
}

.iadal-loja-sheet__x {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 39, 68, 0.08);
	color: #0f2744;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

/* Add product */
.iadal-loja-add {
	display: grid;
	grid-template-columns: minmax(220px, 0.9fr) 1.1fr;
	min-height: 360px;
}

.iadal-loja-add__media-wrap {
	display: grid;
	grid-template-rows: 1fr auto;
	min-height: 320px;
	background: #0b1726;
}

.iadal-loja-add__media {
	position: relative;
	min-height: 280px;
	border: 0;
	width: 100%;
	padding: 0;
	cursor: zoom-in;
	background:
		linear-gradient(160deg, #d7e0ea, #eef2f6) center / cover no-repeat;
}

.iadal-loja-add__media.has-image {
	background-color: #0b1726;
}

.iadal-loja-add__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background: rgba(15, 39, 68, 0.88);
	color: #f7f5f1;
	pointer-events: none;
}

.iadal-loja-add__thumbs {
	display: flex;
	gap: 8px;
	padding: 10px;
	overflow-x: auto;
	background: #0b1726;
}

.iadal-loja-add__thumbs[hidden] {
	display: none !important;
}

.iadal-loja-add__thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border: 2px solid transparent;
	border-radius: 8px;
	background: #1e293b center / cover no-repeat;
	cursor: pointer;
	padding: 0;
}

.iadal-loja-add__thumb.is-active {
	border-color: #c9a227;
}

.iadal-loja-add__body {
	padding: clamp(22px, 4vw, 34px);
	padding-right: 52px;
	display: grid;
	gap: 14px;
	align-content: start;
}

.iadal-loja-add__eyebrow {
	margin: 0;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a7350;
	font-weight: 700;
}

.iadal-loja-add__body h3 {
	margin: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.7rem, 3vw, 2.2rem);
	color: #0f2744;
	line-height: 1.15;
}

.iadal-loja-add__price {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
	color: #0f2744;
}

.iadal-loja-add__field {
	display: grid;
	gap: 8px;
}

.iadal-loja-add__label {
	font-size: 0.82rem;
	font-weight: 700;
	color: #5b6b7c;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.iadal-loja-add__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.iadal-loja-chip {
	min-width: 44px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid rgba(15, 39, 68, 0.18);
	border-radius: 999px;
	background: #fff;
	color: #0f2744;
	font-weight: 700;
	cursor: pointer;
}

.iadal-loja-chip.is-active {
	background: #0f2744;
	border-color: #0f2744;
	color: #fff;
}

.iadal-loja-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(15, 39, 68, 0.16);
	border-radius: 12px;
	overflow: hidden;
	width: fit-content;
}

.iadal-loja-qty button {
	width: 42px;
	height: 42px;
	border: 0;
	background: #f1efe9;
	color: #0f2744;
	font-size: 1.2rem;
	cursor: pointer;
}

.iadal-loja-qty input {
	width: 54px;
	height: 42px;
	border: 0;
	text-align: center;
	font: inherit;
	font-weight: 700;
	color: #0f2744;
	background: #fff;
}

.iadal-loja-add__field textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid rgba(15, 39, 68, 0.14);
	border-radius: 10px;
	font: inherit;
	resize: vertical;
}

.iadal-loja-add__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

.iadal-loja-btn {
	border: 0;
	padding: 13px 18px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	border-radius: 10px;
}

.iadal-loja-btn--primary {
	background: #0f2744;
	color: #fff;
}

.iadal-loja-btn--primary:hover {
	background: #b45309;
}

.iadal-loja-btn--ghost {
	background: transparent;
	color: #0f2744;
	border: 1px solid rgba(15, 39, 68, 0.18);
}

.iadal-loja-btn--wide {
	width: 100%;
}

/* Checkout */
.iadal-loja-checkout {
	padding: clamp(20px, 3vw, 32px);
	padding-top: 28px;
}

.iadal-loja-checkout__head {
	margin-bottom: 18px;
	padding-right: 40px;
}

.iadal-loja-checkout__head h3 {
	margin: 4px 0 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	color: #0f2744;
}

.iadal-loja-checkout__layout {
	display: grid;
	grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
	gap: 18px;
	align-items: start;
}

.iadal-loja-checkout__summary,
.iadal-loja-checkout__form {
	background: #fff;
	border: 1px solid rgba(15, 39, 68, 0.08);
	border-radius: 14px;
	padding: 18px;
}

.iadal-loja-checkout__summary h4,
.iadal-loja-checkout__form h4 {
	margin: 0 0 12px;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5b6b7c;
}

.iadal-loja-checkout__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.iadal-loja-checkout__list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(15, 39, 68, 0.08);
	color: #0f2744;
	font-size: 0.95rem;
}

.iadal-loja-checkout__line-price {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	font-weight: 700;
}

.iadal-loja-checkout__line-price button {
	border: 0;
	background: #f1efe9;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	cursor: pointer;
	color: #0f2744;
}

.iadal-loja-checkout__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 14px 0 16px;
	color: #0f2744;
	font-size: 1.05rem;
}

.iadal-loja-checkout__total strong {
	font-size: 1.35rem;
}

.iadal-loja-pix {
	padding: 14px;
	border-radius: 12px;
	background:
		linear-gradient(145deg, rgba(201, 162, 39, 0.16), rgba(15, 39, 68, 0.06));
	border: 1px solid rgba(201, 162, 39, 0.35);
}

.iadal-loja-pix__badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #0f2744;
	color: #f7f5f1;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.iadal-loja-pix__hint,
.iadal-loja-pix__name,
.iadal-loja-pix__phone,
.iadal-loja-pix__missing {
	margin: 0 0 8px;
	color: #334155;
	font-size: 0.92rem;
	line-height: 1.45;
}

.iadal-loja-pix__key {
	display: grid;
	gap: 6px;
	width: 100%;
	margin: 8px 0 10px;
	padding: 12px 14px;
	border: 0;
	border-radius: 10px;
	background: #0f2744;
	color: #fff;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.iadal-loja-pix__key span {
	word-break: break-all;
	font-weight: 700;
	font-size: 0.95rem;
}

.iadal-loja-pix__key em {
	font-style: normal;
	opacity: 0.85;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.iadal-loja-checkout__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 14px;
}

.iadal-loja-checkout__fields label {
	display: grid;
	gap: 6px;
	font-size: 0.88rem;
	color: #5b6b7c;
}

.iadal-loja-checkout__span-2 {
	grid-column: 1 / -1;
}

.iadal-loja-checkout__fields input,
.iadal-loja-checkout__fields textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid rgba(15, 39, 68, 0.14);
	border-radius: 10px;
	background: #fff;
	color: #0f2744;
	font: inherit;
}

.iadal-loja-receipt {
	margin: 0 0 14px;
	padding: 14px;
	border-radius: 12px;
	border: 1px dashed rgba(15, 39, 68, 0.22);
	background: #faf8f4;
}

.iadal-loja-receipt strong {
	display: block;
	color: #0f2744;
	margin-bottom: 4px;
}

.iadal-loja-receipt p {
	margin: 0 0 10px;
	color: #64748b;
	font-size: 0.88rem;
}

.iadal-loja-receipt__btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: 999px;
	background: #0f2744;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.iadal-loja-checkout__msg {
	margin: 10px 0 0;
	font-weight: 600;
	color: #0f2744;
}

.iadal-loja-checkout__msg.is-error {
	color: #b91c1c;
}

.iadal-loja-cpf-hint {
	display: block;
	margin-top: 4px;
	font-size: 0.8rem;
	line-height: 1.35;
	color: #64748b;
}

.iadal-loja-cpf-hint.is-ok {
	color: #166534;
}

.iadal-loja-cpf-hint.is-miss {
	color: #9a3412;
}

.iadal-loja-sheet__panel--success {
	width: min(460px, 100%);
	background: #fff;
}

.iadal-loja-success {
	text-align: center;
	padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 32px);
	display: grid;
	gap: 12px;
	justify-items: center;
}

.iadal-loja-success__check {
	width: 64px;
	height: 64px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background: #0f2744;
	color: #c9a227;
	font-size: 1.8rem;
	font-weight: 800;
	margin-bottom: 4px;
}

.iadal-loja-success h3 {
	margin: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.8rem, 3.5vw, 2.25rem);
	color: #0f2744;
	line-height: 1.15;
}

.iadal-loja-success__meta {
	margin: 0;
	color: #5b6b7c;
	font-size: 0.98rem;
}

.iadal-loja-success__meta strong {
	color: #0f2744;
}

.iadal-loja-success__phrase {
	margin: 4px 0 8px;
	max-width: 28rem;
	color: #334155;
	font-size: 1.02rem;
	line-height: 1.5;
}

.iadal-loja-success__hint {
	margin: 0;
	color: #64748b;
	font-size: 0.88rem;
}

.iadal-loja-btn--whatsapp {
	background: #128c7e;
	color: #fff;
	text-decoration: none;
	text-align: center;
}

.iadal-loja-btn--whatsapp:hover {
	background: #0f766e;
	color: #fff;
}

@media (max-width: 820px) {
	.iadal-loja-add,
	.iadal-loja-checkout__layout,
	.iadal-loja-checkout__fields {
		grid-template-columns: 1fr;
	}

	.iadal-loja-add__media {
		min-height: 220px;
	}

	.iadal-loja-add__media-wrap {
		min-height: 260px;
	}

	.iadal-site__loja-bag__label {
		display: none;
	}
}

/* Lightbox / lupa */
.iadal-loja-zoom {
	position: fixed;
	inset: 0;
	z-index: 13080;
	display: grid;
	place-items: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.iadal-loja-zoom.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.iadal-loja-zoom__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(5, 10, 18, 0.88);
	cursor: pointer;
}

.iadal-loja-zoom__stage {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	max-height: 92vh;
	display: grid;
	place-items: center;
}

.iadal-loja-zoom__stage img {
	max-width: 100%;
	max-height: min(84vh, 900px);
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	background: #0b1726;
}

.iadal-loja-zoom__x {
	position: absolute;
	top: -8px;
	right: -8px;
	z-index: 2;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #0f2744;
	font-size: 1.5rem;
	cursor: pointer;
}

.iadal-loja-zoom__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #0f2744;
	font-size: 1.6rem;
	cursor: pointer;
}

.iadal-loja-zoom__nav--prev {
	left: 8px;
}

.iadal-loja-zoom__nav--next {
	right: 8px;
}

.iadal-loja-zoom__count {
	position: absolute;
	bottom: -28px;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
	font-weight: 600;
}
