/*
Theme Name: Abhinandan Textile
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: abhinandan-textile
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts margin-block-start: var(--wp--style--block-gap) between the
   template's top-level sections (header part, main, footer part) — a gap that
   exists even when no markup asks for it. Zero it so sections butt edge-to-edge
   and own their vertical rhythm via padding; this does not affect block gaps
   inside nested layouts. */
.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. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.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;
}

/* === header === */
.site-header {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
}
.site-header .wp-block-site-title a,
.site-header .wp-block-site-title {
	text-decoration: none;
	letter-spacing: 0.02em;
}
.site-header .wp-block-navigation a {
	font-weight: 600;
}

/* === hero === */
.hero-eyebrow,
.section-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 600;
	margin: 0;
}
.wp-block-cover .is-style-outline .wp-element-button {
	border-color: var(--wp--preset--color--base);
}
/* WP's has-*-color / has-*-background-color utility classes carry !important,
   which beats the theme.json elements.button hover rule. Re-assert hover here
   with matching specificity so every button variant still visibly reacts. */
.wp-element-button:hover {
	background-color: var(--wp--preset--color--terracotta) !important;
	border-color: var(--wp--preset--color--terracotta) !important;
	color: var(--wp--preset--color--base) !important;
}

/* === collections-grid === */
.collection-card {
	text-align: center;
}
.collection-card__image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	border-radius: 4px;
	transition: transform 0.4s ease;
}
.collection-card:hover .collection-card__image img {
	transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
	.collection-card__image img {
		transition: none;
	}
}

/* === story === */
.story-image img {
	border-radius: 4px;
}

/* === quote === */
.is-style-large blockquote,
blockquote.is-style-large {
	border: none;
	padding: 0;
}
blockquote.is-style-large cite {
	display: block;
	margin-top: 16px;
	font-style: normal;
	opacity: 0.8;
}

/* === collection-rows === */
.collection-row-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	border-radius: 4px;
}

/* === cta === */

/* === footer === */

/* === about === */
.about-portrait img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	width: 100%;
	border-radius: 4px;
}

/* === contact === */

/* === social-cards === */
.social-card {
	padding: 2em;
	background-color: var(--wp--preset--color--cream);
	border-radius: 4px;
	text-align: center;
}
.social-card__icon {
	color: var(--wp--preset--color--oxblood);
	margin-bottom: 0.5em;
}

/* === video-placeholder === */
.video-placeholder {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}
.video-placeholder img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	display: block;
}
.video-placeholder::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-top: 14px solid transparent;
	border-bottom: 14px solid transparent;
	border-left: 22px solid var(--wp--preset--color--base);
	transform: translate(-40%, -50%);
	filter: drop-shadow(0 2px 6px rgba(43,32,25,0.5));
	pointer-events: none;
}

/* === facility-cards === */
.facility-card {
	padding: 1.75em;
	background-color: var(--wp--preset--color--ivory);
	border-radius: 4px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.facility-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(43, 32, 25, 0.12);
}
@media (prefers-reduced-motion: reduce) {
	.facility-card { transition: none; }
	.facility-card:hover { transform: none; }
}

/* === product-cards === */
.subcategory-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	margin-bottom: 2.5em;
}
.subcategory-pill {
	display: inline-block;
	padding: 0.6em 1.4em;
	border: 2px solid var(--wp--preset--color--oxblood);
	border-radius: 9999px;
	color: var(--wp--preset--color--oxblood);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--modern-sans);
	font-size: 0.95rem;
}
.subcategory-pill:hover {
	background-color: var(--wp--preset--color--oxblood);
	color: var(--wp--preset--color--base);
}
.whatsapp-inquire-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin-top: 1em;
	padding: 0.7em 1.3em;
	background-color: #25D366;
	color: #ffffff;
	border-radius: 9999px;
	font-family: var(--wp--preset--font-family--modern-sans);
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.whatsapp-inquire-btn:hover {
	background-color: #1DA851;
	color: #ffffff;
}
ul.products li.product {
	background-color: var(--wp--preset--color--cream);
	border-radius: 4px;
	padding: 1.25em 1.25em 1.5em;
}
ul.products li.product img {
	border-radius: 4px;
	margin-bottom: 0.75em;
}
ul.products li.product .price {
	font-family: var(--wp--preset--font-family--modern-sans);
	color: var(--wp--preset--color--oxblood);
	font-size: 1.1rem;
}
ul.products li.product .price del {
	opacity: 0.5;
	font-size: 0.85em;
}
ul.products li.product .onsale {
	background-color: var(--wp--preset--color--terracotta);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--modern-sans);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.3em 0.8em;
	border-radius: 9999px;
	top: 1em;
	left: 1em;
	right: auto;
	min-height: 0;
	line-height: 1.4;
}

/* === responsive === */
