/* ==========================================================================
   Storeva Theme — Main Stylesheet
   Table of Contents:
   1. Resets & Base
   2. Accessibility
   3. Layout Helpers
   4. Header
   5. Announcement Bar
   6. Navigation
   7. Hero & Patterns
   8. Sections & Cards
   9. Buttons & Forms
   10. Footer
   11. Blog / Single Post
   12. 404 Page
   13. Responsive
   ========================================================================== */

/* 1. Resets & Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

body {
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	transition: color 0.2s ease;
}

button {
	cursor: pointer;
	font-family: inherit;
}

/* 2. Accessibility
   ========================================================================== */
.skip-link.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	background-color: #1A1A2E;
	border-radius: 4px;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
	clip: auto !important;
	clip-path: none;
	color: #fff;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 6px;
	line-height: normal;
	padding: 12px 20px;
	text-decoration: none;
	top: 6px;
	width: auto;
	z-index: 100000;
}

:focus-visible {
	outline: 2px solid #2563EB;
	outline-offset: 2px;
}

/* 3. Layout Helpers
   ========================================================================== */
.storeva-section {
	width: 100%;
}

.section-header {
	gap: 1rem;
}

.section-header--center {
	text-align: center;
}

/* 4. Header
   ========================================================================== */
.site-header {
	position: relative;
	z-index: 100;
	background-color: #fff;
	border-bottom: 1px solid #E5E7EB;
}

.site-header.is-sticky {
	position: sticky;
	top: 0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	animation: storeva-header-slide-down 0.3s ease;
}

@keyframes storeva-header-slide-down {
	from {
		transform: translateY(-100%);
	}
	to {
		transform: translateY(0);
	}
}

.header-inner {
	max-width: 1400px;
	margin: 0 auto;
}

.header-brand .header-logo img {
	max-height: 44px;
	width: auto;
}

.header-site-title a {
	text-decoration: none;
	color: #111827;
}

.header-nav-wrap {
	flex: 1;
}

.header-actions > * {
	display: flex;
	align-items: center;
}

.header-account-btn a,
.header-mini-cart a {
	color: #111827;
	display: flex;
	align-items: center;
	gap: 6px;
}

.header-search-toggle .wp-block-search__inside-wrapper {
	border-radius: 6px;
}

.header-search-drawer {
	display: none;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #E5E7EB;
	background: #fff;
}

.header-search-drawer.is-open {
	display: block;
}

/* WooCommerce mini-cart drawer polish */
.wc-block-mini-cart__drawer .wc-block-components-drawer__screen-overlay {
	background: rgba(15, 15, 15, 0.5);
}

.wc-block-mini-cart__title {
	font-weight: 700;
}

/* 5. Announcement Bar
   ========================================================================== */
.storeva-announcement-bar,
.announcement-bar {
	position: relative;
	overflow: hidden;
}

.announcement-bar-inner {
	white-space: nowrap;
	overflow: hidden;
}

.announcement-divider {
	margin: 0 !important;
}

.announcement-close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	color: inherit;
	opacity: 0.7;
	padding: 4px;
}

.announcement-close:hover {
	opacity: 1;
}

/* 6. Navigation
   ========================================================================== */
.header-nav .wp-block-navigation-item > a {
	color: #111827;
	font-weight: 500;
	padding: 8px 0;
	position: relative;
}

.header-nav .wp-block-navigation-item > a:hover {
	color: #2563EB;
}

.header-nav .wp-block-navigation-item > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: #2563EB;
	transition: width 0.25s ease;
}

.header-nav .wp-block-navigation-item > a:hover::after {
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: #fff;
	z-index: 999999;
}

/* 7. Hero & Patterns
   ========================================================================== */
.storeva-hero .hero-cover {
	border-radius: 0;
}

.hero-stats {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: 1.5rem;
}

/* Category grid (WooCommerce product-categories block) */
.category-grid-block ul.wc-block-product-categories-list,
.wp-block-woocommerce-product-categories {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.category-grid-block li,
.wp-block-woocommerce-product-categories li {
	list-style: none;
}

.category-grid-block .wc-block-product-categories-list-item,
.wp-block-woocommerce-product-categories a {
	display: block;
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	aspect-ratio: 4/5;
	background-size: cover;
	background-position: center;
}

.category-grid-block .wc-block-product-categories-list-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.65) 100%);
}

.category-count {
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.8125rem;
}

/* Promo banners */
.promo-banner {
	overflow: hidden;
}

.promo-banner:hover img {
	transform: scale(1.04);
}

/* Trust badges */
.trust-badge-item {
	border-right: 1px solid #E5E7EB;
}

.trust-badge-item:last-child {
	border-right: none;
}

/* Testimonials */
.testimonial-card {
	height: 100%;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.testimonial-card:hover {
	box-shadow: var(--wp--preset--shadow--card-hover);
	transform: translateY(-3px);
}

.testimonial-avatar img {
	border-radius: 50%;
	object-fit: cover;
}

/* Newsletter */
.newsletter-form-wrap .wp-block-search__inside-wrapper {
	max-width: 480px;
	margin: 0 auto;
	border-radius: 8px;
	overflow: hidden;
}

.newsletter-search-form .wp-block-search__input {
	border: none;
	padding: 14px 18px;
}

.newsletter-search-form .wp-block-search__button {
	background: #111827;
	color: #fff;
	border-radius: 0;
	padding: 0 24px;
}

/* Brand logos */
.brand-logo-item img {
	filter: grayscale(100%);
	opacity: 0.5;
	transition: opacity 0.25s ease, filter 0.25s ease;
}

.brand-logo-item:hover img {
	filter: grayscale(0%);
	opacity: 1;
}

/* FAQ */
.storeva-faq-item summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.storeva-faq-item summary::-webkit-details-marker {
	display: none;
}

.storeva-faq-item summary::after {
	content: "+";
	font-size: 1.5rem;
	color: #2563EB;
	flex-shrink: 0;
	margin-left: 1rem;
	transition: transform 0.2s ease;
}

.storeva-faq-item[open] summary::after {
	transform: rotate(45deg);
}

.storeva-faq-item p {
	color: #6B7280;
	margin-top: 0.75rem;
	line-height: 1.7;
}

/* Custom checklist style */
.is-style-storeva-checklist li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.5rem;
	list-style: none;
}

