/*
Theme Name: What The Scoop
Theme URI: https://whatthescoop.co.za
Author: Dra Designs
Author URI: https://dradesigns.co.za
Description: Custom theme for What The Scoop mystery squishy scoops. Built for WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: whatthescoop
*/

:root {
	--plum: #2D1B4E;
	--pink: #FF4F9A;
	--yellow: #FFD23F;
	--turq: #1FC8B8;
	--orange: #FF8A3D;
	--purple: #7C4DFF;
	--cream: #FFF6E5;
	--white: #FFFFFF;
	--head: "Inter", system-ui, sans-serif;
	--body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--plum); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); }
a:hover { color: var(--purple); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 900; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--yellow); padding: 10px 16px; z-index: 1000; border-radius: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 36px; }
.section-head h2, .h2 { font-size: clamp(34px, 4.5vw, 54px); }
.section-head p { font-size: 19px; max-width: 38rem; }
.pill { display: inline-block; font-weight: 800; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 8px 16px; color: var(--plum); }
.pill--turq { background: var(--turq); }
.pill--pink { background: var(--pink); }
.pill--plum { background: var(--plum); color: var(--cream); }
.bordered { border-top: 3px solid var(--plum); border-bottom: 3px solid var(--plum); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 900; font-size: 19px; border-radius: 999px; padding: 15px 30px; text-decoration: none; border: 3px solid var(--plum); cursor: pointer; line-height: 1.1; min-height: 52px; }
.btn--pink { background: var(--pink); color: var(--plum); box-shadow: 0 5px 0 var(--plum); }
.btn--pink:hover { color: var(--plum); transform: translateY(1px); box-shadow: 0 4px 0 var(--plum); }
.btn--ghost { background: transparent; color: var(--plum); }
.btn--plum { background: var(--plum); color: var(--cream); }
.btn--plum:hover { color: var(--yellow); }
.btn--soon { width: 100%; background: var(--white); color: var(--plum); border-style: dashed; font-family: var(--head); font-size: 21px; letter-spacing: 0.04em; cursor: not-allowed; }
.btn--soon:hover { color: var(--plum); }

