/*
Theme Name: She Chocolate
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: she-chocolate
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap between the
   template's top-level sections. Zero it so sections butt edge-to-edge and own
   their vertical rhythm via padding. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart...) still clear the
   header and footer. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* ==========================================================================
   She Chocolate design system
   ========================================================================== */

:root {
	--she-pink: var( --wp--preset--color--primary );
	--she-pink-deep: var( --wp--preset--color--pink );
	--she-cream: var( --wp--preset--color--cream );
	--she-bg: var( --wp--preset--color--background );
	--she-text: var( --wp--preset--color--text );
	--she-accent: var( --wp--preset--color--accent );
	--she-gold: var( --wp--preset--color--gold );
	--she-radius: 24px;
	--she-shadow: 0 20px 45px -28px rgba( 60, 32, 20, 0.5 );
}

/* ---- Buttons ---- */
.wp-element-button {
	box-shadow: 0 12px 24px -14px rgba( 60, 32, 20, 0.45 );
	transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.wp-element-button:hover {
	background: var( --she-text ) !important;
	transform: translateY( -2px );
	box-shadow: 0 16px 26px -14px rgba( 60, 32, 20, 0.5 );
}
.is-style-secondary .wp-element-button,
a.button-secondary,
.wp-block-button.is-style-secondary .wp-element-button {
	background: var( --she-pink );
	color: var( --she-text );
}

/* ---- Header ---- */
.site-header {
	background: color-mix( in srgb, var( --she-cream ) 92%, transparent );
	-webkit-backdrop-filter: blur( 10px );
	backdrop-filter: blur( 10px );
	position: sticky;
	top: 0;
	z-index: 60;
	box-shadow: 0 1px 0 rgba( 60, 32, 20, 0.06 );
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex-shrink: 0;
}
.brand-mark {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: radial-gradient( circle at 30% 25%, #fbdbe7, var( --she-pink ) 70%, #e79abf );
	border: 2px solid #fff;
	box-shadow: 0 4px 12px -6px rgba( 60, 32, 20, 0.4 );
	color: #fff;
	font-family: var( --wp--preset--font-family--cairo );
	font-weight: 800;
	font-size: 18px;
}
.brand-logo {
	margin-block: 0;
}
.brand-logo img {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 4px 12px -6px rgba( 60, 32, 20, 0.4 );
}
.brand-name {
	font-family: var( --wp--preset--font-family--cairo );
	font-weight: 800;
	font-size: 20px;
	color: var( --she-accent );
	line-height: 1.1;
}
.brand-name small {
	display: block;
	font-weight: 400;
	font-size: 11px;
	color: var( --she-pink-deep );
	letter-spacing: 0.18em;
}
.site-header .wp-block-navigation .wp-block-navigation-item a {
	font-family: var( --wp--preset--font-family--cairo );
	font-weight: 700;
	font-size: 15px;
	color: var( --she-text );
	padding: 8px 14px;
	border-radius: 999px;
	transition: background 0.16s ease, color 0.16s ease;
}
.site-header .wp-block-navigation .wp-block-navigation-item a:hover {
	background: var( --she-pink );
	color: var( --she-text );
}

/* ---- Mini cart ---- */
.wc-block-mini-cart__button {
	background: var( --she-accent ) !important;
	color: var( --she-cream ) !important;
	border-radius: 999px !important;
	padding: 10px 16px !important;
	font-family: var( --wp--preset--font-family--cairo );
	font-weight: 700 !important;
	font-size: 14px !important;
}

/* ---- Eyebrow / badge ---- */
.eyebrow {
	font-family: var( --wp--preset--font-family--cairo );
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.06em;
	color: var( --she-pink-deep );
	text-transform: uppercase;
}
.pill-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var( --she-gold );
	color: #4b2c12;
	font-family: var( --wp--preset--font-family--cairo );
	font-weight: 700;
	font-size: 13px;
	padding: 6px 16px;
	border-radius: 999px;
	box-shadow: 0 8px 18px -10px rgba( 60, 32, 20, 0.4 );
}

/* ---- Hero ---- */
.hero-band {
	background: linear-gradient( 135deg, var( --she-pink ) 0%, #fbe0ea 55%, #fff2e2 100% );
}
.hero-title {
	font-size: clamp( 34px, 6.4vw, 56px );
	line-height: 1.18;
	color: var( --she-text );
	max-width: 12ch;
	text-wrap: balance;
}
.hero-title span {
	color: var( --she-accent );
}
.hero-copy {
	max-width: 46ch;
}
.hero-media img {
	border-radius: 28px;
	box-shadow: var( --she-shadow );
	object-fit: cover;
	width: 100%;
	max-height: 540px;
	border: 8px solid rgba( 255, 255, 255, 0.7 );
}
.hero-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-block-start: 26px;
}

/* ---- Cards / tiles ---- */
.is-style-card,
.wp-block-group.is-style-card {
	background: var( --she-cream );
	border-radius: var( --she-radius );
	border: 1px solid color-mix( in srgb, var( --she-pink ) 60%, #fff );
	padding: 28px;
	box-shadow: 0 16px 34px -26px rgba( 60, 32, 20, 0.35 );
}
.is-style-tile,
.wp-block-group.is-style-tile {
	background: var( --she-cream );
	border-radius: var( --she-radius );
	overflow: hidden;
	border: 1px solid color-mix( in srgb, var( --she-pink ) 50%, #fff );
	box-shadow: 0 18px 38px -28px rgba( 60, 32, 20, 0.4 );
}
.is-style-tile .tile-media img,
.is-style-tile > figure img,
.is-style-tile > .wp-block-image img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
	display: block;
}
.icon-chip {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var( --she-pink );
	color: var( --she-text );
	margin-block-end: 12px;
}

/* ---- Quick-link big tiles ---- */
.quicklink .wp-element-button {
	background: var( --she-accent );
	color: var( --she-cream );
}
.quicklink-alt .wp-element-button {
	background: var( --she-gold );
	color: #4b2c12;
}

/* ---- Footer / newsletter band ---- */
.footer-band,
.chocolate-band {
	background: var( --she-accent );
	color: var( --she-cream );
}
.footer-band h1, .footer-band h2, .footer-band h3, .footer-band h4,
.footer-band .wp-block-heading,
.chocolate-band h2, .chocolate-band h3 {
	color: var( --she-cream );
}
.chocolate-band a,
.footer-band a {
	color: #ffe3ee;
}
.newsletter-note {
	font-size: 13px;
	opacity: 0.8;
}
.newsletter-form .wp-block-jetpack-contact-form {
	gap: 8px;
}
.newsletter-form input[type="text"],
.newsletter-form input[type="email"],
.newsletter-form input[type="name"] {
	background: rgba( 255, 255, 255, 0.12 );
	border: 1px solid rgba( 255, 255, 255, 0.4);
	border-radius: 999px;
	padding: 13px 20px;
	color: #fff;
	font-family: var( --wp--preset--font-family--tajawal );
}
.newsletter-form input::placeholder {
	color: rgba( 255, 255, 255, 0.7 );
}
.newsletter-form .wp-block-button__link {
	background: var( --she-gold );
	color: #4b2c12;
}
.social-row {
	display: flex;
	gap: 12px;
}
.social-row a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.12 );
	border: 1px solid rgba( 255, 255, 255, 0.3);
	color: #fff;
	text-decoration: none;
	transition: background 0.16s ease, transform 0.16s ease;
}
.social-row a:hover {
	background: var( --she-gold );
	color: #4b2c12;
	transform: translateY( -2px );
}

