/*
Theme Name: Ice Scoop
Description: Tema custom para la tienda de Ice Scoop (paletas proteicas), WooCommerce-ready.
Author: Ice Scoop
Version: 0.1.0
Text Domain: ice-scoop
*/

:root {
	--ice-dark: #1a1a1a;
	--ice-brown: #2C1A0E;
	--ice-brown-light: #3D1F0A;
	--ice-cream: #f7f4ef;
	--ice-white: #ffffff;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	color: var(--ice-dark);
	background: var(--ice-cream);
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.ice-container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 20px;
}

/* HEADER */
.ice-header {
	background: var(--ice-dark);
	color: var(--ice-white);
	padding: 18px 0;
}
.ice-header-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 200;
	background: rgba(26, 26, 26, 0.85);
	backdrop-filter: blur(6px);
}
.ice-header .ice-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.ice-logo {
	font-family: 'Franklin Gothic Heavy', 'Arial Narrow', Arial, sans-serif;
	font-size: 26px;
	letter-spacing: 2px;
	text-decoration: none;
	color: var(--ice-white);
}
.ice-nav a {
	color: var(--ice-white);
	text-decoration: none;
	margin-left: 20px;
	font-size: 14px;
	font-weight: 600;
}

/* FOOTER */
.ice-footer {
	background: var(--ice-dark);
	color: #ccc;
	text-align: center;
	padding: 30px 0;
	margin-top: 60px;
	font-size: 13px;
}

/* HOME / LANDING-TIENDA — scroll-snap de pantalla completa */
body.front-page {
	overflow: hidden;
	height: 100vh;
	height: 100dvh;
	margin: 0;
}
.ice-scroll {
	height: 100vh;
	height: 100dvh;
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
}
.ice-snap {
	scroll-snap-align: start;
	scroll-snap-stop: always;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 90px 0 40px;
}
.ice-snap .ice-container { width: 100%; }

.ice-snap-hero {
	background: var(--ice-dark);
	color: var(--ice-white);
	text-align: center;
}
.ice-hero-title {
	font-family: 'Freehand521 BT', cursive;
	font-size: 44px;
	max-width: 700px;
	margin: 0 auto 16px;
	line-height: 1.15;
}
.ice-hero-sub {
	font-size: 16px;
	max-width: 520px;
	margin: 0 auto 26px;
	opacity: 0.9;
}
.ice-scroll-hint {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.7;
	margin-top: 40px;
}
.ice-snap-hero .ice-scroll-hint { color: var(--ice-white); }

.ice-section-title {
	font-family: 'Freehand521 BT', cursive;
	font-size: 30px;
	text-align: center;
	margin: 0 0 24px;
}