/* Announcement + header */
.announce { background: var(--yellow); text-align: center; font-weight: 800; font-size: 15px; padding: 10px 16px; }
.site-header { background: var(--plum); border-bottom: 3px solid var(--plum); }
.site-header .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 34px; padding-bottom: 22px; }
.site-logo img { width: clamp(260px, 40vw, 520px); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; font-weight: 800; font-size: 18px; }
.site-nav a { color: var(--cream); text-decoration: none; }
.site-nav a:hover { color: var(--yellow); }
.site-nav .cart-link { display: inline-flex; align-items: center; gap: 8px; background: var(--pink); color: var(--plum); border-radius: 999px; padding: 11px 20px; min-height: 44px; }
.site-nav .cart-link .count { background: var(--cream); border-radius: 999px; padding: 0 9px; font-size: 15px; }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero__text h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; }
.hero__text h1 span { color: var(--pink); }
.hero__text p { font-size: 21px; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { flex: 1 1 420px; min-width: 0; position: relative; }
.hero__frame { aspect-ratio: 4 / 3.4; border-radius: 36px; background: var(--yellow); border: 3px solid var(--plum); box-shadow: 10px 10px 0 var(--plum); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; top: -18px; right: 22px; background: var(--purple); color: var(--white); font-family: var(--head); font-weight: 900; font-size: 18px; border-radius: 999px; padding: 10px 18px; transform: rotate(6deg); border: 3px solid var(--plum); }

/* Scoops */
.shop { background: var(--white); }
.scoops { display: flex; flex-wrap: wrap; gap: 28px; }
.scoop { flex: 1 1 300px; min-width: 0; border: 3px solid var(--plum); border-radius: 30px; box-shadow: 8px 8px 0 var(--plum); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.scoop--0 { background: var(--turq); }
.scoop--1 { background: var(--yellow); }
.scoop--2 { background: var(--orange); }
.scoop__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid var(--plum); border-radius: 22px; background: var(--cream); }
.scoop h3 { font-size: 30px; }
.scoop__desc { font-size: 17px; }
.scoop__price { font-family: var(--head); font-weight: 900; font-size: 34px; }
.scoop__soon { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.scoop__soon span { font-size: 15px; font-weight: 700; text-align: center; }
.scoop form.cart { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.qty-stepper { display: flex; align-items: center; background: var(--white); border: 3px solid var(--plum); border-radius: 999px; }
.qty-stepper button { width: 48px; height: 48px; border: 0; background: transparent; font-size: 26px; font-weight: 900; color: var(--plum); cursor: pointer; border-radius: 999px; }
.qty-stepper input { width: 40px; border: 0; background: transparent; text-align: center; font-family: var(--head); font-weight: 900; font-size: 22px; color: var(--plum); -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.scoop form.cart .btn { flex: 1 1 150px; }
.scoop__note { font-size: 14px; font-weight: 700; }

/* How it works */
.steps { display: flex; flex-wrap: wrap; gap: 24px; }
.step { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.step__num { width: 64px; height: 64px; border-radius: 999px; border: 3px solid var(--plum); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 900; font-size: 28px; }
.step h3 { font-size: 24px; }
.tracker { margin-top: 36px; background: var(--white); border: 3px solid var(--plum); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.tracker h3 { font-size: 22px; }
.tracker ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.tracker li { flex: 1 1 200px; display: flex; align-items: center; gap: 12px; background: var(--cream); border-radius: 18px; padding: 14px 16px; font-weight: 800; }
.dot { width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--plum); flex: none; }

/* Polaroids */
.spotted { background: var(--yellow); border-top: 3px solid var(--plum); }
.polaroids { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.polaroid { flex: 1 1 200px; max-width: 230px; margin: 0; background: var(--white); border: 3px solid var(--plum); border-radius: 18px; padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.polaroid:nth-child(5n+1) { transform: rotate(-4deg); }
.polaroid:nth-child(5n+2) { transform: rotate(3deg); }
.polaroid:nth-child(5n+3) { transform: rotate(-2deg); }
.polaroid:nth-child(5n+4) { transform: rotate(5deg); }
.polaroid:nth-child(5n+5) { transform: rotate(-3deg); }
.polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.polaroid figcaption { font-weight: 800; font-size: 15px; text-align: center; }

/* About */
.about { background: var(--purple); }
.about .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.about__img { flex: 1 1 340px; min-width: 0; }
.about__img img { width: 100%; max-width: 460px; margin: 0 auto; border-radius: 32px; border: 3px solid var(--plum); box-shadow: 10px 10px 0 var(--plum); transform: rotate(-2deg); }
.about__card { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; background: var(--cream); border: 3px solid var(--plum); border-radius: 30px; padding: 36px; }
.about__card h2 { font-size: clamp(32px, 4vw, 46px); }
.about__card p { font-size: 19px; line-height: 1.6; }

/* TikTok */
.tiktok-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.tiktok-head a { font-weight: 900; font-size: 18px; }
.tiktok-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.tiktok-card { flex: 1 1 220px; aspect-ratio: 9 / 14; border: 3px solid var(--plum); border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; font-weight: 800; padding: 16px; text-decoration: none; color: var(--plum); }
.tiktok-card:nth-child(1) { background: var(--pink); }
.tiktok-card:nth-child(2) { background: var(--turq); }
.tiktok-card:nth-child(3) { background: var(--orange); }
.tiktok-card:nth-child(4) { background: var(--yellow); }
.tiktok-feed { width: 100%; }

/* FAQ */
.faq { background: var(--white); border-top: 3px solid var(--plum); }
.faq .wrap { max-width: 860px; display: flex; flex-direction: column; gap: 16px; }
.faq details { border: 3px solid var(--plum); border-radius: 22px; padding: 20px 24px; background: var(--cream); }
.faq summary { font-family: var(--head); font-weight: 900; font-size: 21px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 12px; }

/* Footer */
.site-footer { background: var(--plum); color: var(--cream); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--yellow); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 56px; padding-bottom: 32px; }
.footer-cols > div { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; }
.footer-cols > div:first-child { flex-basis: 280px; }
.footer-cols h3 { font-size: 18px; color: var(--yellow); margin-bottom: 4px; }
.footer-logo { width: 240px; }
.footer-bottom { border-top: 1px solid rgba(255, 246, 229, 0.25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; padding-top: 18px; padding-bottom: 28px; }

/* Inner pages + WooCommerce */
.page-main { padding: 56px 0 80px; }
.page-main .wrap > h1, .page-main h1.page-title { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 28px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 28px; margin-top: 1.4em; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit, .wc-block-components-button { background: var(--plum) !important; color: var(--cream) !important; border-radius: 999px !important; font-family: var(--body) !important; font-weight: 900 !important; padding: 14px 26px !important; }
.woocommerce .button.alt, .woocommerce button.button.alt { background: var(--pink) !important; color: var(--plum) !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--turq) !important; }
.woocommerce span.onsale { background: var(--pink); color: var(--plum); }

@media (max-width: 640px) {
	.section { padding: 56px 0; }
	.hero .wrap { padding-top: 40px; }
	.about__card { padding: 24px; }
}