.is-style-storeva-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #16A34A;
	font-weight: 700;
}

/* 8. Sections & Cards (Blog + General)
   ========================================================================== */
.storeva-post-card {
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.storeva-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--card-hover);
}

.post-card-body {
	padding: 1rem 0.25rem;
}

.post-card-category a {
	font-size: 0.75rem;
	font-weight: 600;
	color: #2563EB;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
}

.post-card-title a {
	color: #111827;
	text-decoration: none;
	font-weight: 700;
}

.post-card-title a:hover {
	color: #2563EB;
}

.post-card-meta {
	gap: 0.75rem;
	font-size: 0.8125rem;
	color: #9CA3AF;
}

.storeva-post-card--horizontal {
	gap: 1.25rem;
	align-items: flex-start;
}

.storeva-breadcrumb,
.storeva-breadcrumb-block,
.woocommerce-breadcrumb {
	font-size: 0.8125rem;
	color: #6B7280;
}

.storeva-breadcrumb a,
.woocommerce-breadcrumb a {
	color: #6B7280;
	text-decoration: none;
}

.storeva-breadcrumb a:hover,
.woocommerce-breadcrumb a:hover {
	color: #2563EB;
}

.breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumb-item {
	display: inline-flex;
	gap: 0.4rem;
}

/* 9. Buttons & Forms
   ========================================================================== */
.wp-block-button__link {
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.is-style-storeva-outline .wp-block-button__link {
	background: transparent !important;
	border: 2px solid currentColor;
}

.is-style-storeva-ghost .wp-block-button__link {
	background: transparent !important;
	color: #2563EB;
	padding-left: 0 !important;
	padding-right: 0 !important;
	text-decoration: none;
}

.is-style-storeva-ghost .wp-block-button__link:hover {
	text-decoration: underline;
}

.is-style-storeva-pill .wp-block-button__link {
	border-radius: 999px !important;
}

.wp-block-search__inside-wrapper {
	border: 1px solid #E5E7EB;
	border-radius: 6px;
	overflow: hidden;
}

.wp-block-search__input {
	border: none !important;
	padding: 10px 14px !important;
}

.wp-block-search__button {
	background: #2563EB !important;
	border-radius: 0 !important;
	color: #fff !important;
}

/* 10. Footer
   ========================================================================== */
.footer-main a {
	color: #D1D5DB;
	text-decoration: none;
}

.footer-main a:hover {
	color: #FFFFFF;
}

.footer-nav .wp-block-navigation-item {
	margin-bottom: 0.5rem;
}

.footer-social-links .wp-block-social-link a {
	background: rgba(255, 255, 255, 0.08);
}

.footer-social-links .wp-block-social-link a:hover {
	background: #2563EB;
}

.footer-email-form .wp-block-search__inside-wrapper {
	border-color: rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.05);
}

.footer-email-form .wp-block-search__input {
	background: transparent !important;
	color: #fff !important;
}

.footer-email-form .wp-block-search__input::placeholder {
	color: #6B7280;
}

.footer-bottom-inner {
	gap: 1rem;
}

/* 11. Blog / Single Post
   ========================================================================== */
.entry-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #1F2937;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2.5rem;
}

.entry-content img {
	border-radius: 8px;
}

.post-author-box {
	margin-top: 3rem;
}

.author-box-inner {
	gap: 1rem;
	align-items: flex-start;
}

/* 12. 404 Page
   ========================================================================== */
.error-404-page {
	text-align: center;
}

.error-404-inner {
	margin: 0 auto;
}

/* 13. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.category-grid-block ul.wc-block-product-categories-list,
	.wp-block-woocommerce-product-categories {
		grid-template-columns: repeat(2, 1fr);
	}

	.shop-layout .shop-sidebar-col {
		flex-basis: 100% !important;
	}
}

@media (max-width: 782px) {
	.header-nav-wrap {
		display: none;
	}

	.hero-stats {
		flex-direction: column;
		gap: 1rem !important;
	}

	.storeva-post-card--horizontal {
		flex-direction: column;
	}

	.footer-cols {
		flex-direction: column;
	}

	.trust-badges-row {
		flex-wrap: wrap;
	}

	.trust-badge-item {
		flex-basis: 50% !important;
		border-right: none;
		margin-bottom: 1rem;
	}

	.single-product-layout,
	.post-layout {
		flex-direction: column;
	}

	.error-404-code {
		font-size: 5rem !important;
	}
}

@media (max-width: 480px) {
	.trust-badge-item {
		flex-basis: 100% !important;
	}

	.hero-content h1 {
		font-size: 2rem !important;
	}
}

/* Print styles */
@media print {
	.site-header,
	.site-footer,
	.storeva-announcement-bar,
	.storeva-quick-view,
	.storeva-wishlist-btn {
		display: none !important;
	}
}
