/*
Theme Name: eccna-42-base
Text Domain: eccna-42-base
Description: Custom lightweight temporary theme for ECCNA 42 Malta 2027, built from scratch and compatible with WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* This file holds the WordPress theme header (above) plus truly global
 * rules only. Tailwind handles everything else.
 *
 * - Design tokens live in theme.css's @theme block.
 * - Prose + form styles live in presets.css.
 * - Layout, color, typography utilities come from Tailwind v4.
 *
 * Do NOT add component classes here (.btn-primary, .card, etc.). Use
 * Tailwind utilities in templates instead.
 */

html {
	scroll-behavior: smooth;
}

/* Hide the default WooCommerce sidebar fallback markup (unstyled search/pages/archives
 * list) that gets injected via the woocommerce_sidebar hook on shop and single product
 * pages. This theme has no real sidebar design and doesn't use this content. */
#sidebar {
	display: none;
}

/* WooCommerce renders its own generic wrapper (#primary > #main) on the shop
 * archive and single product pages, since this theme has no matching template
 * override. That wrapper carries no width/padding, so its content (titles,
 * prices, the product grid) was flush against the browser edges. Give it the
 * same page gutters used elsewhere in the theme (max-w-7xl + responsive px). */
#primary.content-area {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	padding-top: 2rem;
	padding-bottom: 3rem;
}

@media (min-width: 640px) {
	#primary.content-area {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

@media (min-width: 1024px) {
	#primary.content-area {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* Activities + booking page: make the embedded WooCommerce products feel like
 * part of the page rather than a cramped default shop grid. */
.page-id-65329 .woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 2rem 0 0 !important;
	padding: 0 !important;
}

.page-id-65329 .woocommerce ul.products::before,
.page-id-65329 .woocommerce ul.products::after {
	display: none !important;
}

.page-id-65329 .woocommerce ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 0 1.25rem !important;
	background: #fff;
	border: 1px solid #dfe6ef;
	border-radius: 1.25rem;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(10, 21, 38, 0.08);
	display: flex;
	flex-direction: column;
}

.page-id-65329 .woocommerce ul.products li.product > a:first-child {
	display: block;
	text-decoration: none;
}

.page-id-65329 .woocommerce ul.products li.product img {
	width: 100% !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin: 0 0 1rem !important;
	border-radius: 0 !important;
}

.page-id-65329 .woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.15rem !important;
	line-height: 1.3;
	padding: 0 1.1rem !important;
	margin: 0 0 .6rem !important;
	color: #0a1526;
}

.page-id-65329 .woocommerce ul.products li.product .price {
	display: block;
	padding: 0 1.1rem;
	margin-bottom: 1rem !important;
	font-size: 1.05rem !important;
	font-weight: 800;
	color: #0f63b8 !important;
}

.page-id-65329 .woocommerce ul.products li.product .button {
	margin: auto 1.1rem 0 !important;
	width: calc(100% - 2.2rem);
	min-height: 3rem;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: normal;
	border-radius: 999px !important;
	background: #d7a538 !important;
	color: #0a1526 !important;
	font-weight: 800 !important;
	padding: .8rem 1rem !important;
}

@media (max-width: 1023px) {
	.page-id-65329 .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.page-id-65329 .woocommerce ul.products {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}
