/*
Theme Name: Torfy Theme
Author: Bishal
Description: Ultra-fast, SEO-first, security-focused WooCommerce theme designed to use WooCommerce defaults with minimal theme CSS.
Version: 1.7.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: torfy
Tags: e-commerce, custom-logo, featured-images, block-styles, accessibility-ready, translation-ready
*/

:root {
--torfy-container: 1400px;
	--torfy-white: #ffffff;
	--torfy-soft: #f5f5f7;
	--torfy-text: #111111;
	--torfy-apple-text: #1d1d1f;
	--torfy-muted: #6e6e73;
	--torfy-border: #e5e5e7;
	--torfy-blue: #0071e3;
	--torfy-radius-sm: 10px;
	--torfy-radius: 16px;
	--torfy-radius-lg: 24px;
	--torfy-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	--torfy-focus: #0071e3;
}

*,
*::before,
*::after {
box-sizing: border-box;
}

html {
-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
margin: 0;
	overflow-x: hidden;
	background: var(--torfy-white);
	color: var(--torfy-apple-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	letter-spacing: -0.01em;
}

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

a {
color: inherit;
	text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
font: inherit;
}

button,
.button,
input[type="submit"] {
-webkit-tap-highlight-color: transparent;
}

:focus-visible {
outline: 3px solid var(--torfy-focus);
	outline-offset: 3px;
}

::selection {
background: #d8ebff;
	color: var(--torfy-text);
}

.screen-reader-text {
position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
position: fixed;
	z-index: 1000000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	border-radius: 10px;
	background: var(--torfy-text);
	color: var(--torfy-white);
}

.torfy-container {
width: min(99% - 1px, var(--torfy-container));
	margin-inline: auto;
}

.site-main,
.torfy-archive,
.torfy-singular,
.not-found {
padding-block: clamp(28px, 3vw, 72px);
}

.site-main {
min-height: 50vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
	color: var(--torfy-text);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.08;
}

h1 {
font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
margin-top: 0;
}

.archive-header,
.entry-header,
.entry-featured-image {
margin-bottom: 28px;
}

.archive-header {
max-width: 820px;
}

.archive-title {
margin-bottom: 12px;
}

.archive-description,
.entry-meta,
.entry-footer {
color: var(--torfy-muted);
}

.entry-title {
margin: 0 0 0.6rem;
	font-size: clamp(1.2rem, 2vw, 1.6rem);
	line-height: 1.2;
}

.entry-title a {
text-decoration: none;
}

.entry-meta,
.entry-footer,
.nav-links {
display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
}

.entry-meta {
margin-bottom: 0.8rem;
	font-size: 0.86rem;
}

.entry-content > *:last-child,
.entry-summary > *:last-child {
margin-bottom: 0;
}

.navigation,
.comments-area {
margin-top: 40px;
}

.nav-links a,
.page-numbers {
display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 14px;
	border: 1px solid var(--torfy-border);
	border-radius: 999px;
	background: var(--torfy-white);
	text-decoration: none;
}

.page-numbers.current,
.nav-links a:hover {
border-color: var(--torfy-text);
	background: var(--torfy-text);
	color: var(--torfy-white);
}

.comments-area {
padding-top: 32px;
	border-top: 1px solid var(--torfy-border);
}

.comment-list {
margin-left: 0;
	padding-left: 0;
	list-style: none;
}

.comment-body {
padding-block: 18px;
	border-bottom: 1px solid var(--torfy-border);
}

.comment-author {
display: flex;
	align-items: center;
	gap: 10px;
}

.comment-avatar {
border-radius: 50%;
}

.comment-form {
display: grid;
	gap: 12px;
}

.search-form {
display: flex;
	width: min(100%, 680px);
	gap: 8px;
	padding: 6px;
	border: 1px solid var(--torfy-border);
	border-radius: 999px;
	background: var(--torfy-white);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.search-form .search-field {
flex: 1;
	min-width: 0;
	padding: 10px 14px;
	border: 0;
	outline: 0;
	background: transparent;
}

.button,
button.button,
input.button,
input[type="submit"],
.search-form .search-submit,
.wp-element-button {
display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 20px;
	border: 1px solid var(--torfy-text);
	border-radius: 999px;
	background: var(--torfy-text);
	color: var(--torfy-white);
	font-weight: 650;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
button.button:hover,
input.button:hover,
input[type="submit"]:hover,
.search-form .search-submit:hover,
.wp-element-button:hover {
border-color: #333333;
	background: #333333;
	color: var(--torfy-white);
	transform: translateY(-1px);
}

.button.button-secondary {
border-color: var(--torfy-text);
	background: var(--torfy-text);
	color: var(--torfy-white);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
select,
textarea {
width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #d2d2d7;
	border-radius: var(--torfy-radius-sm);
	background: var(--torfy-white);
	color: var(--torfy-text);
	box-shadow: none;
}

textarea {
min-height: 130px;
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
border-color: var(--torfy-blue);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.not-found,
.no-results {
max-width: 760px;
	text-align: center;
}

.not-found .eyebrow {
margin-bottom: 8px;
	color: var(--torfy-muted);
	font-size: 0.78rem;
	font-weight: 750;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.not-found .search-form,
.no-results .search-form {
margin: 24px auto;
}

.torfy-404-products {
padding-bottom: clamp(38px, 7vw, 90px);
}

.torfy-404-products > h2 {
margin-bottom: 24px;
	text-align: center;
}

@media (max-width: 782px) {
.torfy-container {
width: min(100% - 28px, var(--torfy-container));
}

.site-main,
.torfy-archive,
.torfy-singular,
.not-found {
padding-block: 10px;
}

}

@media (max-width: 480px) {
body {
font-size: 14px;
}

.search-form {
border-radius: var(--torfy-radius);
}

.search-form .search-submit {
padding-inline: 14px;
}
}

@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
}
}

/* Companion plugin footer wrapper. Kept in the theme so the footer remains cache-friendly and shortcode-safe. */
.torfy-plugin-footer-wrap{background:#fff;padding:70px 0 0;text-align:center;width:100%;box-sizing:border-box}.torfy-plugin-footer-inner{background:#000;color:#fff;padding:50px 0 20px;width:100%;box-sizing:border-box}
