/*
Theme Name: Tela
Theme URI:
Author: TELA
Description: Premium Egyptian Cotton e-commerce block theme.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tela
Tags: e-commerce, woocommerce, block-theme, full-site-editing
WooCommerce: true
*/

/* ── Hide auto page/post/archive titles globally ─────────────────────────── */
/* Page slug/title chrome managed per-block; the WP/WC default heading
   that auto-renders above content (often just the page slug "fashion",
   "cart", "checkout") is never wanted. Broad selectors so every place
   WP might render an auto-title is covered. */
html body .wp-block-post-title,
html body .wp-block-query-title,
html body .wp-block-term-description,
html body .woocommerce-products-header__title,
html body .woocommerce h1.page-title,
html body .entry-title,
html body .page-title,
html body header.entry-header,
html body header.page-header {
	display: none !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   Site-wide section spacing + content width normalization
   ────────────────────────────────────────────────────────────────────────── */
:root {
	--site-content-max:    1440px;
	--site-section-gap:    72px;
	--site-section-gap-md: 56px;
	--site-section-gap-sm: 40px;
}

/* ── Vertical spacing between adjacent sections ─────────────────────────
   Adjacent-sibling combinator works regardless of how deeply the blocks
   are nested (in wp:post-content, wp:group, wp:column, .wp-site-blocks,
   .tela-front-main, etc.) — two consecutive theme blocks always get a
   gap between them. */
[class*="wp-block-myblocks-"] + [class*="wp-block-myblocks-"],
[class*="wp-block-myblocks-"] + [class*="wp-block-tela-"],
[class*="wp-block-tela-"] + [class*="wp-block-myblocks-"],
[class*="wp-block-tela-"] + [class*="wp-block-tela-"] {
	margin-top: var(--site-section-gap) !important;
}

@media (max-width: 1023px) {
	[class*="wp-block-myblocks-"] + [class*="wp-block-myblocks-"],
	[class*="wp-block-myblocks-"] + [class*="wp-block-tela-"],
	[class*="wp-block-tela-"] + [class*="wp-block-myblocks-"],
	[class*="wp-block-tela-"] + [class*="wp-block-tela-"] {
		margin-top: var(--site-section-gap-md) !important;
	}
}

@media (max-width: 639px) {
	[class*="wp-block-myblocks-"] + [class*="wp-block-myblocks-"],
	[class*="wp-block-myblocks-"] + [class*="wp-block-tela-"],
	[class*="wp-block-tela-"] + [class*="wp-block-myblocks-"],
	[class*="wp-block-tela-"] + [class*="wp-block-tela-"] {
		margin-top: var(--site-section-gap-sm) !important;
	}
}

/* ── Unified max-width for content sections ───────────────────────────── */
/* Force ALL content blocks to the same max-width (1320px) and centered.
   Use [class] doubled for specificity boost, plus !important.
   Full-bleed blocks (siteHeader, myfooter, introSplit, hero) excluded. */
html body .wp-block-myblocks-category-cards,
html body .wp-block-myblocks-about-us,
html body .wp-block-myblocks-business-section,
html body .wp-block-myblocks-testimonials,
html body .wp-block-myblocks-faq,
html body .wp-block-myblocks-social-feed,
html body .wp-block-myblocks-related-products,
html body .wp-block-myblocks-product-listing,
html body .wp-block-myblocks-wishlist,
html body .wp-block-tela-product-slider {
	max-width: var(--site-content-max) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box !important;
}

/* ── Unified section eyebrow (small uppercase label above titles) ────────── */
.section-eyebrow {
	display: block;
	font-family: 'Noto Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #cd9939;
	margin-bottom: 8px;
}

@media (min-width: 768px) {
	.section-eyebrow { font-size: 12px; margin-bottom: 10px; }
}

@media (min-width: 1280px) {
	.section-eyebrow { font-size: 13px; margin-bottom: 12px; }
}
