/*
Theme Name: Serenity Press
Theme URI: https://theserenitypress.com
Author: Serenity Press
Author URI: https://theserenitypress.com
Description: A blog-driven WooCommerce block theme where editorial content drives product discovery. Clean, modern, accessible, and fully editable through the WordPress Site Editor. Editorial first, commerce second.
Version: 0.0.1.3
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serenity-press
Tags: blog, e-commerce, full-site-editing, block-patterns, woocommerce, editorial, wide-blocks, flexible-header, custom-colors, custom-typography

Serenity Press is a production-grade Full Site Editing block theme built for blog-driven WooCommerce websites.
*/

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
	z-index: 100;
	box-shadow: 0 1px 4px rgba(31, 41, 51, 0.06);
}

.site-header .wp-block-site-title a {
	white-space: nowrap;
	text-decoration: none;
}

.site-header .wp-block-navigation a {
	text-decoration: none;
	transition: color 0.15s ease;
}

.site-header .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	padding: 0.375rem 0.75rem;
	font-size: var(--wp--preset--font-size--sm);
	background: var(--wp--preset--color--background);
	transition: border-color 0.15s ease;
}

.site-header .wp-block-search__input:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
}

/* ==========================================================================
   Article Cards
   ========================================================================== */

.article-card {
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	overflow: hidden;
}

.article-card:hover {
	box-shadow: 0 8px 24px rgba(31, 41, 51, 0.1);
	transform: translateY(-3px);
}

.article-card .wp-block-post-featured-image img {
	transition: transform 0.3s ease;
	display: block;
	width: 100%;
	object-fit: cover;
}

.article-card:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.article-card .wp-block-post-title a {
	text-decoration: none;
}

.article-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	padding: 0.5rem 1rem;
	background: var(--wp--preset--color--accent);
	color: #fff;
	border-radius: 0 0 4px 4px;
	font-size: var(--wp--preset--font-size--sm);
	z-index: 9999;
	text-decoration: none;
}

.skip-link:focus {
	top: 0;
}

/* ==========================================================================
   Author Cards
   ========================================================================== */

.author-card {
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.author-card:hover {
	box-shadow: 0 8px 24px rgba(31, 41, 51, 0.1);
	transform: translateY(-2px);
}

/* ==========================================================================
   Category Cards (Shop)
   ========================================================================== */

.category-card {
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
	box-shadow: 0 8px 24px rgba(31, 41, 51, 0.1);
	transform: translateY(-2px);
}

/* ==========================================================================
   Product Cards
   ========================================================================== */

.product-card {
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	overflow: hidden;
}

.product-card:hover {
	box-shadow: 0 8px 24px rgba(31, 41, 51, 0.1);
	transform: translateY(-3px);
}

.product-card .wp-block-post-title a {
	text-decoration: none;
}

/* ==========================================================================
   Author Archive
   ========================================================================== */

.author-bio-header {
	padding-bottom: var(--wp--preset--spacing--70);
}

/* ==========================================================================
   Shop Archive
   ========================================================================== */

.shop-archive-hero {
	width: 100%;
}

.shop-product-grid .wp-block-woocommerce-product-collection {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--50);
}

@media (max-width: 900px) {
	.shop-product-grid .wp-block-woocommerce-product-collection {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.shop-product-grid .wp-block-woocommerce-product-collection {
		grid-template-columns: 1fr;
	}
}

/* Ensure product images fill card width */
.product-card .wp-block-woocommerce-product-image {
	width: 100%;
	display: block;
}

.product-card .wp-block-woocommerce-product-image img {
	width: 100%;
	display: block;
	object-fit: cover;
}

.product-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Add to cart button full width */
.product-card .wp-block-button {
	width: 100%;
}

.product-card .wp-block-button__link {
	width: 100%;
	text-align: center;
	justify-content: center;
}