.ice-snap-pricing { text-align: center; }
.ice-pricing-tiers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	max-width: 700px;
	margin: 0 auto;
}
.ice-tier {
	background: var(--ice-white);
	border: 2px solid var(--ice-dark);
	text-align: center;
	padding: 20px 10px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ice-tier .qty { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.ice-tier .price { font-size: 24px; font-weight: 800; }
.ice-tier .note { font-size: 11px; color: #777; }
.ice-pricing-note { font-size: 13px; color: #666; margin-top: 18px; max-width: 480px; margin-left: auto; margin-right: auto; }

.ice-snap-flavor:nth-of-type(even) { background: #efe8db; }

.ice-snap-closing {
	background: var(--ice-dark);
	color: var(--ice-white);
	text-align: center;
}
.ice-snap-closing .ice-hero-sub { margin-bottom: 20px; }

@media (max-width: 700px) {
	.ice-pricing-tiers { grid-template-columns: 1fr; }
}

.ice-cart-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	background: var(--ice-dark);
	color: var(--ice-white);
	padding: 14px 0;
}
.ice-cart-bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ice-cart-bar-cta {
	background: var(--ice-white);
	color: var(--ice-dark);
	text-decoration: none;
	font-weight: 700;
	padding: 10px 20px;
	font-size: 13px;
}

/* SINGLE PRODUCT (página de sabor) */
.ice-flavor {
	padding: 40px 0 20px;
}
.ice-flavor-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}
.ice-flavor-grid > div { min-width: 0; }
@media (max-width: 700px) {
	.ice-flavor-grid { grid-template-columns: 1fr; }
}
.ice-flavor-photo img {
	width: 100%;
	border-radius: 8px;
	background: #e5ded2;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.ice-flavor-title {
	font-family: 'Freehand521 BT', cursive;
	font-size: 40px;
	margin: 0 0 6px;
}
.ice-flavor-price {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 16px;
}
.ice-flavor-desc {
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 20px;
}
.ice-add-to-cart {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 24px;
}
/* Stepper +/- estilo apps de delivery */
.ice-qty-stepper {
	display: flex;
	align-items: stretch;
	width: fit-content;
	border: 2px solid var(--ice-dark);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 24px;
	transition: opacity 0.15s ease;
}
.ice-qty-stepper.is-loading { opacity: 0.6; pointer-events: none; }
.ice-qty-stepper button {
	background: var(--ice-dark);
	color: var(--ice-white);
	border: none;
	cursor: pointer;
	font-weight: 700;
	letter-spacing: 0.5px;
}
.ice-qty-stepper button:hover { background: var(--ice-brown); }
.ice-qty-stepper .ice-qty-minus,
.ice-qty-stepper .ice-qty-value {
	display: none;
}
.ice-qty-stepper .ice-qty-minus {
	width: 46px;
	font-size: 20px;
	line-height: 1;
}
.ice-qty-stepper .ice-qty-value {
	min-width: 42px;
	background: var(--ice-white);
	color: var(--ice-dark);
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 800;
}
.ice-qty-stepper .ice-qty-plus {
	padding: 12px 28px;
	font-size: 15px;
}
.ice-qty-stepper.is-active .ice-qty-minus { display: block; }
.ice-qty-stepper.is-active .ice-qty-value { display: flex; }
.ice-qty-stepper.is-active .ice-qty-plus {
	width: 46px;
	padding: 12px 0;
	font-size: 18px;
	text-align: center;
}

/* Tabla nutricional en scroll horizontal */
.ice-nutri-label {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}
.ice-nutri-scroll {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 10px;
	-webkit-overflow-scrolling: touch;
}
.ice-nutri-card {
	flex: 0 0 auto;
	min-width: 110px;
	background: var(--ice-brown);
	color: var(--ice-white);
	border-radius: 6px;
	padding: 14px 12px;
	text-align: center;
}
.ice-nutri-card .val {
	font-size: 20px;
	font-weight: 800;
	display: block;
}
.ice-nutri-card .lbl {
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.85;
}
.ice-ingredientes {
	font-size: 12.5px;
	line-height: 1.6;
	margin-top: 20px;
	color: #444;
}
.ice-ingredientes strong { display: block; margin-bottom: 4px; color: var(--ice-dark); }

/* Selector de zona de envío + resumen (checkout helper) */
.ice-shipping-picker {
	margin-top: 16px;
	padding: 16px;
	background: var(--ice-white);
	border: 1px solid #ddd;
	border-radius: 8px;
}
.ice-shipping-picker label { font-weight: 700; font-size: 13px; display: block; margin-bottom: 6px; }
.ice-shipping-picker select { width: 100%; padding: 10px; font-size: 14px; }
.ice-cart-summary {
	margin-top: 16px;
	padding: 16px;
	background: var(--ice-dark);
	color: var(--ice-white);
	border-radius: 8px;
	font-size: 14px;
}
.ice-cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.ice-cart-summary .total { font-size: 18px; font-weight: 800; border-top: 1px solid #555; padding-top: 8px; margin-top: 8px; }
