/* Pepto base styles */

:root {
	--pepto-accent: #098F53;
	--pepto-accent-hover: #077A47;
	--pepto-accent-tint: #ECFDF5;
	--pepto-text: #0A0A0A;
	--pepto-text-mute: #4B5563;
	--pepto-text-faint: #9CA3AF;
	--pepto-border: #E5E7EB;
	--pepto-bg: #FFFFFF;
	--pepto-bg-soft: #F9FAFB;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--pepto-text);
	background: var(--pepto-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--pepto-accent); text-decoration: none; }
a:hover { color: var(--pepto-accent-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-weight: 700;
	line-height: 1.2;
	color: var(--pepto-text);
	letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.pepto-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.pepto-site { min-height: 100vh; display: flex; flex-direction: column; }
.pepto-main { flex: 1; padding: 40px 0; }

/* Skip link */
.pepto-skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.pepto-skip-link:focus {
	left: 16px;
	top: 16px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	background: var(--pepto-text);
	color: #fff;
	z-index: 999;
	border-radius: 8px;
}
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px;
	overflow: hidden;
}

/* Header */
.pepto-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--pepto-border);
}
.pepto-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 20px;
}
.pepto-header__brand {
	font-weight: 800;
	font-size: 20px;
}
.pepto-header__brand-text { color: var(--pepto-text); }
.pepto-header__brand-text:hover { text-decoration: none; }
.pepto-header__nav { flex: 1; display: flex; justify-content: center; }
.pepto-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 24px;
}
.pepto-menu a {
	color: var(--pepto-text);
	font-weight: 500;
	font-size: 15px;
}
.pepto-menu a:hover { color: var(--pepto-accent); text-decoration: none; }

.pepto-header__actions { display: flex; align-items: center; gap: 12px; }
.pepto-header__cart {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--pepto-border);
	border-radius: 999px;
	color: var(--pepto-text);
	font-weight: 600;
	font-size: 13px;
}
.pepto-header__cart:hover { border-color: var(--pepto-text); text-decoration: none; }
.pepto-header__cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--pepto-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

/* Footer */
.pepto-footer {
	margin-top: 60px;
	padding: 40px 0;
	border-top: 1px solid var(--pepto-border);
	background: var(--pepto-bg-soft);
	color: var(--pepto-text-mute);
	font-size: 14px;
}
.pepto-footer__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.pepto-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.pepto-footer__menu a { color: var(--pepto-text-mute); font-size: 14px; }

/* Post grid */
.pepto-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	margin-bottom: 40px;
}
.pepto-post-card {
	border: 1px solid var(--pepto-border);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.pepto-post-card:hover { border-color: #c7ccd4; box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.pepto-post-card__media { display: block; }
.pepto-post-card__media img { width: 100%; height: 220px; object-fit: cover; }
.pepto-post-card__body { padding: 20px; }
.pepto-post-card__title { font-size: 18px; margin: 0 0 8px; }
.pepto-post-card__title a { color: var(--pepto-text); }
.pepto-post-card__title a:hover { color: var(--pepto-accent); text-decoration: none; }
.pepto-post-card__meta { font-size: 12px; color: var(--pepto-text-faint); margin-bottom: 12px; }
.pepto-post-card__excerpt { font-size: 14px; color: var(--pepto-text-mute); line-height: 1.5; }

/* Singular */
.pepto-singular { max-width: 760px; margin: 0 auto; }
.pepto-singular__header { margin-bottom: 24px; text-align: center; }
.pepto-singular__title { font-size: clamp(28px, 4vw, 44px); }
.pepto-singular__meta { color: var(--pepto-text-faint); font-size: 14px; }
.pepto-singular__media { margin: 0 0 32px; }
.pepto-singular__media img { width: 100%; border-radius: 14px; }
.pepto-singular__content { font-size: 16px; line-height: 1.7; }

/* 404 */
.pepto-404 { text-align: center; padding: 80px 20px; }
.pepto-404__title { font-size: clamp(36px, 5vw, 56px); }
.pepto-404__body { color: var(--pepto-text-mute); max-width: 480px; margin: 16px auto 32px; }
.pepto-404__actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Buttons */
.pepto-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
	text-decoration: none;
}
.pepto-btn--primary {
	background: var(--pepto-accent);
	color: #fff;
}
.pepto-btn--primary:hover {
	background: var(--pepto-accent-hover);
	color: #fff;
	text-decoration: none;
}

/* Search form */
.pepto-search-form {
	display: flex;
	gap: 8px;
	width: 100%;
	max-width: 420px;
}
.pepto-search-form__input {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--pepto-border);
	border-radius: 10px;
	font: inherit;
	font-size: 14px;
}
.pepto-search-form__submit {
	padding: 10px 16px;
	border: 0;
	border-radius: 10px;
	background: var(--pepto-text);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

/* WooCommerce integration */
.pepto-woo { padding-top: 20px; }

.pepto-woo .woocommerce-breadcrumb {
	color: var(--pepto-text-mute);
	font-size: 13px;
	margin-bottom: 20px;
}
.pepto-woo .products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pepto-woo .products .product { margin: 0; }
.pepto-woo .product .woocommerce-loop-product__title {
	font-size: 16px;
	font-weight: 600;
}
.pepto-woo .price {
	color: var(--pepto-text);
	font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
	.pepto-header__row { flex-wrap: wrap; gap: 12px; }
	.pepto-header__nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
	.pepto-menu { flex-wrap: wrap; gap: 16px; }
	.pepto-footer__row { flex-direction: column; align-items: flex-start; }
	.pepto-post-grid { grid-template-columns: 1fr; }
}