/* ---- Best sellers ---- */
.best-hero {
	background: linear-gradient( 180deg, #fff2e6 0%, var( --she-bg ) 100% );
}
.best-card .wp-block-image {
	margin-block: 0 18px;
}
.best-card .wp-block-image img {
	border-radius: 20px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
	box-shadow: 0 14px 30px -20px rgba( 60, 32, 20, 0.5 );
}
.price-pink {
	color: var( --she-pink-deep );
	font-family: var( --wp--preset--font-family--cairo );
}
.why-band {
	background: linear-gradient( 180deg, rgba( 244, 184, 206, 0.22 ), rgba( 244, 184, 206, 0.05 ) );
}
.why-band .is-style-card .icon-chip,
.best-hero .icon-chip {
	margin-block-end: 14px;
}

/* ---- Product collection cards ---- */
.product-grid-wrap .wc-block-product {
	background: var( --she-cream );
	border-radius: var( --she-radius );
	border: 1px solid color-mix( in srgb, var( --she-pink ) 55%, #fff );
	box-shadow: var( --she-shadow );
	padding: 18px;
}
.product-grid-wrap .wc-block-components-product-image img {
	border-radius: 18px;
}
.product-grid-wrap .wc-block-components-product-title {
	color: var( --she-text );
}
.product-grid-wrap .wc-block-components-product-price .amount {
	color: var( --she-pink-deep );
	font-family: var( --wp--preset--font-family--cairo );
	font-weight: 800;
}

/* ---- Product blocks ---- */
.wp-block-woocommerce-featured-product {
	border-radius: var( --she-radius );
}
.wc-block-card__media img {
	border-radius: 20px;
}
.wp-block-woocommerce-product-collection .wp-block-button__link {
	width: 100%;
}

/* ---- Section rhythm helpers ---- */
.section-pad {
	padding-block: clamp( 40px, 8vw, 90px );
}

/* ---- Responsive ---- */
@media ( max-width: 781px ) {
	.brand-name {
		font-size: 17px;
	}
}

/* Respect reduced motion */
@media ( prefers-reduced-motion: reduce ) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
