/* Yeshiva Store (store/index.php). Everything is scoped under .store so the
   site navbar and Bootstrap 3 keep their own look. */
.store {
	--navy: #17305a;
	--blue: #33669e;
	--gold: #f4b93e;
	--green: #2e8b4e;
	--ink: #1f2a37;
	--muted: #6b7684;
	--line: #e3e8ee;
	max-width: 980px;
	margin: 84px auto 60px;
	padding: 0 12px;
	font-family: "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	color: var(--ink);
}
.store *, .store *::before, .store *::after { box-sizing: border-box; }

/* ---------- Sale banner ---------- */
.store-hero {
	background: linear-gradient(135deg, #0f2347, var(--navy) 55%, #27508c);
	color: #fff;
	border-radius: 18px;
	padding: 22px 20px 24px;
	text-align: center;
	box-shadow: 0 8px 24px rgba(10, 25, 55, .35);
}
.store-hero h1 {
	font-family: Oswald, "Helvetica Neue", Arial, sans-serif;
	font-size: 40px;
	font-weight: 700;
	margin: 6px 0 4px;
	letter-spacing: .5px;
}
.store-hero .store-eyebrow {
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 13px;
	opacity: .8;
}
.store-hero p { margin: 0; font-size: 19px; color: #fff; }
.store-hero p b { color: var(--gold); font-size: 1.25em; }
.store-candles { display: flex; justify-content: center; align-items: flex-end; gap: 9px; height: 46px; margin-bottom: 4px; }
.store-candles i { position: relative; width: 6px; height: 22px; border-radius: 2px; background: #dfe9f7; }
.store-candles i:nth-child(5) { height: 32px; background: var(--gold); }
.store-candles i::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 100%;
	width: 8px;
	height: 12px;
	margin: 0 0 2px -4px;
	border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
	background: radial-gradient(circle at 50% 75%, #fff6c9 0 25%, #ffc531 55%, #ff8a1f 100%);
	box-shadow: 0 0 10px 2px rgba(255, 190, 60, .65);
	animation: store-flicker 2.4s ease-in-out infinite;
	transform-origin: 50% 100%;
}
.store-candles i:nth-child(2n)::before { animation-delay: -.8s; }
.store-candles i:nth-child(3n)::before { animation-delay: -1.5s; }
@keyframes store-flicker {
	0%, 100% { transform: scale(1) rotate(-2deg); }
	50% { transform: scale(1.08, 1.16) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) { .store-candles i::before { animation: none; } }

/* ---------- Layout ---------- */
.store-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; margin-top: 16px; align-items: start; }
.store-card {
	background: #fff;
	border-radius: 16px;
	padding: 18px;
	box-shadow: 0 4px 16px rgba(10, 25, 55, .18);
	text-align: left;
}
.store-side { position: sticky; top: 64px; }
.store h2 { font-family: Oswald, "Helvetica Neue", Arial, sans-serif; font-size: 22px; margin: 0 0 12px; color: var(--navy); }
@media (max-width: 800px) {
	.store-grid { grid-template-columns: minmax(0, 1fr); }
	.store-side { position: static; }
	.store-hero h1 { font-size: 32px; }
}

/* ---------- A child ---------- */
.kid { border: 0; margin: 0 0 16px; min-width: 0; }
.kid-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.kid-remove { background: none; border: 0; padding: 4px; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; }
.kid-remove:hover { color: #b3261e; }
.kid-who { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; margin-bottom: 12px; }
@media (max-width: 420px) { .kid-who { grid-template-columns: minmax(0, 1fr); } }

.store input[type="text"], .store input[type="email"], .store input[type="tel"], .store select {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 10px 12px;
	font: inherit;
	color: var(--ink);
	background: #fff;
	border: 2px solid var(--line);
	border-radius: 10px;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color .15s, box-shadow .15s;
}
.store select {
	padding-right: 34px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7684' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}
.store input:focus, .store select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51, 102, 158, .2); }
.store ::placeholder { color: #9aa3ae; }

/* ---------- Items ---------- */
.item { border: 2px solid var(--line); border-radius: 12px; margin-bottom: 8px; transition: border-color .15s, background-color .15s; }
.item.on { border-color: var(--green); background: #f3faf5; }
.item-row { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px; font-weight: 400; cursor: pointer; }
.item-row input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.item-check {
	flex: none;
	width: 26px;
	height: 26px;
	border: 2px solid #b8c2cd;
	border-radius: 7px;
	background: #fff center / 16px no-repeat;
}
.item-row input:checked + .item-check {
	border-color: var(--green);
	background-color: var(--green);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.item-row input:focus-visible + .item-check { box-shadow: 0 0 0 3px rgba(51, 102, 158, .35); }
.item-name { flex: 1; font-weight: 600; line-height: 1.25; }
.item-name small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.item-price { text-align: right; white-space: nowrap; }
.item-price del { color: var(--muted); font-size: 14px; margin-right: 4px; }
.item-price b { color: var(--green); font-size: 20px; }
.item.gone { background: #f6f7f9; }
.item.gone .item-row { cursor: default; color: var(--muted); }
.item.gone .item-check { background: #eceff3; }
.item-soldout { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }

.item-sizes { padding: 0 12px 12px 50px; }
.item-sizes[hidden] { display: none; }
.size-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.size-list > span { font-size: 14px; color: var(--muted); margin-right: 2px; }
.size { margin: 0; cursor: pointer; }
.size input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.size span {
	display: inline-block;
	min-width: 44px;
	padding: 8px 10px;
	text-align: center;
	font-weight: 600;
	border: 2px solid #b8c2cd;
	border-radius: 9px;
	background: #fff;
}
.size input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.size input:focus-visible + span { box-shadow: 0 0 0 3px rgba(51, 102, 158, .35); }
.size input:disabled + span { color: #aab2bc; border-color: var(--line); background: #f6f7f9; text-decoration: line-through; cursor: not-allowed; }
.size-list.missing > span { color: #b3261e; font-weight: 700; }
.size-info { margin: 8px 0 0; padding: 8px 10px; font-size: 14.5px; line-height: 1.35; color: var(--navy); background: #eaf1fa; border-radius: 8px; }
.size-info[hidden] { display: none; }
.item-tip { margin: 8px 0 0; font-size: 13.5px; line-height: 1.35; color: #555f6b; }

.store-add {
	display: block;
	width: 100%;
	padding: 12px;
	font: inherit;
	font-weight: 600;
	color: var(--blue);
	background: #fff;
	border: 2px dashed #9db6d3;
	border-radius: 12px;
	cursor: pointer;
}
.store-add:hover { background: #f1f6fb; }

/* ---------- Order and payment ---------- */
.store-summary { list-style: none; margin: 0 0 10px; padding: 0; font-size: 15px; }
.store-summary li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.store-summary li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.store-summary li.empty { color: var(--muted); border: 0; }
.store-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.store-total b { font-size: 26px; color: var(--navy); }
.store-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.store-pay .wide { grid-column: 1 / -1; }
.store-admin { margin-bottom: 10px; }
.store-submit {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 15px;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	background: var(--green);
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	transition: background-color .15s;
}
.store-submit:hover { background: #267542; }
.store-submit:disabled { background: #9bbfa8; cursor: wait; }
.store-note { margin: 12px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); text-align: center; }
.store a { color: var(--blue); }

.store-done { margin-top: 16px; text-align: center; padding: 34px 20px; }
.store-done h2 { font-size: 30px; }
.store-done p { font-size: 18px; margin: 0 0 8px; }
