/**
 * Responsive Styles - Coog
 * @package Coog
 */

/* Menu Toggle */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	margin-right: 22px;
	color: var(--coog-blue);
	padding: var(--space-sm);
	font-size: 28px;
	line-height: 1;
	transition: color var(--transition-base);
}

.menu-toggle:hover {
	color: var(--coog-yellow-hover);
}

/* Skip Link */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--coog-yellow);
	color: var(--coog-blue);
	padding: 8px 16px;
	text-decoration: none;
	z-index: 10000;
	font-weight: var(--font-weight-bold);
}
.skip-link:focus { top: 0; }

/* Focus Visible */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--coog-yellow);
	outline-offset: 2px;
}

/* ============================================
   TABLET (max 1024px)
   ============================================ */

@media (max-width: 1024px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.categories-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-footer__widgets {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-section__title {
		font-size: var(--font-size-3xl);
	}

	.primary-nav__list > li > a {
		padding: 0 var(--space-sm);
		font-size: var(--font-size-xs);
	}
}

/* ============================================
   MOBILE (max 768px)
   ============================================ */

@media (max-width: 768px) {
	:root {
		--header-height: 56px;
	}

	.menu-toggle {
		display: block;
		order: 3;
	}

	/* Mobile content padding 10px */
	.site-main {
		padding-left: 10px;
		padding-right: 10px;
	}

	.page-content {
		padding: 10px;
	}

	/* Mobile logo: smaller + margin 10px */
	.site-logo {
		max-height: 40px;
		margin: 10px;
	}

	.site-logo__image {
		height: 40px;
	}

	/* Compact mobile header */
	.site-header__container {
		padding: 0;
		gap: 0;
	}

	/* Hide search on mobile to save space */
	.site-header__actions {
		order: 2;
	}

	.site-header__container {
		flex-wrap: wrap;
	}

	/* Mobile Navigation */
	.site-header__nav {
		position: static;
		order: 4;
		width: 100%;
		flex-basis: 100%;
	}

	.primary-nav__list {
		display: none !important;
		flex-direction: column;
		width: 100%;
		background-color: var(--coog-white);
		border-top: 3px solid var(--coog-yellow);
		box-shadow: var(--shadow-lg);
		z-index: 999;
		padding: 0;
		margin: 0;
		list-style: none;
	}

	.primary-nav__list--active {
		display: flex !important;
	}

	.primary-nav__list > li {
		padding: 5px 0px 1px 11px;
		width: 100%;
	}

	.primary-nav__list > li > a {
		height: auto;
		padding: var(--space-md) var(--space-lg);
		border-bottom: 1px solid var(--coog-gray-light);
		font-size: var(--font-size-sm);
		display: block;
	}

	.primary-nav__list > li > a::after {
		display: none;
	}

	.primary-nav__list .sub-menu {
		position: static;
		box-shadow: none;
		border-top: none;
		background-color: var(--coog-off-white);
		display: none;
		min-width: 100%;
	}

	.primary-nav__list > li:hover > .sub-menu {
		display: block;
	}

	.primary-nav__list .sub-menu li a {
		padding-left: var(--space-2xl);
	}

	/* Hero */
	.hero-section {
		min-height: 350px;
	}

	.hero-section__title {
		font-size: var(--font-size-2xl);
	}

	.hero-section__image {
		position: relative;
		width: 100%;
		height: 250px;
	}

	.hero-section__content {
		padding: var(--space-xl) 0;
	}

	/* Grids */
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-md);
	}

	.categories-grid {
		grid-template-columns: 1fr;
	}

	.tips-grid {
		grid-template-columns: 1fr;
	}

	/* Footer */
	.site-footer__widgets {
		grid-template-columns: 1fr;
		gap: var(--space-lg);
	}

	.site-footer__bottom .container {
		flex-direction: column;
		text-align: center;
	}

	.footer-nav__list {
		flex-wrap: wrap;
		justify-content: center;
		gap: var(--space-md);
	}

	.site-footer__nav {
		margin-left: 0;
	}

	/* Content */
	.site-content {
		grid-template-columns: 1fr;
	}

	.site-content__sidebar {
		width: 100%;
	}

	/* Section titles */
	.section-title,
	.welcome-section__title {
		font-size: var(--font-size-2xl);
	}

	/* Newsletter */
	.newsletter-form {
		flex-direction: column;
	}

	/* Typography */
	h1 { font-size: var(--font-size-2xl); }
	h2 { font-size: var(--font-size-xl); }
	h3 { font-size: var(--font-size-lg); }
}

/* ============================================
   SMALL MOBILE (max 480px)
   ============================================ */

@media (max-width: 480px) {
	.container {
		padding: 0 10px;
	}

	.products-grid {
		grid-template-columns: 1fr;
	}

	.hero-section__title {
		font-size: var(--font-size-xl);
	}

	h1 { font-size: var(--font-size-xl); }
	h2 { font-size: var(--font-size-lg); }

	.site-header__container {
		gap: 0;
	}

	.site-logo {
		max-height: 36px;
		margin: 10px;
	}

	.site-logo__image {
		height: 36px;
	}
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
	margin-bottom: var(--space-2xl);
	padding: var(--space-2xl) 0;
	background-color: var(--coog-off-white);
	text-align: center;
}

.page-title {
	font-size: var(--font-size-3xl);
	color: var(--coog-blue);
	margin: 0;
	text-transform: uppercase;
}

.page-title span {
	color: var(--coog-yellow-hover);
}

/* ============================================
   PRINT
   ============================================ */

@media print {
	.site-header, .site-footer, .top-bar,
	.comments-area, .navigation,
	.menu-toggle, .site-header__search-toggle {
		display: none;
	}
	.post-entry, .post-single {
		page-break-inside: avoid;
	}
}
